diff --git a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue index 04914e3..f934686 100644 --- a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue +++ b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue @@ -434,8 +434,6 @@ export default { const body = iframeRef.contentWindow.document.body; body.style.overflowX = "hidden"; // 不允许出现横向滚动条 const height = body.offsetHeight; // 获取内容的高度 - console.log(height, "height"); - console.log(body, "body"); iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度 // 获取第一个P标签 const firstP = doc.getElementsByTagName("p")[0]; @@ -651,7 +649,6 @@ export default { // 添加,删除 // 需要的数据,添加的数据,删除的数据 testAddDel(arr1, arr2, arr3) { - console.log(arr1, arr3); if (arr2 && arr2.length > 0) { // 添加数据,如果没有type重新创建一个type arr2.forEach((item2) => { @@ -825,8 +822,6 @@ export default { data.forEach((item) => { list.push(...item.subQuestionIds); }); - console.log(list, "list"); - if (list.length < 1) { return true; } else { diff --git a/src/views/basic/askTestQuestion/wrongQuestion.vue b/src/views/basic/askTestQuestion/wrongQuestion.vue index ca98339..6cbd5ae 100644 --- a/src/views/basic/askTestQuestion/wrongQuestion.vue +++ b/src/views/basic/askTestQuestion/wrongQuestion.vue @@ -421,11 +421,6 @@ export default { this.getList(); }, - // 全选按钮 - handleAll() { - console.log(123123); - }, - // 班级选中 handleClass(id) { this.formData.classId = id; @@ -549,7 +544,6 @@ export default { removeMatchingValues(arr1, arr2) { const arr1Ids = arr1.map((item) => item.id); const res = arr2.filter((item) => !arr1Ids.includes(item.id)); - console.log(res, "res"); return res; }, @@ -632,23 +626,10 @@ export default { // 获取ref onIFrameLoad(index) { const iframeRef = this.$refs["iframe" + index][0]; // 获取对应的 iframe - // const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; - // const body = iframeRef.contentWindow.document.body; - // body.style.overflowX = "hidden"; // 不允许出现横向滚动条 - // const height = body.scrollHeight; // 获取内容的高度 - // iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 - // // 获取第一个P标签 - // const firstP = doc.getElementsByTagName("p")[0]; - // // 或者修改第一个 < p > 标签的内容; - // if (firstP) { - // let a = this.processString(firstP.innerHTML); - // firstP.innerHTML = a; - // } const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; const body = iframeRef.contentWindow.document.body; body.style.overflowX = "hidden"; // 不允许出现横向滚动条 const height = body.offsetHeight; // 获取内容的高度 - console.log(height, "height"); // console.log("body.offsetHeight:", body.offsetHeight); // console.log("body.clientHeight:", body.clientHeight); // console.log("body.scrollHeight:", body.scrollHeight);