personalSetting.js 733 B

1234567891011121314151617181920212223242526272829303132333435
  1. export default {
  2. data() {
  3. return {
  4. pagination: {
  5. page: 1,
  6. pageSize: 30,
  7. total: 0,
  8. },
  9. selectedRows: [],
  10. pageSizes: [10, 20, 30, 50, 100],
  11. headerStyle: {
  12. background: '#fafafa',
  13. },
  14. tableNoDataImg: require('@/assets/nodata_images/table-no-data.png'),
  15. }
  16. },
  17. computed: {
  18. tableHeight() {
  19. return this.$baseTableHeight(-70)
  20. },
  21. },
  22. methods: {
  23. selectionChange(selection) {
  24. this.selectedRows = selection
  25. },
  26. handleSizeChange(size) {
  27. this.pagination.pageSize = size
  28. this.search()
  29. },
  30. handleCurrentChange(currentPage) {
  31. this.pagination.page = currentPage
  32. this.search('pageChange')
  33. },
  34. },
  35. }