From af5894dd5a79368a2f3a63ab795e68936b8b2662 Mon Sep 17 00:00:00 2001 From: yangchunlong <292345300@qq.com> Date: Tue, 1 Apr 2025 15:15:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A7=A9=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 47 +------------------ src/api/modules/banner.ts | 2 +- src/api/modules/downloadClass.ts | 2 +- src/api/modules/productList.ts | 6 +-- src/api/modules/videoClass.ts | 2 +- src/api/modules/videoList.ts | 2 +- src/components/rulesForm/index.vue | 8 +++- .../articleManagement/list/constant/edit.ts | 4 +- .../articleManagement/list/constant/rules.ts | 2 +- src/views/articleManagement/list/edit.vue | 13 ++++- src/views/articleManagement/list/index.vue | 2 +- .../bannerManagement/list/constant/edit.ts | 4 +- src/views/bannerManagement/list/index.vue | 11 +++-- .../downloadManagement/list/constant/edit.ts | 2 +- .../downloadManagement/list/constant/rules.ts | 2 +- src/views/downloadManagement/list/edit.vue | 13 ++++- src/views/downloadManagement/list/index.vue | 2 +- .../downloadManagement/recycle/index.vue | 2 +- .../list/components/basicInfo.vue | 12 +++-- .../productManagement/list/constant/edit.ts | 2 +- src/views/productManagement/list/edit.vue | 11 +++-- .../list/utils/edit/initDetailParams.ts | 22 ++++++++- .../videoManagement/list/constant/edit.ts | 2 +- .../videoManagement/list/constant/rules.ts | 2 +- src/views/videoManagement/list/index.vue | 17 ++++++- 25 files changed, 112 insertions(+), 82 deletions(-) diff --git a/index.html b/index.html index 31fd592..6a5d5bb 100644 --- a/index.html +++ b/index.html @@ -103,51 +103,6 @@ } - + diff --git a/src/api/modules/banner.ts b/src/api/modules/banner.ts index 1a9f739..1dd93bb 100644 --- a/src/api/modules/banner.ts +++ b/src/api/modules/banner.ts @@ -37,6 +37,6 @@ export const getBannerListExportApi = (params: any) => { }); }; //分类 -export const getBannerClassListApi = (params: any) => { +export const getBannerClassListApi = (params?: any) => { return http.get(`/banner/list`, params); //v1/banner/list }; diff --git a/src/api/modules/downloadClass.ts b/src/api/modules/downloadClass.ts index feb869c..bf7a2f8 100644 --- a/src/api/modules/downloadClass.ts +++ b/src/api/modules/downloadClass.ts @@ -26,6 +26,6 @@ export const getCategorySortApi = (params: any) => { return http.post(`${ATT_C}/sort/${params.id}`, { sort: params.sort }); }; //下载分类下拉列表 -export const getCategorysApi = (params: any) => { +export const getCategorysApi = (params?: any) => { return http.get(`/attachment/categorys`, params); }; diff --git a/src/api/modules/productList.ts b/src/api/modules/productList.ts index db139df..68606aa 100644 --- a/src/api/modules/productList.ts +++ b/src/api/modules/productList.ts @@ -36,7 +36,7 @@ export const getProductListSortApi = (params: any) => { const { id, sort } = params; return http.post(`${PRODUCT}/sort/${id}`, { sort }); }; -// getProductCategoryListApi -export const getProductCategoryListApi = () => { - return http.get(`/product/categorys`); +// 产品分类 +export const getProductCategoryListApi = (params?: any) => { + return http.get(`/product/categorys`, params); }; diff --git a/src/api/modules/videoClass.ts b/src/api/modules/videoClass.ts index c18d164..4bddfc9 100644 --- a/src/api/modules/videoClass.ts +++ b/src/api/modules/videoClass.ts @@ -1,7 +1,7 @@ import http from "@/api"; const VIDEO_CATEGORY = `video/category`; // 视频分类分页列表 -export const getVideoClassListApi = (params: any) => { +export const getVideoClassListApi = (params?: any) => { return http.get(`${VIDEO_CATEGORY}/index`, params); }; //视频分类详情 diff --git a/src/api/modules/videoList.ts b/src/api/modules/videoList.ts index c66e4f8..5f9eb97 100644 --- a/src/api/modules/videoList.ts +++ b/src/api/modules/videoList.ts @@ -27,6 +27,6 @@ export const getVideoListExportApi = (params: any) => { }); }; //视频分类 -export const getVideoClassListApi = (params: any) => { +export const getVideoClassListApi = (params?: any) => { return http.get(`/video/categorys`, params); }; diff --git a/src/components/rulesForm/index.vue b/src/components/rulesForm/index.vue index 35f1750..17fcddc 100644 --- a/src/components/rulesForm/index.vue +++ b/src/components/rulesForm/index.vue @@ -124,7 +124,13 @@