Commit 0d0825afaf1b27569c8ad2cab6d2b57a40dec7f0

Authored by liufangjia
1 parent 361ff707

feat: 代码提交

src/views/basic/askTestQuestion/components/analysisDialog.vue
@@ -60,7 +60,10 @@ export default { @@ -60,7 +60,10 @@ export default {
60 const body = iframeRef.contentWindow.document.body; 60 const body = iframeRef.contentWindow.document.body;
61 body.style.overflowX = "hidden"; // 不允许出现横向滚动条 61 body.style.overflowX = "hidden"; // 不允许出现横向滚动条
62 const height = body.scrollHeight; // 获取内容的高度 62 const height = body.scrollHeight; // 获取内容的高度
63 - iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度 63 + console.log(height, "height");
  64 + console.log(body, "body");
  65 +
  66 + iframeRef.style.height = `${height}px`; // 设置 iframe 的高度
64 // 获取第一个P标签 67 // 获取第一个P标签
65 const firstP = doc.getElementsByTagName("p")[0]; 68 const firstP = doc.getElementsByTagName("p")[0];
66 // 或者修改第一个 < p > 标签的内容; 69 // 或者修改第一个 < p > 标签的内容;
src/views/basic/askTestQuestion/wrongQuestion.vue
@@ -306,7 +306,7 @@ export default { @@ -306,7 +306,7 @@ export default {
306 formData: { 306 formData: {
307 classId: 1, // 班级选中 307 classId: 1, // 班级选中
308 // type: "onDay", // 时间类型 308 // type: "onDay", // 时间类型
309 - type: "term", // 时间类型 309 + type: "onDay", // 时间类型
310 dateRange: ["2022-03-01", "2023-05-01"], // 开始结束时间 310 dateRange: ["2022-03-01", "2023-05-01"], // 开始结束时间
311 startScoreRate: 0, // 开始区间 311 startScoreRate: 0, // 开始区间
312 endScoreRate: 100, // 结束区间 312 endScoreRate: 100, // 结束区间