瀏覽代碼

样式修改

skyline 1 年之前
父節點
當前提交
389cf773e8
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/pages-wash/device/index.vue

+ 4 - 5
src/pages-wash/device/index.vue

@@ -2,15 +2,14 @@
   <view :class="['page']">
     <view class="device-header">
       <view class="device-header_name">
-        <text>洗车机编号:{{ state.device.deviceName }}</text>
+        <text>洗车机编号:{{ state.device.shortId }}</text>
       </view>
       <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 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 class="device-body">
       <view class="device-body_ops" @click="debounceStartStopDevice">
@@ -25,7 +24,7 @@
 <script setup lang="ts">
 import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
 import {reactive, ref} from "vue";
-import {debounce} from "@/utils/common";
+import {debounce, fmtDictName} from "@/utils/common";
 import {get, post} from "@/utils/https";
 
 const initState = () => ({