| | |
| | | }, |
| | | sizeChange(val) { |
| | | this.page.size = val |
| | | this.selectList() |
| | | this.selectList('page') |
| | | }, |
| | | currentChange(val) { |
| | | this.page.current = val |
| | | this.selectList() |
| | | this.selectList('page') |
| | | }, |
| | | selectList() { |
| | | selectList(val) { |
| | | this.loading = true |
| | | if(val===undefined){ |
| | | this.page.current = 1; |
| | | } |
| | | if (this.data.isPage != undefined && this.data.isPage != true) { |
| | | this.page = { |
| | | current: -1, |
| | |
| | | this.total = res.data.body.total |
| | | this.tableHead = res.data.head |
| | | this.tableData = res.data.body.records |
| | | // console.log(JSON.stringify(this.tableHead)+"---------"+JSON.stringify(this.tableData)) |
| | | for (var a in this.data.selectField) { |
| | | if (this.data.selectField[a].choose == true) { |
| | | this.tableData.map(b => { |