Parcourir la source

既往史toleft加判断

Luolei il y a 6 ans
Parent
commit
8c21876bee
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      src/components/icss/PubTagPartDetail.vue

+ 6 - 2
src/components/icss/PubTagPartDetail.vue

@@ -327,7 +327,11 @@ export default {
       }else if((this.choose == 'multiple') && (utils.filterArr(this.selectArr,true,2) && this.poolDetailList[this.activePart].length > 0) || (this.multipleItem.length > 0)){
         if(this.activePart != -1){
           let tmparr = this.poolDetailList;
-          tmparr[this.activePart] = []
+          if(this.activePart == 0 || this.activePart == 1){
+            tmparr[this.activePart] = [{questionDetailList:[]}]
+          }else{
+            tmparr[this.activePart] = []
+          }
           this.poolDetailList = tmparr;
           this.poolDetailListAll = Array.prototype.concat.apply([],this.poolDetailList);     //二维转一维
           this.searchTagList();
@@ -520,7 +524,7 @@ export default {
             this.currentLis.map((id)=>{
               tmpArr.push(res.data.data[id]);
             })
-            console.log(tmpArr,'多选既往史')
+            // console.log(tmpArr,'多选既往史')
             this.selectArr.map((flg,idx)=>{         //判断右侧有没有选中
               if(flg){    //有选中
                 if(idx == 0 || idx == 1){