|
|
@@ -5,7 +5,7 @@ import { |
|
|
|
} from 'ol/proj' |
|
|
|
import { getPermanentListByDeptId, listPermanent } from "@/api/asset/permanent.js"; |
|
|
|
import { getInfo } from "@/api/login"; |
|
|
|
import { getResourceListByDeptId, listResource } from "@/api/asset/resource.js"; |
|
|
|
import { getResourceListByDeptId, listResource, attachmentQuery } from "@/api/asset/resource.js"; |
|
|
|
import Legend from '@/components/legend/index.vue'; |
|
|
|
import { attachmentList } from "@/api/common/uploadAttachment.js"; |
|
|
|
import { treeselect, getDept, listDeptExcludeChild } from "@/api/system/dept"; |
|
|
@@ -98,6 +98,22 @@ export default { |
|
|
|
showImg:false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
'queryParams.deptId': { |
|
|
|
handler: function () { |
|
|
|
this.commitDept(this.queryParams.deptId); |
|
|
|
}, |
|
|
|
immediate: true, // 立即执行 |
|
|
|
|
|
|
|
}, |
|
|
|
deptLength: { |
|
|
|
handler: function () { |
|
|
|
//console.log(this.deptLength); |
|
|
|
this.commitDeptLength(this.deptLength); |
|
|
|
}, |
|
|
|
immediate: true, // 立即执行 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
}, |
|
|
|
created () { |
|
|
@@ -159,6 +175,15 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
commitDept (deptId) { |
|
|
|
this.$store.commit('SET_DEPTID', deptId); |
|
|
|
}, |
|
|
|
commitDeptLength (length) { |
|
|
|
this.$store.commit('SET_DEPTIDLENGTH', length); |
|
|
|
}, |
|
|
|
commitYear (year) { |
|
|
|
this.$store.commit('SET_YEAR', year); |
|
|
|
}, |
|
|
|
// 获取村边界的图层名称 |
|
|
|
getVillageBorderLayerName () { |
|
|
|
getConfigKey("geoserver.layer.villageBorder").then(response => { |
|
|
@@ -394,7 +419,7 @@ export default { |
|
|
|
tableName: 't_asset_three', |
|
|
|
bizPath: 'asset', |
|
|
|
}; |
|
|
|
attachmentList(parmasData).then((res) => { |
|
|
|
attachmentQuery(parmasData).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
let UattachmentList = res.rows; |
|
|
|
for (let i = 0; i < UattachmentList.length; i++) { |
|
|
|