ui-process-h5 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7882,33 +7882,39 @@ const ht = /* @__PURE__ */ function() {
7882
7882
  );
7883
7883
  return;
7884
7884
  }
7885
- this.beforeFunction && await this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit ? await this.request.post("/aws/pis/reactivate", {
7886
- processInstId: this.processId,
7887
- isClearHistory: this.formData.isClearHistory,
7888
- reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
7889
- multiNodeParticipant: this.multiNodeParticipant
7890
- }).then((e) => {
7891
- e.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : this.handleTips(e.msg, !0, "error");
7892
- }).catch((e) => {
7893
- this.handleTips(e.msg, !0, "error");
7894
- }) : (console.log("cccc:::::", this.formData), this.formData.processDefId = this.checkedItem.id, this.formData.multiNodeParticipant = this.multiNodeParticipant, await this.request.post("/aws/pis/createAndStart", this.formData).then((e) => {
7895
- e.code === 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : e.code == 499 ? this.request.post("/aws/pis/reactivate", {
7885
+ if (this.beforeFunction && await this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit)
7886
+ this.request.post("/aws/pis/reactivate", {
7896
7887
  processInstId: this.processId,
7897
7888
  isClearHistory: this.formData.isClearHistory,
7898
7889
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
7899
7890
  multiNodeParticipant: this.multiNodeParticipant
7900
- }).then((t) => {
7901
- t.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
7902
- "\u63D0\u4EA4\u6210\u529F!",
7903
- !1,
7904
- "success"
7905
- ), this.$emit("successFn")) : this.handleTips(t.msg, !0, "error");
7891
+ }).then((e) => {
7892
+ e.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : this.handleTips(e.msg, !0, "error");
7893
+ }).catch((e) => {
7894
+ this.handleTips(e.msg, !0, "error");
7895
+ });
7896
+ else {
7897
+ this.formData.processDefId = this.checkedItem.id, this.formData.multiNodeParticipant = this.multiNodeParticipant;
7898
+ let e = this.formData;
7899
+ console.log("cccc:::::", this.formData, e), this.request.post("/aws/pis/createAndStart", e).then((t) => {
7900
+ t.code === 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : t.code == 499 ? this.request.post("/aws/pis/reactivate", {
7901
+ processInstId: this.processId,
7902
+ isClearHistory: this.formData.isClearHistory,
7903
+ reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
7904
+ multiNodeParticipant: this.multiNodeParticipant
7905
+ }).then((s) => {
7906
+ s.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
7907
+ "\u63D0\u4EA4\u6210\u529F!",
7908
+ !1,
7909
+ "success"
7910
+ ), this.$emit("successFn")) : this.handleTips(s.msg, !0, "error");
7911
+ }).catch((s) => {
7912
+ this.handleTips(s.msg, !0, "error");
7913
+ }) : this.handleTips(t.msg, !0, "error");
7906
7914
  }).catch((t) => {
7907
7915
  this.handleTips(t.msg, !0, "error");
7908
- }) : this.handleTips(e.msg, !0, "error");
7909
- }).catch((e) => {
7910
- this.handleTips(e.msg, !0, "error");
7911
- }));
7916
+ });
7917
+ }
7912
7918
  },
7913
7919
  handleTips(e, t, s) {
7914
7920
  this.textTips = e, this.statusTips = t, this.typeTips = s, this.$refs.topTips.handleOpen();