ui-process-h5 1.0.20 → 1.0.21

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-process-h5",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -10758,33 +10758,39 @@ const yt = /* @__PURE__ */ function() {
10758
10758
  );
10759
10759
  return;
10760
10760
  }
10761
- this.beforeFunction && await this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit ? await this.request.post("/aws/pis/reactivate", {
10762
- processInstId: this.processId,
10763
- isClearHistory: this.formData.isClearHistory,
10764
- reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10765
- multiNodeParticipant: this.multiNodeParticipant
10766
- }).then((e) => {
10767
- 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");
10768
- }).catch((e) => {
10769
- this.handleTips(e.msg, !0, "error");
10770
- }) : (console.log("cccc:::::", this.formData), this.formData.processDefId = this.checkedItem.id, this.formData.multiNodeParticipant = this.multiNodeParticipant, await this.request.post("/aws/pis/createAndStart", this.formData).then((e) => {
10771
- 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", {
10761
+ if (this.beforeFunction && await this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit)
10762
+ this.request.post("/aws/pis/reactivate", {
10772
10763
  processInstId: this.processId,
10773
10764
  isClearHistory: this.formData.isClearHistory,
10774
10765
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10775
10766
  multiNodeParticipant: this.multiNodeParticipant
10776
- }).then((n) => {
10777
- n.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
10778
- "\u63D0\u4EA4\u6210\u529F!",
10779
- !1,
10780
- "success"
10781
- ), this.$emit("successFn")) : this.handleTips(n.msg, !0, "error");
10767
+ }).then((e) => {
10768
+ 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");
10769
+ }).catch((e) => {
10770
+ this.handleTips(e.msg, !0, "error");
10771
+ });
10772
+ else {
10773
+ this.formData.processDefId = this.checkedItem.id, this.formData.multiNodeParticipant = this.multiNodeParticipant;
10774
+ let e = this.formData;
10775
+ console.log("cccc:::::", this.formData, e), this.request.post("/aws/pis/createAndStart", e).then((n) => {
10776
+ 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", {
10777
+ processInstId: this.processId,
10778
+ isClearHistory: this.formData.isClearHistory,
10779
+ reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
10780
+ multiNodeParticipant: this.multiNodeParticipant
10781
+ }).then((t) => {
10782
+ t.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
10783
+ "\u63D0\u4EA4\u6210\u529F!",
10784
+ !1,
10785
+ "success"
10786
+ ), this.$emit("successFn")) : this.handleTips(t.msg, !0, "error");
10787
+ }).catch((t) => {
10788
+ this.handleTips(t.msg, !0, "error");
10789
+ }) : this.handleTips(n.msg, !0, "error");
10782
10790
  }).catch((n) => {
10783
10791
  this.handleTips(n.msg, !0, "error");
10784
- }) : this.handleTips(e.msg, !0, "error");
10785
- }).catch((e) => {
10786
- this.handleTips(e.msg, !0, "error");
10787
- }));
10792
+ });
10793
+ }
10788
10794
  },
10789
10795
  handleTips(e, n, t) {
10790
10796
  this.textTips = e, this.statusTips = n, this.typeTips = t, this.$refs.topTips.handleOpen();