From c54325c428b994efc5f75d1cb7740e9cce63d320 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 30 Nov 2023 14:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=91=E5=AE=9A=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=8F=8A=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/device/edit.vue | 52 +++++--------- admin/src/views/device/index.vue | 19 +----- admin/src/views/product/edit.vue | 67 +++++++------------ app/adminapi/logic/device/DeviceLogic.php | 48 +++++++------ app/adminapi/logic/land/ProductLogic.php | 8 ++- .../validate/land/ProductValidate.php | 6 +- 6 files changed, 78 insertions(+), 122 deletions(-) diff --git a/admin/src/views/device/edit.vue b/admin/src/views/device/edit.vue index 4d5cc1f3..98d0329d 100644 --- a/admin/src/views/device/edit.vue +++ b/admin/src/views/device/edit.vue @@ -9,7 +9,20 @@ @close="handleClose" > - + + + + + + + + + - + - - - - - - - - @@ -75,16 +75,6 @@ :value="parseInt(item.value)" /> - - - - - @@ -125,17 +115,10 @@ const formData = reactive({ monitor_item: '', status: '', is_online: '', - is_bind: '', }) - // 表单验证 const formRules = reactive({ - product_id: [{ - required: true, - message: '请输入产品id', - trigger: ['blur'] - }], code: [{ required: true, message: '请输入设备编码', @@ -161,11 +144,6 @@ const formRules = reactive({ message: '请选择是否在线', trigger: ['blur'] }], - is_bind: [{ - required: true, - message: '请选择是否绑定土地', - trigger: ['blur'] - }], }) diff --git a/admin/src/views/device/index.vue b/admin/src/views/device/index.vue index e8819089..afcc4eee 100644 --- a/admin/src/views/device/index.vue +++ b/admin/src/views/device/index.vue @@ -58,17 +58,6 @@ :value="item.value" /> - - - - - - 查询 @@ -128,11 +117,6 @@ - - -