|
|
@@ -201,7 +201,7 @@
|
|
|
</span>
|
|
|
<span><span class="status-label">运行时长</span> <span class="status-value">{{ uptimeDisplay }}</span></span>
|
|
|
<span><span class="status-label">温度</span> <span class="status-value">{{ temperatureDisplay }}</span></span>
|
|
|
- <span><span class="status-label">PA壶</span> <span class="status-value" :style="{color: state.hasPa ? '#00ff88' : '#888'}">{{ state.hasPa ? '支持' : '不支持' }}</span></span>
|
|
|
+ <span><span class="status-label">PA壶</span> <span class="status-value" :style="{color: state.hasPa ? '#00ff88' : '#888'}">{{ u.fmt.fmtDict(state.hasPa ? '1' : '0', 'yes_no') }}</span></span>
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button size="small" text type="primary" @click="refreshState" :loading="state.loading">
|
|
|
@@ -345,6 +345,7 @@
|
|
|
import {reactive, computed, watch} from 'vue';
|
|
|
import {Msg} from "/@/utils/message";
|
|
|
import {$body} from "/@/utils/request";
|
|
|
+import u from '/@/utils/u';
|
|
|
import {ElMessage} from 'element-plus';
|
|
|
import {Refresh, Reading, ChatDotSquare, CloseBold, SwitchButton, Loading} from '@element-plus/icons-vue';
|
|
|
|
|
|
@@ -402,8 +403,7 @@ const statusClass = computed(() => {
|
|
|
});
|
|
|
|
|
|
const statusLabel = computed(() => {
|
|
|
- const map: Record<string, string> = {busy: '忙碌', idle: '空闲', init: '初始化', fault: '故障', maintenance: '维护', sleep: '休眠'};
|
|
|
- return map[state.deviceState] || state.deviceState || '未知';
|
|
|
+ return u.fmt.fmtDict(state.deviceState, 'WashDevice.status') || state.deviceState || '未知';
|
|
|
});
|
|
|
|
|
|
const uptimeDisplay = computed(() => {
|