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 }}