| | |
| | | this.queryParams.processInsId = this.$route.query.processInsId |
| | | this.queryParams.deployId = this.$route.query.deployId |
| | | this.queryParams.processName = this.$route.query.processName |
| | | if (this.$route.query.selectTabId) { |
| | | this.selectTabId = parseInt(this.$route.query.selectTabId) |
| | | } |
| | | sessionStorage.setItem("projectProDetail", JSON.stringify(this.queryParams)) |
| | | } else { |
| | | this.queryParams = params |
| | | } |
| | | this.loading = true |
| | | this.changeTab(this.selectTabId, this.transEventType(this.selectTabId)) |
| | | this.getProjectProcessInfo() |
| | | }, |
| | | methods: { |
| | | transEventType(selectTabId) { |
| | | if (selectTabId == 1) { |
| | | return "all" |
| | | } else if (selectTabId == 2) { |
| | | return "todo" |
| | | } else if (selectTabId == 3) { |
| | | return "wait" |
| | | } else if (selectTabId == 4) { |
| | | return "remaining" |
| | | } else if (selectTabId == 5) { |
| | | return "timely" |
| | | } else if (selectTabId == 6) { |
| | | return "overtime" |
| | | } else if (selectTabId == 8) { |
| | | return "urge" |
| | | } |
| | | }, |
| | | submitSupervise() { |
| | | this.$refs["superviseForm"].validate(valid => { |
| | | if (valid) { |
| | |
| | | } |
| | | getProjectProcessDetail(param).then(res => { |
| | | this.detailData = res.data |
| | | this.taskList = res.taskList |
| | | this.total = res.total |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | changeTab(id, event) { |
| | | let beforeId = this.selectTabId |
| | | this.selectTabId = id |
| | | this.queryParams.taskType = event |
| | | this.queryParams.currentPage = 1; |
| | | if (beforeId !== id) { |
| | | this.getList() |
| | | } |
| | | this.getList() |
| | | } |
| | | } |
| | | } |