| | |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pn" |
| | | :limit.sync="queryParams.ps" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="handlePagination" |
| | | /> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/Pagination' |
| | | |
| | | export default { |
| | | name: 'TimelyRateDialog', |
| | | components: { |
| | | Pagination |
| | | }, |
| | | |
| | | dicts: ['sys_yujing', 'sys_suggest'], |
| | | props: { |
| | | visible: { |
| | |
| | | queryParams: { |
| | | type: Object, |
| | | default: () => ({ |
| | | pn: 1, |
| | | ps: 10 |
| | | pageNum: 1, |
| | | pageSize: 10 |
| | | }) |
| | | } |
| | | }, |
| | |
| | | |
| | | resetQuery() { |
| | | this.localQueryParams = { |
| | | pn: 1, |
| | | ps: 10, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | name: '', |
| | | leavediagname: '' |
| | | } |
| | |
| | | }, |
| | | |
| | | handlePagination(pagination) { |
| | | this.localQueryParams.pn = pagination.page |
| | | this.localQueryParams.ps = pagination.limit |
| | | this.localQueryParams.pageNum = pagination.page |
| | | this.localQueryParams.pageSize = pagination.limit |
| | | console.log(pagination,'pagination'); |
| | | console.log(this.localQueryParams,'this.localQueryParams'); |
| | | |
| | | this.$emit('search', this.localQueryParams) |
| | | }, |
| | | |