diff --git a/src/views/basic/askTestQuestion/components/analysisDialog.vue b/src/views/basic/askTestQuestion/components/analysisDialog.vue
index 61271a0..99b14e8 100644
--- a/src/views/basic/askTestQuestion/components/analysisDialog.vue
+++ b/src/views/basic/askTestQuestion/components/analysisDialog.vue
@@ -17,7 +17,7 @@
题目解析
-
-
\ No newline at end of file
+
diff --git a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
index 22f77ba..86ffa3a 100644
--- a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
+++ b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
@@ -436,7 +436,7 @@ export default {
const body = iframeRef.contentWindow.document.body;
body.style.overflowX = "hidden"; // 不允许出现横向滚动条
const height = body.offsetHeight; // 获取内容的高度
- iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度
+ iframeRef.style.height = `${height + 40}px`; // 设置 iframe 的高度
// 获取第一个P标签
const firstP = doc.getElementsByTagName("p")[0];
// 或者修改第一个 < p > 标签的内容;
@@ -755,14 +755,11 @@ export default {
// 清空
handleClear() {
- this.$confirm("确定要清空试题篮内的全部题目吗?", "提示", {
- confirmButtonText: "清空",
+ this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
+ confirmButtonText: "确定",
cancelButtonText: "取消",
confirmButtonClass: "el-button--danger1",
cancelButtonClass: "el-button--primary",
- showClose: false,
- roundButton: true,
- center: false,
type: "warning",
})
.then(() => {
@@ -776,12 +773,46 @@ export default {
this.userId + "testlist",
JSON.stringify(this.testData)
);
-
this.$emit("setQuestions");
+ this.$message({
+ type: "success",
+ message: "清空成功!",
+ });
})
.catch(() => {
- console.log("取消");
+ this.$message({
+ type: "info",
+ message: "已取消",
+ });
});
+
+ // this.$confirm("确定要清空试题篮内的全部题目吗?", "提示", {
+ // confirmButtonText: "清空",
+ // cancelButtonText: "取消",
+ // confirmButtonClass: "el-button--danger1",
+ // cancelButtonClass: "el-button--primary",
+ // showClose: false,
+ // roundButton: true,
+ // center: false,
+ // type: "warning",
+ // })
+ // .then(() => {
+ // this.groups = [];
+ // this.testDataFun();
+ // localStorage.setItem(
+ // this.userId + "question",
+ // JSON.stringify(this.groups)
+ // );
+ // localStorage.setItem(
+ // this.userId + "testlist",
+ // JSON.stringify(this.testData)
+ // );
+
+ // this.$emit("setQuestions");
+ // })
+ // .catch(() => {
+ // console.log("取消");
+ // });
},
// 继续选题
handleSelect() {
diff --git a/src/views/basic/askTestQuestion/wrongQuestion.vue b/src/views/basic/askTestQuestion/wrongQuestion.vue
index fcd9b1b..68622a2 100644
--- a/src/views/basic/askTestQuestion/wrongQuestion.vue
+++ b/src/views/basic/askTestQuestion/wrongQuestion.vue
@@ -633,7 +633,7 @@ export default {
// console.log("body.offsetHeight:", body.offsetHeight);
// console.log("body.clientHeight:", body.clientHeight);
// console.log("body.scrollHeight:", body.scrollHeight);
- iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度
+ iframeRef.style.height = `${height + 40}px`; // 设置 iframe 的高度
// 获取第一个P标签
const firstP = doc.getElementsByTagName("p")[0];
// 或者修改第一个 < p > 标签的内容;