|
|
|
@@ -11,10 +11,14 @@ import { attachmentList } from "@/api/common/uploadAttachment.js"; |
|
|
|
import { treeselect, getDept, listDeptExcludeChild } from "@/api/system/dept"; |
|
|
|
import { getConfigKey } from "@/api/system/config"; |
|
|
|
import { treeselectByDeptId } from "@/api/system/dept"; |
|
|
|
import { getThreeList } from "@/api/index"; |
|
|
|
|
|
|
|
import Popover from '../popover/index.vue'; |
|
|
|
let gis = null; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
Legend |
|
|
|
Legend, |
|
|
|
Popover |
|
|
|
}, |
|
|
|
data () { |
|
|
|
return { |
|
|
|
@@ -178,6 +182,7 @@ export default { |
|
|
|
checkStrictly: true, |
|
|
|
}, |
|
|
|
addrOptions: [], |
|
|
|
resourceDetail: {}, |
|
|
|
//资产信息详情弹窗 |
|
|
|
showResourceDetail: false, |
|
|
|
mapGeoServerUrl: "", // geoserver地址 |
|
|
|
@@ -221,11 +226,35 @@ export default { |
|
|
|
name: '其他' |
|
|
|
} |
|
|
|
], |
|
|
|
threeAssetTypeOptions: [], |
|
|
|
threeJtzyzcTypeOptions: [], |
|
|
|
threeNysssbTypeOptions: [], |
|
|
|
threeNhTypeOptions: [], |
|
|
|
natureOwnershipTypeOptions: [], |
|
|
|
sysYesNoOptions: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
}, |
|
|
|
created () { |
|
|
|
this.getDicts("three_asset_type").then((response) => { |
|
|
|
this.threeAssetTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("three_jtzyzc_type").then((response) => { |
|
|
|
this.threeJtzyzcTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("three_nysssb_type").then((response) => { |
|
|
|
this.threeNysssbTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("three_nh_type").then((response) => { |
|
|
|
this.threeNhTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("nature_ownership").then((response) => { |
|
|
|
this.natureOwnershipTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("sys_yes_no").then((response) => { |
|
|
|
this.sysYesNoOptions = response.data; |
|
|
|
}); |
|
|
|
this.getGeoServerUrl(); |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
@@ -251,14 +280,13 @@ export default { |
|
|
|
this.resourceListQueryParams.deptId = res.user.loginDeptId; |
|
|
|
this.contractionByPermanentQueryParams.deptId = res.user.loginDeptId; |
|
|
|
//列表请求 |
|
|
|
this.getAllList(); |
|
|
|
this.getAllList(res.user.deptId); |
|
|
|
// 加载地图 |
|
|
|
this.initMap(res.user.loginDeptId); |
|
|
|
|
|
|
|
// 获取村边界的图层名称 |
|
|
|
this.getVillageBorderLayerName(); |
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
|
// treeselect().then((resp) => { |
|
|
|
// this.addrOptions = resp.data |
|
|
|
@@ -435,6 +463,22 @@ export default { |
|
|
|
duration: 1000, // 缩放持续时间,默认不需要设置 |
|
|
|
}); |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
feature.values_.detail.threeDetailType = |
|
|
|
feature.values_.detail.threeAssetType == '1' ? |
|
|
|
this.selectDictLabel(this.threeJtzyzcTypeOptions, feature.values_.detail.threeDetailType): |
|
|
|
feature.values_.detail.threeAssetType == '2' ? |
|
|
|
this.selectDictLabel(this.threeNysssbTypeOptions, feature.values_.detail.threeDetailType): |
|
|
|
feature.values_.detail.threeAssetType == '3' ? |
|
|
|
this.selectDictLabel(this.threeNhTypeOptions, feature.values_.detail.threeDetailType):'' |
|
|
|
; |
|
|
|
feature.values_.detail.threeAssetType = this.selectDictLabel(this.threeAssetTypeOptions, feature.values_.detail.threeAssetType); |
|
|
|
feature.values_.detail.natureOwnership = this.selectDictLabel(this.natureOwnershipTypeOptions, feature.values_.detail.natureOwnership); |
|
|
|
feature.values_.detail.qssfczzy = this.selectDictLabel(this.sysYesNoOptions, feature.values_.detail.qssfczzy); |
|
|
|
feature.values_.detail.sfwtdg = this.selectDictLabel(this.sysYesNoOptions, feature.values_.detail.sfwtdg); |
|
|
|
feature.values_.detail.sfnzcsy = this.selectDictLabel(this.sysYesNoOptions, feature.values_.detail.sfnzcsy); |
|
|
|
|
|
|
|
this.listDialogHidden('detail'); |
|
|
|
this.openResourceDialog(feature.values_.detail); |
|
|
|
} |
|
|
|
@@ -500,9 +544,10 @@ export default { |
|
|
|
}, |
|
|
|
openResourceDialog (data) { |
|
|
|
data.fileList = []; |
|
|
|
console.log(data) |
|
|
|
let parmasData = { |
|
|
|
tableId: data.id, |
|
|
|
tableName: 't_asset_resource', |
|
|
|
tableName: 't_asset_three', |
|
|
|
bizPath: 'asset', |
|
|
|
}; |
|
|
|
attachmentList(parmasData).then((res) => { |
|
|
|
@@ -554,19 +599,25 @@ export default { |
|
|
|
}, |
|
|
|
// 获取资源列表 |
|
|
|
getResourceList (deptId) { |
|
|
|
getResourceListByDeptId(deptId).then(response => { |
|
|
|
if (response.data && response.data.length > 0) { |
|
|
|
this.addResourceLayer(response.data); |
|
|
|
getThreeList({ deptId: deptId }).then(response => { |
|
|
|
if (response.rows && response.rows.length > 0) { |
|
|
|
this.addResourceLayer(response.rows); |
|
|
|
} |
|
|
|
}); |
|
|
|
// getResourceListByDeptId(deptId).then(response => { |
|
|
|
// if (response.data && response.data.length > 0) { |
|
|
|
// this.addResourceLayer(response.data); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
}, |
|
|
|
// 添加资源图层 |
|
|
|
addResourceLayer (resourceList) { |
|
|
|
let features = []; |
|
|
|
resourceList.forEach(item => { |
|
|
|
if (item.theGeom != null && item.theGeom !== '') { |
|
|
|
const { useType } = item |
|
|
|
let color = this.LegendData[useType - 1 + ''] |
|
|
|
const { threeAssetType } = item |
|
|
|
console.log(222, threeAssetType, item); |
|
|
|
let color = this.LegendData[threeAssetType - 1 + ''] |
|
|
|
let fs = gis.getFeature3(item, color.iconStyle.background, color.iconStyle.borderColor) |
|
|
|
features.push(fs); |
|
|
|
} |
|
|
|
@@ -576,13 +627,13 @@ export default { |
|
|
|
}, |
|
|
|
// 获取资产列表 |
|
|
|
getPermanentList (deptId) { |
|
|
|
getPermanentListByDeptId(deptId).then(response => { |
|
|
|
getThreeList({ deptId: deptId }).then(response => { |
|
|
|
if (response.data && response.data.length > 0) { |
|
|
|
this.addPermanentLayer(response.data); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
getAllList () { |
|
|
|
getAllList (deptId) { |
|
|
|
//三务公开 |
|
|
|
// this.getList(null); |
|
|
|
// //零工公开 |
|
|
|
@@ -599,6 +650,16 @@ export default { |
|
|
|
// this.getContractionByPermanentList(); |
|
|
|
// //资金情况 |
|
|
|
// this.getFundAndBankAmountByDeptIdArray(); |
|
|
|
//this.getThreeList(deptId); |
|
|
|
}, |
|
|
|
getThreeList(deptId){ |
|
|
|
|
|
|
|
getThreeList({ deptId: deptId }).then(response => { |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
closePopover(){ |
|
|
|
this.showResourceDetail = false; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |