ui-process-h5 1.0.21 → 1.0.23

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.
@@ -7797,7 +7797,7 @@ const ht = /* @__PURE__ */ function() {
7797
7797
  },
7798
7798
  id: {
7799
7799
  handler(e, t) {
7800
- this.formData.processBusinessKey = e;
7800
+ this.formData.id = e;
7801
7801
  },
7802
7802
  immediate: !0,
7803
7803
  deep: !0
@@ -7882,39 +7882,46 @@ const ht = /* @__PURE__ */ function() {
7882
7882
  );
7883
7883
  return;
7884
7884
  }
7885
- if (this.beforeFunction && await this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit)
7886
- this.request.post("/aws/pis/reactivate", {
7885
+ this.beforeFunction && await this.beforeFunction(), this.$nextTick(() => {
7886
+ this.handleSongshen();
7887
+ });
7888
+ },
7889
+ async handleSongshen() {
7890
+ this.handleTips("", !0, "loading"), this.resubmit ? (console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/reactivate", {
7891
+ processInstId: this.processId,
7892
+ isClearHistory: this.isClearHistory,
7893
+ reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
7894
+ multiNodeParticipant: this.multiNodeParticipant
7895
+ }).then((e) => {
7896
+ 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");
7897
+ }).catch((e) => {
7898
+ this.handleTips(e.msg, !0, "error");
7899
+ })) : (console.log("\u9001\u5BA1\u9996\u6B21\u63D0\u4EA4", this.formData), await this.request.post("/aws/pis/createAndStart", {
7900
+ title: this.title,
7901
+ processDefId: this.checkedItem.id,
7902
+ processBusinessKey: this.id,
7903
+ showType: this.showType,
7904
+ businessType: this.businessType,
7905
+ multiNodeParticipant: this.multiNodeParticipant,
7906
+ todoParameter: this.todoParameter
7907
+ }).then((e) => {
7908
+ 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", {
7887
7909
  processInstId: this.processId,
7888
- isClearHistory: this.formData.isClearHistory,
7910
+ isClearHistory: this.isClearHistory,
7889
7911
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
7890
7912
  multiNodeParticipant: this.multiNodeParticipant
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");
7913
+ }).then((t) => {
7914
+ t.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
7915
+ "\u63D0\u4EA4\u6210\u529F!",
7916
+ !1,
7917
+ "success"
7918
+ ), this.$emit("successFn")) : this.handleTips(t.msg, !0, "error");
7914
7919
  }).catch((t) => {
7915
7920
  this.handleTips(t.msg, !0, "error");
7916
- });
7917
- }
7921
+ }) : this.handleTips(e.msg, !0, "error");
7922
+ }).catch((e) => {
7923
+ this.handleTips(e.msg, !0, "error");
7924
+ }));
7918
7925
  },
7919
7926
  handleTips(e, t, s) {
7920
7927
  this.textTips = e, this.statusTips = t, this.typeTips = s, this.$refs.topTips.handleOpen();