Forráskód Böngészése

智能研报样式调整

yujinwen 2 hónapja
szülő
commit
01e5349429
1 módosított fájl, 12 hozzáadás és 0 törlés
  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 {