Browse Source

解析失败添加提示语(2910)

zhangxc 5 years ago
parent
commit
8c0be6c725
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/safeControl/AddToken.vue

+ 4 - 1
src/components/safeControl/AddToken.vue

@@ -146,7 +146,11 @@
                     this.mainboard = data['server.mainboard']
                     this.mainboard = data['server.mainboard']
                     this.cpu = data['server.cpu']
                     this.cpu = data['server.cpu']
                     this.disk = data['server.disk']
                     this.disk = data['server.disk']
+                } else {
+                    this.warning(res.data.msg)
                 }
                 }
+            }).catch((err) => {
+                this.warning(err);
             })
             })
         },
         },
         showDelDialog() {
         showDelDialog() {
@@ -208,7 +212,6 @@
         handleInp(e){ //分组不能输入负数
         handleInp(e){ //分组不能输入负数
             const value =  e;
             const value =  e;
             this.remainDay = value.replace(/\./g,'');
             this.remainDay = value.replace(/\./g,'');
-            console.log(this.remainDay)
             // e = value.replace(/[^\d]/g,'');
             // e = value.replace(/[^\d]/g,'');
             // this.remainDay = value.replace(/[^\d]/g,'');
             // this.remainDay = value.replace(/[^\d]/g,'');
         }
         }