From f0c4ec11bbf9e9783062e611952947d0b565ed4d Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 15 Mar 2024 17:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exam_paper_management/add.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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("删除成功");