Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
K
knowledgeServiceAdmin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
quanlili
knowledgeServiceAdmin
Commits
4b358bda
提交
4b358bda
authored
10月 29, 2019
作者:
quanlili
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'qll' into dev
上级
a59b63ad
d82c5d9a
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
125 行增加
和
73 行删除
+125
-73
index.js
src/api/dataManagement/index.js
+7
-0
chart.vue
src/views/dataManagement/chart.vue
+53
-40
index.vue
src/views/draw/atlas/index.vue
+1
-0
index.vue
src/views/draw/atlas_rich/index.vue
+1
-0
detail.vue
src/views/draw/metadata/detail.vue
+1
-1
index.vue
src/views/draw/metadata/index.vue
+1
-0
index.vue
src/views/draw/sip/index.vue
+22
-19
msg_packet.vue
src/views/draw/sip/msg_packet.vue
+31
-4
AppMain.vue
src/views/layout/components/AppMain.vue
+8
-9
没有找到文件。
src/api/dataManagement/index.js
浏览文件 @
4b358bda
...
...
@@ -23,6 +23,13 @@ export function getTypeAPI(params) { //查看资源类型
params
})
}
export
function
getMapAPI
(
params
)
{
//查看资源分布,地图
return
request
({
url
:
`
${
requestPath
.
resource
}
/resource/geography/resource`
,
method
:
'get'
,
params
})
}
...
...
src/views/dataManagement/chart.vue
浏览文件 @
4b358bda
...
...
@@ -41,7 +41,7 @@ anhui,beijing,fujian,xianggang,taiwan
}
from
"@/utils/importMap"
;
import
{
CityInfo
}
from
'@/mock/city-data'
import
{
debounce
}
from
'@/utils'
import
{
getSurveyAPI
,
getStatusAPI
,
getTypeAPI
}
from
'@/api/dataManagement/index'
import
{
getSurveyAPI
,
getStatusAPI
,
getTypeAPI
,
getMapAPI
}
from
'@/api/dataManagement/index'
var
surveyOption
=
{
backgroundColor
:
"#fff"
,
"title"
:
{
...
...
@@ -510,21 +510,44 @@ var mapOption = {
top: '
bottom
',
text: ['
高
', '
低
'],
calculable: true,
seriesIndex:'
1
',
seriesIndex:'
0
',
show:false,
inRange: {
//color: ['
#
01524
c
', '
#
02726
c
'] // 蓝绿
color:["#01689C",'
#
01689
C
']
}
},
series: [{
name: '',
name: '
散点
',
type: '
scatter
',
coordinateSystem: '
geo
',
data: [],
symbolSize: function(val) {
return 6;
},
label: {
normal: {
//color: '
yellow
',
formatter: '
{
b
}
',
position: '
center
',
align:"center",
show: true
},
emphasis: {
show: true
}
},
itemStyle: {
normal: {
color: '
yellow
'
}
}
},{
name: '
气泡
',
type: '
scatter
',
coordinateSystem: '
geo
',
symbol: '
pin
',
data:[
{name: "天安门",value:[116.403694,39.914271, 258]},
{name: "四惠桥",value:[116.49568,39.914271,333]}
],
symbolSize: function(val) {
// var a = (maxSize4Pin - minSize4Pin) / (max - min);
...
...
@@ -533,47 +556,23 @@ var mapOption = {
// return a * val[2] + b;
return 35;
},
// label: {
// normal: {
// show: true,
// formatter: function(params) {
// return params.data.value[2]
// },
// textStyle: {
// color: '
#
fff
',
// fontSize: 9,
// }
// }
// },
label: {
label:{
normal: {
color: '
#
04
BFFC
',
//formatter: '
{
b
}
',
show: true,
formatter:function(params){
return '
{
white
|
'+params.value[2]+'
}
\
n
'+'
{
name
|
'+params.name+'
}
'
return params.value[2]
},
rich: {
'
white
': {
color:"#fff",
height:18,
align:'
center
',
},
'
name
':{
color:"yellow",
height:20,
align:'
right
'
}
},
position: '
center
',
show: true
}
textStyle: {
color: '
#
fff
',
fontSize: 9,
}
},
},
itemStyle: {
normal: {
color: '
red
', //标志颜色
color: '
#
F62157
', //标志颜色
}
},
zlevel: 1
}]
};
...
...
@@ -682,7 +681,21 @@ export default {
getMap(proName='
北京市
'){
mapOption.geo.map=proName;
echarts.registerMap(proName, cityMap[proName]);
this.mapChart.setOption(mapOption,true)
mapOption.title.text= proName+"资源分布情况";
let params={
name:proName
}
getMapAPI(params).then(res=>{
if(res.data.code==0){
let resData=res.data.data||[];
mapOption.series[0].data=resData;
mapOption.series[1].data=resData;
this.mapChart.setOption(mapOption,true)
}else{
this.$message.error('
获取资源状态失败
')
}
})
},
changePro(){
this.getMap(this.province)
...
...
src/views/draw/atlas/index.vue
浏览文件 @
4b358bda
...
...
@@ -414,6 +414,7 @@ export default {
refPage
(){
this
.
loading
=
true
;
this
.
resetSearch
();
this
.
bus
.
$emit
(
"resetSearch"
,
''
);
setTimeout
(()
=>
{
this
.
loading
=
false
;
},
1000
)
...
...
src/views/draw/atlas_rich/index.vue
浏览文件 @
4b358bda
...
...
@@ -244,6 +244,7 @@ export default {
refPage
(){
this
.
loading
=
true
;
this
.
resetSearch
();
this
.
bus
.
$emit
(
"resetSearch"
,
''
);
setTimeout
(()
=>
{
this
.
loading
=
false
;
},
1000
)
...
...
src/views/draw/metadata/detail.vue
浏览文件 @
4b358bda
...
...
@@ -26,7 +26,7 @@
<img
:src=
"pdf.fileName"
alt=
""
class=
"pic_show"
>
</div>
<!-- 图册 -->
<div
style=
"width:80%;margin:0 auto;height:800px;text-align:center"
v-if=
"resourceType==5"
>
<div
style=
"width:80%;margin:0 auto;height:800px;text-align:center"
v-
else-
if=
"resourceType==5"
>
</div>
<div
style=
"width:80%;margin:0 auto;height:800px"
v-else
>
...
...
src/views/draw/metadata/index.vue
浏览文件 @
4b358bda
...
...
@@ -227,6 +227,7 @@ export default {
refPage
(){
this
.
loading
=
true
;
this
.
resetSearch
();
this
.
bus
.
$emit
(
"resetSearch"
,
''
);
setTimeout
(()
=>
{
this
.
loading
=
false
;
},
1000
)
...
...
src/views/draw/sip/index.vue
浏览文件 @
4b358bda
...
...
@@ -317,11 +317,12 @@ export default {
remark
:
this
.
pdf
.
remark
}
batchUpdateStatusAPI
(
data
).
then
(
res
=>
{
operationMsg
.
apply
(
this
,
[
res
.
data
.
code
,
`批量提交
${
this
.
multipleSelection
.
length
}
项`
]);
//this.getList();
if
(
res
.
data
.
code
==
0
){
this
.
$message
.
success
(
`批量提交
${
this
.
multipleSelection
.
length
}
项`
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
'提交失败'
)
}
this
.
passVisible
=
false
;
});
},
...
...
@@ -342,12 +343,13 @@ export default {
remark
:
this
.
pdf
.
remark
}
batchUpdateStatusAPI
(
data
).
then
(
res
=>
{
operationMsg
.
apply
(
this
,
[
res
.
data
.
code
,
`批量提交
${
this
.
multipleSelection
.
length
}
项`
]);
if
(
res
.
data
.
code
==
0
){
this
.
$message
.
success
(
`批量提交
${
this
.
multipleSelection
.
length
}
项`
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
'提交失败'
)
}
this
.
passVisible
=
false
;
this
.
getList
();
});
},
alertUpdate
(
item
){
...
...
@@ -364,12 +366,11 @@ export default {
singleUpdate
(){
this
.
dataUpdate
.
remark
=
this
.
pdf
.
remark
;
batchUpdateStatusAPI
(
this
.
dataUpdate
).
then
(
res
=>
{
operationMsg
.
apply
(
this
,
[
res
.
data
.
code
,
`提交`
]);
if
(
res
.
data
.
code
==
0
){
this
.
$message
.
success
(
'提交成功'
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
'提交失败'
)
}
this
.
passVisible
=
false
;
});
...
...
@@ -393,12 +394,13 @@ export default {
remark
:
this
.
pdf
.
remark
}
batchUpdateStatusAPI
(
data
).
then
(
res
=>
{
operationMsg
.
apply
(
this
,
[
res
.
data
.
code
,
`提交`
]);
if
(
res
.
data
.
code
==
0
){
this
.
$message
.
success
(
'提交成功'
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
'提交失败'
)
}
this
.
passVisible
=
false
;
this
.
getList
();
});
},
handleCheckAllChange
(
val
)
{
...
...
@@ -416,6 +418,7 @@ export default {
refPage
(){
this
.
loading
=
true
;
this
.
resetSearch
();
this
.
bus
.
$emit
(
"resetSearch"
,
''
);
setTimeout
(()
=>
{
this
.
loading
=
false
;
},
1000
)
...
...
src/views/draw/sip/msg_packet.vue
浏览文件 @
4b358bda
...
...
@@ -19,8 +19,8 @@
</span>
<span
v-else
>
<img
src=
"~@/assets/img/pdf.png"
alt=
"pdf"
class=
"pdf_icon"
>
<el-button
type=
"primary"
icon=
"el-icon-refresh"
size=
"mini"
>
重新转码
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-document"
size=
"mini"
>
目录转译
</el-button>
<
!--
<
el-button
type=
"primary"
icon=
"el-icon-refresh"
size=
"mini"
>
重新转码
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-document"
size=
"mini"
>
目录转译
</el-button>
-->
</span>
</p>
</div>
...
...
@@ -104,9 +104,9 @@
</div>
</div>
<div
class=
"status-btn"
v-if=
"pdf.status==1"
>
<el-button
type=
"danger"
icon=
"el-icon-close"
>
拒绝
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-close"
@
click=
"refuse"
>
拒绝
</el-button>
<el-button
type=
"success"
icon=
"el-icon-check"
@
click=
"passVisible=true"
>
通过
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-edit"
>
编辑
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"linkToEdit"
>
编辑
</el-button>
</div>
<div
class=
"step_wrap"
>
<!-- //0待录入,2待挂接,1待交接,3通过交接(待丰富化),4拒绝交接 ,5已入库 -->
...
...
@@ -129,6 +129,7 @@
:visible
.
sync=
"passVisible"
width=
"800px"
class=
""
@
close=
"closePass"
>
<el-form
ref=
"form"
:model=
"pdf"
label-width=
"80px"
>
<el-form-item
label=
"题名:"
>
...
...
@@ -201,6 +202,8 @@ export default {
if
(
res
.
data
.
code
===
0
){
let
{
fileName
}
=
res
.
data
.
data
;
this
.
pdf
=
res
.
data
.
data
;
//回显,置空备注
this
.
pdf
.
remark
=
''
;
this
.
activeStatus
=
this
.
pdf
.
status
;
this
.
fileName
=
fileName
;
this
.
pdf
.
fileName
=
`
${
this
.
domain
}${
requestPath
.
file
}
?fileName=
${
fileName
}
&isOnLine=true`
;
...
...
@@ -232,6 +235,30 @@ export default {
linkPic
(){
this
.
$router
.
push
({
path
:
'/submission/infoview/photolook'
,
query
:{
oid
:
this
.
pdf
.
albumId
}})
},
refuse
(){
confirm
.
apply
(
this
,[
'确定要拒绝交接吗?'
]).
then
(()
=>
{
let
data
=
{
ids
:[
this
.
id
],
status
:
4
,
//拒绝交接
remark
:
this
.
pdf
.
remark
}
batchUpdateStatusAPI
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
this
.
$message
.
success
(
'提交成功'
);
this
.
getDetail
();
}
else
{
this
.
$message
.
error
(
'提交失败'
)
}
});
})
},
linkToEdit
(){
//console.log(this.pdf.albumId,'this.pdf.albumId')
this
.
$router
.
push
({
path
:
'/submission/resourcecommit'
,
query
:{
oid
:
this
.
id
}})
},
closePass
(){
this
.
pdf
.
remark
=
''
;
},
handleClick
(){
},
...
...
src/views/layout/components/AppMain.vue
浏览文件 @
4b358bda
...
...
@@ -50,6 +50,7 @@ export default {
}
else
{
this
.
showSearch
=
false
;
}
this
.
resetInput
();
},
watch
:
{
$route
(
to
,
from
){
...
...
@@ -74,14 +75,6 @@ export default {
}
},
methods
:{
// valueChange(value) {
// console.log(value,'value')
// if (value.length
<
30
)
{
// this.$store.dispatch("SetSearchValue", value).then(res => {});
// }else{
// return
// }
// },
search
(){
let
meta
=
this
.
$route
.
meta
;
if
(
this
.
$route
.
name
==
"atlasRich"
||
this
.
$route
.
name
==
"atlas"
){
...
...
@@ -90,10 +83,16 @@ export default {
this
.
bus
.
$emit
(
"searchList"
,
this
.
value
);
}
//console.log(this.$store.state.pageTemp,'11111111111')
},
resetInput
(){
this
.
bus
.
$off
(
'resetSearch'
).
$on
(
'resetSearch'
,
content
=>
{
this
.
value
=
''
;
console
.
log
(
'清空了,哈哈哈'
)
});
}
},
beforeDestroy
()
{
this
.
bus
.
$off
(
'resetSearch'
);
}
}
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论