diff --git a/src/views/training_process_management/exam_paper_management/add.vue b/src/views/training_process_management/exam_paper_management/add.vue index 9257298..4c34b34 100644 --- a/src/views/training_process_management/exam_paper_management/add.vue +++ b/src/views/training_process_management/exam_paper_management/add.vue @@ -144,7 +144,9 @@
编辑 - 删除 + + 删除 +
@@ -280,17 +282,17 @@ const fnAddTestQuestionsConfirm = (value) => { }; const fnDelete = debounce( 1000, - async (row, index) => { + async (PAPER_QUESTION_ID, index) => { await ElMessageBox.confirm("确定要删除吗?", { type: "warning", }); if (type === "inherit") { list.value.splice(index, 1); - data.form.EXAMSCORE = data.form.EXAMSCORE - row.SCORE; + data.form.EXAMSCORE = sumBy(list.value, (item) => +item.SCORE); ElMessage.success("删除成功"); } else { await setExamPaperManagementTestQuestionsDelete({ - PAPER_QUESTION_ID: row.PAPER_QUESTION_ID, + PAPER_QUESTION_ID, STAGEEXAMPAPERINPUT_ID, }); ElMessage.success("删除成功");