From ec3a0183096f0a5296ba0f1297d0cabfe074aa11 Mon Sep 17 00:00:00 2001 From: cxr <2059387846@qq.com> Date: Mon, 1 Apr 2024 18:17:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(cxr):=20=E6=96=B0=E5=A2=9E=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E7=8E=B0=E8=B4=A7=E6=9C=8D=E5=8A=A1=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=88=E5=8C=BA=E5=9F=9F=E7=AE=A1=E7=90=86?= =?UTF-8?q?/=E4=BE=9B=E8=B4=A7=E5=95=86=E4=BF=A1=E6=81=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ => super}/regionalSpotManage/index.ts | 13 ++-- .../{ => super}/supplierInfoManage/index.ts | 67 +++++++++---------- ...otManage.ts => superRegionalSpotManage.ts} | 4 +- ...foManage.ts => superSupplierInfoManage.ts} | 4 +- src/views/super/regionalSpotManage/index.vue | 2 +- ...1\346\201\257\347\256\241\347\220\206.vue" | 2 +- 6 files changed, 41 insertions(+), 51 deletions(-) rename src/api/{ => super}/regionalSpotManage/index.ts (94%) rename src/api/{ => super}/supplierInfoManage/index.ts (90%) rename src/router/routes/modules/{regionalSpotManage.ts => superRegionalSpotManage.ts} (95%) rename src/router/routes/modules/{supplierInfoManage.ts => superSupplierInfoManage.ts} (95%) diff --git a/src/api/regionalSpotManage/index.ts b/src/api/super/regionalSpotManage/index.ts similarity index 94% rename from src/api/regionalSpotManage/index.ts rename to src/api/super/regionalSpotManage/index.ts index 65ac181..251b7e7 100644 --- a/src/api/regionalSpotManage/index.ts +++ b/src/api/super/regionalSpotManage/index.ts @@ -30,10 +30,7 @@ export function dictRegionListApi(data: any, mode: ErrorMessageMode = 'message') /** * @description: 添加区域 */ -export function addScAreaApi( - data: any, - mode: ErrorMessageMode = 'message', -) { +export function addScAreaApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.addScArea, @@ -52,7 +49,7 @@ export function addScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'messag return tmallabHttp.post( { url: Api.addScAreaPlatform, - data + data, }, { errorMessageMode: mode, @@ -82,7 +79,7 @@ export function removeScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'mes return tmallabHttp.post( { url: Api.removeScAreaPlatform, - data + data, }, { errorMessageMode: mode, @@ -96,7 +93,7 @@ export function getPlatListApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.getPlatList, - data + data, }, { errorMessageMode: mode, @@ -110,7 +107,7 @@ export function getPlatListAllApi(data: any, mode: ErrorMessageMode = 'message') return tmallabHttp.post( { url: Api.getPlatListAll, - data + data, }, { errorMessageMode: mode, diff --git a/src/api/supplierInfoManage/index.ts b/src/api/super/supplierInfoManage/index.ts similarity index 90% rename from src/api/supplierInfoManage/index.ts rename to src/api/super/supplierInfoManage/index.ts index 46a77c4..7c90d25 100644 --- a/src/api/supplierInfoManage/index.ts +++ b/src/api/super/supplierInfoManage/index.ts @@ -2,7 +2,6 @@ import { tmallabHttp } from '/@/utils/http/axios'; import { ErrorMessageMode } from '/#/axios'; enum Api { - listContract = '/system/vipContract/listContract', list = '/system/plat/list', createAccount = '/system/plat/createAccount', @@ -22,9 +21,8 @@ enum Api { operateisSc = '/system/supplier/operateisSc', } - /** - * @description: + * @description: */ export function listContractApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( @@ -41,10 +39,7 @@ export function listContractApi(data: any, mode: ErrorMessageMode = 'message') { /** * @description: */ -export function listApi( - data: any, - mode: ErrorMessageMode = 'message', -) { +export function listApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.list, @@ -57,13 +52,13 @@ export function listApi( } /** - * @description: + * @description: */ export function createAccountApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.createAccount, - data + data, }, { errorMessageMode: mode, @@ -72,7 +67,7 @@ export function createAccountApi(data: any, mode: ErrorMessageMode = 'message') } /** - * @description: + * @description: */ export function batchClosePlatsApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( @@ -87,13 +82,13 @@ export function batchClosePlatsApi(data: any, mode: ErrorMessageMode = 'message' } /** - * @description: + * @description: */ export function stopPlatAccountApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.stopPlatAccount, - data + data, }, { errorMessageMode: mode, @@ -101,13 +96,13 @@ export function stopPlatAccountApi(data: any, mode: ErrorMessageMode = 'message' ); } /** - * @description: + * @description: */ export function batchOpenPlatsApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.batchOpenPlats, - data + data, }, { errorMessageMode: mode, @@ -115,13 +110,13 @@ export function batchOpenPlatsApi(data: any, mode: ErrorMessageMode = 'message') ); } /** - * @description: + * @description: */ export function getGhsBondedPlatformApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.getGhsBondedPlatform, - data + data, }, { errorMessageMode: mode, @@ -129,13 +124,13 @@ export function getGhsBondedPlatformApi(data: any, mode: ErrorMessageMode = 'mes ); } /** - * @description: + * @description: */ export function listInfoAdminApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.listInfoAdmin, - data + data, }, { errorMessageMode: mode, @@ -143,13 +138,13 @@ export function listInfoAdminApi(data: any, mode: ErrorMessageMode = 'message') ); } /** - * @description: + * @description: */ export function listContactInfoApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.listContactInfo, - data + data, }, { errorMessageMode: mode, @@ -157,13 +152,13 @@ export function listContactInfoApi(data: any, mode: ErrorMessageMode = 'message' ); } /** - * @description: + * @description: */ export function listBingStateApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.listBingState, - data + data, }, { errorMessageMode: mode, @@ -171,13 +166,13 @@ export function listBingStateApi(data: any, mode: ErrorMessageMode = 'message') ); } /** - * @description: + * @description: */ export function updateGhsInfoByGhsCodeApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.updateGhsInfoByGhsCode, - data + data, }, { errorMessageMode: mode, @@ -185,13 +180,13 @@ export function updateGhsInfoByGhsCodeApi(data: any, mode: ErrorMessageMode = 'm ); } /** - * @description: + * @description: */ export function updatePwdApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.updatePwd, - data + data, }, { errorMessageMode: mode, @@ -199,13 +194,13 @@ export function updatePwdApi(data: any, mode: ErrorMessageMode = 'message') { ); } /** - * @description: + * @description: */ export function updateExPlatformApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.updateExPlatform, - data + data, }, { errorMessageMode: mode, @@ -213,13 +208,13 @@ export function updateExPlatformApi(data: any, mode: ErrorMessageMode = 'message ); } /** - * @description: + * @description: */ export function listLogAccountManagementApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.listLogAccountManagement, - data + data, }, { errorMessageMode: mode, @@ -227,13 +222,13 @@ export function listLogAccountManagementApi(data: any, mode: ErrorMessageMode = ); } /** - * @description: + * @description: */ export function updateLimitNumApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.updateLimitNum, - data + data, }, { errorMessageMode: mode, @@ -241,13 +236,13 @@ export function updateLimitNumApi(data: any, mode: ErrorMessageMode = 'message') ); } /** - * @description: + * @description: */ export function getLimitLogApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.getLimitLog, - data + data, }, { errorMessageMode: mode, @@ -261,12 +256,10 @@ export function operateisScApi(data: any, mode: ErrorMessageMode = 'message') { return tmallabHttp.post( { url: Api.operateisSc, - data + data, }, { errorMessageMode: mode, }, ); } - - diff --git a/src/router/routes/modules/regionalSpotManage.ts b/src/router/routes/modules/superRegionalSpotManage.ts similarity index 95% rename from src/router/routes/modules/regionalSpotManage.ts rename to src/router/routes/modules/superRegionalSpotManage.ts index 051d6e3..9572e16 100644 --- a/src/router/routes/modules/regionalSpotManage.ts +++ b/src/router/routes/modules/superRegionalSpotManage.ts @@ -12,7 +12,7 @@ const complaints: AppRouteModule = { orderNo: 200, icon: 'ion:grid-outline', title: '区域管理', - roles: ['super'] + roles: ['super'], }, children: [ { @@ -22,7 +22,7 @@ const complaints: AppRouteModule = { meta: { title: '区域管理', }, - } + }, ], }; diff --git a/src/router/routes/modules/supplierInfoManage.ts b/src/router/routes/modules/superSupplierInfoManage.ts similarity index 95% rename from src/router/routes/modules/supplierInfoManage.ts rename to src/router/routes/modules/superSupplierInfoManage.ts index a64b43d..0ff48fc 100644 --- a/src/router/routes/modules/supplierInfoManage.ts +++ b/src/router/routes/modules/superSupplierInfoManage.ts @@ -12,7 +12,7 @@ const complaints: AppRouteModule = { orderNo: 200, icon: 'ion:grid-outline', title: '供货商信息管理', - roles: ['super'] + roles: ['super'], }, children: [ { @@ -22,7 +22,7 @@ const complaints: AppRouteModule = { meta: { title: '供货商信息管理', }, - } + }, ], }; diff --git a/src/views/super/regionalSpotManage/index.vue b/src/views/super/regionalSpotManage/index.vue index 351b777..f27b5d1 100644 --- a/src/views/super/regionalSpotManage/index.vue +++ b/src/views/super/regionalSpotManage/index.vue @@ -152,7 +152,7 @@ removeScAreaPlatformApi, addScAreaPlatformApi, getPlatListAllApi, - } from '/@/api/regionalSpotManage'; + } from '/@/api/super/regionalSpotManage/index'; import moment from 'moment'; import { message } from 'ant-design-vue'; // const router = useRouter(); diff --git "a/src/views/super/supplierInfoManage/\344\276\233\350\264\247\345\225\206\344\277\241\346\201\257\347\256\241\347\220\206.vue" "b/src/views/super/supplierInfoManage/\344\276\233\350\264\247\345\225\206\344\277\241\346\201\257\347\256\241\347\220\206.vue" index 120903c..2e40e36 100644 --- "a/src/views/super/supplierInfoManage/\344\276\233\350\264\247\345\225\206\344\277\241\346\201\257\347\256\241\347\220\206.vue" +++ "b/src/views/super/supplierInfoManage/\344\276\233\350\264\247\345\225\206\344\277\241\346\201\257\347\256\241\347\220\206.vue" @@ -457,7 +457,7 @@ updateLimitNumApi, getLimitLogApi, operateisScApi, - } from '/@/api/supplierInfoManage'; + } from '/@/api/super/supplierInfoManage/index'; const columns2 = [ { title: '平台名称', dataIndex: 'platName', key: 'platName' }, -- 2.24.1