Explorar o código

bug-1317 表单暂存后,直接提交,列表出现两条数据

cfort %!s(int64=2) %!d(string=hai) anos
pai
achega
1719fa66cf
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/business/platform/bpmn/form/action.js

+ 4 - 0
src/business/platform/bpmn/form/action.js

@@ -208,6 +208,10 @@ export default {
         saveStartFlow (params = {}) {
             const formData = this.getFormData()
             if (!formData) return
+            // 暂存后直接提交,已有数据ID
+            if (this.$utils.isNotEmpty(this.bizKey)) {
+                formData.id = this.bizKey || ''
+            }
             const jsonData = {
                 defId: this.defId,
                 version: this.version || '0',