ui-process-h5 1.0.21 → 1.0.22

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,44 @@ 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();
10139
+ },
10140
+ async handleSongshen() {
10141
+ this.handleTips("", !0, "loading"), this.resubmit ? (console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/reactivate", {
10142
+ processInstId: this.processId,
10143
+ isClearHistory: this.isClearHistory,
10144
+ reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10145
+ multiNodeParticipant: this.multiNodeParticipant
10146
+ }).then((t) => {
10147
+ 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");
10148
+ }).catch((t) => {
10149
+ this.handleTips(t.msg, !0, "error");
10150
+ })) : (console.log("\u9001\u5BA1\u9996\u6B21\u63D0\u4EA4", this.formData), await this.request.post("/aws/pis/createAndStart", {
10151
+ title: this.title,
10152
+ processDefId: this.checkedItem.id,
10153
+ processBusinessKey: this.id,
10154
+ showType: this.showType,
10155
+ businessType: this.businessType,
10156
+ multiNodeParticipant: this.multiNodeParticipant,
10157
+ todoParameter: this.todoParameter
10158
+ }).then((t) => {
10159
+ 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
10160
  processInstId: this.processId,
10141
- isClearHistory: this.formData.isClearHistory,
10161
+ isClearHistory: this.isClearHistory,
10142
10162
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10143
10163
  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");
10164
+ }).then((n) => {
10165
+ n.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
10166
+ "\u63D0\u4EA4\u6210\u529F!",
10167
+ !1,
10168
+ "success"
10169
+ ), this.$emit("successFn")) : this.handleTips(n.msg, !0, "error");
10167
10170
  }).catch((n) => {
10168
10171
  this.handleTips(n.msg, !0, "error");
10169
- });
10170
- }
10172
+ }) : this.handleTips(t.msg, !0, "error");
10173
+ }).catch((t) => {
10174
+ this.handleTips(t.msg, !0, "error");
10175
+ }));
10171
10176
  },
10172
10177
  handleTips(t, n, e) {
10173
10178
  this.textTips = t, this.statusTips = n, this.typeTips = e, this.$refs.topTips.handleOpen();