소스 검색

智能研报样式调整

yujinwen 2 달 전
부모
커밋
01e5349429
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      src/views/report/Detail.vue

+ 12 - 0
src/views/report/Detail.vue

@@ -103,6 +103,15 @@ async function getReportInfo() {
 
     reportContent.value = formatIframeData(reportInfo.value.content)
     splitReportContent(reportContent.value)
+
+    // 智能研报将富文本盒子高度设置为自动
+    if(reportInfo.value.reportLayout===2){
+      nextTick(()=>{
+        document.querySelectorAll('div[comp-type="text"]').forEach(function(div) {
+          div.style.height = 'auto';
+        });
+      })
+    }
   }
 }
 getReportInfo()
@@ -665,6 +674,9 @@ function goDetails(item){
     }
     :deep(.report-drag-item-wrap_child-wrap) {
       display: block !important;
+      .report-drag-item-wrap_child_content{
+        width: 100% !important;
+      }
     }
   }
   .right-fix-box {