Przeglądaj źródła

给系统form增加退回相关字段

wangxiaoyi 1 rok temu
rodzic
commit
cc8de0598f
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5 4
      src/business/platform/bpmn/form/action.js

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

@@ -361,25 +361,25 @@ export default {
                 })
             } else if (actionName === 'rejectToPrevious') {
                 rejectToPrevious(params).then(response => {
-                    this.handleResponse(actionName, loading, response)
+                    this.handleResponse(actionName, loading, response, params)
                 }).catch(() => {
                     loading.close()
                 })
             } else if (actionName === 'rejectToStart') {
                 rejectToStarter(params).then(response => {
-                    this.handleResponse(actionName, loading, response)
+                    this.handleResponse(actionName, loading, response, params)
                 }).catch(() => {
                     loading.close()
                 })
             } else if (actionName === 'reject') {
                 reject(params).then(response => {
-                    this.handleResponse(actionName, loading, response)
+                    this.handleResponse(actionName, loading, response, params)
                 }).catch(() => {
                     loading.close()
                 })
             }
         },
-        handleResponse (actionName, loading, response) {
+        handleResponse (actionName, loading, response, params) {
             // 关闭窗口
             if (actionName === 'agree' || actionName === 'oppose' || actionName === 'abandon') {
                 this.agreeDialogVisible = false
@@ -389,6 +389,7 @@ export default {
             if (actionName === 'agree') {
                 // this.createSnapshot()
             }
+            this.getFormEL().rejectParams = params || {}
             // 后置事件
             this.afterScript(this.actionName, {
                 data: response.data,