Commit 891b5a1d013b363c6bae6c80294cf49b113f7a37

Authored by 刘鸿
2 parents 525f4715 0ebd841a

Merge branch 'ezTeach-2.0.0.0.release' of http://120.78.57.84/baoman/Ezquiz_Plat…

…form into ezTeach-2.0.0.0.release
src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
... ... @@ -434,8 +434,6 @@ export default {
434 434 const body = iframeRef.contentWindow.document.body;
435 435 body.style.overflowX = "hidden"; // 不允许出现横向滚动条
436 436 const height = body.offsetHeight; // 获取内容的高度
437   - console.log(height, "height");
438   - console.log(body, "body");
439 437 iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度
440 438 // 获取第一个P标签
441 439 const firstP = doc.getElementsByTagName("p")[0];
... ... @@ -651,7 +649,6 @@ export default {
651 649 // 添加,删除
652 650 // 需要的数据,添加的数据,删除的数据
653 651 testAddDel(arr1, arr2, arr3) {
654   - console.log(arr1, arr3);
655 652 if (arr2 && arr2.length > 0) {
656 653 // 添加数据,如果没有type重新创建一个type
657 654 arr2.forEach((item2) => {
... ... @@ -825,8 +822,6 @@ export default {
825 822 data.forEach((item) => {
826 823 list.push(...item.subQuestionIds);
827 824 });
828   - console.log(list, "list");
829   -
830 825 if (list.length < 1) {
831 826 return true;
832 827 } else {
... ...
src/views/basic/askTestQuestion/wrongQuestion.vue
... ... @@ -421,11 +421,6 @@ export default {
421 421 this.getList();
422 422 },
423 423  
424   - // 全选按钮
425   - handleAll() {
426   - console.log(123123);
427   - },
428   -
429 424 // 班级选中
430 425 handleClass(id) {
431 426 this.formData.classId = id;
... ... @@ -549,7 +544,6 @@ export default {
549 544 removeMatchingValues(arr1, arr2) {
550 545 const arr1Ids = arr1.map((item) => item.id);
551 546 const res = arr2.filter((item) => !arr1Ids.includes(item.id));
552   - console.log(res, "res");
553 547  
554 548 return res;
555 549 },
... ... @@ -632,23 +626,10 @@ export default {
632 626 // 获取ref
633 627 onIFrameLoad(index) {
634 628 const iframeRef = this.$refs["iframe" + index][0]; // 获取对应的 iframe
635   - // const doc = iframeRef.contentDocument || iframeRef.contentWindow.document;
636   - // const body = iframeRef.contentWindow.document.body;
637   - // body.style.overflowX = "hidden"; // 不允许出现横向滚动条
638   - // const height = body.scrollHeight; // 获取内容的高度
639   - // iframeRef.style.height = `${height}px`; // 设置 iframe 的高度
640   - // // 获取第一个P标签
641   - // const firstP = doc.getElementsByTagName("p")[0];
642   - // // 或者修改第一个 < p > 标签的内容;
643   - // if (firstP) {
644   - // let a = this.processString(firstP.innerHTML);
645   - // firstP.innerHTML = a;
646   - // }
647 629 const doc = iframeRef.contentDocument || iframeRef.contentWindow.document;
648 630 const body = iframeRef.contentWindow.document.body;
649 631 body.style.overflowX = "hidden"; // 不允许出现横向滚动条
650 632 const height = body.offsetHeight; // 获取内容的高度
651   - console.log(height, "height");
652 633 // console.log("body.offsetHeight:", body.offsetHeight);
653 634 // console.log("body.clientHeight:", body.clientHeight);
654 635 // console.log("body.scrollHeight:", body.scrollHeight);
... ...