ddy-process-h5 1.0.1-rc.2.69 → 1.0.1-rc.2.71

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.
@@ -19632,85 +19632,92 @@ const r1 = /* @__PURE__ */ Ce(jb, [["render", n1], ["__scopeId", "data-v-8c1d1ca
19632
19632
  if (!t || !i)
19633
19633
  return e;
19634
19634
  if (this.getButton("wf_pass"), this.needResubmit && t.status == "todo" && this.userIdData && this.userIdData == (t.variables || {}).applyUserId && ["recall", "reject"].includes(t.processIsFinished) && this.getButton("wf_pass")) {
19635
- let s = {};
19636
- s.name = "\u91CD\u65B0\u63D0\u4EA4", s.btnProps = { type: "default" }, e.push(s), s.click = (n) => {
19635
+ let n = {};
19636
+ n.name = "\u91CD\u65B0\u63D0\u4EA4", n.btnProps = { type: "default" }, e.push(n), n.click = (r) => {
19637
19637
  this.handlePass("\u91CD\u65B0\u63D0\u4EA4"), this.submitLoading = !0, this.handleActionClose();
19638
19638
  };
19639
19639
  }
19640
19640
  if (!this.isView && t.status == "todo" && this.getButton("wf_pass")) {
19641
- let s = {};
19642
- s.name = this.getButton("wf_pass").name, s.btnProps = { type: "primary" }, e.push(s), s.click = (n) => {
19641
+ let n = {};
19642
+ n.name = this.getButton("wf_pass").name, n.btnProps = { type: "primary" }, e.push(n), n.click = (r) => {
19643
19643
  this.handlePass(this.getButton("wf_pass").name), this.submitLoading = !0, this.handleActionClose();
19644
19644
  };
19645
19645
  }
19646
19646
  if (!this.isView && t.status == "todo" && this.getButton("wf_reject")) {
19647
- let s = {};
19648
- s.name = this.getButton("wf_reject").name, s.btnProps = { type: "danger" }, e.push(s), s.click = (n) => {
19647
+ let n = {};
19648
+ n.name = this.getButton("wf_reject").name, n.btnProps = { type: "danger" }, e.push(n), n.click = (r) => {
19649
19649
  this.handleCancel(this.getButton("wf_reject").name), this.submitLoading = !0, this.handleActionClose();
19650
19650
  };
19651
19651
  }
19652
- if (this.selfBtnList && this.selfBtnList.length && this.selfBtnList.map((s) => {
19653
- let n = {};
19654
- n.name = s.name, n.btnProps = { type: s.type }, e.push(n), n.click = s.click;
19652
+ if (this.selfBtnList && this.selfBtnList.length && this.selfBtnList.map((n) => {
19653
+ let r = {};
19654
+ r.name = n.name, r.btnProps = { type: n.type }, e.push(r), r.click = n.click;
19655
+ }), ["wf_edit"].map((n) => {
19656
+ if (!this.isView && t.status == "todo" && this.getButton(n)) {
19657
+ let r = {};
19658
+ r.name = this.getButton(n).name, r.btnProps = {}, r.key = r.name, r.click = () => {
19659
+ this.$emit("clickCustomButton", r.name);
19660
+ }, e.push(r);
19661
+ }
19655
19662
  }), !this.isView && t.status == "todo" && this.getButton("wf_rollback")) {
19656
- let s = {};
19657
- s.name = this.getButton("wf_rollback").name, s.btnProps = { type: "danger" }, e.push(s), s.click = (n) => {
19663
+ let n = {};
19664
+ n.name = this.getButton("wf_rollback").name, n.btnProps = { type: "danger" }, e.push(n), n.click = (r) => {
19658
19665
  this.handleRollbackTask(this.getButton("wf_rollback").name), this.handleActionClose();
19659
19666
  };
19660
19667
  }
19661
19668
  if (!this.isView && t.status == "todo" && this.getButton("wf_cctask")) {
19662
- let s = {};
19663
- s.name = this.getButton("wf_cctask").name, s.btnProps = { type: "default" }, s.click = async (n) => {
19669
+ let n = {};
19670
+ n.name = this.getButton("wf_cctask").name, n.btnProps = { type: "default" }, n.click = async (r) => {
19664
19671
  this.handleCirculate(this.getButton("wf_cctask").name), this.handleActionClose();
19665
- }, e.push(s);
19672
+ }, e.push(n);
19666
19673
  }
19667
19674
  if (!this.isView && t.status == "todo" && this.getButton("wf_delegate")) {
19668
- let s = {};
19669
- s.name = this.getButton("wf_delegate").name, s.btnProps = { type: "warning" }, s.key = "cc2", s.click = () => {
19675
+ let n = {};
19676
+ n.name = this.getButton("wf_delegate").name, n.btnProps = { type: "warning" }, n.key = "cc2", n.click = () => {
19670
19677
  this.handleUserSelect({
19671
19678
  type: "delegate",
19672
19679
  checkType: "radio",
19673
19680
  name: this.getButton("wf_delegate").name
19674
19681
  }), this.handleActionClose();
19675
- }, e.push(s);
19682
+ }, e.push(n);
19676
19683
  }
19677
19684
  if (!this.isView && t.status == "todo" && this.getButton("wf_terminate")) {
19678
- let s = {};
19679
- s.name = this.getButton("wf_terminate").name, s.btnProps = { type: "danger" }, s.key = "cc3", s.click = () => {
19685
+ let n = {};
19686
+ n.name = this.getButton("wf_terminate").name, n.btnProps = { type: "danger" }, n.key = "cc3", n.click = () => {
19680
19687
  this.handleTerminateProcess(), this.handleActionClose();
19681
- }, e.push(s);
19688
+ }, e.push(n);
19682
19689
  }
19683
19690
  if (!this.isView && t.status == "todo" && this.getButton("wf_transfer")) {
19684
- let s = {};
19685
- s.name = this.getButton("wf_transfer").name, s.btnProps = { type: "default" }, s.click = (n) => {
19691
+ let n = {};
19692
+ n.name = this.getButton("wf_transfer").name, n.btnProps = { type: "default" }, n.click = (r) => {
19686
19693
  this.handleUserSelect({
19687
19694
  type: "transfer",
19688
19695
  checkType: "radio",
19689
19696
  name: this.getButton("wf_transfer").name
19690
19697
  }), this.handleActionClose();
19691
- }, e.push(s);
19698
+ }, e.push(n);
19692
19699
  }
19693
19700
  if (!this.isView && t.isMultiInstance && this.getButton("wf_add_instance")) {
19694
- let s = {};
19695
- s.name = this.getButton("wf_add_instance").name, s.btnProps = { type: "primary" }, s.click = (n) => {
19701
+ let n = {};
19702
+ n.name = this.getButton("wf_add_instance").name, n.btnProps = { type: "primary" }, n.click = (r) => {
19696
19703
  this.handleUserSelect({
19697
19704
  type: "addInstance",
19698
19705
  checkType: "checkbox",
19699
19706
  name: this.getButton("wf_add_instance").name
19700
19707
  }), this.handleActionClose();
19701
- }, e.push(s);
19708
+ }, e.push(n);
19702
19709
  }
19703
19710
  if (this.userIdData == (t.variables || {}).applyUserId && this.processIntId) {
19704
- let s = {};
19705
- s.name = "\u50AC\u529E", s.btnProps = { type: "default" }, s.click = (n) => {
19711
+ let n = {};
19712
+ n.name = "\u50AC\u529E", n.btnProps = { type: "default" }, n.click = (r) => {
19706
19713
  this.handleReminders("\u50AC\u529E"), this.handleActionClose();
19707
- }, e.push(s);
19714
+ }, e.push(n);
19708
19715
  }
19709
19716
  if (this.processIntId && t.isOwner && t.isReturnable && !["recall", "reject"].includes(t.processIsFinished)) {
19710
- let s = {};
19711
- s.name = "\u64A4\u9500", s.btnProps = { type: "default" }, s.click = (n) => {
19717
+ let n = {};
19718
+ n.name = "\u64A4\u9500", n.btnProps = { type: "default" }, n.click = (r) => {
19712
19719
  this.handleWithdrawTask("\u64A4\u9500"), this.handleActionClose();
19713
- }, e.push(s);
19720
+ }, e.push(n);
19714
19721
  }
19715
19722
  return e;
19716
19723
  },
@@ -20330,7 +20337,7 @@ function I1(e, t, i, s, n, r) {
20330
20337
  }, 8, ["titleText", "visible"])
20331
20338
  ]);
20332
20339
  }
20333
- const j1 = /* @__PURE__ */ Ce(o1, [["render", I1], ["__scopeId", "data-v-1fb5bc02"]]), E1 = "ddy-process-h5", x1 = "1.0.1-rc.2.69", N1 = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", S1 = "./ddy-process-h5.umd.cjs", P1 = "./style.css", D1 = "module", M1 = {
20340
+ const j1 = /* @__PURE__ */ Ce(o1, [["render", I1], ["__scopeId", "data-v-1fb5bc02"]]), E1 = "ddy-process-h5", x1 = "1.0.1-rc.2.71", N1 = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", S1 = "./ddy-process-h5.umd.cjs", P1 = "./style.css", D1 = "module", M1 = {
20334
20341
  ".": {
20335
20342
  import: "./ddy-process-h5.js",
20336
20343
  require: "./ddy-process-h5.umd.cjs"