Browse Source

编辑区净宽高调整

cldu 1 month ago
parent
commit
234a87f60d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/report/freeReport/freeReportPreview.vue

+ 4 - 4
src/views/report/freeReport/freeReportPreview.vue

@@ -18,8 +18,8 @@ const reportId = ref(route.query.id || '');
 const reportInfo = ref({});
 const pageList = ref([]);
 const bgColor = ref('');
-const scaleStyle = ref({ transform: 'scale(1)', transformOrigin: 'top left', width: '1200px' })
-const contentHeight=ref(1000);
+const scaleStyle = ref({ transform: 'scale(1)', transformOrigin: 'top left', width: '1202px' })
+const contentHeight=ref(5000);
 const showImgPop = ref(false);
 const waterMarkStr = ref('')
 let shareUrls=ref(null);
@@ -64,7 +64,7 @@ async function getReportDetail(){
 };
 async function handleSize(){
     await nextTick();
-    const baseWidth = 1200;
+    const baseWidth = 1202;
     const clientWidth = document.documentElement.clientWidth
     const scale = clientWidth / baseWidth
 
@@ -189,7 +189,7 @@ onUnmounted(() => {
     <div class="free-report-scale-outer" :style="{ height: contentHeight + 'px',fontSize:'14px', }">
         <div class="free-report-detail" ref="scaleContainer" :style="scaleStyle">
             <div id="reportdtl" class="main-box" style="width: 1202px;">
-                <div v-for="(item,index) in pageList" :key="index + 1" class="report-content-box" :style="{backgroundColor:bgColor,height:'1698px'}">
+                <div v-for="(item,index) in pageList" :key="index + 1" class="report-content-box" :style="{backgroundColor:bgColor,height:'1697px'}">
                     <!-- 版头 -->
                     <div class="border-wrap" style="min-height: 30px;max-height: 100px;" v-if="showHeaderWrap(item)">
                         <div class="page-header-wrap" style="min-height: 30px;max-height: 100px;" v-html="pageConfig.pageEditObject.header.html"></div>