Luolei 6 tahun lalu
induk
melakukan
178397b15b

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

@@ -164,8 +164,8 @@ export default {
     };
     return {
       form: {
-        region1: '4',    //归属
-        region2: '2',     //填写单类型
+        region1: '',    //归属
+        region2: '',     //填写单类型
         region3: '',      //系统名称
         region4: '',      //界面名称
         region5: '',      //选项之间的链接

+ 19 - 11
src/components/icss/PubTagPartDetail.vue

@@ -79,17 +79,9 @@
         <ul>
           <li v-for="i in 5" :key="i">
             <p v-for="item in poolDetailListTips[i]" class="partDetail tipsWrap" v-show="poolDetailListTips[i].length > 0" :key="item">
-              <span class="tips" v-if="item == 0">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 1">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 2">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 3">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 4">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 5">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 6">{{currentTipLis[item].name}}</span>
-              <!-- <span class="tips" v-if="item == 7">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 8">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 9">{{currentTipLis[item].name}}</span>
-              <span class="tips" v-if="item == 10">{{currentTipLis[item].name}}</span> -->
+              <template v-for="section in currentTipLis">
+                <span class="tips" v-if="item == section.val">{{section.name}}</span>         
+              </template>
             </p>
           </li>
         </ul>
@@ -172,6 +164,22 @@ export default {
         this.multipleItem=[]
       }
     },
+    type(newVal, preVal) {
+      if (JSON.stringify(newVal) != JSON.stringify(preVal)) {
+        this.poolDetailList = [[],[],[],[],[],[]]
+        this.poolDetailListTips = [[],[],[],[],[],[]]
+        this.poolDetailListIds = [[],[],[],[],[],[]]
+        this.poolDetailListAll=[]
+        this.activePart='-1'
+        this.activePartSon='-1'
+        this.selectArr = [false, false, false, false, false, false]
+        this.searchVal= ''
+        this.currentPool= []        
+        this.currentLis=[]           
+        this.notIds=[]               
+        this.multipleItem=[]
+      }
+    },
     searchVal(newVal, preVal){
       if(newVal.trim() == ''){
         this.searchTagList();