From 924a7c35e84706df8516db35f6afa1d28c79baa7 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 30 Nov 2023 12:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9C=9F=E5=9C=B0=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E4=BA=A7=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/api/land.ts | 10 ++ admin/src/views/land/bind.vue | 147 ++++++++++++++++++ admin/src/views/land/index.vue | 28 +++- admin/src/views/product/edit.vue | 19 +-- admin/src/views/product/index.vue | 16 +- .../controller/land/LandController.php | 13 ++ app/adminapi/logic/land/LandLogic.php | 42 ++++- app/adminapi/logic/land/ProductLogic.php | 38 +++-- app/adminapi/validate/land/LandValidate.php | 18 ++- 9 files changed, 285 insertions(+), 46 deletions(-) create mode 100644 admin/src/views/land/bind.vue diff --git a/admin/src/api/land.ts b/admin/src/api/land.ts index b251e26c..1d2a0c1f 100644 --- a/admin/src/api/land.ts +++ b/admin/src/api/land.ts @@ -5,6 +5,11 @@ 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 apiLandLists(params: any) { console.log(params) @@ -29,4 +34,9 @@ export function apiLandDelete(params: any) { // 土地表详情 export function apiLandDetail(params: any) { return request.get({ url: '/land.land/detail', params }) +} + +// 绑定产品 +export function apiLandBind(params: any) { + return request.post({ url: '/land.land/bind', params }) } \ No newline at end of file diff --git a/admin/src/views/land/bind.vue b/admin/src/views/land/bind.vue new file mode 100644 index 00000000..381fdefb --- /dev/null +++ b/admin/src/views/land/bind.vue @@ -0,0 +1,147 @@ + + + diff --git a/admin/src/views/land/index.vue b/admin/src/views/land/index.vue index 2682404b..62b3e9a7 100644 --- a/admin/src/views/land/index.vue +++ b/admin/src/views/land/index.vue @@ -49,16 +49,12 @@ 账户: {{ row.user.account }} --> - - - + - + - +