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