Commit 8dafcade authored by zhengke's avatar zhengke

修改

parent 9ed95561
......@@ -216,7 +216,8 @@
BankList: [],
questionTypeList: [], //问题列表
saveLoading: false,
QuestionArray: []
QuestionArray: [],
AllquestionTypeList:[]
}
},
created() {
......@@ -248,6 +249,7 @@
queryQuestionTypeList({}).then(res => {
if (res.Code == 1) {
this.questionTypeList = res.Data;
this.AllquestionTypeList = res.Data;
}
});
},
......@@ -286,8 +288,13 @@
this.filterChecked();
},
//过滤已经选中
filterChecked(){
var NewData = JSON.parse(JSON.stringify(this.questionTypeList));
filterChecked(type){
var NewData = [];
if(type==1){
NewData = JSON.parse(JSON.stringify(this.AllquestionTypeList));
}else{
NewData = JSON.parse(JSON.stringify(this.questionTypeList));
}
let newArray = [];
if((this.templateMsg.TemplateData&&this.templateMsg.TemplateData.length>0)&&(NewData&&NewData.length>0)){
this.templateMsg.TemplateData.forEach(x=>{
......@@ -521,6 +528,7 @@
cancel: "取消",
}).onOk(() => {
item.splice(index, 1);
this.filterChecked(1);
}).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