1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| <script>
| import Pagination from '@/components/common/Paginations'
| import QueryForm from '@/components/common/QueryForm'
| export default {
| name: 'BasePageTemp',
| components: {
| Pagination,
| QueryForm,
| },
| data() {
| return {
| loading: false,
| pagination: {
| pageSize: 10,
| page: 1,
| total: 0
| },
| filters: {},
| list: [],
| total: 0,
| }
| },
| methods: {
| getList() { },
| clear() {
| this.filters = {}
| this.pagination.pageSize = 10
| this.pagination.page = 1
| console.log('-----');
|
| this.getList()
| },
| handleSizeChange(capacity) {
| this.pagination.pageSize = capacity
| this.getList()
| }
| }
| }
| </script>
|
|