Browse Source

标签系统名称重复判断

Luolei 6 years ago
parent
commit
7670280d3a
2 changed files with 4 additions and 3 deletions
  1. 2 1
      src/components/icss/PubIndeptTag.vue
  2. 2 2
      src/components/icss/PubTagGroup.vue

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

@@ -338,7 +338,8 @@
         if(this.form.region3.trim() == ''){ return }
         let param = {
           "existName": this.form.region3,
-          // "type": this.form.region1,
+          "type": this.form.region1,
+          "notTagType":[8,10],        //去掉文字标签查重
           "notIds":[this.$props.editData.id]
         };
         api.validateSystomName(param).then((res) => {

+ 2 - 2
src/components/icss/PubTagGroup.vue

@@ -367,8 +367,8 @@ export default {
       if(this.form.region3.trim() == ''){ return }
       let param = {
         "existName": this.form.region3,     
-        // "type": this.form.region1,
-        "notTagType":[8],        //去掉文字标签查重
+        "type": this.form.region1,
+        "notTagType":[8,10],        //去掉文字标签查重
       }
       api.validateSystomName(param).then((res) => {
         if (res.data.code === '0') {