| | |
| | | // 获取项目流程详情数据 |
| | | export const getProjectProcessDetail = (params) => { |
| | | return request({ |
| | | url: "/project-process/detail/", |
| | | method: "GET", |
| | | params: params |
| | | url: "/project-process/detail", |
| | | method: "POST", |
| | | data: params |
| | | }) |
| | | } |
| | | |
| | |
| | | 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 |