瀏覽代碼

独立标签标签系统名称查询搜索

zhangxc 6 年之前
父節點
當前提交
214f7a6a26
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/components/icss/PubIndeptTag.vue

+ 7 - 2
src/components/icss/PubIndeptTag.vue

@@ -1,5 +1,7 @@
 <template>
-    <div class="PubTagGroupWrapper">
+    <div class="PubTagGroupWrapper"
+         @click="closeNameLis(1)"
+    >
         <el-form
                 class="groups"
                 :rules="rules"
@@ -324,6 +326,7 @@
           prefix:'',            //前缀
           suffix:'',            //后缀
           tipLis:[],           //提示列表
+          isNeedSearch: false, //是否需要查询(系统名称)
         },
         labelTypesMaps: {       //// 归属和填写单类型限制
           '1':['1','2','5','6','7','11'], //联合推送暂时不用
@@ -415,7 +418,7 @@
         this.tmpSex = prevVal;
       },
       newName(nextVal, prevVal) {
-        if (nextVal != prevVal && (this.form.region12 == 0)) {
+        if (this.isNeedSearch && nextVal != prevVal && (this.form.region12 == 0)) {
           this.focusSystemName()
         }
       },
@@ -486,6 +489,7 @@
         });
       },
       focusSystemName() {
+        this.isNeedSearch = true
         if (this.form.region3.trim() == '') {
           this.systemNameShow = false
           this.systemNameLis = []
@@ -519,6 +523,7 @@
       pushSystemName(val) {
         this.form.region3 = val
         this.systemNameShow = false
+        this.isNeedSearch = false
       },
       closeNameLis(flg) {
         if (flg == 1) {