|
|
@@ -111,6 +111,35 @@ export default { |
|
|
name: '其他类' |
|
|
name: '其他类' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
LegendDataRT: [ |
|
|
|
|
|
{ |
|
|
|
|
|
iconStyle: { |
|
|
|
|
|
background: 'rgba(64,255,0,0.45)', |
|
|
|
|
|
borderColor: '#40ff00', |
|
|
|
|
|
border: '2px solid #40ff00' |
|
|
|
|
|
}, |
|
|
|
|
|
name: '天麻', |
|
|
|
|
|
clickNow: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
iconStyle: { |
|
|
|
|
|
background: 'rgba(255,255,0,0.45)', |
|
|
|
|
|
borderColor: '#fcff00', |
|
|
|
|
|
border: '2px solid #fcff00' |
|
|
|
|
|
}, |
|
|
|
|
|
name: '刺梨', |
|
|
|
|
|
clickNow: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
iconStyle: { |
|
|
|
|
|
background: 'rgba(255,138,0,0.45)', |
|
|
|
|
|
borderColor: '#ff8a00', |
|
|
|
|
|
border: '2px solid #ff8a00' |
|
|
|
|
|
}, |
|
|
|
|
|
name: '高粱', |
|
|
|
|
|
clickNow: true |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
threeAssetTypeOptions: [], |
|
|
threeAssetTypeOptions: [], |
|
|
threeJtzyzcTypeOptions: [], |
|
|
threeJtzyzcTypeOptions: [], |
|
|
threeNysssbTypeOptions: [], |
|
|
threeNysssbTypeOptions: [], |
|
|
@@ -199,6 +228,32 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
legendClick(index,item){ |
|
|
|
|
|
item.clickNow = !item.clickNow; |
|
|
|
|
|
switch (index) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
if (item.clickNow){ |
|
|
|
|
|
this.tianmachaye = gis.addImageLayer2(this.mapGeoServerUrl, 'gz_qixing:tianmachaye'); |
|
|
|
|
|
}else{ |
|
|
|
|
|
gis.getMapContainer().removeLayer(this.tianmachaye); |
|
|
|
|
|
} |
|
|
|
|
|
break; |
|
|
|
|
|
case 1: |
|
|
|
|
|
if (item.clickNow){ |
|
|
|
|
|
this.cilichanye = gis.addImageLayer2(this.mapGeoServerUrl, 'gz_qixing:cilichanye'); |
|
|
|
|
|
}else{ |
|
|
|
|
|
gis.getMapContainer().removeLayer(this.cilichanye); |
|
|
|
|
|
} |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
if (item.clickNow){ |
|
|
|
|
|
this.gaoliang = gis.addImageLayer2(this.mapGeoServerUrl, 'gz_qixing:gaoliang'); |
|
|
|
|
|
}else{ |
|
|
|
|
|
gis.getMapContainer().removeLayer(this.gaoliang); |
|
|
|
|
|
} |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
commitDept (deptId) { |
|
|
commitDept (deptId) { |
|
|
this.$store.commit('SET_DEPTID', deptId); |
|
|
this.$store.commit('SET_DEPTID', deptId); |
|
|
}, |
|
|
}, |
|
|
@@ -303,13 +358,17 @@ export default { |
|
|
// 加载地图 |
|
|
// 加载地图 |
|
|
initMap (deptId) { |
|
|
initMap (deptId) { |
|
|
gis = new GisUtils('map2') |
|
|
gis = new GisUtils('map2') |
|
|
|
|
|
console.log(deptId); |
|
|
// // 获取资源列表 |
|
|
// // 获取资源列表 |
|
|
this.getResourceList(deptId); |
|
|
this.getResourceList(deptId); |
|
|
gis.addTianDiTuLayer() |
|
|
gis.addTianDiTuLayer() |
|
|
gis.addAnnotationLayer() |
|
|
gis.addAnnotationLayer() |
|
|
|
|
|
this.tianmachaye = gis.addImageLayer2(this.mapGeoServerUrl, 'gz_qixing:tianmachaye'); |
|
|
|
|
|
this.cilichanye = gis.addImageLayer2(this.mapGeoServerUrl, 'gz_qixing:cilichanye'); |
|
|
|
|
|
this.gaoliang = gis.addImageLayer2(this.mapGeoServerUrl, 'gz_qixing:gaoliang'); |
|
|
let dept2 = this.addrOptions[0]; |
|
|
let dept2 = this.addrOptions[0]; |
|
|
//console.log(this.addrOptions, 'this.addrOptions'); |
|
|
//console.log(this.addrOptions, 'this.addrOptions'); |
|
|
console.log(dept2.deptLevel) |
|
|
|
|
|
|
|
|
// console.log(dept2.deptLevel) |
|
|
if (dept2.deptLevel === '5') { |
|
|
if (dept2.deptLevel === '5') { |
|
|
// 登录身份为市级领导 |
|
|
// 登录身份为市级领导 |
|
|
this.userRole = 'cityLeader'; |
|
|
this.userRole = 'cityLeader'; |
|
|
@@ -428,7 +487,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
openResourceDialog (data) { |
|
|
openResourceDialog (data) { |
|
|
data.fileList = []; |
|
|
data.fileList = []; |
|
|
console.log(data) |
|
|
|
|
|
|
|
|
// console.log(data) |
|
|
let parmasData = { |
|
|
let parmasData = { |
|
|
tableId: data.id, |
|
|
tableId: data.id, |
|
|
tableName: 't_asset_industry', |
|
|
tableName: 't_asset_industry', |
|
|
@@ -495,12 +554,16 @@ export default { |
|
|
// }); |
|
|
// }); |
|
|
}, |
|
|
}, |
|
|
// 添加资源图层 |
|
|
// 添加资源图层 |
|
|
|
|
|
// addResourceLayerNew(resourceList) { |
|
|
|
|
|
// |
|
|
|
|
|
// }, |
|
|
|
|
|
// 添加资源图层 |
|
|
addResourceLayer (resourceList) { |
|
|
addResourceLayer (resourceList) { |
|
|
let features = []; |
|
|
let features = []; |
|
|
resourceList.forEach(item => { |
|
|
resourceList.forEach(item => { |
|
|
if (item.theGeom != null && item.theGeom !== '') { |
|
|
if (item.theGeom != null && item.theGeom !== '') { |
|
|
const { industryType } = item |
|
|
const { industryType } = item |
|
|
console.log(222, industryType); |
|
|
|
|
|
|
|
|
// console.log(222, industryType); |
|
|
// console.log(222, item); |
|
|
// console.log(222, item); |
|
|
let color = {}; |
|
|
let color = {}; |
|
|
if (industryType > 5){ |
|
|
if (industryType > 5){ |
|
|
|