wangxiao 2 жил өмнө
parent
commit
f05b0486cc

+ 2 - 5
src/pages/Iot/device/components/cloudview.vue

@@ -31,9 +31,6 @@
         :pagination="false"
       >
         <template #bodyCell="{ column, record }">
-          <template v-if="column.key === 'status'">
-            <span>{{ DeviceContriller.deviceMag.get(record.status)?.name }}</span>
-          </template>
           <template v-if="column.key === 'cmdPayload'" >
             <a-tooltip color="white" :overlayStyle="{width: '800px'}" >
               <template #title>
@@ -49,13 +46,13 @@
             </a-tooltip>
           </template>
           <template v-if="column.key === 'cmdRet'" >
-            <a-tooltip color="white" :overlayStyle="{width: '800px'}" >
+            <a-tooltip color="white" :overlayStyle="{width: '200px'}" >
               <template #title>
                 <a-textarea
                   :bordered="false"
                   style="width: 600px;"
                   :auto-size="{ minRows: 5, maxRows: 15 }"
-                  :value="JSON.stringify(JSON.parse(record.cmdRet), null, '\t')"
+                  :value="record.cmdRet"
                   >
                 </a-textarea>
               </template>