| | |
| | | query: {}, |
| | | search:{}, |
| | | loading: true, |
| | | activeClass: 0, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | activeClass: 0, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({ query: {} }); |
| | | this.activeClass=0; |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | |
| | | let values = { |
| | | ...params, |
| | | }; |
| | | |
| | | debugger; |
| | | if (this.$route.query.status!=undefined && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) { |
| | | if (this.$route.query.type != undefined) { |
| | | this.activeClass = this.$route.query.status; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | } else { |
| | | this.activeClass = 0; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | | type:this.$route.query.status |
| | | }; |
| | | } |
| | | this.activeClass =4; |
| | | }else if(this.$route.query.type != undefined){ |
| | | params = { |
| | | type: this.$route.query.type, |
| | | begTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | this.activeClass =4; |
| | | }else{ |
| | | params = { |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | params = { |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | } |
| | | |
| | | if(this.activeClass == 0 && this.query.dateTime==null){ |
| | | params = { |
| | | status:this.activeClass, |
| | | } |
| | | } |
| | | |
| | | if (dateTime) { |
| | | this.activeClass =4; |
| | | values = { |
| | | ...params, |
| | | begTime: dateTime[0], |