lixing il y a 11 mois
Parent
commit
8e14e1c3c1

+ 1 - 0
.eslintrc.js

@@ -1,6 +1,7 @@
 {
   "globals": {
     "EffectScope": true,
+    "ElMessage": true,
     "_mqttMessageCallback": true,
     "acceptHMRUpdate": true,
     "computed": true,

+ 1 - 2
src/views/equipment-center/real-time-data/european-gourd.vue

@@ -54,7 +54,6 @@
               <div>
                 <div class="text1">
                   {{ formatGears(currentData?.gear) }}
-                  <span style="font-weight: 400; font-size: 16px">{{ currentData?.gear.unit }}</span>
                 </div>
                 <div class="text2">
                   {{ '档位' }}
@@ -65,7 +64,7 @@
               <div>
                 <div class="text1">
                   {{ currentData?.weight.value ?? '--' }}
-                  <span style="font-weight: 400; font-size: 16px">{{ currentData?.weight.unit }}</span>
+                  <span style="font-weight: 400; font-size: 16px">{{ currentData?.weight.unit ?? '' }}</span>
                 </div>
                 <div class="text2">
                   {{ '载荷' }}

+ 1 - 1
src/views/equipment-center/real-time-data/index.vue

@@ -51,7 +51,7 @@
             </div>
             <div class="item-info__el" v-if="item?.weight">
               <div class="distance">
-                {{ item?.weight?.value??'--' }}
+                {{ item?.weight?.value ?? '--' }}
                 <span style="font-size: 12px">{{ item.weight?.unit || item.weight?.unitName }}</span>
               </div>
               <div class="text">