| | |
| | | pageState: 'add', |
| | | invalidReason: '', |
| | | slectRow: {}, |
| | | title: '' |
| | | title: '', |
| | | searchData: { |
| | | isInvalid: 0 |
| | | } |
| | | } |
| | | }, |
| | | |
| | |
| | | }) |
| | | }, |
| | | handleSearch(obj) { |
| | | this.searchData.isInvalid = 0 |
| | | if (obj) { |
| | | this.searchData = obj |
| | | } |
| | | this.$request({ |
| | | url: '/allocation/page', |
| | | method: 'post', |
| | | data: { |
| | | ...obj, |
| | | ...this.searchData, |
| | | 'page': this.pagination |
| | | } |
| | | }).then((res) => { |
| | |
| | | this.pagination.PageSize = val |
| | | // 注意:在改变每页显示的条数时,要将页码显示到第一页 |
| | | this.pagination.currentPage = 1 |
| | | this.handleSearch() |
| | | }, |
| | | // 显示第几页 |
| | | handleCurrentChange(val) { |
| | | // 改变默认的页数 |
| | | this.pagination.currentPage = val |
| | | this.handleSearch() |
| | | // console.log(val) |
| | | }, |
| | | openWorkOrdinDialog(row, type) { |