Commit 8dafcade authored by zhengke's avatar zhengke

修改

parent 9ed95561
...@@ -216,7 +216,8 @@ ...@@ -216,7 +216,8 @@
BankList: [], BankList: [],
questionTypeList: [], //问题列表 questionTypeList: [], //问题列表
saveLoading: false, saveLoading: false,
QuestionArray: [] QuestionArray: [],
AllquestionTypeList:[]
} }
}, },
created() { created() {
...@@ -248,6 +249,7 @@ ...@@ -248,6 +249,7 @@
queryQuestionTypeList({}).then(res => { queryQuestionTypeList({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.questionTypeList = res.Data; this.questionTypeList = res.Data;
this.AllquestionTypeList = res.Data;
} }
}); });
}, },
...@@ -286,8 +288,13 @@ ...@@ -286,8 +288,13 @@
this.filterChecked(); this.filterChecked();
}, },
//过滤已经选中 //过滤已经选中
filterChecked(){ filterChecked(type){
var NewData = JSON.parse(JSON.stringify(this.questionTypeList)); var NewData = [];
if(type==1){
NewData = JSON.parse(JSON.stringify(this.AllquestionTypeList));
}else{
NewData = JSON.parse(JSON.stringify(this.questionTypeList));
}
let newArray = []; let newArray = [];
if((this.templateMsg.TemplateData&&this.templateMsg.TemplateData.length>0)&&(NewData&&NewData.length>0)){ if((this.templateMsg.TemplateData&&this.templateMsg.TemplateData.length>0)&&(NewData&&NewData.length>0)){
this.templateMsg.TemplateData.forEach(x=>{ this.templateMsg.TemplateData.forEach(x=>{
...@@ -521,6 +528,7 @@ ...@@ -521,6 +528,7 @@
cancel: "取消", cancel: "取消",
}).onOk(() => { }).onOk(() => {
item.splice(index, 1); item.splice(index, 1);
this.filterChecked(1);
}).onCancel(() => {}); }).onCancel(() => {});
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment