Kaynağa Gözat

ppt表格样式调整

Karsa 1 yıl önce
ebeveyn
işleme
10214cabc1

+ 5 - 2
src/views/ppt_manage/mixins/pptMixins.js

@@ -50,6 +50,7 @@ export default {
       pptCoverDepartName:'',//封面部门名称 ETA1.4.9后不再使用
       pptCoverTextColor:'',//控制上面两个字段展示的颜色 ETA1.4.9后不再使用
       pptCoverContent:'',//自定义封面页的内容
+      pptSheetSize:'',//ppt内嵌表格的字号
 
 
       setEnName:false,
@@ -118,8 +119,8 @@ export default {
     async getpptConfig(){
         const res = await etaBaseConfigInterence.getBaseConfig()
         if(res.Ret!==200) return 
-        const {CnPptCoverImgs,CnPptBackgroundImg,CnPptBottomImg,PptCompanyName,PptTeamName,PptFontColor,
-               EnPptCoverImgs,EnPptBackgroundImg,EnPptBottomImg,PptCompanyNameEn,PptTeamNameEn,PptFontColorEn
+        const {CnPptCoverImgs,CnPptBackgroundImg,CnPptBottomImg,PptCompanyName,PptTeamName,PptFontColor,CnPptSheetSize,
+               EnPptCoverImgs,EnPptBackgroundImg,EnPptBottomImg,PptCompanyNameEn,PptTeamNameEn,PptFontColorEn,EnPptSheetSize
               } = res.Data
         if(this.currentLang==='en'){
             this.pptCoverList = EnPptCoverImgs.split(',')
@@ -128,6 +129,7 @@ export default {
             this.pptCoverCompenyName = PptCompanyNameEn
             this.pptCoverDepartName = PptTeamNameEn
             this.pptCoverTextColor = PptFontColorEn
+            this.pptSheetSize = EnPptSheetSize
         }else{
             this.pptCoverList = CnPptCoverImgs.split(',')
             this.pptBgImage = CnPptBackgroundImg
@@ -135,6 +137,7 @@ export default {
             this.pptCoverCompenyName = PptCompanyName
             this.pptCoverDepartName = PptTeamName
             this.pptCoverTextColor = PptFontColor
+            this.pptSheetSize = CnPptSheetSize
         }
     },
     //获取ppt详情

+ 1 - 1
src/views/ppt_manage/newVersion/components/formatEl/SheetEl.vue

@@ -7,7 +7,7 @@
     style="overflow:hidden"
   >
     <!-- :style="{overflow:$parent.isPreview?'hidden':'auto'}" -->
-    <table :key="tableKey" style="font-size:9px" cellpadding="0" cellspacing="0">
+    <table :key="tableKey" :style="`font-size:${$parent.$parent.pptSheetSize}px`" cellpadding="0" cellspacing="0">
       <tbody>
         <tr v-for="(row,rowIndex) in tableData" :key="rowIndex">
           <td v-for="(col,colIndex) in row" 

+ 8 - 3
src/views/report_manage/mixins/reportMixin.js

@@ -257,13 +257,18 @@ export default {
 
     /* 插入表格 */
     insertSheet(item) {
-      // const LINK_URL = this.$setting.dynamicOutLinks.ChartViewUrl+'/sheetshow';
-      const LINK_URL = 'http://192.168.77.24:3000'+'/sheetshow';
+      const LINK_URL = this.$setting.dynamicOutLinks.ChartViewUrl+'/sheetshow';
+      let sceneMap = {
+        '/addreportNew': 2,
+        '/editreportNew': 2,
+        '/reportEnEditor': 3
+      }
+      let scene = sceneMap[this.$route.path]
       this.$nextTick(() => {
         this.editor.html.insert(
           `<p style='text-align:left; margin-top:10px;'>
             <iframe 
-              src='${LINK_URL}?code=${item.UniqueCode}' 
+              src='${LINK_URL}?code=${item.UniqueCode}&fromScene=${scene}' 
               width='100%' 
               class='iframe${item.UniqueCode}' 
               style='border-width:0px;'

+ 2 - 3
src/views/smartReport/components/ETASheet.vue

@@ -55,13 +55,12 @@ export default {
         },
 
         getCompData(item){
-            // const LINK_URL = this.$setting.dynamicOutLinks.ChartViewUrl+'/sheetshow';
-            const LINK_URL = 'http://192.168.77.24:3000'+'/sheetshow';
+            const LINK_URL = this.$setting.dynamicOutLinks.ChartViewUrl+'/sheetshow';
             // console.log(LINK_URL);
             const obj={
                 compId:4,
                 compType:'sheet',
-                content:`${LINK_URL}?code=${item.UniqueCode}`
+                content:`${LINK_URL}?code=${item.UniqueCode}&fromScene=1`
             }
             return JSON.stringify(obj)
         },