ddy-process-pc-vue3 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddy-process-pc-vue3",
3
- "version": "1.0.1-rc.2.69",
3
+ "version": "1.0.1-rc.2.71",
4
4
  "description": "> pc端流程组件",
5
5
  "main": "./ddy-process-pc-vue3.umd.cjs",
6
6
  "style": "./style.css",
@@ -16,7 +16,7 @@ function iR(e, i) {
16
16
  }
17
17
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
18
18
  }
19
- const nR = "ddy-process-pc-vue3", rR = "1.0.1-rc.2.69", aR = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", oR = "./ddy-process-pc-vue3.umd.cjs", sR = "./style.css", lR = "module", cR = {
19
+ const nR = "ddy-process-pc-vue3", rR = "1.0.1-rc.2.71", aR = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", oR = "./ddy-process-pc-vue3.umd.cjs", sR = "./style.css", lR = "module", cR = {
20
20
  ".": {
21
21
  import: "./ddy-process-pc-vue3.js",
22
22
  require: "./ddy-process-pc-vue3.umd.cjs"
@@ -23871,80 +23871,87 @@ const YW = {
23871
23871
  if (!i)
23872
23872
  return e;
23873
23873
  if (i.status == "todo" && i.isMultiInstance && this.getButton("wf_add_instance")) {
23874
- let r = {};
23875
- r.name = this.getButton("wf_add_instance").name, r.btnProps = { type: "primary" }, r.key = "sign", r.click = () => {
23874
+ let a = {};
23875
+ a.name = this.getButton("wf_add_instance").name, a.btnProps = { type: "primary" }, a.key = "sign", a.click = () => {
23876
23876
  this.handleUserSelect({
23877
23877
  type: "addInstance",
23878
23878
  checkType: "checkbox",
23879
23879
  name: this.getButton("wf_add_instance").name
23880
23880
  });
23881
- }, e.push(r);
23881
+ }, e.push(a);
23882
23882
  }
23883
23883
  if (i.status == "todo" && this.getButton("wf_transfer")) {
23884
- let r = {};
23885
- r.name = this.getButton("wf_transfer").name, r.key = "delegate", r.click = () => {
23884
+ let a = {};
23885
+ a.name = this.getButton("wf_transfer").name, a.key = "delegate", a.click = () => {
23886
23886
  this.handleUserSelect({
23887
23887
  type: "transfer",
23888
23888
  checkType: "radio",
23889
23889
  name: this.getButton("wf_transfer").name
23890
23890
  });
23891
- }, e.push(r);
23891
+ }, e.push(a);
23892
23892
  }
23893
23893
  if (i.status == "todo" && this.getButton("wf_delegate")) {
23894
- let r = {};
23895
- r.name = this.getButton("wf_delegate").name, r.btnProps = { type: "warning" }, r.key = "cc2", r.click = () => {
23894
+ let a = {};
23895
+ a.name = this.getButton("wf_delegate").name, a.btnProps = { type: "warning" }, a.key = "cc2", a.click = () => {
23896
23896
  this.handleUserSelect({
23897
23897
  type: "delegate",
23898
23898
  checkType: "radio",
23899
23899
  name: this.getButton("wf_delegate").name
23900
23900
  });
23901
- }, e.push(r);
23901
+ }, e.push(a);
23902
23902
  }
23903
23903
  if (i.status == "todo" && this.getButton("wf_terminate")) {
23904
- let r = {};
23905
- r.name = this.getButton("wf_terminate").name, r.btnProps = { type: "danger" }, r.key = "cc3", r.click = () => {
23904
+ let a = {};
23905
+ a.name = this.getButton("wf_terminate").name, a.btnProps = { type: "danger" }, a.key = "cc3", a.click = () => {
23906
23906
  this.handleTerminateProcess();
23907
- }, e.push(r);
23907
+ }, e.push(a);
23908
23908
  }
23909
23909
  if (i.status == "todo" && this.getButton("wf_cctask")) {
23910
- let r = {};
23911
- r.name = this.getButton("wf_cctask").name, r.btnProps = { type: "primary" }, r.key = "cc", r.click = () => {
23910
+ let a = {};
23911
+ a.name = this.getButton("wf_cctask").name, a.btnProps = { type: "primary" }, a.key = "cc", a.click = () => {
23912
23912
  this.handleCirculate(this.getButton("wf_cctask").name);
23913
- }, e.push(r);
23913
+ }, e.push(a);
23914
23914
  }
23915
23915
  if (i.status == "todo" && this.userId == (i.variables || {}).applyUserId) {
23916
- let r = {};
23917
- r.name = "\u50AC\u529E", r.key = "self", r.click = () => {
23916
+ let a = {};
23917
+ a.name = "\u50AC\u529E", a.key = "self", a.click = () => {
23918
23918
  this.handleReminders();
23919
- }, e.push(r);
23919
+ }, e.push(a);
23920
23920
  }
23921
23921
  if (i.isOwner && i.isReturnable && !["recall", "reject"].includes(i.processIsFinished)) {
23922
- let r = {};
23923
- r.name = "\u64A4\u9500", r.btnProps = { type: "danger" }, r.key = "self", r.click = () => {
23922
+ let a = {};
23923
+ a.name = "\u64A4\u9500", a.btnProps = { type: "danger" }, a.key = "self", a.click = () => {
23924
23924
  this.handleWithdrawTask("\u64A4\u9500");
23925
- }, e.push(r);
23925
+ }, e.push(a);
23926
23926
  }
23927
23927
  if (i.status == "todo" && this.getButton("wf_reject")) {
23928
- let r = {};
23929
- r.name = this.getButton("wf_reject").name, r.btnProps = { type: "danger" }, r.key = "refuse", r.click = () => {
23928
+ let a = {};
23929
+ a.name = this.getButton("wf_reject").name, a.btnProps = { type: "danger" }, a.key = "refuse", a.click = () => {
23930
23930
  this.handleExamine(!1, this.getButton("wf_reject").name);
23931
- }, e.push(r);
23931
+ }, e.push(a);
23932
23932
  }
23933
23933
  if (i.status == "todo" && this.getButton("wf_pass")) {
23934
- let r = {};
23935
- r.name = this.getButton("wf_pass").name, r.btnProps = { type: "primary" }, r.key = "complete", r.click = () => {
23934
+ let a = {};
23935
+ a.name = this.getButton("wf_pass").name, a.btnProps = { type: "primary" }, a.key = "complete", a.click = () => {
23936
23936
  this.before ? this.before().then(() => {
23937
23937
  this.handleExamine(!0, this.getButton("wf_pass").name);
23938
23938
  }) : this.handleExamine(!0, this.getButton("wf_pass").name);
23939
- }, e.push(r);
23939
+ }, e.push(a);
23940
23940
  }
23941
23941
  if (i.status == "todo" && this.getButton("wf_rollback")) {
23942
- let r = {};
23943
- r.name = this.getButton("wf_rollback").name, r.btnProps = { type: "danger" }, r.key = "back", r.click = () => {
23942
+ let a = {};
23943
+ a.name = this.getButton("wf_rollback").name, a.btnProps = { type: "danger" }, a.key = "back", a.click = () => {
23944
23944
  this.handleRollbackTask(this.getButton("wf_rollback").name);
23945
- }, e.unshift(r);
23945
+ }, e.unshift(a);
23946
23946
  }
23947
- return e;
23947
+ return ["wf_edit"].map((a) => {
23948
+ if (i.status == "todo" && this.getButton(a)) {
23949
+ let s = {};
23950
+ s.name = this.getButton(a).name, s.btnProps = {}, s.key = s.name, s.click = () => {
23951
+ this.clickCustomButton(s.name);
23952
+ }, e.unshift(s);
23953
+ }
23954
+ }), e;
23948
23955
  },
23949
23956
  straightenBtns(e = !0) {
23950
23957
  let i = [];
@@ -24023,7 +24030,7 @@ var VW = /* @__PURE__ */ Di(
24023
24030
  UW,
24024
24031
  !1,
24025
24032
  WW,
24026
- "12444e84",
24033
+ "0cbdea84",
24027
24034
  null,
24028
24035
  null
24029
24036
  );