| | |
| | | infomation: {} |
| | | }, |
| | | workType: this.$route.params.workType, |
| | | keyword: "" |
| | | keyword: "", |
| | | params: {} |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | var paramsData = sessionStorage.getItem("paramsData") |
| | | let params = {} |
| | | if (paramsData) { |
| | | params = JSON.parse(sessionStorage.getItem("paramsData")) |
| | | } else { |
| | | params = this.$route.params |
| | | sessionStorage.setItem("paramsData", JSON.stringify(params)) |
| | | } |
| | | this.params = params |
| | | this.getData() |
| | | console.log(this.$route.params.workType) |
| | | // console.log(this.$route.params.workType) |
| | | }, |
| | | // 页面销毁之前 |
| | | beforeDestroy() { |
| | | sessionStorage.removeItem("paramsData") |
| | | }, |
| | | methods: { |
| | | setTable() { |
| | |
| | | async getData() { |
| | | await getOperation({ |
| | | number: this.keyword, |
| | | operationTypeId: this.$route.params.id, |
| | | operationTypeId: this.params.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | sourceNumber: this.keyword |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | | console.log(res.data) |
| | | if (res.code === 200) { |