Explorar o código

优化设备不在线的情况

vothin %!s(int64=3) %!d(string=hai) anos
pai
achega
1d3ca5bf67
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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