Commit 0b99fdf8fcd74fb8b9be7a5f52f257cd550c0bca

Authored by loveumiko
1 parent 903f93b9

fix: 修复切换为英文展示显示为了 中文

@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 <view v-if="item.statusName"> 25 <view v-if="item.statusName">
26 {{ $t('device.commandStatus') }}: 26 {{ $t('device.commandStatus') }}:
27 <text :style="{color:formatCommandStatus(item.status)}" class="ml-16"> 27 <text :style="{color:formatCommandStatus(item.status)}" class="ml-16">
28 - {{ item.statusName }} 28 + {{ statusEnum[item.status]?$t(statusEnum[item.status]):item.statusName }}
29 </text> 29 </text>
30 </view> 30 </view>
31 <view class="item-first"> 31 <view class="item-first">
@@ -112,6 +112,11 @@ @@ -112,6 +112,11 @@
112 page: { 112 page: {
113 num: 0, 113 num: 0,
114 size: 10 114 size: 10
  115 + },
  116 + statusEnum:{
  117 + SUCCESSFUL:'device.responseSuccess',
  118 + EXPIRED:'device.expired',
  119 + DELIVERED:'device.successSent',
115 } 120 }
116 }; 121 };
117 }, 122 },