Przeglądaj źródła

fix:指标名称英文版显示

Karsa 10 miesięcy temu
rodzic
commit
e717af8066

+ 2 - 6
src/views/dataEntry_manage/databaseComponents/edbDetailData.vue

@@ -14,14 +14,10 @@
 					<span>{{item.label}}</span>
 				</template>	
 				<template slot-scope="scope">
-					<template v-if="$i18nt.locale==='zh'">
-						<span>{{ currentLang==='en'?scope.row[item.enKey||item.key] || scope.row[item.key]:scope.row[item.key] }}</span> 
-					</template>
-					<template v-else>
+
 						<span v-if="item.key==='Frequency'">{{ getFrequencyTrans(scope.row.Frequency||'null') }}</span>
 						<span v-else-if="item.key==='Unit'">{{ getUnitTrans(scope.row.Unit) }}</span>
-						<span v-else>{{ scope.row[item.key] }}</span>
-					</template>
+						<span v-else>{{ currentLang==='en'?scope.row[item.enKey||item.key]:scope.row[item.key] }}</span>
 					
 				</template>
 			</el-table-column>

+ 1 - 1
src/views/dataEntry_manage/databaseList.vue

@@ -369,7 +369,7 @@
 						<div class="list" v-show="activeTab==='Data'">
 							<edb-detail-data 
 								ref="edb_detail_data"
-								:current-lang="currentLang"
+								:currentLang="currentLang"
 								:table-data="tableData"
 								:table-colums-one="tableColumsOne"
 								:table-colums-two="tableColumsTwo"