Showing
1 changed file
with
6 additions
and
1 deletions
@@ -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 | }, |