| | |
| | | } |
| | | ] |
| | | }, |
| | | data: [] |
| | | data: [], |
| | | isActive: false, |
| | | recorder: null, |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | const { dateTime } = this.query; |
| | | let values = { |
| | | ...params, |
| | | }; |
| | | |
| | | if (this.$route.query.status && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) { |
| | | if (this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type == "" ) { |
| | | if (this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ) { |
| | | this.activeClass = this.$route.query.status; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | |
| | | type:this.$route.query.status |
| | | }; |
| | | } |
| | | }else if(this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ){ |
| | | params = { |
| | | type: this.$route.query.type, |
| | | beginTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | }else{ |
| | | params = { |
| | | status:this.$route.query.status, |
| | |
| | | } |
| | | } |
| | | |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | if (dateTime) { |
| | | values = { |
| | | ...params, |
| | | begTime: dateTime[0], |
| | | endTime: dateTime[1], |
| | | ...this.query, |
| | | }; |
| | | values.dateTime = null; |
| | | } else { |
| | | values = { |
| | | ...params, |
| | | ...this.query, |
| | | }; |
| | | } |
| | | |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize,values).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |