Browse Source

fix:myeta批量导入时没有拼接lang

Karsa 9 months ago
parent
commit
23c44b83fb

+ 1 - 1
src/views/report_manage/addreportNew.vue

@@ -825,7 +825,7 @@ export default {
 				const t=new Date().getTime()
 				item.domId=item.UniqueCode+t //避免多次添加同一图表 id相同
 				htmlStr=htmlStr+`<p style='text-align:left; margin-top:10px;'>
-							<iframe id='${item.domId}' src='${LINK_CHART_URL}?code=${item.UniqueCode}' width='100%' height='350' style='border-width:0px; min-height:350px;'></iframe>
+							<iframe id='${item.domId}' src='${LINK_CHART_URL}?code=${item.UniqueCode}&lang=${this.currentLang}' width='100%' height='350' style='border-width:0px; min-height:350px;'></iframe>
 						</p>`
 			})
 			this.$nextTick(()=>{

+ 1 - 1
src/views/report_manage/editChapterReport.vue

@@ -796,7 +796,7 @@ export default {
         htmlStr =
           htmlStr +
           `<p style='text-align:left; margin-top:10px;'>
-							<iframe id='${item.domId}' src='${LINK_CHART_URL}?code=${item.UniqueCode}' width='100%' height='350' style='border-width:0px; min-height:350px;'></iframe>
+							<iframe id='${item.domId}' src='${LINK_CHART_URL}?code=${item.UniqueCode}&lang=${this.currentLang}' width='100%' height='350' style='border-width:0px; min-height:350px;'></iframe>
 						</p>`;
       });
       this.$nextTick(() => {

+ 1 - 1
src/views/report_manage/editreportNew.vue

@@ -832,7 +832,7 @@ export default {
 				const t=new Date().getTime()
 				item.domId=item.UniqueCode+t //避免多次添加同一图表 id相同
 				htmlStr=htmlStr+`<p style='text-align:left; margin-top:10px;'>
-							<iframe id='${item.domId}' src='${LINK_CHART_URL}?code=${item.UniqueCode}' width='100%' height='350' style='border-width:0px; min-height:350px;'></iframe>
+							<iframe id='${item.domId}' src='${LINK_CHART_URL}?code=${item.UniqueCode}&lang=${this.currentLang}' width='100%' height='350' style='border-width:0px; min-height:350px;'></iframe>
 						</p>`
 			})
 			this.$nextTick(()=>{

+ 6 - 2
src/views/smartReport/editReport.vue

@@ -500,7 +500,7 @@ export default {
                     resArr={
                         compId:3,
                         compType:'chart',
-                        content:`${LINK_CHART_URL}?code=${temarr[0].UniqueCode}`,
+                        content:`${LINK_CHART_URL}?code=${temarr[0].UniqueCode}&lang=${this.currentLang}`,
                         id:this.getCompId(`chart${temarr[0].UniqueCode}_`),
                         style:'height:350px',
                         child:[]
@@ -1181,7 +1181,11 @@ export default {
                     icon:require('@/assets/img/smartReport/icon09.png')
                 }
             ]
-      }
+      },
+       //语言版本
+        currentLang() {
+            return this.$store.state.lang
+        }
     },
     created() {
         this.getPublicSettings()