|
|
@@ -230,6 +230,22 @@ export default { |
|
|
|
computed: { |
|
|
|
...mapGetters(['year', 'deptId']) |
|
|
|
}, |
|
|
|
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, // 立即执行 |
|
|
|
} |
|
|
|
}, |
|
|
|
created () { |
|
|
|
// 获取geoserver的地址 |
|
|
|
this.getGeoServerUrl(); |
|
|
@@ -278,6 +294,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); |
|
|
|
}, |
|
|
|
openImage (url) { |
|
|
|
console.log(url) |
|
|
|
this.dialogImageUrl = url; |
|
|
|