From 36bb90fbb8246fc7e40b3f0794fc4600d50cc6ff Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 15 Oct 2023 00:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E9=94=80=E6=B4=BB=E5=8A=A8=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E7=AB=A0=E5=88=86=E7=B1=BB=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/promotion/articleCategory/index.ts | 39 +++ .../articleCategory/ArticleCategoryForm.vue | 117 +++++++++ .../mall/promotion/articleCategory/index.vue | 225 ++++++++++++++++++ 3 files changed, 381 insertions(+) create mode 100644 src/api/mall/promotion/articleCategory/index.ts create mode 100644 src/views/mall/promotion/articleCategory/ArticleCategoryForm.vue create mode 100644 src/views/mall/promotion/articleCategory/index.vue diff --git a/src/api/mall/promotion/articleCategory/index.ts b/src/api/mall/promotion/articleCategory/index.ts new file mode 100644 index 00000000..5795a41b --- /dev/null +++ b/src/api/mall/promotion/articleCategory/index.ts @@ -0,0 +1,39 @@ +import request from '@/config/axios' + +export interface ArticleCategoryVO { + id: number + name: string + picUrl: string + status: number + sort: number +} + +// 查询分类列表 +export const getArticleCategoryPage = async (params) => { + return await request.get({ url: `/promotion/article-category/page`, params }) +} + +// 查询分类详情 +export const getArticleCategory = async (id: number) => { + return await request.get({ url: `/promotion/article-category/get?id=` + id }) +} + +// 新增分类 +export const createArticleCategory = async (data: ArticleCategoryVO) => { + return await request.post({ url: `/promotion/article-category/create`, data }) +} + +// 修改分类 +export const updateArticleCategory = async (data: ArticleCategoryVO) => { + return await request.put({ url: `/promotion/article-category/update`, data }) +} + +// 删除分类 +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/articleCategory/ArticleCategoryForm.vue b/src/views/mall/promotion/articleCategory/ArticleCategoryForm.vue new file mode 100644 index 00000000..4b7f2948 --- /dev/null +++ b/src/views/mall/promotion/articleCategory/ArticleCategoryForm.vue @@ -0,0 +1,117 @@ + + diff --git a/src/views/mall/promotion/articleCategory/index.vue b/src/views/mall/promotion/articleCategory/index.vue new file mode 100644 index 00000000..d201b3a3 --- /dev/null +++ b/src/views/mall/promotion/articleCategory/index.vue @@ -0,0 +1,225 @@ + + +