diff --git a/src/api/product/commonUnits.ts b/src/api/product/commonUnits.ts index e4576ef..3a6809e 100644 --- a/src/api/product/commonUnits.ts +++ b/src/api/product/commonUnits.ts @@ -51,6 +51,15 @@ const AuthAPI = { method: "delete", }); }, + // 导出常用单位 + exportUnits(params: any) { + return request({ + url: `${baseURL}/export`, + method: "get", + params, + responseType: 'blob' + }); + } }; diff --git a/src/api/product/productclassification.ts b/src/api/product/productclassification.ts index c6b87d2..0010ada 100644 --- a/src/api/product/productclassification.ts +++ b/src/api/product/productclassification.ts @@ -48,7 +48,15 @@ const AuthAPI = { method: "delete", }); }, - + // 导出商品分类 + exportCategories(params: any) { + return request({ + url: `${baseURL}/export`, + method: "get", + params, + responseType: 'blob' + }); + } }; diff --git a/src/views/product/category.vue b/src/views/product/category.vue index 0666d76..b0edac0 100644 --- a/src/views/product/category.vue +++ b/src/views/product/category.vue @@ -7,17 +7,9 @@ @reset-click="handleResetClick" /> --> - + - + - +