From dc5f6641438de5f8eff32937e74ba8287ecac745 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 19 Feb 2025 18:27:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=8C=E6=88=90=E4=B8=80=E5=8D=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/commonUnits.ts | 8 + src/api/product/index.ts | 9 +- src/components/CURD/PageContent.vue | 281 ++++---------- src/router/index.ts | 11 + .../online-shop/goodsGroupconfig/content2.ts | 2 +- src/views/product/index.vue | 20 +- .../indexconfig/SpecificationAttribute.vue | 66 ++++ src/views/product/indexconfig/addgoods.vue | 356 ++++++++++++++++++ src/views/product/indexconfig/content.ts | 19 +- src/views/product/indexconfig/edit.ts | 1 + src/views/product/indexconfig/statistics.vue | 2 +- 11 files changed, 547 insertions(+), 228 deletions(-) create mode 100644 src/views/product/indexconfig/SpecificationAttribute.vue create mode 100644 src/views/product/indexconfig/addgoods.vue diff --git a/src/api/product/commonUnits.ts b/src/api/product/commonUnits.ts index 755d9e0..e4576ef 100644 --- a/src/api/product/commonUnits.ts +++ b/src/api/product/commonUnits.ts @@ -12,6 +12,14 @@ const AuthAPI = { params, }); }, + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, // 单位新增 addunit(data: any) { return request({ diff --git a/src/api/product/index.ts b/src/api/product/index.ts index 42a00d8..f0776ba 100644 --- a/src/api/product/index.ts +++ b/src/api/product/index.ts @@ -41,7 +41,14 @@ const AuthAPI = { method: "delete", }); }, - + // 上下架 + onOff(data: any) { + return request({ + url: `${baseURL}/on-off`, + method: "post", + data, + }); + }, }; diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 972aa64..61125a8 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -8,58 +8,37 @@ @@ -88,68 +67,36 @@ - + @@ -263,21 +191,15 @@