瀏覽代碼

Merge branch 'dev2/luolei' into test

Luolei 6 年之前
父節點
當前提交
3e9010f66d
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/components/icss/PubTagPartDetail.vue

+ 9 - 1
src/components/icss/PubTagPartDetail.vue

@@ -401,6 +401,14 @@ export default {
             tmpArr.push(res.data.data[idStr]);
             this.selectArr.map((flg,idx)=>{         //判断右侧有没有选中
               if(flg){    //有选中
+                if(idx == 0 && res.data.data[idStr].questionDetailList && res.data.data[idStr].questionDetailList.length > 1){
+                  this.$message({
+                    showClose: true,
+                    message: '添加的数据有误',
+                    type: 'error'
+                  });
+                  return;
+                }
                 let ids = [];
                 this.poolDetailList[idx] = tmpArr;
                 this.poolDetailListAll = Array.prototype.concat.apply([],this.poolDetailList);     //二维转一维
@@ -416,7 +424,7 @@ export default {
                       this.poolDetailListAll = Array.prototype.concat.apply([],this.poolDetailList);
                       this.searchTagList();
                       this.getPoolDetailListTips();
-                      return
+                      return;
                     }
                   }
                 }