| | |
| | | |
| | | |
| | | // 获取项目流程详情数据 |
| | | export const getProjectProcessDetail = (projectId, processId) => { |
| | | export const getProjectProcessDetail = (params) => { |
| | | return request({ |
| | | url: "/project-process/detail/" + projectId + "/" + processId, |
| | | method: "GET" |
| | | url: "/project-process/detail/", |
| | | method: "GET", |
| | | params: params |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | // 启动流程 |
| | | export const startProcess = (projectId, processDefId) => { |
| | | export const startProcess = (data) => { |
| | | return request({ |
| | | url: "/project-process/start/" + projectId + "/" + processDefId, |
| | | method: "POST" |
| | | url: "/project-process/start/", |
| | | method: "POST", |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | |
| | | default-expand-all |
| | | :tree-props="{children: 'children', hasChildren: 'hasChildren'}" |
| | | :show-overflow-tooltip="true"> |
| | | <el-table-column label="项目名称" align="center" prop="projectName" /> |
| | | <el-table-column label="项目名称" prop="projectName" /> |
| | | <el-table-column label="项目推进类型" align="center" prop="projectType"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_project_type" :value="scope.row.projectType"/> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-plus" |
| | | style="margin-right: 10px" |
| | | @click="handleadd(scope.row)" |
| | | >添加子工程</el-button> |
| | | <el-button |
| | |
| | | required: true, |
| | | type: String |
| | | }, |
| | | projectType: { |
| | | required: true, |
| | | type: String |
| | | } |
| | | }, |
| | | watch: { |
| | | // 监听回显值 |
| | |
| | | // 启动流程 |
| | | startProcess() { |
| | | this.startLoading = true |
| | | startProcess(this.projectInfo.projectId, this.selectProcessDefId).then(res => { |
| | | const data = { |
| | | projectId: this.projectInfo.projectId, |
| | | processDefId: this.selectProcessDefId, |
| | | projectType: this.projectType |
| | | } |
| | | startProcess(data).then(res => { |
| | | this.$message.success(res.msg); |
| | | this.startLoading = false |
| | | this.handleClose() |
| | |
| | | } |
| | | const data = { |
| | | projectId: this.projectInfo.projectId, |
| | | processDefId: this.selectProcessDefId |
| | | processDefId: this.selectProcessDefId, |
| | | projectType: this.projectType |
| | | } |
| | | this.setLoading = true |
| | | projectSetProcess(data).then(res => { |
| | |
| | | :now-process-ins-id="nowProcessInsId" |
| | | :project-info="projectRunFrom" |
| | | :process-list="processList" |
| | | :project-type="projectType" |
| | | @close="closeRunProcess"> |
| | | </RunProcess> |
| | | </div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | projectType: '', |
| | | projectRunFrom: { |
| | | projectId: null, |
| | | projectName: '' |
| | |
| | | } |
| | | this.nowProcessDefId = ""; |
| | | this.nowProcessInsId = ""; |
| | | this.projectType = "" |
| | | this.showRunProcess = false |
| | | this.getList() |
| | | }, |
| | |
| | | openOpProcess(row) { |
| | | this.nowProcessDefId = row.processDefId ? row.processDefId : ''; |
| | | this.nowProcessInsId = row.processInsId ? row.processInsId : ''; |
| | | if (isNaN(parseFloat(row.id))) { |
| | | this.projectType = "ENGINEERING" |
| | | } else { |
| | | this.projectType = "PROJECT" |
| | | } |
| | | // // 防止:id没变不触发监听 |
| | | // this.$refs.runProcess.setSelect(row.flowableProcessId); |
| | | this.projectRunFrom.projectId = row.id; |