瀏覽代碼

修改填写单类型,初始化非公用数据

zhangxc 6 年之前
父節點
當前提交
5f05a0901e

+ 0 - 1
src/components/icss/NoiseTemplate.vue

@@ -160,7 +160,6 @@ export default {
       // console.log(type)
     },
     changeActionData(arr) {          //标签明细右侧数据id
-    console.log(44254165456)
       this.sendIds = arr
     },
     submitForm() {       // 调用子组件的方法验证公用部分

+ 6 - 0
src/components/icss/PubIndeptTag.vue

@@ -387,6 +387,12 @@
           type: type || 'warning'
         })
       },
+      initForm() {
+        this.form.prefix = ''
+        this.form.suffix = ''
+        this.form.minNormalVal = ''
+        this.form.maxNormalVal = ''
+      },
     }
   }
 </script>

+ 7 - 1
src/components/icss/PubTagGroup.vue

@@ -395,7 +395,7 @@ export default {
         this.labelTypes = this.labelTypesList.filter(item => this.labelTypesMaps[tmpData].indexOf(item.val) > -1)
       }
       if(type === 2) {
-        this.form.region12 = '0';
+        this.initForm()
       }
       this.changeSex(tmpData);
       // if(type == 3){
@@ -453,6 +453,12 @@ export default {
         type: type || 'warning'
       })
     },
+    initForm() {
+      this.form.region12 = '0'
+      this.form.region10 = '0'
+      this.form.region11 = '0'
+
+    }
   }
 }
 </script>

+ 6 - 3
src/components/icss/SingleSelect.vue

@@ -179,7 +179,8 @@
           if(typeof i =='number'&&this.focusOn == -1){
             this.$message({
               message: '请先选择要操作的行',
-              type: 'warning'
+              type: 'warning',
+              showClose: true,
             });
             return;
           }
@@ -192,7 +193,8 @@
             this.$refs.inputName[i].currentValue = this.rows[i].namebvcx
             this.$message({
               message: '最多输入30个字',
-              type: 'warning'
+              type: 'warning',
+              showClose: true,
             });
             return
           }
@@ -202,7 +204,8 @@
           if(this.focusOn==-1){
             this.$message({
               message: '请先选择要删除的行',
-              type: 'warning'
+              type: 'warning',
+              showClose: true,
             });
             return;
           }