diff --git a/src/pages/financial/consumptionDetails.vue b/src/pages/financial/consumptionDetails.vue index 0f1a271..0862d63 100644 --- a/src/pages/financial/consumptionDetails.vue +++ b/src/pages/financial/consumptionDetails.vue @@ -7,75 +7,49 @@ - - - - - + - + - + - + - + - + - + - - - - - - - - - - - - - + - + - + @@ -305,16 +279,16 @@ export default { methods: { isLocalSymbol, isLocals, + getColumnVisible(columnName) { + return !!this.dataList.find(item => item.name === columnName); + }, getUserRole() { getRoleMenu("ConsumptionDetails").then((res) => { - this.dataList.forEach((item) => { - res.data.forEach((items) => { - if (item.name == items) { - item.key = items; - } - // this.flag = true - }); - }); + if (res.data?.length > 0) { + this.dataList = this.dataList.filter(item => res.data.includes(item.name)); + } else { + this.dataList = []; + } }); }, // 设置默认日期,最大值为今天,最小值为去年今天
{{ '国家' }} - - - - {{ item.pkCountryName }} - -
{{ '会员编号' }} {{ item.memberCode }}
{{ '会员姓名' }} {{ item.memberName }}
{{ '钱包类型' }} {{ item.pkAccountVal }}
{{ '交易类型' }} {{ item.tradeTypeVal }}
{{ '历史余额' + `(${isLocalSymbol()})` }} {{ item.tradeBeforeBalance | toThousandthAndKeepDecimal }}
{{ '当前余额' + `(${isLocalSymbol()})` }} {{ item.tradeBalance | toThousandthAndKeepDecimal }}
{{ '交易金额' + `(${isLocalSymbol()})` }} {{ item.tradeAmount | toThousandthAndKeepDecimal }}
{{ '历史余额' + `(${isLocals()})` }}{{ item.settleTradeBeforeBalance }}
{{ '当前余额' + `(${isLocals()})` }}{{ item.settleTradeBalance }}
{{ '交易金额' + `(${isLocals()})` }}{{ item.settleTradeAmount }}
{{ '汇率' }} {{ item.exchangeRate }}
{{ '交易日期' }} {{ item.creationTime }}
{{ '单据编号' }} {{ item.sourceCode }}