| | |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | :disabled="scope.row.processIsFinished === 'finished' || scope.row.processIsFinished ==='withdraw' " |
| | | @click.stop="handleCancel(scope.row)">撤 销 |
| | | </el-button> |
| | | <el-button type="text" |
| | |
| | | </template> |
| | | <template slot-scope="{row}" |
| | | slot="processIsFinished"> |
| | | <el-tag>{{row.processIsFinished==='finished' ? '已完成' : '未完成'}}</el-tag> |
| | | <el-tag>{{row.processIsFinished==='finished' ? '已完成' : row.processIsFinished ==='withdraw'?'自行撤销':'未完成'}}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <flow-design is-dialog :is-display.sync="flowBox" :process-instance-id="processInstanceId"></flow-design> |
| | |
| | | }); |
| | | }, |
| | | handleCancel(row){ |
| | | console.log(row) |
| | | withdrawTask(this.userInfo.user_id).then(res=>{ |
| | | this.$message(res.data.msg) |
| | | withdrawTask(row).then(res=>{ |
| | | if (res.data.code == 200){ |
| | | this.$message.success(res.data.msg) |
| | | }else { |
| | | this.$message.error(res.data.msg) |
| | | } |
| | | |
| | | this.onLoad(this.page,this.query) |
| | | }) |
| | | } |
| | | } |