Browse Source

custom-table单位和频度翻译

cxmo 6 months ago
parent
commit
307bfac5fd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/datasheet_manage/components/CustomTable.vue

+ 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>
 
               <!-- 数据列 -->