Karsa il y a 3 mois
Parent
commit
e1a6d02e8f

+ 1 - 1
src/views/report_manage/reportV2/normalReport/components/ImportETAChart.vue

@@ -8,7 +8,7 @@
             <div class="list-wrap" v-infinite-scroll="handleLoadMore" :infinite-scroll-immediate="true">
  
                 <div class="chart-item" v-for="item in list" :key="item.UniqueCode">
-                    <div class="title">{{item.ChartName}}</div>
+                    <div class="title">{{ currentLang==='en'?item.ChartNameEn:item.ChartName }}</div>
                     <img
                         :src="!item.HaveOperaAuth?$icons.lock_big:item.ChartImage"
                         @click="$emit('insertHtml',item)"

+ 8 - 2
src/views/report_manage/reportV2/normalReport/components/importMyChart.vue

@@ -22,8 +22,8 @@
 		</div>
 		<div class="list" v-infinite-scroll="load" v-if="list.length>0">
             <div class="item" v-for="item in list" :key="item.UniqueCode" @click="handleClickItem">
-                <div class="chartEn-mark" v-show="item.IsEnChart && showEnMark" style="top: 0;left: 0;">En</div>
-                <p class="color_primary">{{ item.ChartName }}</p>
+                <!-- <div class="chartEn-mark" v-show="item.IsEnChart && showEnMark" style="top: 0;left: 0;">En</div> -->
+                <p class="color_primary">{{ currentLang==='en'?item.ChartNameEn:item.ChartName }}</p>
                 <img :src="!item.HaveOperaAuth?$icons.lock_big:item.ChartImage" alt="">
             </div>
 		</div>
@@ -36,6 +36,12 @@
 <script>
 import { mychartInterface } from '@/api/api.js';
 export default {
+    computed: {
+        //语言版本
+       currentLang() {
+           return this.$store.state.lang
+       },
+    },
     data() {
         return {
             myChartClassifyList:[],

+ 1 - 1
src/views/report_manage/reportV2/smartReport/components/ImportETAChart.vue

@@ -15,7 +15,7 @@
                 :move="onMoveItemHandle"
             >
                 <div class="chart-item" :comp-data="getCompData(item)" v-for="item in list" :key="item.UniqueCode">
-                    <div class="title">{{item.ChartName}}</div>
+                    <div class="title">{{currentLang==='en'?item.ChartNameEn:item.ChartName}}</div>
                     <div class="img" :style="`backgroundImage:url(${ !item.HaveOperaAuth?$icons.lock_big:item.ChartImage })`"></div>
                 </div>
             </draggable>

+ 7 - 1
src/views/report_manage/reportV2/smartReport/components/ImportMyETAChart.vue

@@ -23,7 +23,7 @@
 		</div>
 		<div class="list" v-infinite-scroll="load" v-if="list.length>0">
             <div class="chart-item" v-for="item in list" :key="item.UniqueCode" @click="handleClickItem">
-                <div class="title">{{item.ChartName}}</div>
+                <div class="title">{{ currentLang==='en'?item.ChartNameEn:item.ChartName }}</div>
                 <div class="img" :style="`backgroundImage:url(${ !item.HaveOperaAuth?$icons.lock_big:item.ChartImage })`"></div>
             </div>
 		</div>
@@ -34,6 +34,12 @@
 <script>
 import { mychartInterface } from '@/api/api.js';
 export default {
+    computed: {
+        //语言版本
+        currentLang() {
+            return this.$store.state.lang
+        }
+    },
     data() {
         return {
             myChartClassifyList:[],

+ 1 - 1
src/views/report_manage/reportV2/smartReport/editReport.vue

@@ -712,7 +712,7 @@ export default {
                         resArr.child.push({
                             compId:3,
                             compType:'chart',
-                            content:`${LINK_CHART_URL}?code=${e.UniqueCode}`,
+                            content:`${LINK_CHART_URL}?code=${e.UniqueCode}&lang=${this.currentLang}`,
                             id:this.getCompId(`chart${e.UniqueCode}_`),
                             style:'height:350px',
                             child:[]