Browse Source

业务空间台账-其他分区,未创建子分区时,不应有值

shaun-sheep 5 years ago
parent
commit
b49b3511c9

+ 9 - 8
src/components/business_space/business/handsontable.vue

@@ -195,9 +195,10 @@ export default {
         this.getZoneMessage(this.zoneParam)
       } else {
         // 其他分区类型查询表数据接口
-        if (localStorage.getItem('otherZone')) {
-          this.OtherValue = (localStorage.getItem('otherZone'))
-        }
+        // if (localStorage.getItem('otherZone')) {
+        //   // this.OtherValue = (localStorage.getItem('otherZone'))
+        //   localStorage.removeItem('otherZone')
+        // }
         if (this.OtherValue) {
           this.zoneParam.ZoneType = this.OtherValue;
           this.getZoneMessage(this.zoneParam)
@@ -827,11 +828,11 @@ export default {
     changeOtherZone(val) {
       this.zoneParam.ZoneType = val;
       this.getZoneMessage(this.zoneParam);
-      if (localStorage.getItem('otherZone')) {
-        localStorage.setItem('otherZone', val)
-      } else {
-        localStorage.setItem('otherZone', val)
-      }
+      // if (localStorage.getItem('otherZone')) {
+      //   localStorage.setItem('otherZone', val)
+      // } else {
+      //   localStorage.setItem('otherZone', val)
+      // }
       console.log(val)
     },
   },

+ 2 - 2
src/components/business_space/newGraphy/graphy.vue

@@ -295,7 +295,7 @@ export default {
         // 其他分区
         this.showOtherFlag = true
         this.getOtherType();
-        this.OtherValue = (localStorage.getItem('otherZone')) || ''
+        // this.OtherValue = (localStorage.getItem('otherZone')) || ''
       } else {
         this.showOtherFlag = false;
       }
@@ -322,7 +322,7 @@ export default {
     // 其他类型下拉change
     changeOtherZone(val) {
       this.init(2);
-      localStorage.setItem('otherZone', val)
+      // localStorage.setItem('otherZone', val)
     },
     // 获取未绑定业务空间的元空间
     getISPSPUnrelaBSP() {