From 0d0825afaf1b27569c8ad2cab6d2b57a40dec7f0 Mon Sep 17 00:00:00 2001 From: liufangjia Date: Thu, 28 Nov 2024 11:53:23 +0800 Subject: [PATCH] feat: 代码提交 --- src/views/basic/askTestQuestion/components/analysisDialog.vue | 5 ++++- src/views/basic/askTestQuestion/wrongQuestion.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/basic/askTestQuestion/components/analysisDialog.vue b/src/views/basic/askTestQuestion/components/analysisDialog.vue index 62e13b9..61271a0 100644 --- a/src/views/basic/askTestQuestion/components/analysisDialog.vue +++ b/src/views/basic/askTestQuestion/components/analysisDialog.vue @@ -60,7 +60,10 @@ export default { const body = iframeRef.contentWindow.document.body; body.style.overflowX = "hidden"; // 不允许出现横向滚动条 const height = body.scrollHeight; // 获取内容的高度 - iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度 + console.log(height, "height"); + console.log(body, "body"); + + iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 // 获取第一个P标签 const firstP = doc.getElementsByTagName("p")[0]; // 或者修改第一个 < p > 标签的内容; diff --git a/src/views/basic/askTestQuestion/wrongQuestion.vue b/src/views/basic/askTestQuestion/wrongQuestion.vue index ee8cd87..80060fd 100644 --- a/src/views/basic/askTestQuestion/wrongQuestion.vue +++ b/src/views/basic/askTestQuestion/wrongQuestion.vue @@ -306,7 +306,7 @@ export default { formData: { classId: 1, // 班级选中 // type: "onDay", // 时间类型 - type: "term", // 时间类型 + type: "onDay", // 时间类型 dateRange: ["2022-03-01", "2023-05-01"], // 开始结束时间 startScoreRate: 0, // 开始区间 endScoreRate: 100, // 结束区间 -- libgit2 0.21.4