Sfoglia il codice sorgente

优化设备不在线的情况

vothin 3 anni fa
parent
commit
1d3ca5bf67
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      src/views/ncs-device/components/deviceManager.vue

+ 5 - 1
src/views/ncs-device/components/deviceManager.vue

@@ -654,7 +654,11 @@ export default {
               item['online_state'] = '/'
             }
           } else {
-            item['online_state'] = '/'
+            if (this.isCannotBeOnline(item.device_type)) {
+              item['online_state'] = this.$t('deviceManage.connectFalse')
+            } else {
+              item['online_state'] = '/'
+            }
           }
         })
         this.rowData = deviceData