| | |
| | | this.total = res.total |
| | | }) |
| | | }, |
| | | isProject(id) { |
| | | const numericPattern = /^\d+(\.\d+)?$/; |
| | | return numericPattern.test(id) |
| | | }, |
| | | // 查询详情 |
| | | getProjectProcessInfo() { |
| | | getProjectProcessDetail(this.queryParams.projectId, this.queryParams.processDefId).then(res => { |
| | | const projectType = this.isProject(this.queryParams.projectId) ? "PROJECT" : "ENGINEERING" |
| | | const param = { |
| | | projectId: this.queryParams.projectId, |
| | | processDefId: this.queryParams.processDefId, |
| | | projectType: projectType |
| | | } |
| | | getProjectProcessDetail(param).then(res => { |
| | | this.detailData = res.data |
| | | this.taskList = res.taskList |
| | | this.total = res.total |