diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 7e47972..8bcfa0b 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -540,35 +540,29 @@ declare namespace Api { namespace Device { interface ApDevice { id: number; - deviceName: string; - deviceIp: string; - deviceMac: string; - deviceModel: string; - delFlag: boolean; + mac: string; + publicIp: string; + name: string; + status: number; + model: string; + uptime: string; createBy: string | null; createTime: string; updateBy: string | null; updateTime: string | null; - userId: number | null; + operate?: string; } - interface ApDeviceResponse { - code: number; - msg: string; - data: { - rows: ApDevice[]; - total: number; - }; - } + type ApDeviceResponse = App.Service.Response>; interface ApDeviceParams { pageNum: number; pageSize: number; - deviceName?: string; - deviceIp?: string; - deviceMac?: string; + name?: string; + mac?: string; } + interface TerminalDevice { id: number; clientName: string; diff --git a/src/views/device/apdevice/index.vue b/src/views/device/apdevice/index.vue index 803f931..289703a 100644 --- a/src/views/device/apdevice/index.vue +++ b/src/views/device/apdevice/index.vue @@ -16,11 +16,9 @@ @@ -32,10 +30,6 @@ :loading="loading" row-key="id" size="small" - :row-selection="{ - selectedRowKeys, - onChange: onSelectChange - }" :pagination="{ ...mobilePagination, total: mobilePagination.total, @@ -52,10 +46,10 @@ }" >