bind.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <div v-loading="loading">
  3. <div class="white-box">
  4. <el-table :data="tableData" stripe style="width: 100%;" @selection-change="handleSelectionChange">
  5. <el-table-column label="会员编号" width="150">
  6. <template slot-scope="scope">
  7. {{scope.row.USER_NAME}}
  8. </template>
  9. </el-table-column>
  10. <el-table-column label="姓名" >
  11. <template slot-scope="scope">
  12. {{scope.row.REAL_NAME}}
  13. </template>
  14. </el-table-column>
  15. <el-table-column label="银行地区" width="200">
  16. <template slot-scope="scope">
  17. {{`${scope.row.BANK_PROVINCE_NAME} ${scope.row.BANK_CITY_NAME} ${scope.row.BANK_COUNTY_NAME}`}}
  18. </template>
  19. </el-table-column>
  20. <el-table-column label="开户行" width="110">
  21. <template slot-scope="scope">
  22. {{scope.row.OPEN_BANK_NAME}}
  23. </template>
  24. </el-table-column>
  25. <el-table-column label="银行帐号" width="200">
  26. <template slot-scope="scope">
  27. {{scope.row.BANK_NO}}
  28. </template>
  29. </el-table-column>
  30. <el-table-column label="主会员编号" width="150">
  31. <template slot-scope="scope">
  32. {{scope.row.MAIN_USER_NAME}}
  33. </template>
  34. </el-table-column>
  35. <el-table-column label="创建时间" width="200">
  36. <template slot-scope="scope">
  37. {{tool.formatDate(scope.row.CREATED_AT)}}
  38. </template>
  39. </el-table-column>
  40. <el-table-column label="修改时间" width="200">
  41. <template slot-scope="scope">
  42. {{tool.formatDate(scope.row.UPDATED_AT)}}
  43. </template>
  44. </el-table-column>
  45. <el-table-column fixed="right" label="操作" width="180">
  46. <template slot-scope="scope">
  47. <el-dropdown size="small" trigger="click">
  48. <el-button type="primary" size="small" @click.stop="">
  49. Action<i class="el-icon-arrow-down el-icon--right"></i>
  50. </el-button>
  51. <el-dropdown-menu slot="dropdown">
  52. <el-dropdown-item command="edit" @click.native="handleUpdate(scope.row)">编辑绑定关系</el-dropdown-item>
  53. </el-dropdown-menu>
  54. </el-dropdown>
  55. </template>
  56. </el-table-column>
  57. </el-table>
  58. </div>
  59. </div>
  60. </template>
  61. <script>
  62. import Vue from 'vue'
  63. import network from '@/utils/network'
  64. import tool from '@/utils/tool'
  65. import store from '@/utils/vuexStore'
  66. import LeoFilter from '@/components/Filter'
  67. import Pagination from '@/components/Pagination'
  68. export default {
  69. name: 'user_bind',
  70. components: {LeoFilter,Pagination},
  71. created () {
  72. },
  73. mounted () {
  74. this.getData()
  75. },
  76. data () {
  77. return {
  78. tableData: null,
  79. loading: true,
  80. multipleSelection: [],
  81. currentPage: 1,
  82. totalPages: 1,
  83. totalCount: 1,
  84. pageSize: 20,
  85. tool: tool,
  86. filterData: null,
  87. }
  88. },
  89. methods: {
  90. handleSelectionChange (val) {
  91. this.multipleSelection = val
  92. },
  93. handleCurrentChange (page) {
  94. this.getData(page, this.pageSize)
  95. },
  96. handleSizeChange (pageSize) {
  97. this.getData(this.currentPage, pageSize)
  98. },
  99. handleUpdate (row) {
  100. this.$router.push({path: `/user/bind-edit/${row.ID}`})
  101. },
  102. handleFilter (model) {
  103. this.filterData = model
  104. this.getData(1, this.pageSize)
  105. },
  106. getData (page, pageSize) {
  107. network.getPageData(this, 'user/bind', page, pageSize, this.filterData)
  108. },
  109. }
  110. }
  111. </script>
  112. <style scoped>
  113. </style>