staging #34
|
|
@ -117,7 +117,7 @@ const tableData: TableConfig = intTableData({
|
||||||
selectRows: [],
|
selectRows: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
async function deleteInfo(o, row, c) {
|
async function deleteInfo(o, row, baseRefresh) {
|
||||||
try {
|
try {
|
||||||
await ElMessageBox.confirm("是否删除考试信息?", "提示", {
|
await ElMessageBox.confirm("是否删除考试信息?", "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
|
|
@ -125,11 +125,12 @@ async function deleteInfo(o, row, c) {
|
||||||
type: "warning",
|
type: "warning",
|
||||||
});
|
});
|
||||||
await DeleteExamInfo({ examId: row[0].examId, classId: row[0].classId });
|
await DeleteExamInfo({ examId: row[0].examId, classId: row[0].classId });
|
||||||
|
baseRefresh();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
ElMessage.info("取消删除");
|
ElMessage.info("取消删除");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function reloadImportInfo(o, row, c) {
|
async function reloadImportInfo(o, row, baseRefresh) {
|
||||||
try {
|
try {
|
||||||
await ElMessageBox.confirm("是否重新录入考试信息?", "提示", {
|
await ElMessageBox.confirm("是否重新录入考试信息?", "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
|
|
@ -138,6 +139,7 @@ async function reloadImportInfo(o, row, c) {
|
||||||
});
|
});
|
||||||
await DeleteExamInfo({ examId: row[0].examId, classId: row[0].classId });
|
await DeleteExamInfo({ examId: row[0].examId, classId: row[0].classId });
|
||||||
entryExamInfo(row[0].examId);
|
entryExamInfo(row[0].examId);
|
||||||
|
baseRefresh();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
ElMessage.info("取消重新录入");
|
ElMessage.info("取消重新录入");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue