庞东旭 3 дней назад
Родитель
Сommit
d53aa154bf
1 измененных файлов: 25 добавлений и 0 удалений
  1. +25
    -0
      src/views/property/main-gis/index.js

+ 25
- 0
src/views/property/main-gis/index.js Просмотреть файл

@@ -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;


Загрузка…
Отмена
Сохранить