Browse Source

+ h5 增加指令下发

chen.cheng 7 months ago
parent
commit
376545362e
1 changed files with 35 additions and 34 deletions
  1. 35 34
      src/pages/workbenchsub/device/detail.vue

+ 35 - 34
src/pages/workbenchsub/device/detail.vue

@@ -70,40 +70,6 @@
     <panel>
       <template v-slot:header>
         <up-icon size="28rpx" :name="list"></up-icon>
-        运行状态
-      </template>
-      <template v-slot:content>
-        <up-cell-group :border="false">
-          <up-cell
-              v-for="(item,index) in state.metaInfo.dataMetaRunInfo"
-              :title="`${item.name}(${item.identifier})`"
-              :key="index"
-              size="small"
-          >
-            <template v-slot:label>
-              <view class="meta-data">
-                <up-text
-                    :lines="1"
-                    :text="`${item.data}${item.data && JSON.parse(item.dataType).specs.unit ? JSON.parse(item.dataType).specs.unit:''}`"
-                    size="30rpx"
-                    :bold="true"
-                >
-                </up-text>
-                <up-text
-                    :lines="1"
-                    :text="formatTxt(item.timeStamp)"
-                    size="20rpx"
-                >
-                </up-text>
-              </view>
-            </template>
-          </up-cell>
-        </up-cell-group>
-      </template>
-    </panel>
-    <panel>
-      <template v-slot:header>
-        <up-icon size="28rpx" :name="list"></up-icon>
         设备调试
       </template>
       <template v-slot:content>
@@ -135,6 +101,40 @@
         </up-cell-group>
       </template>
     </panel>
+    <panel>
+      <template v-slot:header>
+        <up-icon size="28rpx" :name="list"></up-icon>
+        运行状态
+      </template>
+      <template v-slot:content>
+        <up-cell-group :border="false">
+          <up-cell
+              v-for="(item,index) in state.metaInfo.dataMetaRunInfo"
+              :title="`${item.name}(${item.identifier})`"
+              :key="index"
+              size="small"
+          >
+            <template v-slot:label>
+              <view class="meta-data">
+                <up-text
+                    :lines="1"
+                    :text="`${item.data}${item.data && JSON.parse(item.dataType).specs.unit ? JSON.parse(item.dataType).specs.unit:''}`"
+                    size="30rpx"
+                    :bold="true"
+                >
+                </up-text>
+                <up-text
+                    :lines="1"
+                    :text="formatTxt(item.timeStamp)"
+                    size="20rpx"
+                >
+                </up-text>
+              </view>
+            </template>
+          </up-cell>
+        </up-cell-group>
+      </template>
+    </panel>
     <up-tabbar
         :fixed="true"
         :placeholder="false"
@@ -496,6 +496,7 @@ const onCommand = () => {
 
       .u-cell__body {
         padding: 0;
+        min-height: 70rpx;
       }
     }
   }