| | |
| | | </template> |
| | | <script> |
| | | import { |
| | | SettingqueryAll, |
| | | queryAllPage, |
| | | stockupdata, |
| | | stockadd, |
| | | stockdelete |
| | |
| | | getinit() { |
| | | this.getqueryParam() |
| | | this.pagination.current = 1 |
| | | this.pagination.pageSize = this.queryParam.pageSize |
| | | this.getlist() |
| | | }, |
| | | getlist() { |
| | | this.loading = true |
| | | SettingqueryAll(this.queryParam).then((res) => { |
| | | this.datalist = res.data |
| | | queryAllPage(this.queryParam).then((res) => { |
| | | this.datalist = res.data.records |
| | | this.pagination.total = res.data.total |
| | | this.loading = false |
| | | }) |
| | |
| | | onPageChange(page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.pagination.current = page |
| | | if (pageSize) { |
| | | this.queryParam.pageSize = pageSize |
| | | this.pagination.pageSize = pageSize |
| | | } |
| | | this.getlist() |
| | | }, |
| | | onSizeChange(current, pageSize) { |
| | | this.queryParam.pageNum = current |
| | | this.pagination.current = page |
| | | this.queryParam.pageSize = pageSize |
| | | this.pagination.current = current |
| | | this.pagination.pageSize = pageSize |
| | | this.getlist() |
| | | }, |
| | | }, |