index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="">
  3. <toolbar @on-filter="filterData" @on-reset="filterData" />
  4. <div class="m-10 bg-w p-20 br-10">
  5. <el-button type="primary" icon="el-icon-plus" @click="handleSubmit"
  6. >新增</el-button
  7. >
  8. <base-table
  9. :columns="columns"
  10. :items="items"
  11. :pagination="pagination"
  12. :page-change="pageChange"
  13. />
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. import toolbar from './toolbar';
  19. import mxFilterList from '@/mixins/filterList';
  20. export default {
  21. name: 'SceneList',
  22. components: { toolbar },
  23. mixins: [
  24. mxFilterList({
  25. // fetchList: iGetList // 在下方data再声明一个 fetchList: iGetList 同等效果
  26. })
  27. ],
  28. data() {
  29. return {
  30. columns: [
  31. {
  32. key: 'photo',
  33. name: 'ID',
  34. width: '160'
  35. },
  36. {
  37. key: 'region',
  38. name: '机构名称',
  39. width: '180'
  40. },
  41. {
  42. key: 'region',
  43. name: 'Logo',
  44. width: '120'
  45. },
  46. {
  47. key: 'region',
  48. name: '所在地区',
  49. minWidth: '180'
  50. },
  51. {
  52. key: 'region',
  53. name: '机构类型',
  54. width: '180'
  55. },
  56. {
  57. key: 'region',
  58. name: '申请人',
  59. width: '180'
  60. },
  61. {
  62. key: 'region',
  63. name: '手机号',
  64. width: '180'
  65. },
  66. {
  67. key: 'region',
  68. name: '状态',
  69. minWidth: '180'
  70. },
  71. {
  72. key: 'action',
  73. name: '操作',
  74. minWidth: '180'
  75. }
  76. ]
  77. };
  78. }
  79. };
  80. </script>
  81. <style type="scss" scoped></style>