ui-process-h5 1.0.36 → 1.1.1

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