ddy-process-pc-vue3 1.0.1-rc.2.67 → 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.
@@ -16,7 +16,7 @@ function vP(e, i) {
16
16
  }
17
17
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
18
18
  }
19
- const bP = "ddy-process-pc-vue3", _P = "1.0.1-rc.2.67", yP = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", xP = "./ddy-process-pc-vue3.umd.cjs", wP = "./style.css", EP = "module", kP = {
19
+ const bP = "ddy-process-pc-vue3", _P = "1.0.1-rc.2.71", yP = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", xP = "./ddy-process-pc-vue3.umd.cjs", wP = "./style.css", EP = "module", kP = {
20
20
  ".": {
21
21
  import: "./ddy-process-pc-vue3.js",
22
22
  require: "./ddy-process-pc-vue3.umd.cjs"
@@ -22085,7 +22085,7 @@ var CV = /* @__PURE__ */ Bi(
22085
22085
  EV,
22086
22086
  !1,
22087
22087
  SV,
22088
- "5e479c8e",
22088
+ "ee16a17a",
22089
22089
  null,
22090
22090
  null
22091
22091
  );
@@ -23127,80 +23127,87 @@ const BV = {
23127
23127
  if (!i)
23128
23128
  return e;
23129
23129
  if (i.status == "todo" && i.isMultiInstance && this.getButton("wf_add_instance")) {
23130
- let r = {};
23131
- r.name = this.getButton("wf_add_instance").name, r.btnProps = { type: "primary" }, r.key = "sign", r.click = () => {
23130
+ let a = {};
23131
+ a.name = this.getButton("wf_add_instance").name, a.btnProps = { type: "primary" }, a.key = "sign", a.click = () => {
23132
23132
  this.handleUserSelect({
23133
23133
  type: "addInstance",
23134
23134
  checkType: "checkbox",
23135
23135
  name: this.getButton("wf_add_instance").name
23136
23136
  });
23137
- }, e.push(r);
23137
+ }, e.push(a);
23138
23138
  }
23139
23139
  if (i.status == "todo" && this.getButton("wf_transfer")) {
23140
- let r = {};
23141
- r.name = this.getButton("wf_transfer").name, r.key = "delegate", r.click = () => {
23140
+ let a = {};
23141
+ a.name = this.getButton("wf_transfer").name, a.key = "delegate", a.click = () => {
23142
23142
  this.handleUserSelect({
23143
23143
  type: "transfer",
23144
23144
  checkType: "radio",
23145
23145
  name: this.getButton("wf_transfer").name
23146
23146
  });
23147
- }, e.push(r);
23147
+ }, e.push(a);
23148
23148
  }
23149
23149
  if (i.status == "todo" && this.getButton("wf_delegate")) {
23150
- let r = {};
23151
- r.name = this.getButton("wf_delegate").name, r.btnProps = { type: "warning" }, r.key = "cc2", r.click = () => {
23150
+ let a = {};
23151
+ a.name = this.getButton("wf_delegate").name, a.btnProps = { type: "warning" }, a.key = "cc2", a.click = () => {
23152
23152
  this.handleUserSelect({
23153
23153
  type: "delegate",
23154
23154
  checkType: "radio",
23155
23155
  name: this.getButton("wf_delegate").name
23156
23156
  });
23157
- }, e.push(r);
23157
+ }, e.push(a);
23158
23158
  }
23159
23159
  if (i.status == "todo" && this.getButton("wf_terminate")) {
23160
- let r = {};
23161
- r.name = this.getButton("wf_terminate").name, r.btnProps = { type: "danger" }, r.key = "cc3", r.click = () => {
23160
+ let a = {};
23161
+ a.name = this.getButton("wf_terminate").name, a.btnProps = { type: "danger" }, a.key = "cc3", a.click = () => {
23162
23162
  this.handleTerminateProcess();
23163
- }, e.push(r);
23163
+ }, e.push(a);
23164
23164
  }
23165
23165
  if (i.status == "todo" && this.getButton("wf_cctask")) {
23166
- let r = {};
23167
- r.name = this.getButton("wf_cctask").name, r.btnProps = { type: "primary" }, r.key = "cc", r.click = () => {
23166
+ let a = {};
23167
+ a.name = this.getButton("wf_cctask").name, a.btnProps = { type: "primary" }, a.key = "cc", a.click = () => {
23168
23168
  this.handleCirculate(this.getButton("wf_cctask").name);
23169
- }, e.push(r);
23169
+ }, e.push(a);
23170
23170
  }
23171
23171
  if (i.status == "todo" && this.userId == (i.variables || {}).applyUserId) {
23172
- let r = {};
23173
- r.name = "\u50AC\u529E", r.key = "self", r.click = () => {
23172
+ let a = {};
23173
+ a.name = "\u50AC\u529E", a.key = "self", a.click = () => {
23174
23174
  this.handleReminders();
23175
- }, e.push(r);
23175
+ }, e.push(a);
23176
23176
  }
23177
23177
  if (i.isOwner && i.isReturnable && !["recall", "reject"].includes(i.processIsFinished)) {
23178
- let r = {};
23179
- r.name = "\u64A4\u9500", r.btnProps = { type: "danger" }, r.key = "self", r.click = () => {
23178
+ let a = {};
23179
+ a.name = "\u64A4\u9500", a.btnProps = { type: "danger" }, a.key = "self", a.click = () => {
23180
23180
  this.handleWithdrawTask("\u64A4\u9500");
23181
- }, e.push(r);
23181
+ }, e.push(a);
23182
23182
  }
23183
23183
  if (i.status == "todo" && this.getButton("wf_reject")) {
23184
- let r = {};
23185
- r.name = this.getButton("wf_reject").name, r.btnProps = { type: "danger" }, r.key = "refuse", r.click = () => {
23184
+ let a = {};
23185
+ a.name = this.getButton("wf_reject").name, a.btnProps = { type: "danger" }, a.key = "refuse", a.click = () => {
23186
23186
  this.handleExamine(!1, this.getButton("wf_reject").name);
23187
- }, e.push(r);
23187
+ }, e.push(a);
23188
23188
  }
23189
23189
  if (i.status == "todo" && this.getButton("wf_pass")) {
23190
- let r = {};
23191
- r.name = this.getButton("wf_pass").name, r.btnProps = { type: "primary" }, r.key = "complete", r.click = () => {
23190
+ let a = {};
23191
+ a.name = this.getButton("wf_pass").name, a.btnProps = { type: "primary" }, a.key = "complete", a.click = () => {
23192
23192
  this.before ? this.before().then(() => {
23193
23193
  this.handleExamine(!0, this.getButton("wf_pass").name);
23194
23194
  }) : this.handleExamine(!0, this.getButton("wf_pass").name);
23195
- }, e.push(r);
23195
+ }, e.push(a);
23196
23196
  }
23197
23197
  if (i.status == "todo" && this.getButton("wf_rollback")) {
23198
- let r = {};
23199
- r.name = this.getButton("wf_rollback").name, r.btnProps = { type: "danger" }, r.key = "back", r.click = () => {
23198
+ let a = {};
23199
+ a.name = this.getButton("wf_rollback").name, a.btnProps = { type: "danger" }, a.key = "back", a.click = () => {
23200
23200
  this.handleRollbackTask(this.getButton("wf_rollback").name);
23201
- }, e.unshift(r);
23201
+ }, e.unshift(a);
23202
23202
  }
23203
- return e;
23203
+ return ["wf_edit"].map((a) => {
23204
+ if (i.status == "todo" && this.getButton(a)) {
23205
+ let s = {};
23206
+ s.name = this.getButton(a).name, s.btnProps = {}, s.key = s.name, s.click = () => {
23207
+ this.clickCustomButton(s.name);
23208
+ }, e.unshift(s);
23209
+ }
23210
+ }), e;
23204
23211
  },
23205
23212
  straightenBtns(e = !0) {
23206
23213
  let i = [];
@@ -23279,7 +23286,7 @@ var OV = /* @__PURE__ */ Bi(
23279
23286
  IV,
23280
23287
  !1,
23281
23288
  TV,
23282
- "12444e84",
23289
+ "0cbdea84",
23283
23290
  null,
23284
23291
  null
23285
23292
  );