| | |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | // 马股和美元的汇率 |
| | | exchangeRate: 4.59, |
| | | // 划转的金额 |
| | | formValue: "", |
| | | from: {}, |
| | | to: {}, |
| | | show: false, |
| | | actions: [], |
| | | toShow: false, |
| | | // 后端返回的数据列表比较多。在这里前端配置需要展示的 |
| | | filterActions: ["US", "MAS"], |
| | | // 选择的列表 |
| | | actions: [], |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | async getMoneyData() { |
| | | let res = await api.getMoney(); |
| | | if (res.status === 0) { |
| | | let array = res.data.filter((item) => item.accectType !== "ALL"); |
| | | let array = res.data.filter( |
| | | (item) => this.filterActions.indexOf(item.accectType) !== -1 |
| | | ); |
| | | array.map((item) => { |
| | | item.name = this.$t(item.accectType); |
| | | }); |