| | |
| | | }; |
| | | }, |
| | | watch: { |
| | | defaultTaskType(n) { |
| | | this.query['type'] = n |
| | | let params = { |
| | | type: n |
| | | } |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | defaultTaskType: { |
| | | handler(n) { |
| | | this.query = {} |
| | | this.query['type'] = n |
| | | let params = { |
| | | type: n |
| | | } |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | immediate: true, |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | params.type = this.defaultTaskType |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | </style> |
| | | <style lang="scss" scoped></style> |