diff --git a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue index 7e5ce5cd..41a1e582 100644 --- a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue +++ b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue @@ -39,15 +39,22 @@ - + > + + - + @@ -137,6 +144,12 @@ import EDeviceChildren from './EDeviceChildren' import { webSocketProjectGatewayUrl } from "@/config/env"; import { listProjectDevice, listProjectModel } from '@/api/iot/project_new' import { getIotFileUrl } from "@/utils/hciot" +const deviceStatusOpt = { + ONLINE: "在线", + OFFLINE: "离线", + OUTLINE: "脱线", + UNACTIVE: "未激活", +}; export default { name: "EDeviceTable", components: { @@ -155,6 +168,7 @@ export default { }, data() { return { + deviceStatusOpt, queryParams: { prodKey: undefined, deviceName: undefined, diff --git a/src/views/iot/project/profileV2/DeviceManage/index.vue b/src/views/iot/project/profileV2/DeviceManage/index.vue index 850bd1f7..80786562 100644 --- a/src/views/iot/project/profileV2/DeviceManage/index.vue +++ b/src/views/iot/project/profileV2/DeviceManage/index.vue @@ -1,6 +1,6 @@