Ver Fonte

大屏 界面修改

zhanghao há 3 semanas atrás
pai
commit
e049893f05
1 ficheiros alterados com 9 adições e 2 exclusões
  1. 9 2
      src/views/screen/map/map.vue

+ 9 - 2
src/views/screen/map/map.vue

@@ -368,6 +368,8 @@ export default {
       }
       else {
         this.showSign = false
+        this.showBack = true
+        this.sign = 1
         getProjectByAppOrg(appOrg).then((res) => {
           if (Number(res.code) === 200) {
             for (let it of res.data){
@@ -593,6 +595,8 @@ export default {
         else if(params.componentIndex === 3){
           this.getProject('10001')
           this.$emit('changeCurCompany')
+          this.showBack = true
+          this.sign = 1
         }
       });
     },
@@ -813,11 +817,14 @@ export default {
       if (sign === 1){
         this.sign = 0
         this.projectList = []
-        this.childCharts.dispose();
-        this.initCharts()
+        if (this.childCharts){
+          this.childCharts.dispose();
+          this.initCharts()
+        }
         this.showBack = false
         this.appOrg = "0000"
         this.$emit('transmit', this.appOrg)
+        this.getProject(null)
       }
       else {
         this.projectList = []