|
@@ -300,6 +300,16 @@ export default {
|
|
this.openClassMark = res.classMark;
|
|
this.openClassMark = res.classMark;
|
|
},
|
|
},
|
|
async handleAiStatusUpdate(row) {
|
|
async handleAiStatusUpdate(row) {
|
|
|
|
+ const actionName = row.aiStatus === "ENABLE" ? "终止" : "开启";
|
|
|
|
+ const confirm = await this.$confirm(
|
|
|
|
+ `确定要${actionName}AI智能评卷任务?`,
|
|
|
|
+ "提示",
|
|
|
|
+ {
|
|
|
|
+ type: "warning",
|
|
|
|
+ }
|
|
|
|
+ ).catch(() => {});
|
|
|
|
+ if (confirm !== "confirm") return;
|
|
|
|
+
|
|
try {
|
|
try {
|
|
await markProgressQuestionAiStatusUpdate({
|
|
await markProgressQuestionAiStatusUpdate({
|
|
examId: this.baseInfo.examId,
|
|
examId: this.baseInfo.examId,
|
|
@@ -314,6 +324,15 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async handleAiReset(row) {
|
|
async handleAiReset(row) {
|
|
|
|
+ const confirm = await this.$confirm(
|
|
|
|
+ "确定要重置AI智能评卷任务?",
|
|
|
|
+ "提示",
|
|
|
|
+ {
|
|
|
|
+ type: "warning",
|
|
|
|
+ }
|
|
|
|
+ ).catch(() => {});
|
|
|
|
+ if (confirm !== "confirm") return;
|
|
|
|
+
|
|
try {
|
|
try {
|
|
await markProgressQuestionAiReset({
|
|
await markProgressQuestionAiReset({
|
|
examId: this.baseInfo.examId,
|
|
examId: this.baseInfo.examId,
|