Răsfoiți Sursa

大屏 界面修改

zhanghao 4 săptămâni în urmă
părinte
comite
e049893f05
1 a modificat fișierele cu 9 adăugiri și 2 ștergeri
  1. 9 2
      src/views/screen/map/map.vue

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

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