ui-process-h5 1.1.0 → 1.1.2

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.
@@ -13064,53 +13064,51 @@ const cb = /* @__PURE__ */ function() {
13064
13064
  );
13065
13065
  return;
13066
13066
  }
13067
- this.beforeFunction && await this.beforeFunction(), this.manual || await this.handleSongshen();
13067
+ this.beforeFunction && await this.beforeFunction(), this.manual || this.$nextTick(async () => {
13068
+ await this.handleSongshen();
13069
+ });
13068
13070
  },
13069
13071
  async handleSongshen() {
13070
- this.handleTips("", !0, "loading"), this.resubmit ? await this.request.post("/aws/pis/reactivate", {
13071
- processInstId: this.processId,
13072
- isClearHistory: this.isClearHistory,
13073
- reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
13074
- multiNodeParticipant: this.multiNodeParticipant
13075
- }).then((t) => {
13076
- t.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : this.handleTips(t.msg, !0, "error");
13077
- }).catch((t) => {
13078
- this.handleTips(t.msg, !0, "error");
13079
- }) : (console.log(
13080
- "\u9A8C\u8BC1\u6761\u4EF6::this.id",
13081
- this.idData,
13082
- "\u9A8C\u8BC1\u6761\u4EF6::this.businessType",
13083
- this.businessTypeData,
13084
- "\u9A8C\u8BC1\u6761\u4EF6::this.todoParameter",
13085
- this.todoParameterData,
13086
- "\u9A8C\u8BC1\u6761\u4EF6::this.title",
13087
- this.titleData
13088
- ), await this.request.post("/aws/pis/createAndStart", {
13089
- title: this.titleData,
13090
- processDefId: this.checkedItem.id,
13091
- processBusinessKey: this.idData,
13092
- showType: this.showType,
13093
- businessType: this.businessTypeData,
13094
- multiNodeParticipant: this.multiNodeParticipant,
13095
- todoParameter: this.todoParameterData
13096
- }).then((t) => {
13097
- 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", {
13072
+ if (this.handleTips("", !0, "loading"), this.resubmit)
13073
+ await this.request.post("/aws/pis/reactivate", {
13098
13074
  processInstId: this.processId,
13099
13075
  isClearHistory: this.isClearHistory,
13100
13076
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
13101
13077
  multiNodeParticipant: this.multiNodeParticipant
13102
- }).then((n) => {
13103
- n.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
13104
- "\u63D0\u4EA4\u6210\u529F!",
13105
- !1,
13106
- "success"
13107
- ), this.$emit("successFn")) : this.handleTips(n.msg, !0, "error");
13078
+ }).then((t) => {
13079
+ t.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : this.handleTips(t.msg, !0, "error");
13080
+ }).catch((t) => {
13081
+ this.handleTips(t.msg, !0, "error");
13082
+ });
13083
+ else {
13084
+ let t = {
13085
+ title: this.titleData,
13086
+ processDefId: this.checkedItem.id,
13087
+ processBusinessKey: this.idData,
13088
+ showType: this.showType,
13089
+ businessType: this.businessTypeData,
13090
+ multiNodeParticipant: this.multiNodeParticipant,
13091
+ todoParameter: this.todoParameterData
13092
+ };
13093
+ console.log("\u9A8C\u8BC1\u6761\u4EF6::", t, "this:::", this), await this.request.post("/aws/pis/createAndStart", t).then((n) => {
13094
+ n.code === 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : n.code == 499 ? this.request.post("/aws/pis/reactivate", {
13095
+ processInstId: this.processId,
13096
+ isClearHistory: this.isClearHistory,
13097
+ reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
13098
+ multiNodeParticipant: this.multiNodeParticipant
13099
+ }).then((e) => {
13100
+ e.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
13101
+ "\u63D0\u4EA4\u6210\u529F!",
13102
+ !1,
13103
+ "success"
13104
+ ), this.$emit("successFn")) : this.handleTips(e.msg, !0, "error");
13105
+ }).catch((e) => {
13106
+ this.handleTips(e.msg, !0, "error");
13107
+ }) : this.handleTips(n.msg, !0, "error");
13108
13108
  }).catch((n) => {
13109
13109
  this.handleTips(n.msg, !0, "error");
13110
- }) : this.handleTips(t.msg, !0, "error");
13111
- }).catch((t) => {
13112
- this.handleTips(t.msg, !0, "error");
13113
- }));
13110
+ });
13111
+ }
13114
13112
  },
13115
13113
  handleTips(t, n, e) {
13116
13114
  this.textTips = t, this.statusTips = n, this.typeTips = e, this.$refs.topTips.handleOpen();