index.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!-- 会员中心-我的出入金 -->
  2. <template>
  3. <app-view>
  4. <template #header>
  5. <app-filter v-bind="{ selectList, buttonList }" />
  6. </template>
  7. <app-table :data="dataList" v-model:columns="columns" :loading="loading">
  8. <template #header>
  9. <app-auth-operation :menus="['deposit', 'withdraw']" @closed="getAccountInOutApply" />
  10. </template>
  11. <!-- 申请状态 -->
  12. <template #applystatus="{ value }">
  13. {{ getApplyStatusName(value) }}
  14. </template>
  15. <!-- 申请类型 -->
  16. <template #executetype="{ value }">
  17. {{ getExecuteTypeName(value) }}
  18. </template>
  19. <!-- 操作 -->
  20. <template #operate="{ row }">
  21. <app-auth-operation :menus="['cancel']" :options="{ selectedRow: row }"
  22. @closed="getAccountInOutApply" />
  23. </template>
  24. </app-table>
  25. </app-view>
  26. </template>
  27. <script lang="ts" setup>
  28. import { ElMessage } from 'element-plus'
  29. import { useAccountInOut } from '@/business/bank'
  30. import { getApplyStatusName, getExecuteTypeName } from '@/constants/bank'
  31. import AppTable from '@pc/components/base/table/index.vue'
  32. import AppFilter from '@pc/components/base/table-filter/index.vue'
  33. import AppAuthOperation from '@pc/components/modules/auth-operation/index.vue'
  34. const { dataList, columns, selectList, buttonList, loading, getAccountInOutApply } = useAccountInOut()
  35. getAccountInOutApply().catch((err) => ElMessage.error(err))
  36. </script>