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 65ac181337a91f0b6e682498226a6a25e0c8da8d..251b7e7eae8171450a235c5c1de4872a78ae6f22 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 46a77c45aaec10067b665b1ebadc1d04f59715dc..7c90d25191a09ae9897c11fd6a9351b3ff2502fd 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 051d6e327c235a04d04fa00c6ced4c37b6dbd3da..9572e16e4cbb117b03f87d6778a70ece95c20cc4 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 a64b43d2da8f76360c4c6f62d4d08308d010a4c4..0ff48fc5873da9db88debfdddb0958e94a1dd7f1 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 351b777d536421a6f069890d3ea1fbae17885ed4..f27b5d121461ccb6fc4d68a35fea852ed0b15997 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 120903c0fa8ad7bcc0730d1e1d7e51dea3379776..2e40e3651aa9c315a1dc2c2b57f47691c16370ac 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' },