ui-process-h5 1.0.12 → 1.0.14

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.
@@ -7678,7 +7678,7 @@ const ht = /* @__PURE__ */ function() {
7678
7678
  default: !1
7679
7679
  },
7680
7680
  request: {
7681
- type: Function,
7681
+ type: [Function, Object],
7682
7682
  default: () => ({ get: () => {
7683
7683
  }, post: () => {
7684
7684
  }, upload: () => {
@@ -7750,7 +7750,8 @@ const ht = /* @__PURE__ */ function() {
7750
7750
  textTips: "",
7751
7751
  statusTips: !1,
7752
7752
  typeTips: "success",
7753
- firstPerson: []
7753
+ firstPerson: [],
7754
+ formData: {}
7754
7755
  };
7755
7756
  },
7756
7757
  watch: {
@@ -7772,6 +7773,23 @@ const ht = /* @__PURE__ */ function() {
7772
7773
  });
7773
7774
  },
7774
7775
  immediate: !0
7776
+ },
7777
+ props: {
7778
+ handler(e, t) {
7779
+ this.formData = {
7780
+ appId: e.appId,
7781
+ processName: e.processName,
7782
+ resubmit: e.resubmit,
7783
+ id: e.id,
7784
+ businessType: e.businessType,
7785
+ todoParameter: e.todoParameter,
7786
+ isClearHistory: e.isClearHistory,
7787
+ title: e.title,
7788
+ showType: e.showType
7789
+ };
7790
+ },
7791
+ immediate: !0,
7792
+ deep: !0
7775
7793
  }
7776
7794
  },
7777
7795
  methods: {
@@ -7818,27 +7836,27 @@ const ht = /* @__PURE__ */ function() {
7818
7836
  );
7819
7837
  return;
7820
7838
  }
7821
- this.beforeFunction && this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit ? (console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/reactivate", {
7822
- processInstId: this.processId || "572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",
7823
- isClearHistory: this.isClearHistory,
7839
+ this.beforeFunction && await this.beforeFunction(), this.handleTips("", !0, "loading"), this.resubmit ? (console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/reactivate", {
7840
+ processInstId: this.processId,
7841
+ isClearHistory: this.formData.isClearHistory,
7824
7842
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
7825
7843
  multiNodeParticipant: this.multiNodeParticipant
7826
7844
  }).then((e) => {
7827
- e.code == 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success")) : this.handleTips(e.msg, !0, "error");
7845
+ 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");
7828
7846
  }).catch((e) => {
7829
7847
  this.handleTips(e.msg, !0, "error");
7830
7848
  })) : (console.log("\u9001\u5BA1\u9996\u6B21\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/createAndStart", {
7831
- title: this.title,
7849
+ title: this.formData.title,
7832
7850
  processDefId: this.checkedItem.id,
7833
- processBusinessKey: this.id,
7834
- showType: this.showType,
7835
- businessType: this.businessType,
7851
+ processBusinessKey: this.formData.id,
7852
+ showType: this.formData.showType,
7853
+ businessType: this.formData.businessType,
7836
7854
  multiNodeParticipant: this.multiNodeParticipant,
7837
- todoParameter: this.todoParameter
7855
+ todoParameter: this.formData.todoParameter
7838
7856
  }).then((e) => {
7839
- e.code === 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success")) : e.code == 499 ? this.request.post("/aws/pis/reactivate", {
7840
- processInstId: this.processId || "572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",
7841
- isClearHistory: this.isClearHistory,
7857
+ 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", {
7858
+ processInstId: this.processId,
7859
+ isClearHistory: this.formData.isClearHistory,
7842
7860
  reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
7843
7861
  multiNodeParticipant: this.multiNodeParticipant
7844
7862
  }).then((t) => {
@@ -7846,7 +7864,7 @@ const ht = /* @__PURE__ */ function() {
7846
7864
  "\u63D0\u4EA4\u6210\u529F!",
7847
7865
  !1,
7848
7866
  "success"
7849
- )) : this.handleTips(t.msg, !0, "error");
7867
+ ), this.$emit("successFn")) : this.handleTips(t.msg, !0, "error");
7850
7868
  }).catch((t) => {
7851
7869
  this.handleTips(t.msg, !0, "error");
7852
7870
  }) : this.handleTips(e.msg, !0, "error");
@@ -9957,7 +9975,7 @@ const JC = Me({
9957
9975
  getVarsStatus: { default: !0, type: Boolean },
9958
9976
  getVars: { default: null, type: Function },
9959
9977
  request: {
9960
- type: Function,
9978
+ type: [Function, Object],
9961
9979
  default: () => ({ get: () => {
9962
9980
  }, post: () => {
9963
9981
  } })