From 36202783602da96725c9aa2aa9730bcbbda4faf8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 20 Jan 2026 21:41:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(iot):=E3=80=90=E8=AE=BE=E5=A4=87=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=EF=BC=9A50%=E3=80=91=E7=AE=80=E5=8C=96=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=AE=9A=E4=BD=8D=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20GeoLocation=20=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=EF=BC=8C=E5=9F=BA=E4=BA=8E=20calm-roaming-pillow.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/device/device/index.ts | 3 +- src/api/iot/product/product/index.ts | 7 -- src/components/Map/index.vue | 26 +++--- src/views/iot/device/device/DeviceForm.vue | 86 +++++++------------ .../device/detail/DeviceDetailsInfo.vue | 4 +- src/views/iot/product/product/ProductForm.vue | 14 --- .../product/detail/ProductDetailsInfo.vue | 3 - 7 files changed, 47 insertions(+), 96 deletions(-) diff --git a/src/api/iot/device/device/index.ts b/src/api/iot/device/device/index.ts index 2311a9a6..bfc56306 100644 --- a/src/api/iot/device/device/index.ts +++ b/src/api/iot/device/device/index.ts @@ -21,7 +21,6 @@ export interface DeviceVO { mqttUsername: string // MQTT 用户名 mqttPassword: string // MQTT 密码 authType: string // 认证类型 - locationType: number // 定位类型 latitude?: number // 设备位置的纬度 longitude?: number // 设备位置的经度 areaId: number // 地区编码 @@ -49,7 +48,7 @@ export interface IotDevicePropertyRespVO { updateTime: Date // 更新时间 } -// TODO @芋艿:调整到 constants +// TODO @AI:调整到 constants // IoT 设备状态枚举 export enum DeviceStateEnum { INACTIVE = 0, // 未激活 diff --git a/src/api/iot/product/product/index.ts b/src/api/iot/product/product/index.ts index c9f273eb..a34efaeb 100644 --- a/src/api/iot/product/product/index.ts +++ b/src/api/iot/product/product/index.ts @@ -13,7 +13,6 @@ export interface ProductVO { description: string // 产品描述 status: number // 产品状态 deviceType: number // 设备类型 - locationType: number // 设备类型 netType: number // 联网方式 codecType: string // 数据格式(编解码器类型) deviceCount: number // 设备数量 @@ -26,12 +25,6 @@ export enum DeviceTypeEnum { GATEWAY_SUB = 1, // 网关子设备 GATEWAY = 2 // 网关设备 } -// IOT 产品定位类型枚举类 0: 手动定位, 1: IP 定位, 2: 定位模块定位 -export enum LocationTypeEnum { - IP = 1, // IP 定位 - MODULE = 2, // 设备定位 - MANUAL = 3 // 手动定位 -} // IOT 数据格式(编解码器类型)枚举类 export enum CodecTypeEnum { ALINK = 'Alink' // 阿里云 Alink 协议 diff --git a/src/components/Map/index.vue b/src/components/Map/index.vue index 86010b26..3f965661 100644 --- a/src/components/Map/index.vue +++ b/src/components/Map/index.vue @@ -1,5 +1,5 @@ - - + +