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.
@@ -10050,7 +10050,7 @@ const be = /* @__PURE__ */ function() {
10050
10050
  },
10051
10051
  id: {
10052
10052
  handler(t, n) {
10053
- this.formData.processBusinessKey = t;
10053
+ this.formData.id = t;
10054
10054
  },
10055
10055
  immediate: !0,
10056
10056
  deep: !0
@@ -10135,39 +10135,46 @@ const be = /* @__PURE__ */ function() {
10135
10135
  );
10136
10136
  return;
10137
10137
  }
10138
- if (this.beforeFunction && await this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit)
10139
- this.request.post("/aws/pis/reactivate", {
10138
+ this.beforeFunction && await this.beforeFunction(), this.$nextTick(() => {
10139
+ this.handleSongshen();
10140
+ });
10141
+ },
10142
+ async handleSongshen() {
10143
+ this.handleTips("", !0, "loading"), this.resubmit ? (console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/reactivate", {
10144
+ processInstId: this.processId,
10145
+ isClearHistory: this.isClearHistory,
10146
+ reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10147
+ multiNodeParticipant: this.multiNodeParticipant
10148
+ }).then((t) => {
10149
+ 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");
10150
+ }).catch((t) => {
10151
+ this.handleTips(t.msg, !0, "error");
10152
+ })) : (console.log("\u9001\u5BA1\u9996\u6B21\u63D0\u4EA4", this.formData), await this.request.post("/aws/pis/createAndStart", {
10153
+ title: this.title,
10154
+ processDefId: this.checkedItem.id,
10155
+ processBusinessKey: this.id,
10156
+ showType: this.showType,
10157
+ businessType: this.businessType,
10158
+ multiNodeParticipant: this.multiNodeParticipant,
10159
+ todoParameter: this.todoParameter
10160
+ }).then((t) => {
10161
+ 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", {
10140
10162
  processInstId: this.processId,
10141
- isClearHistory: this.formData.isClearHistory,
10163
+ isClearHistory: this.isClearHistory,
10142
10164
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10143
10165
  multiNodeParticipant: this.multiNodeParticipant
10144
- }).then((t) => {
10145
- 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");
10146
- }).catch((t) => {
10147
- this.handleTips(t.msg, !0, "error");
10148
- });
10149
- else {
10150
- this.formData.processDefId = this.checkedItem.id, this.formData.multiNodeParticipant = this.multiNodeParticipant;
10151
- let t = this.formData;
10152
- console.log("cccc:::::", this.formData, t), this.request.post("/aws/pis/createAndStart", t).then((n) => {
10153
- 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", {
10154
- processInstId: this.processId,
10155
- isClearHistory: this.formData.isClearHistory,
10156
- reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10157
- multiNodeParticipant: this.multiNodeParticipant
10158
- }).then((e) => {
10159
- e.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
10160
- "\u63D0\u4EA4\u6210\u529F!",
10161
- !1,
10162
- "success"
10163
- ), this.$emit("successFn")) : this.handleTips(e.msg, !0, "error");
10164
- }).catch((e) => {
10165
- this.handleTips(e.msg, !0, "error");
10166
- }) : this.handleTips(n.msg, !0, "error");
10166
+ }).then((n) => {
10167
+ n.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
10168
+ "\u63D0\u4EA4\u6210\u529F!",
10169
+ !1,
10170
+ "success"
10171
+ ), this.$emit("successFn")) : this.handleTips(n.msg, !0, "error");
10167
10172
  }).catch((n) => {
10168
10173
  this.handleTips(n.msg, !0, "error");
10169
- });
10170
- }
10174
+ }) : this.handleTips(t.msg, !0, "error");
10175
+ }).catch((t) => {
10176
+ this.handleTips(t.msg, !0, "error");
10177
+ }));
10171
10178
  },
10172
10179
  handleTips(t, n, e) {
10173
10180
  this.textTips = t, this.statusTips = n, this.typeTips = e, this.$refs.topTips.handleOpen();