提交 4b358bda authored 作者: quanlili's avatar quanlili

Merge branch 'qll' into dev

...@@ -23,6 +23,13 @@ export function getTypeAPI(params) { //查看资源类型 ...@@ -23,6 +23,13 @@ export function getTypeAPI(params) { //查看资源类型
params params
}) })
} }
export function getMapAPI(params) { //查看资源分布,地图
return request({
url: `${requestPath.resource}/resource/geography/resource`,
method: 'get',
params
})
}
......
...@@ -41,7 +41,7 @@ anhui,beijing,fujian,xianggang,taiwan ...@@ -41,7 +41,7 @@ anhui,beijing,fujian,xianggang,taiwan
} from "@/utils/importMap"; } from "@/utils/importMap";
import { CityInfo } from '@/mock/city-data' import { CityInfo } from '@/mock/city-data'
import { debounce } from '@/utils' import { debounce } from '@/utils'
import { getSurveyAPI,getStatusAPI,getTypeAPI} from '@/api/dataManagement/index' import { getSurveyAPI,getStatusAPI,getTypeAPI,getMapAPI} from '@/api/dataManagement/index'
var surveyOption = { var surveyOption = {
backgroundColor: "#fff", backgroundColor: "#fff",
"title": { "title": {
...@@ -510,21 +510,44 @@ var mapOption = { ...@@ -510,21 +510,44 @@ var mapOption = {
top: 'bottom', top: 'bottom',
text: ['', ''], text: ['', ''],
calculable: true, calculable: true,
seriesIndex:'1', seriesIndex:'0',
show:false, show:false,
inRange: { inRange: {
//color: ['#01524c', '#02726c'] // 蓝绿
color:["#01689C",'#01689C'] color:["#01689C",'#01689C']
} }
}, },
series: [{ 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', type: 'scatter',
coordinateSystem: 'geo', coordinateSystem: 'geo',
symbol: 'pin', symbol: 'pin',
data:[ data:[
{name: "天安门",value:[116.403694,39.914271, 258]},
{name: "四惠桥",value:[116.49568,39.914271,333]}
], ],
symbolSize: function(val) { symbolSize: function(val) {
// var a = (maxSize4Pin - minSize4Pin) / (max - min); // var a = (maxSize4Pin - minSize4Pin) / (max - min);
...@@ -533,47 +556,23 @@ var mapOption = { ...@@ -533,47 +556,23 @@ var mapOption = {
// return a * val[2] + b; // return a * val[2] + b;
return 35; return 35;
}, },
// label: { label:{
// normal: {
// show: true,
// formatter: function(params) {
// return params.data.value[2]
// },
// textStyle: {
// color: '#fff',
// fontSize: 9,
// }
// }
// },
label: {
normal: { normal: {
color: '#04BFFC', show: true,
//formatter: '{b}',
formatter:function(params){ formatter:function(params){
return '{white|'+params.value[2]+'}\n'+'{name|'+params.name+'}' return params.value[2]
}, },
rich: { textStyle: {
'white': { color: '#fff',
color:"#fff", fontSize: 9,
height:18, }
align:'center', },
},
'name':{
color:"yellow",
height:20,
align:'right'
}
},
position: 'center',
show: true
}
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: 'red', //标志颜色 color: '#F62157', //标志颜色
} }
}, },
zlevel: 1 zlevel: 1
}] }]
}; };
...@@ -682,7 +681,21 @@ export default { ...@@ -682,7 +681,21 @@ export default {
getMap(proName='北京市'){ getMap(proName='北京市'){
mapOption.geo.map=proName; mapOption.geo.map=proName;
echarts.registerMap(proName, cityMap[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(){ changePro(){
this.getMap(this.province) this.getMap(this.province)
......
...@@ -414,6 +414,7 @@ export default { ...@@ -414,6 +414,7 @@ export default {
refPage(){ refPage(){
this.loading=true; this.loading=true;
this.resetSearch(); this.resetSearch();
this.bus.$emit("resetSearch",'');
setTimeout(()=>{ setTimeout(()=>{
this.loading=false; this.loading=false;
},1000) },1000)
......
...@@ -244,6 +244,7 @@ export default { ...@@ -244,6 +244,7 @@ export default {
refPage(){ refPage(){
this.loading=true; this.loading=true;
this.resetSearch(); this.resetSearch();
this.bus.$emit("resetSearch",'');
setTimeout(()=>{ setTimeout(()=>{
this.loading=false; this.loading=false;
},1000) },1000)
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<img :src="pdf.fileName" alt="" class="pic_show"> <img :src="pdf.fileName" alt="" class="pic_show">
</div> </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>
<div style="width:80%;margin:0 auto;height:800px" v-else> <div style="width:80%;margin:0 auto;height:800px" v-else>
......
...@@ -227,6 +227,7 @@ export default { ...@@ -227,6 +227,7 @@ export default {
refPage(){ refPage(){
this.loading=true; this.loading=true;
this.resetSearch(); this.resetSearch();
this.bus.$emit("resetSearch",'');
setTimeout(()=>{ setTimeout(()=>{
this.loading=false; this.loading=false;
},1000) },1000)
......
...@@ -317,11 +317,12 @@ export default { ...@@ -317,11 +317,12 @@ export default {
remark:this.pdf.remark remark:this.pdf.remark
} }
batchUpdateStatusAPI(data).then(res => { batchUpdateStatusAPI(data).then(res => {
operationMsg.apply(this, [ if(res.data.code==0){
res.data.code, this.$message.success(`批量提交${this.multipleSelection.length}项`);
`批量提交${this.multipleSelection.length}项` this.getList();
]); }else{
//this.getList(); this.$message.error('提交失败')
}
this.passVisible=false; this.passVisible=false;
}); });
}, },
...@@ -342,12 +343,13 @@ export default { ...@@ -342,12 +343,13 @@ export default {
remark:this.pdf.remark remark:this.pdf.remark
} }
batchUpdateStatusAPI(data).then(res => { batchUpdateStatusAPI(data).then(res => {
operationMsg.apply(this, [ if(res.data.code==0){
res.data.code, this.$message.success(`批量提交${this.multipleSelection.length}项`);
`批量提交${this.multipleSelection.length}项` this.getList();
]); }else{
this.$message.error('提交失败')
}
this.passVisible=false; this.passVisible=false;
this.getList();
}); });
}, },
alertUpdate(item){ alertUpdate(item){
...@@ -364,12 +366,11 @@ export default { ...@@ -364,12 +366,11 @@ export default {
singleUpdate(){ singleUpdate(){
this.dataUpdate.remark=this.pdf.remark; this.dataUpdate.remark=this.pdf.remark;
batchUpdateStatusAPI(this.dataUpdate).then(res => { batchUpdateStatusAPI(this.dataUpdate).then(res => {
operationMsg.apply(this, [
res.data.code,
`提交`
]);
if(res.data.code==0){ if(res.data.code==0){
this.$message.success('提交成功');
this.getList(); this.getList();
}else{
this.$message.error('提交失败')
} }
this.passVisible=false; this.passVisible=false;
}); });
...@@ -393,12 +394,13 @@ export default { ...@@ -393,12 +394,13 @@ export default {
remark:this.pdf.remark remark:this.pdf.remark
} }
batchUpdateStatusAPI(data).then(res => { batchUpdateStatusAPI(data).then(res => {
operationMsg.apply(this, [ if(res.data.code==0){
res.data.code, this.$message.success('提交成功');
`提交` this.getList();
]); }else{
this.$message.error('提交失败')
}
this.passVisible=false; this.passVisible=false;
this.getList();
}); });
}, },
handleCheckAllChange(val) { handleCheckAllChange(val) {
...@@ -416,6 +418,7 @@ export default { ...@@ -416,6 +418,7 @@ export default {
refPage(){ refPage(){
this.loading=true; this.loading=true;
this.resetSearch(); this.resetSearch();
this.bus.$emit("resetSearch",'');
setTimeout(()=>{ setTimeout(()=>{
this.loading=false; this.loading=false;
},1000) },1000)
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
</span> </span>
<span v-else> <span v-else>
<img src="~@/assets/img/pdf.png" alt="pdf" class="pdf_icon"> <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-refresh" size="mini">重新转码</el-button>
<el-button type="primary" icon="el-icon-document" size="mini">目录转译</el-button> <el-button type="primary" icon="el-icon-document" size="mini">目录转译</el-button> -->
</span> </span>
</p> </p>
</div> </div>
...@@ -104,9 +104,9 @@ ...@@ -104,9 +104,9 @@
</div> </div>
</div> </div>
<div class="status-btn" v-if="pdf.status==1"> <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="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>
<div class="step_wrap"> <div class="step_wrap">
<!-- //0待录入,2待挂接,1待交接,3通过交接(待丰富化),4拒绝交接 ,5已入库 --> <!-- //0待录入,2待挂接,1待交接,3通过交接(待丰富化),4拒绝交接 ,5已入库 -->
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
:visible.sync="passVisible" :visible.sync="passVisible"
width="800px" width="800px"
class="" class=""
@close="closePass"
> >
<el-form ref="form" :model="pdf" label-width="80px"> <el-form ref="form" :model="pdf" label-width="80px">
<el-form-item label="题名:"> <el-form-item label="题名:">
...@@ -201,6 +202,8 @@ export default { ...@@ -201,6 +202,8 @@ export default {
if(res.data.code===0){ if(res.data.code===0){
let {fileName}=res.data.data; let {fileName}=res.data.data;
this.pdf=res.data.data; this.pdf=res.data.data;
//回显,置空备注
this.pdf.remark='';
this.activeStatus=this.pdf.status; this.activeStatus=this.pdf.status;
this.fileName=fileName; this.fileName=fileName;
this.pdf.fileName=`${this.domain}${requestPath.file}?fileName=${fileName}&isOnLine=true`; this.pdf.fileName=`${this.domain}${requestPath.file}?fileName=${fileName}&isOnLine=true`;
...@@ -232,6 +235,30 @@ export default { ...@@ -232,6 +235,30 @@ export default {
linkPic(){ linkPic(){
this.$router.push({path:'/submission/infoview/photolook',query:{oid:this.pdf.albumId}}) 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(){ handleClick(){
}, },
......
...@@ -50,6 +50,7 @@ export default { ...@@ -50,6 +50,7 @@ export default {
}else{ }else{
this.showSearch=false; this.showSearch=false;
} }
this.resetInput();
}, },
watch: { watch: {
$route(to,from){ $route(to,from){
...@@ -74,14 +75,6 @@ export default { ...@@ -74,14 +75,6 @@ export default {
} }
}, },
methods:{ methods:{
// valueChange(value) {
// console.log(value,'value')
// if (value.length < 30) {
// this.$store.dispatch("SetSearchValue", value).then(res => {});
// }else{
// return
// }
// },
search(){ search(){
let meta=this.$route.meta; let meta=this.$route.meta;
if(this.$route.name=="atlasRich"||this.$route.name=="atlas"){ if(this.$route.name=="atlasRich"||this.$route.name=="atlas"){
...@@ -90,10 +83,16 @@ export default { ...@@ -90,10 +83,16 @@ export default {
this.bus.$emit("searchList",this.value); this.bus.$emit("searchList",this.value);
} }
//console.log(this.$store.state.pageTemp,'11111111111') //console.log(this.$store.state.pageTemp,'11111111111')
},
resetInput(){
this.bus.$off('resetSearch').$on('resetSearch', content => {
this.value='';
console.log('清空了,哈哈哈')
});
} }
}, },
beforeDestroy () { beforeDestroy () {
this.bus.$off('resetSearch');
} }
} }
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论