From a319d090bbcecaf21f60715bc4382107ab9737c8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 2 Apr 2023 10:24:03 +0800 Subject: [PATCH] =?UTF-8?q?REVIEW=20=E6=94=AF=E4=BB=98=E5=95=86=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pay/merchant/index.ts | 17 +- .../merchant/{form.vue => MerchantForm.vue} | 34 ++-- src/views/pay/merchant/index.vue | 175 +++++++++--------- src/views/system/notice/index.vue | 6 +- 4 files changed, 118 insertions(+), 114 deletions(-) rename src/views/pay/merchant/{form.vue => MerchantForm.vue} (73%) diff --git a/src/api/pay/merchant/index.ts b/src/api/pay/merchant/index.ts index b4b6ba51..bfb8f5e4 100644 --- a/src/api/pay/merchant/index.ts +++ b/src/api/pay/merchant/index.ts @@ -29,17 +29,17 @@ export interface MerchantExportReqVO { } // 查询列表支付商户 -export const getMerchantPageApi = (params: MerchantPageReqVO) => { +export const getMerchantPage = (params: MerchantPageReqVO) => { return request.get({ url: '/pay/merchant/page', params }) } // 查询详情支付商户 -export const getMerchantApi = (id: number) => { +export const getMerchant = (id: number) => { return request.get({ url: '/pay/merchant/get?id=' + id }) } // 根据商户名称搜索商户列表 -export const getMerchantListByNameApi = (name: string) => { +export const getMerchantListByName = (name: string) => { return request.get({ url: '/pay/merchant/list-by-name?id=', params: { @@ -49,26 +49,27 @@ export const getMerchantListByNameApi = (name: string) => { } // 新增支付商户 -export const createMerchantApi = (data: MerchantVO) => { +export const createMerchant = (data: MerchantVO) => { return request.post({ url: '/pay/merchant/create', data }) } // 修改支付商户 -export const updateMerchantApi = (data: MerchantVO) => { +export const updateMerchant = (data: MerchantVO) => { return request.put({ url: '/pay/merchant/update', data }) } // 删除支付商户 -export const deleteMerchantApi = (id: number) => { +export const deleteMerchant = (id: number) => { return request.delete({ url: '/pay/merchant/delete?id=' + id }) } // 导出支付商户 -export const exportMerchantApi = (params: MerchantExportReqVO) => { +export const exportMerchant = (params: MerchantExportReqVO) => { return request.download({ url: '/pay/merchant/export-excel', params }) } + // 支付商户状态修改 -export const changeMerchantStatusApi = (id: number, status: number) => { +export const updateMerchantStatus = (id: number, status: number) => { const data = { id, status diff --git a/src/views/pay/merchant/form.vue b/src/views/pay/merchant/MerchantForm.vue similarity index 73% rename from src/views/pay/merchant/form.vue rename to src/views/pay/merchant/MerchantForm.vue index d89fc7a3..1e09fb8c 100644 --- a/src/views/pay/merchant/form.vue +++ b/src/views/pay/merchant/MerchantForm.vue @@ -1,15 +1,14 @@