forked from integrated_whb/integrated_whb_vue
试卷管理
parent
ab93425d83
commit
f0c4ec11bb
|
@ -144,7 +144,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="tr">
|
<div class="tr">
|
||||||
<el-button @click="fnAddOrEdit(item, index)">编辑</el-button>
|
<el-button @click="fnAddOrEdit(item, index)">编辑</el-button>
|
||||||
<el-button @click="fnDelete(item, index)"> 删除 </el-button>
|
<el-button @click="fnDelete(item.PAPER_QUESTION_ID, index)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -280,17 +282,17 @@ const fnAddTestQuestionsConfirm = (value) => {
|
||||||
};
|
};
|
||||||
const fnDelete = debounce(
|
const fnDelete = debounce(
|
||||||
1000,
|
1000,
|
||||||
async (row, index) => {
|
async (PAPER_QUESTION_ID, index) => {
|
||||||
await ElMessageBox.confirm("确定要删除吗?", {
|
await ElMessageBox.confirm("确定要删除吗?", {
|
||||||
type: "warning",
|
type: "warning",
|
||||||
});
|
});
|
||||||
if (type === "inherit") {
|
if (type === "inherit") {
|
||||||
list.value.splice(index, 1);
|
list.value.splice(index, 1);
|
||||||
data.form.EXAMSCORE = data.form.EXAMSCORE - row.SCORE;
|
data.form.EXAMSCORE = sumBy(list.value, (item) => +item.SCORE);
|
||||||
ElMessage.success("删除成功");
|
ElMessage.success("删除成功");
|
||||||
} else {
|
} else {
|
||||||
await setExamPaperManagementTestQuestionsDelete({
|
await setExamPaperManagementTestQuestionsDelete({
|
||||||
PAPER_QUESTION_ID: row.PAPER_QUESTION_ID,
|
PAPER_QUESTION_ID,
|
||||||
STAGEEXAMPAPERINPUT_ID,
|
STAGEEXAMPAPERINPUT_ID,
|
||||||
});
|
});
|
||||||
ElMessage.success("删除成功");
|
ElMessage.success("删除成功");
|
||||||
|
|
Loading…
Reference in New Issue