diff --git a/src/views/projectFront/examSystem2/examManagement/examManagement.vue b/src/views/projectFront/examSystem2/examManagement/examManagement.vue index dd51a7f6..b62d1510 100644 --- a/src/views/projectFront/examSystem2/examManagement/examManagement.vue +++ b/src/views/projectFront/examSystem2/examManagement/examManagement.vue @@ -859,15 +859,15 @@ export default { }) } else { // this.examForm.questions = this.$refs.questionListTable.selection; - console.log(this.examForm.questions,886633) if(this.$refs.questionListTable){ this.examForm.questions = this.$refs.questionListTable.selection; } else { let arr = []; this.questionList.map(item => { this.examForm.questions.split(',').map(item2 => { - if(item.id === item){ - arr.push({id: item,type: item2.type}) + if(item.id === item2){ + // arr.push({id: item.id,type: item.type}) + arr.push(item) } }) }) diff --git a/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue b/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue index 94020052..40733994 100644 --- a/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue +++ b/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue @@ -387,6 +387,7 @@ export default { this.$refs.examForm.resetFields() } this.selectWorkerList = [] + this.selectedWorkerList = [] } }, // subjectId(newV,oldV){ @@ -443,42 +444,24 @@ export default { this.$message.success('删除成功!'); } }, - addlocal(){ - this.getWorkerInfoList(); + async addlocal(){ + await this.getWorkerInfoList(); setTimeout(() => { this.$nextTick(() => { - - // for(let i=0;i { - // this.selectedWorkerList.map((item2,index2) => { - // if(item.id === item2.id){ - // this.$refs.multipleTable.toggleRowSelection(this.workerList[index],true) - // } - // }) - // }) + for(let i=0;i { - // for(let i=0;i {