|
@@ -111,6 +111,15 @@
|
|
>
|
|
>
|
|
编辑题卡
|
|
编辑题卡
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="enableCardEdit"
|
|
|
|
+ type="danger"
|
|
|
|
+ plain
|
|
|
|
+ size="small"
|
|
|
|
+ @click="toDeletCard"
|
|
|
|
+ >
|
|
|
|
+ 清除题卡
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<el-button
|
|
<el-button
|
|
@@ -582,6 +591,7 @@ import {
|
|
paperQuestionSaveApi,
|
|
paperQuestionSaveApi,
|
|
paperDetailAddQuestionApi,
|
|
paperDetailAddQuestionApi,
|
|
paperQuestionChangeApi,
|
|
paperQuestionChangeApi,
|
|
|
|
+ paperCardDeleteApi,
|
|
} from "../api";
|
|
} from "../api";
|
|
import { QUESTION_API } from "@/constants/constants";
|
|
import { QUESTION_API } from "@/constants/constants";
|
|
|
|
|
|
@@ -777,6 +787,18 @@ export default {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ async toDeletCard() {
|
|
|
|
+ const confirm = await this.$confirm(
|
|
|
|
+ `确定要清除当前试卷的题卡吗?`,
|
|
|
|
+ "提示",
|
|
|
|
+ {
|
|
|
|
+ type: "warning",
|
|
|
|
+ }
|
|
|
|
+ ).catch(() => {});
|
|
|
|
+ if (confirm !== "confirm") return;
|
|
|
|
+ await paperCardDeleteApi(this.paperId);
|
|
|
|
+ this.$message.success("操作成功!");
|
|
|
|
+ },
|
|
// header-action ----end
|
|
// header-action ----end
|
|
// 考试说明
|
|
// 考试说明
|
|
toEditExamRemark() {
|
|
toEditExamRemark() {
|