diff --git a/src/api/admin.js b/src/api/admin.js index eb462a3..055168e 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -204,6 +204,14 @@ const admin = { method: Method.POST, }); }, + getWithdrawalPlatform2: async () => { + const {data} = await request({ + url: '/admin/withdrawal/getPlatform', + method: Method.POST, + }); + data.shift(); + return {data}; + }, getWithdrawalList: async (data) => { return request({ url: '/admin/withdrawal/getList', @@ -545,6 +553,20 @@ const admin = { data: {id}, }); }, + getWithdrawalInfo: async (id) => { + return request({ + url: '/admin/Withdrawal/getInfo', + method: Method.POST, + data: {id}, + }); + }, + getWithdrawalSetRatio: async (data) => { + return request({ + url: '/admin/Withdrawal/setRatio', + method: Method.POST, + data: data, + }); + }, } export default admin; diff --git a/src/pages/manage/pages/fund/components/EditWithdrawalModal.vue b/src/pages/manage/pages/fund/components/EditWithdrawalModal.vue index 8a68699..0fc39d1 100644 --- a/src/pages/manage/pages/fund/components/EditWithdrawalModal.vue +++ b/src/pages/manage/pages/fund/components/EditWithdrawalModal.vue @@ -1,12 +1,43 @@ @@ -21,22 +52,27 @@ const success = () => { v-model:visible="visible"> - + + - + - + - + - + - + diff --git a/src/pages/manage/pages/fund/withdrawal-information.vue b/src/pages/manage/pages/fund/withdrawal-information.vue index 175ab40..7684d53 100644 --- a/src/pages/manage/pages/fund/withdrawal-information.vue +++ b/src/pages/manage/pages/fund/withdrawal-information.vue @@ -12,40 +12,39 @@ const columns = [ }, { title: '身份', - dataIndex: 'key', + dataIndex: 'person_type_text', }, { title: '身份ID', - dataIndex: 'key', + dataIndex: 'person_code', }, { title: '提现方式', - dataIndex: 'key', + dataIndex: 'platform_type_text', }, { title: '卡号', - dataIndex: 'key', - slotName: 'key', + dataIndex: 'account', }, { title: '姓名', - dataIndex: 'key', + dataIndex: 'realname', }, { title: '身份证', - dataIndex: 'key', + dataIndex: 'id_card', }, { title: '电话', - dataIndex: 'key', + dataIndex: 'mobile', }, { title: '费率', - dataIndex: 'key', + dataIndex: 'ratio', }, { title: '添加日期', - dataIndex: 'key', + dataIndex: 'createtime', }, { title: '操作', @@ -104,7 +103,7 @@ const vo = reactive({ total: 0, }); -const {loading, pagination, initFetchData} = useTableQuery({ +const {loading, pagination, initFetchData, fetchData} = useTableQuery({ parameter: po, api: Api.admin.getWithdrawalList, callback: (data) => { @@ -129,8 +128,8 @@ const {loading, pagination, initFetchData} = useTableQuery({ :loading="loading" :columns="columns" class="flex-grow"> -