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 @@