From eb73820c22a45aa764a38f795d71288b154ba735 Mon Sep 17 00:00:00 2001 From: woody Date: Fri, 16 May 2025 17:33:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(transferDetails):=20=E8=BD=AC=E8=B4=A6?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E9=A1=B5=E9=9D=A2=E7=A7=BB=E9=99=A4=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96=E5=AD=97=E6=AE=B5=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/financial/transferDetails.vue | 75 ++++++++----------------- 1 file changed, 22 insertions(+), 53 deletions(-) diff --git a/src/pages/financial/transferDetails.vue b/src/pages/financial/transferDetails.vue index bcfb43b..42b4437 100644 --- a/src/pages/financial/transferDetails.vue +++ b/src/pages/financial/transferDetails.vue @@ -7,94 +7,62 @@ - - - - - + - + - + - + - - - - - + - - - - - + - + - + - + - - - - - + - + - + - + @@ -354,16 +322,17 @@ export default { methods: { isLocalSymbol, isLocals, + getColumnVisible(columnName) { + return !!this.dataList.find(item => item.name === columnName); + }, getUserRole() { getRoleMenu("TransferDetails").then((res) => { - this.dataList.forEach((item) => { - res.data.forEach((items) => { - if (item.name == items) { - item.key = items; - } - // this.flag = true - }); - }); + const result = res.data || [] + if (result.length > 0) { + this.dataList = this.dataList.filter(item => result.includes(item.name)); + } else { + this.dataList = []; + } }); }, // 设置默认日期,最大值为今天,最小值为去年今天
{{ '国家' }} - - - - {{ item.pkCountryName }} - -
{{ '转出编号' }} {{ item.memberCode }}
{{ '转出姓名' }} {{ item.memberName }}
{{ '转出钱包' }} {{ item.pkAccountVal }}
{{ '转账金额' + `(${isLocalSymbol()})` }} {{ item.transferMoney | toThousandthAndKeepDecimal }}
{{ '转账金额' + `(${isLocals()})` }} - {{ item.settleTransferMoney | toThousandthAndKeepDecimal }} -
{{ '转账手续费' + `(${isLocalSymbol()})` }} {{ item.serviceCharge | toThousandthAndKeepDecimal }}
{{ '转账手续费' + `(${isLocals()})` }} - {{ item.settleServiceCharge | toThousandthAndKeepDecimal }} -
{{ '接收编号' }} {{ item.toMemberCode }}
{{ '接收姓名' }} {{ item.toMemberName }}
{{ '接收钱包' }} {{ item.pkToAccountVal }}
{{ '接收金额' + `(${isLocalSymbol()})` }} {{ item.issuedAmount | toThousandthAndKeepDecimal }}
{{ '接收金额' + `(${isLocals()})` }} - {{ item.settleIssuedAmount | toThousandthAndKeepDecimal }} -
{{ '汇率' }} {{ item.exchangeRate }}
{{ '转账日期' }} {{ item.creationTime }}
{{ '交易备注' }} {{ item.remarks }}
{{ '单据编号' }} {{ item.transferCode }}