From 99172ea088332104ded558fd12a70326e4f0bdf5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 16 Oct 2023 09:57:46 +0800 Subject: [PATCH] =?UTF-8?q?code=20review=EF=BC=9A=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/promotion/article/index.ts | 5 -- .../mall/promotion/articleCategory/index.ts | 5 -- .../article/category/ArticleCategoryForm.vue | 5 +- .../mall/promotion/article/category/index.vue | 34 +------- src/views/mall/promotion/article/index.vue | 78 +------------------ 5 files changed, 10 insertions(+), 117 deletions(-) diff --git a/src/api/mall/promotion/article/index.ts b/src/api/mall/promotion/article/index.ts index c2941d05..824958ad 100644 --- a/src/api/mall/promotion/article/index.ts +++ b/src/api/mall/promotion/article/index.ts @@ -40,8 +40,3 @@ export const updateArticle = async (data: ArticleVO) => { export const deleteArticle = async (id: number) => { return await request.delete({ url: `/promotion/article/delete?id=` + id }) } - -// 导出文章管理 Excel -export const exportArticle = async (params) => { - return await request.download({ url: `/promotion/article/export-excel`, params }) -} diff --git a/src/api/mall/promotion/articleCategory/index.ts b/src/api/mall/promotion/articleCategory/index.ts index 2950d759..47f5e934 100644 --- a/src/api/mall/promotion/articleCategory/index.ts +++ b/src/api/mall/promotion/articleCategory/index.ts @@ -37,8 +37,3 @@ export const updateArticleCategory = async (data: ArticleCategoryVO) => { export const deleteArticleCategory = async (id: number) => { return await request.delete({ url: `/promotion/article-category/delete?id=` + id }) } - -// 导出文章分类 Excel -export const exportArticleCategory = async (params) => { - return await request.download({ url: `/promotion/article-category/export-excel`, params }) -} diff --git a/src/views/mall/promotion/article/category/ArticleCategoryForm.vue b/src/views/mall/promotion/article/category/ArticleCategoryForm.vue index 39b1fc0f..ac7e9f38 100644 --- a/src/views/mall/promotion/article/category/ArticleCategoryForm.vue +++ b/src/views/mall/promotion/article/category/ArticleCategoryForm.vue @@ -37,6 +37,7 @@