Browse Source

+ h5 增加指令下发

chen.cheng 7 tháng trước cách đây
mục cha
commit
1dfac383a5

+ 6 - 6
src/pages/workbench/appctl.vue

@@ -45,11 +45,6 @@ const ctlItems = ref([
     target: "/pages/workbenchsub/device/list"
   },
   {
-    name: alarm,
-    title: '设备告警',
-    color: '#0079fe',
-    target: "/pages/workbenchsub/device/detail"
-  }, {
     name: order,
     title: '工单管理',
     color: '#6a6bcd',
@@ -59,7 +54,12 @@ const ctlItems = ref([
     title: '故障提报',
     color: '#ff7f5d',
     target: "/pages/workbenchsub/workorder/submit"
-  }
+  }, {
+    name: alarm,
+    title: '设备告警',
+    color: '#0079fe',
+    target: "/pages/workbenchsub/device/detail"
+  },
 ]);
 
 function ctlClick(index) {

+ 5 - 3
src/pages/workbenchsub/device/detail.vue

@@ -55,12 +55,12 @@
             />
             <label-text
                 label="位置"
-                line="2"
+                :line="2"
                 :text="formatTxt(state.deviceInfo.locationStr)"
             />
             <label-text
                 label="描述"
-                line="3"
+                :line="3"
                 :text="formatTxt(state.deviceInfo.description)"
             />
           </view>
@@ -75,8 +75,9 @@
       <template v-slot:content>
         <up-cell-group :border="false">
           <up-cell
-              v-for="item in state.metaInfo.dataMetaRunInfo"
+              v-for="(item,index) in state.metaInfo.dataMetaRunInfo"
               :title="`${item.name}(${item.identifier})`"
+              :key="index"
               size="small"
           >
             <template v-slot:label>
@@ -115,6 +116,7 @@
           <up-cell
               v-if="state.selectedService && state.selectedService.inputData"
               v-for="item in state.selectedService.inputData"
+              :key="item.identifier"
               :title="item.name"
               :isLink="false"
           >

+ 5 - 5
src/pages/workbenchsub/workorder/detail.vue

@@ -40,17 +40,17 @@
             />
             <label-text
                 label="问题原因"
-                line="2"
+                :line="2"
                 :text="formatTxt(state.orderInfo.reason)"
             />
             <label-text
                 label="解决方案"
-                line="2"
+                :line="2"
                 :text="formatTxt(state.orderInfo.solution)"
             />
             <label-text
                 label="费用/材料"
-                line="1"
+                :line="1"
                 :text="formatTxt(state.orderInfo.consumables)"
             />
             <label-text
@@ -60,12 +60,12 @@
             <label-text
                 v-if="state.orderInfo.rewrite"
                 label="补充材料说明"
-                line="3"
+                :line="3"
                 :text="formatTxt(state.orderInfo.rewriteDes)"
             />
             <label-text
                 label="描述"
-                line="3"
+                :line="3"
                 :text="formatTxt(state.orderInfo.description)"
             />
           </view>