Prechádzať zdrojové kódy

Revert "暂存多开问题"

This reverts commit 1475f4bc119644f11a56c866e57cdf8e1fafaf6f.
shenqilong 7 mesiacov pred
rodič
commit
e188cc561a
1 zmenil súbory, kde vykonal 41 pridanie a 50 odobranie
  1. 41 50
      src/business/platform/bpmn/form/action.js

+ 41 - 50
src/business/platform/bpmn/form/action.js

@@ -209,31 +209,27 @@ export default {
         taskId: this.taskId,
         taskId: this.taskId,
         data: JSON.stringify(replaceFormData),
         data: JSON.stringify(replaceFormData),
         opinion
         opinion
-      })
-        .then((response) => {
-          // 后置事件
-          this.afterScript(
-            this.actionName,
-            {
-              data: response.data,
-              variables: response.variables
-            },
-            () => {
-              loading.close()
-              this.$alert(`已保存表单内容!`, {
-                showClose: false
+      }).then((response) => {
+        // 后置事件
+        this.afterScript(
+          this.actionName,
+          {
+            data: response.data,
+            variables: response.variables
+          },
+          () => {
+            loading.close()
+            this.$alert(`已保存表单内容!`, {
+              showClose: false
+            })
+              .then(() => {
+                // 回调上个页面
+                // this.callbackPage()
               })
               })
-                .then(() => {
-                  // 回调上个页面
-                  // this.callbackPage()
-                })
-                .catch(() => {})
-            }
-          )
-        })
-        .catch(() => {
-          loading.close()
-        })
+              .catch(() => {})
+          }
+        )
+      })
     },
     },
     /**
     /**
      * 处理启动流程
      * 处理启动流程
@@ -337,33 +333,28 @@ export default {
       })
       })
       saveDraft(jsonData)
       saveDraft(jsonData)
         .then((response) => {
         .then((response) => {
-          if (response.state === 103) {
-            loading.close()
-            this.$message.error(response.message)
-          } else {
-            const { proInstId, bizKey } = response.variables || {}
-            this.proInstId = proInstId
-            this.bizKey = bizKey
-            // 后置事件
-            this.afterScript(
-              this.actionName,
-              {
-                data: response.data,
-                variables: response.variables
-              },
-              () => {
-                loading.close()
-                this.$alert(`保存成功!`, {
-                  showClose: false
+          const { proInstId, bizKey } = response.variables || {}
+          this.proInstId = proInstId
+          this.bizKey = bizKey
+          // 后置事件
+          this.afterScript(
+            this.actionName,
+            {
+              data: response.data,
+              variables: response.variables
+            },
+            () => {
+              loading.close()
+              this.$alert(`保存成功!`, {
+                showClose: false
+              })
+                .then(() => {
+                  // 回调上个页面
+                  // this.callbackPage()
                 })
                 })
-                  .then(() => {
-                    // 回调上个页面
-                    // this.callbackPage()
-                  })
-                  .catch(() => {})
-              }
-            )
-          }
+                .catch(() => {})
+            }
+          )
         })
         })
         .catch(() => {
         .catch(() => {
           loading.close()
           loading.close()