Prechádzať zdrojové kódy

报警规则界面调整

wubiyu 1 rok pred
rodič
commit
02cf5837a6
1 zmenil súbory, kde vykonal 1 pridanie a 4 odobranie
  1. 1 4
      src/views/warnRule/dialog.vue

+ 1 - 4
src/views/warnRule/dialog.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="edu-training-edit">
-    <DialogCom :title="title" :visible.sync="isShow" width="67%" @close="onWindowClose">
+    <DialogCom :title="title" :visible.sync="isShow" width="63.5%" @close="onWindowClose">
       <el-form :model="formData" size="small" ref="form" :inline="true" label-position="right" label-width="160px"
         label-suffix=":" :rules="rules">
         <el-form-item label="规则名称" prop="ruleName">
@@ -214,7 +214,6 @@ export default {
       this.$refs["form"].clearValidate();
     },
     onOk() {
-     
       this.$refs["form"].validate((valid) => {
         if (valid) {
           let submit = async () => {
@@ -239,7 +238,6 @@ export default {
                 })
               }
             }
-         
             let rh = await iotApi.saveAlarmRule(submitData);
             if (rh.code != 200) {
               this.$message("添加失败");
@@ -248,7 +246,6 @@ export default {
             this.isShow = false;
             this.$emit("success");
           }
-          
           submit();
         }
         else {