| | |
| | | size="small" |
| | | icon="el-icon-refresh" |
| | | v-if="permissionList.state" |
| | | @click.stop="handleState(scope.row,scope.index)">变更状态 |
| | | @click.stop="handleDoState(scope.row,scope.index)">{{scope.row.suspensionState===1?'激活':'挂起'}} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | |
| | | this.stateBox = true; |
| | | this.selectionId = row.id; |
| | | }, |
| | | handleDoState() { |
| | | if (!this.flowState) { |
| | | this.$message({ |
| | | type: "warn", |
| | | message: "请先选择流程状态!" |
| | | }); |
| | | return; |
| | | } |
| | | changeState({processId: this.selectionId, state: this.flowState}).then(res => { |
| | | handleDoState(row) { |
| | | // if (!this.flowState) { |
| | | // this.$message({ |
| | | // type: "warn", |
| | | // message: "请先选择流程状态!" |
| | | // }); |
| | | // return; |
| | | // } |
| | | changeState({processId: row.id, state: (row.suspensionState === 1 ? 'suspend' : 'active')}).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.$message({ |