Commit 3310b766bc8fb31201e9f40c2c35dcf086a35600

Authored by YunaiV
1 parent ff1379d4

【修复】工作流程-流程管理-流程模型,在发布完流程后,点击激活状态的按钮,显示“是否确认挂起流程名字为‘xxx’‘的数据项“,点击取消,前端显示的激活状态改变,但是数据库没有更新,报错

yudao-server/pom.xml
... ... @@ -68,11 +68,11 @@
68 68 <!-- <version>${revision}</version>-->
69 69 <!-- </dependency>-->
70 70 <!-- 工作流 -->
71   -<!-- <dependency>-->
72   -<!-- <groupId>cn.iocoder.boot</groupId>-->
73   -<!-- <artifactId>yudao-module-bpm-biz</artifactId>-->
74   -<!-- <version>${revision}</version>-->
75   -<!-- </dependency>-->
  71 + <dependency>
  72 + <groupId>cn.iocoder.boot</groupId>
  73 + <artifactId>yudao-module-bpm-biz</artifactId>
  74 + <version>${revision}</version>
  75 + </dependency>
76 76 <dependency>
77 77 <groupId>cn.iocoder.boot</groupId>
78 78 <artifactId>yudao-spring-boot-starter-biz-error-code</artifactId>
... ...
yudao-ui-admin/src/views/bpm/model/index.vue
... ... @@ -489,7 +489,10 @@ export default {
489 489 }).then(() => {
490 490 this.getList();
491 491 this.$modal.msgSuccess(statusState + "成功");
492   - }).catch(() => {});
  492 + }).catch(() => {
  493 + // 取消后,进行恢复按钮
  494 + row.processDefinition.suspensionState = (state === 1 ? 2 : 1);
  495 + });
493 496 },
494 497 /** 导入按钮操作 */
495 498 handleImport() {
... ...