|
@@ -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)){
|
|
}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){
|
|
if(this.activePart != -1){
|
|
let tmparr = this.poolDetailList;
|
|
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.poolDetailList = tmparr;
|
|
this.poolDetailListAll = Array.prototype.concat.apply([],this.poolDetailList); //二维转一维
|
|
this.poolDetailListAll = Array.prototype.concat.apply([],this.poolDetailList); //二维转一维
|
|
this.searchTagList();
|
|
this.searchTagList();
|
|
@@ -520,7 +524,7 @@ export default {
|
|
this.currentLis.map((id)=>{
|
|
this.currentLis.map((id)=>{
|
|
tmpArr.push(res.data.data[id]);
|
|
tmpArr.push(res.data.data[id]);
|
|
})
|
|
})
|
|
- console.log(tmpArr,'多选既往史')
|
|
|
|
|
|
+ // console.log(tmpArr,'多选既往史')
|
|
this.selectArr.map((flg,idx)=>{ //判断右侧有没有选中
|
|
this.selectArr.map((flg,idx)=>{ //判断右侧有没有选中
|
|
if(flg){ //有选中
|
|
if(flg){ //有选中
|
|
if(idx == 0 || idx == 1){
|
|
if(idx == 0 || idx == 1){
|