ソースを参照

Merge branch 'master' of http://39.106.8.246:3003/web/ibms

chuwu 5 年 前
コミット
bad87059ef

+ 8 - 1
src/components/ledger/handsontables/assets.vue

@@ -400,7 +400,14 @@ export default {
 
     //刷新
     reset() {
-      this.getMain();
+        if(this.mess.deviceId) {
+            this.getMain();
+        } else {
+            this.$message({
+                message: '请选择设备族',
+                type: 'warning'
+            });
+        }      
     },
 
     //添加设备

+ 8 - 1
src/components/ledger/handsontables/system.vue

@@ -256,7 +256,14 @@ export default {
 
     //刷新
     reset() {
-      this.getMain();
+      if(this.mess.deviceId) {
+            this.getMain();
+        } else {
+            this.$message({
+                message: '请选择设备族',
+                type: 'warning'
+            });
+        }   
     },
 
     //添加设备