|
@@ -2,15 +2,14 @@
|
|
|
<view :class="['page']">
|
|
<view :class="['page']">
|
|
|
<view class="device-header">
|
|
<view class="device-header">
|
|
|
<view class="device-header_name">
|
|
<view class="device-header_name">
|
|
|
- <text>洗车机编号:{{ state.device.deviceName }}</text>
|
|
|
|
|
|
|
+ <text>洗车机编号:{{ state.device.shortId }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="device-header_fun">
|
|
<view class="device-header_fun">
|
|
|
- <uv-tags plain size="mini" type="info" :text="f" v-for="(f,i) in state.device.functions.split('\\|')" :key="i"></uv-tags>
|
|
|
|
|
|
|
+ <uv-tags plain size="mini" type="primary" :text="fmtDictName('WashDevice.status',state.device.state)"></uv-tags>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="device-header_fun">
|
|
<view class="device-header_fun">
|
|
|
- <uv-tags plain size="mini" type="primary" :text="state.device.state"></uv-tags>
|
|
|
|
|
|
|
+ <uv-tags plain size="mini" type="info" :text="f" v-for="(f,i) in state.device.functions.split('\\|')" :key="i"></uv-tags>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="device-body">
|
|
<view class="device-body">
|
|
|
<view class="device-body_ops" @click="debounceStartStopDevice">
|
|
<view class="device-body_ops" @click="debounceStartStopDevice">
|
|
@@ -25,7 +24,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
|
|
import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
|
|
|
import {reactive, ref} from "vue";
|
|
import {reactive, ref} from "vue";
|
|
|
-import {debounce} from "@/utils/common";
|
|
|
|
|
|
|
+import {debounce, fmtDictName} from "@/utils/common";
|
|
|
import {get, post} from "@/utils/https";
|
|
import {get, post} from "@/utils/https";
|
|
|
|
|
|
|
|
const initState = () => ({
|
|
const initState = () => ({
|