index.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <div class="">
  3. <toolbar @on-filter="filterData" @on-reset="filterData" />
  4. <base-table
  5. class="m-10 bg-w p-20 br-10"
  6. :columns="columns"
  7. :items="items"
  8. :pagination="pagination"
  9. :page-change="pageChange"
  10. />
  11. </div>
  12. </template>
  13. <script>
  14. import toolbar from './toolbar';
  15. import mxFilterList from '@/mixins/filterList';
  16. export default {
  17. name: 'PhotoVerify',
  18. components: { toolbar },
  19. mixins: [
  20. mxFilterList({
  21. // fetchList: iGetList // 在下方data再声明一个 fetchList: iGetList 同等效果
  22. })
  23. ],
  24. data() {
  25. return {
  26. columns: [
  27. {
  28. key: 'photo',
  29. name: '照片ID',
  30. width: '160'
  31. },
  32. {
  33. key: 'region',
  34. name: '图片',
  35. width: '180'
  36. },
  37. {
  38. key: 'region',
  39. name: '上传者',
  40. width: '120'
  41. },
  42. {
  43. key: 'region',
  44. name: '上传位置',
  45. minWidth: '180'
  46. },
  47. {
  48. key: 'region',
  49. name: '上传时间',
  50. width: '140'
  51. },
  52. {
  53. key: 'region',
  54. name: '状态',
  55. width: '80'
  56. },
  57. {
  58. key: 'action',
  59. name: '操作',
  60. minWidth: '180'
  61. }
  62. ]
  63. };
  64. }
  65. };
  66. </script>
  67. <style type="scss" scoped></style>