Commit 0d0825afaf1b27569c8ad2cab6d2b57a40dec7f0
1 parent
361ff707
feat: 代码提交
Showing
2 changed files
with
5 additions
and
2 deletions
src/views/basic/askTestQuestion/components/analysisDialog.vue
... | ... | @@ -60,7 +60,10 @@ export default { |
60 | 60 | const body = iframeRef.contentWindow.document.body; |
61 | 61 | body.style.overflowX = "hidden"; // 不允许出现横向滚动条 |
62 | 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 | 67 | // 获取第一个P标签 |
65 | 68 | const firstP = doc.getElementsByTagName("p")[0]; |
66 | 69 | // 或者修改第一个 < p > 标签的内容; | ... | ... |
src/views/basic/askTestQuestion/wrongQuestion.vue
... | ... | @@ -306,7 +306,7 @@ export default { |
306 | 306 | formData: { |
307 | 307 | classId: 1, // 班级选中 |
308 | 308 | // type: "onDay", // 时间类型 |
309 | - type: "term", // 时间类型 | |
309 | + type: "onDay", // 时间类型 | |
310 | 310 | dateRange: ["2022-03-01", "2023-05-01"], // 开始结束时间 |
311 | 311 | startScoreRate: 0, // 开始区间 |
312 | 312 | endScoreRate: 100, // 结束区间 | ... | ... |