From 40e16b7d3b5001a08a79acba754692a453e82756 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Thu, 19 Jun 2025 16:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=95=86=E5=9F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supermarket/shopCategory.ts | 7 + src/views/supermarket/shopCategory/form.vue | 60 +++-- src/views/supermarket/shopCategory/index.vue | 88 +++++-- src/views/supermarket/shopSpu/form.vue | 237 +++++++++---------- src/views/supermarket/shopSpu/index.vue | 14 +- 5 files changed, 224 insertions(+), 182 deletions(-) diff --git a/src/api/supermarket/shopCategory.ts b/src/api/supermarket/shopCategory.ts index 098cdcb..c262f87 100644 --- a/src/api/supermarket/shopCategory.ts +++ b/src/api/supermarket/shopCategory.ts @@ -39,3 +39,10 @@ export function putObj(obj?: Object) { }) } +export function tree(obj?: Object) { + return request({ + url: '/supermarket/shopCategory/tree', + method: 'get', + data: obj + }) +} diff --git a/src/views/supermarket/shopCategory/form.vue b/src/views/supermarket/shopCategory/form.vue index d9dffd6..bde8925 100644 --- a/src/views/supermarket/shopCategory/form.vue +++ b/src/views/supermarket/shopCategory/form.vue @@ -4,8 +4,15 @@ - - + + + + @@ -15,12 +22,6 @@ - - - - - - @@ -42,12 +43,6 @@ - - - - - -