Переглянути джерело

custom-table单位和频度翻译

cxmo 6 місяців тому
батько
коміт
307bfac5fd

+ 4 - 4
src/views/datasheet_manage/components/CustomTable.vue

@@ -49,9 +49,9 @@
                 @click="() => { !disabled && item==='EdbName' && clickEdbName(edb)}"
               >
                 <template v-if="item === 'EdbName'">
-                  <span :class="{'edbname-td':disabled}" @click="edbJumpToBase(edb)">{{ edb.EdbAliasName||(currentLang==='en'?edb['EdbNameEn']:edb[item]) }}</span>
+                  <span :class="{'edbname-td':disabled}" @click="edbJumpToBase(edb)">{{ edb.EdbAliasName||(currentLang==='en'?edb['EdbNameEn']||edb[item]:edb[item]) }}</span>
                 </template>
-                <template v-else>{{ (currentLang==='en'?edb['UnitEn']:edb[item]) }}/{{ edb.Frequency }}</template>
+                <template v-else>{{ getUnitTrans((currentLang==='en'?edb['UnitEn']||edb[item]:edb[item])) }}/{{ getFrequencyTrans(edb.Frequency) }}</template>
               </td>
             </tr>
 
@@ -242,9 +242,9 @@
                 @click="() => { !disabled && item==='EdbName' && clickEdbName(edb)}"
               >
                 <template v-if="item === 'EdbName'">
-                  <span :class="{'edbname-td':disabled}" @click="edbJumpToBase(edb)">{{ edb.EdbAliasName||(currentLang==='en'?edb['EdbNameEn']:edb[item]) }}</span>
+                  <span :class="{'edbname-td':disabled}" @click="edbJumpToBase(edb)">{{ edb.EdbAliasName||(currentLang==='en'?edb['EdbNameEn']||edb[item]:edb[item]) }}</span>
                 </template>
-                <template v-else>{{ (currentLang==='en'?edb['UnitEn']:edb[item]) }}/{{ edb.Frequency }}</template>
+                <template v-else>{{ getUnitTrans((currentLang==='en'?edb['UnitEn']||edb[item]:edb[item])) }}/{{ getFrequencyTrans(edb.Frequency) }}</template>
               </td>
 
               <!-- 数据列 -->