| | |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-refresh" |
| | | v-if="permission.flow_manager_state" |
| | | @click.stop="handleState(scope.row,scope.index)">变更状态 |
| | | :style="{color: scope.row.suspensionState === 1 ? '#67C23A' : '#F56C6C'}" |
| | | v-if="permissionList.state" |
| | | @click.stop="handleDoState(scope.row, scope.index)"> |
| | | {{ scope.row.suspensionState === 1 ? '激活' : '挂起' }} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | v-if="permission.flow_manager_image" |
| | | v-if="permissionList.image" |
| | | @click.stop="handleImage(scope.row,scope.index)">流程图 |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | v-if="permission.flow_manager_remove" |
| | | v-if="permissionList.delBtn" |
| | | @click.stop="handleSlotDelete(scope.row,scope.index)">删除 |
| | | </el-button> |
| | | </template> |
| | |
| | | }], |
| | | option: { |
| | | height: 'auto', |
| | | calcHeight: 30, |
| | | calcHeight: 20, |
| | | columnBtn:false, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | delBtn: this.vaildData(this.permission.flow_manager_remove, false), |
| | | state:this.vaildData(this.permission.flow_manager.flow_manager_state, false), |
| | | image:this.vaildData(this.permission.flow_manager.flow_manager_image, false), |
| | | delBtn: this.vaildData(this.permission.flow_manager.flow_manager_delete, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | 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({ |