diff --git a/src/api/pay/application.js b/src/api/pay/application.js index 5aee88d..c0b8972 100644 --- a/src/api/pay/application.js +++ b/src/api/pay/application.js @@ -2,32 +2,32 @@ * @Author: ch * @Date: 2022-07-04 15:20:02 * @LastEditors: ch - * @LastEditTime: 2022-07-06 14:27:54 + * @LastEditTime: 2022-07-06 17:20:08 * @Description: file content */ import request from '@/utils/request.js'; export const create = (data) => { return request({ - url: '/payCenter/mchInfo', + url: '/payCenter/appInfo', method: 'post', data, }); }; export const del = (mchPrimaryId) => { return request({ - url: `/payCenter/mchInfo/${mchPrimaryId}`, + url: `/payCenter/appInfo/${mchPrimaryId}`, method: 'delete', }); }; export const detail = (mchPrimaryId) => { return request({ - url: `/payCenter/mchInfo/${mchPrimaryId}`, + url: `/payCenter/appInfo/${mchPrimaryId}`, method: 'get', }); }; export const update = (data) => { return request({ - url: '/payCenter/mchInfo', + url: '/payCenter/appInfo', method: 'put', data, }); diff --git a/src/store/modules/pay/application.js b/src/store/modules/pay/application.js index 6e33dfe..53ad07f 100644 --- a/src/store/modules/pay/application.js +++ b/src/store/modules/pay/application.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-07-04 15:21:30 * @LastEditors: ch - * @LastEditTime: 2022-07-06 14:31:27 + * @LastEditTime: 2022-07-06 17:18:37 * @Description: file content */ import * as api from '@/api/pay/application.js'; @@ -48,7 +48,7 @@ const actions = { } }, async save({ dispatch }, data) { - let save = data.mchPrimaryId ? api.update : api.create; + let save = data.appPrimaryId ? api.update : api.create; let res = await save(data); if (res) { ElMessage.success('保存成功'); diff --git a/src/views/pay/application/add.vue b/src/views/pay/application/add.vue deleted file mode 100644 index 0563eff..0000000 --- a/src/views/pay/application/add.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/src/views/pay/application/detail.vue b/src/views/pay/application/detail.vue deleted file mode 100644 index d39e58f..0000000 --- a/src/views/pay/application/detail.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/src/views/pay/application/form.vue b/src/views/pay/application/form.vue new file mode 100644 index 0000000..412f8c5 --- /dev/null +++ b/src/views/pay/application/form.vue @@ -0,0 +1,199 @@ + + + + diff --git a/src/views/pay/application/index.vue b/src/views/pay/application/index.vue index 0186278..eb21c8b 100644 --- a/src/views/pay/application/index.vue +++ b/src/views/pay/application/index.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-06-15 17:29:32 * @LastEditors: ch - * @LastEditTime: 2022-07-06 14:31:59 + * @LastEditTime: 2022-07-06 16:46:56 * @Description: file content -->