From a424d10d91d863b1cbb302b82079aaa6af0a2b2e Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 28 Nov 2023 14:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=BE=E5=A4=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/api/device.ts | 10 ++ admin/src/views/device/edit.vue | 101 +++++++++++++++++- admin/src/views/device/index.vue | 43 +++++++- admin/src/views/land/index.vue | 2 +- app/adminapi/lists/land/ProductLists.php | 3 +- app/adminapi/logic/device/DeviceLogic.php | 41 ++++--- .../validate/land/ProductValidate.php | 33 +++--- 7 files changed, 198 insertions(+), 35 deletions(-) diff --git a/admin/src/api/device.ts b/admin/src/api/device.ts index 4c5f73cd..69b6be39 100644 --- a/admin/src/api/device.ts +++ b/admin/src/api/device.ts @@ -1,5 +1,15 @@ import request from '@/utils/request' +// 用户列表 +export function getUserList(params: any) { + return request.get({ url: '/user.user/lists', params }, { ignoreCancelToken: true }) +} + +// 产品列表列表 +export function apiProductLists(params: any) { + return request.get({ url: '/land.product/lists', params }) +} + // 监测设备列表 export function apiDeviceLists(params: any) { return request.get({ url: '/device.device/lists', params }) diff --git a/admin/src/views/device/edit.vue b/admin/src/views/device/edit.vue index 45596b82..537843f2 100644 --- a/admin/src/views/device/edit.vue +++ b/admin/src/views/device/edit.vue @@ -9,6 +9,42 @@ @close="handleClose" > + + + + + + + + + + @@ -63,7 +99,7 @@