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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-process-h5",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -13687,53 +13687,51 @@ const lE = /* @__PURE__ */ function() {
13687
13687
  );
13688
13688
  return;
13689
13689
  }
13690
- this.beforeFunction && await this.beforeFunction(), this.manual || await this.handleSongshen();
13690
+ this.beforeFunction && await this.beforeFunction(), this.manual || this.$nextTick(async () => {
13691
+ await this.handleSongshen();
13692
+ });
13691
13693
  },
13692
13694
  async handleSongshen() {
13693
- this.handleTips("", !0, "loading"), this.resubmit ? await this.request.post("/aws/pis/reactivate", {
13694
- processInstId: this.processId,
13695
- isClearHistory: this.isClearHistory,
13696
- reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
13697
- multiNodeParticipant: this.multiNodeParticipant
13698
- }).then((e) => {
13699
- 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");
13700
- }).catch((e) => {
13701
- this.handleTips(e.msg, !0, "error");
13702
- }) : (console.log(
13703
- "\u9A8C\u8BC1\u6761\u4EF6::this.id",
13704
- this.idData,
13705
- "\u9A8C\u8BC1\u6761\u4EF6::this.businessType",
13706
- this.businessTypeData,
13707
- "\u9A8C\u8BC1\u6761\u4EF6::this.todoParameter",
13708
- this.todoParameterData,
13709
- "\u9A8C\u8BC1\u6761\u4EF6::this.title",
13710
- this.titleData
13711
- ), await this.request.post("/aws/pis/createAndStart", {
13712
- title: this.titleData,
13713
- processDefId: this.checkedItem.id,
13714
- processBusinessKey: this.idData,
13715
- showType: this.showType,
13716
- businessType: this.businessTypeData,
13717
- multiNodeParticipant: this.multiNodeParticipant,
13718
- todoParameter: this.todoParameterData
13719
- }).then((e) => {
13720
- 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", {
13695
+ if (this.handleTips("", !0, "loading"), this.resubmit)
13696
+ await this.request.post("/aws/pis/reactivate", {
13721
13697
  processInstId: this.processId,
13722
13698
  isClearHistory: this.isClearHistory,
13723
13699
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
13724
13700
  multiNodeParticipant: this.multiNodeParticipant
13725
- }).then((n) => {
13726
- n.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
13727
- "\u63D0\u4EA4\u6210\u529F!",
13728
- !1,
13729
- "success"
13730
- ), this.$emit("successFn")) : this.handleTips(n.msg, !0, "error");
13701
+ }).then((e) => {
13702
+ 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");
13703
+ }).catch((e) => {
13704
+ this.handleTips(e.msg, !0, "error");
13705
+ });
13706
+ else {
13707
+ let e = {
13708
+ title: this.titleData,
13709
+ processDefId: this.checkedItem.id,
13710
+ processBusinessKey: this.idData,
13711
+ showType: this.showType,
13712
+ businessType: this.businessTypeData,
13713
+ multiNodeParticipant: this.multiNodeParticipant,
13714
+ todoParameter: this.todoParameterData
13715
+ };
13716
+ console.log("\u9A8C\u8BC1\u6761\u4EF6::", e, "this:::", this), await this.request.post("/aws/pis/createAndStart", e).then((n) => {
13717
+ 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", {
13718
+ processInstId: this.processId,
13719
+ isClearHistory: this.isClearHistory,
13720
+ reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
13721
+ multiNodeParticipant: this.multiNodeParticipant
13722
+ }).then((t) => {
13723
+ t.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips(
13724
+ "\u63D0\u4EA4\u6210\u529F!",
13725
+ !1,
13726
+ "success"
13727
+ ), this.$emit("successFn")) : this.handleTips(t.msg, !0, "error");
13728
+ }).catch((t) => {
13729
+ this.handleTips(t.msg, !0, "error");
13730
+ }) : this.handleTips(n.msg, !0, "error");
13731
13731
  }).catch((n) => {
13732
13732
  this.handleTips(n.msg, !0, "error");
13733
- }) : this.handleTips(e.msg, !0, "error");
13734
- }).catch((e) => {
13735
- this.handleTips(e.msg, !0, "error");
13736
- }));
13733
+ });
13734
+ }
13737
13735
  },
13738
13736
  handleTips(e, n, t) {
13739
13737
  this.textTips = e, this.statusTips = n, this.typeTips = t, this.$refs.topTips.handleOpen();