| | |
| | | :total="total" |
| | | :page.sync="queryParams.currentPage" |
| | | :limit.sync="queryParams.pageSize" |
| | | page-sizes="8" |
| | | :page-sizes="[8]" |
| | | @pagination="getList" |
| | | /> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="danger" @click="startProcess" :disabled="(nowProcessInsId !== '') || (selectProcessDefId === '')">启动流程</el-button> |
| | | <el-button type="primary" @click="changeProcess" :disabled="((nowProcessDefId === selectProcessDefId) && nowProcessInsId !== '') || selectProcessDefId === '' || nowProcessInsId === ''">流程变更</el-button> |
| | | <el-button type="danger" v-loading="startLoading" @click="startProcess" :disabled="(nowProcessInsId !== '') || (selectProcessDefId === '')">启动流程</el-button> |
| | | <el-button type="primary" v-loading="setLoading" @click="changeProcess" :disabled="((nowProcessDefId === selectProcessDefId) && nowProcessInsId !== '') || selectProcessDefId === '' || nowProcessInsId === ''">流程变更</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | required: true, // 项目id、名称 |
| | | type: Object |
| | | }, |
| | | // processList: { // 流程列表 |
| | | // required: true, |
| | | // type: Array |
| | | // }, |
| | | nowProcessDefId: { // 当前项目绑定的定义id |
| | | required: true, |
| | | type: String |
| | |
| | | required: true, |
| | | type: String |
| | | }, |
| | | projectType: { |
| | | required: true, |
| | | type: String |
| | | } |
| | | }, |
| | | watch: { |
| | | // 监听回显值 |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | startLoading: false, |
| | | setLoading: false, |
| | | processList: [], |
| | | total:0, |
| | | queryParams: { |
| | |
| | | }, |
| | | // 启动流程 |
| | | startProcess() { |
| | | startProcess(this.projectInfo.projectId, this.selectProcessDefId).then(res => { |
| | | this.startLoading = true |
| | | 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 => { |
| | | this.$message.success("变更成功") |
| | | this.setLoading = false |
| | | this.handleClose() |
| | | }) |
| | | }, |