hbchen 9 сар өмнө
parent
commit
ab8b048f58

+ 7 - 1
src/views/datasheet_manage/components/toolBarSection.vue

@@ -63,7 +63,7 @@ export default {
   },
   watch: {
     cell(nval) {
-      if(nval && nval.length>0) {
+      if(nval) {
         this.cellArray = Array.isArray(nval)?nval:[nval]
         this.option = this.cellArray[0].ShowStyle?{
           ...JSON.parse(this.cellArray[0].ShowStyle)
@@ -71,6 +71,12 @@ export default {
           nt: "",//numberType
           pn: 0,//ponitNum
         }
+      }else{
+        this.cellArray=[]
+        this.option ={
+          nt: "",//numberType
+          pn: 0,//ponitNum
+        }
       }
     }
   },