From 80fc2bad249ed496ff0f5f2cc879a5830e447085 Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 22 Jul 2026 13:45:38 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E8=AE=BE=E5=A4=87=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6-=E5=85=B3=E8=81=94=E7=89=A9=E8=81=94=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=8D=95=E9=80=89=E6=A1=86=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/device/index.ts | 7 +++-- .../mes/deviceledger/DeviceLedgerForm.vue | 29 +++++++++++++++---- .../mes/deviceledger/detail/editIndex.vue | 29 +++++++++++++++---- 3 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts index 683b986e..2a411261 100644 --- a/src/api/iot/device/index.ts +++ b/src/api/iot/device/index.ts @@ -3,11 +3,14 @@ import qs from 'qs' // 物联设备 VO export interface DeviceVO { - id: number // ID + id: string | number // ID deviceCode: string // 设备编号 deviceName: string // 设备名称 boundLedgerName?: string // 已绑定的设备台账名称 deviceType: string // 设备类型 + ledgerBound?: boolean + selectable?: boolean + boundLedgerId?: string | number | null status: string // 状态 isConnect?: string | number operatingStatus?: string | number @@ -91,7 +94,7 @@ export const DeviceApi = { return await request.get({ url: `/iot/device/deviceList`, params }) }, // 查询物联设备详情 - getDevice: async (id: number) => { + getDevice: async (id: string | number) => { return await request.get({ url: `/iot/device/get?id=` + id }) }, getDeviceListByNoUsed: async () => { diff --git a/src/views/mes/deviceledger/DeviceLedgerForm.vue b/src/views/mes/deviceledger/DeviceLedgerForm.vue index 9bc067ca..614a8269 100644 --- a/src/views/mes/deviceledger/DeviceLedgerForm.vue +++ b/src/views/mes/deviceledger/DeviceLedgerForm.vue @@ -425,8 +425,8 @@