@ximatai/muyun-web-app 0.26.17 → 0.26.18

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.
Files changed (56) hide show
  1. package/dist/{BusinessActivityLogView-9RrW-RKb.js → BusinessActivityLogView-CNW817Sf.js} +2 -2
  2. package/dist/BusinessLogListDrawer-YiJxOlnD.js +864 -0
  3. package/dist/CodeConfigurationView-DU8tjPMt.js +1667 -0
  4. package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-CbBt5s1q.js} +22 -22
  5. package/dist/{LoginAuditLogView-DG6iBXEn.js → LoginAuditLogView-CZF1Jfq_.js} +2 -2
  6. package/dist/ModuleActionManagementView-CaiXH1l_.js +755 -0
  7. package/dist/{ModuleGovernanceView-C53RnUzc.js → ModuleGovernanceView-CcwGyO3x.js} +3856 -4000
  8. package/dist/{RequestErrorLogView-Ba5p0hLE.js → RequestErrorLogView-DpudZrC2.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-DNMGsAJC.js +1435 -0
  10. package/dist/{RuntimeLogView-BFEABm8G.js → RuntimeLogView-444BL_xs.js} +60 -60
  11. package/dist/WorkflowAdministrationView-C-VIjvwB.js +650 -0
  12. package/dist/{WorkflowConfigurationView-A0m5tBX9.js → WorkflowConfigurationView-DLFY2x7V.js} +302 -289
  13. package/dist/WorkflowWorkbenchView-Gr02dbBc.js +759 -0
  14. package/dist/codeConfiguration-ChJ6ktRR.js +208 -0
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +473 -463
  17. package/dist/{moduleGovernanceWorkspaceView-DNKzYX0x.js → moduleMenuWorkspace-B8DKwC3L.js} +224 -265
  18. package/dist/{platform-components-BBfyINHa.js → platform-components-5AE0j2_3.js} +4597 -4630
  19. package/dist/{platform-workbench-C1hmkOUD.js → platform-workbench-BhZPARiH.js} +4887 -4929
  20. package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
  21. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -1
  22. package/dist/types/consumer/index.d.ts +2 -1
  23. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +6 -0
  24. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -2
  25. package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
  26. package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
  27. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -2
  28. package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
  29. package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
  30. package/dist/types/platform-components/index.d.ts +2 -0
  31. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
  32. package/dist/types/platform-components/recordFormFieldModel.d.ts +4 -0
  33. package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
  34. package/dist/types/platform-workbench/Workbench.vue.d.ts +6 -2
  35. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +13 -1
  36. package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
  37. package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
  38. package/dist/types/views/codeConfiguration.d.ts +127 -0
  39. package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
  40. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
  41. package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
  42. package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
  43. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  44. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
  45. package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
  46. package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
  47. package/dist/types/vue-ui-antdv/index.d.ts +3 -0
  48. package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
  49. package/dist/types/web-contracts/index.d.ts +14 -0
  50. package/dist/{workspaceViews-BpH71LKQ.js → workspaceViews-DeBqozVb.js} +1046 -902
  51. package/package.json +4 -1
  52. package/dist/BusinessLogListDrawer-DYVx9tiQ.js +0 -864
  53. package/dist/ModuleActionManagementView-DgHqhoMN.js +0 -755
  54. package/dist/RoleDetailWorkspaceView-C3TBqksY.js +0 -1435
  55. package/dist/WorkflowAdministrationView-BOHG2e-I.js +0 -650
  56. package/dist/WorkflowWorkbenchView-DGpNDt5V.js +0 -759
@@ -1,8 +1,8 @@
1
- import { E as e, y as t } from "./platform-workbench-C1hmkOUD.js";
2
- import { Ar as n, C as r, Dr as i, En as a, Gn as o, Jn as s, Mt as c, Nr as ee, Ot as te, Q as ne, Un as re, Wn as ie, Xn as l, Yt as ae, _n as u, _r as oe, a as se, aa as ce, an as d, bn as le, c as ue, ca as de, d as fe, fn as pe, i as me, ja as he, jt as ge, ln as _e, mr as ve, n as ye, o as be, qn as xe, r as Se, vn as Ce, xn as we, zt as Te } from "./platform-components-BBfyINHa.js";
3
- import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Ee, createTextVNode as v, createVNode as y, defineComponent as b, mergeModels as x, normalizeClass as De, onMounted as Oe, openBlock as S, ref as C, renderList as ke, toDisplayString as w, unref as T, useModel as E, watch as Ae, withCtx as D, withModifiers as je } from "vue";
1
+ import { E as e, y as t } from "./platform-workbench-BhZPARiH.js";
2
+ import { $n as n, At as r, Cn as i, Fr as a, Ia as o, Kn as s, Mr as ee, Nt as te, On as ne, Pt as re, Qn as ie, Rn as ae, Rr as oe, Sn as se, Sr as ce, Vt as le, Xn as ue, Yn as de, Zt as fe, a as pe, bn as me, dn as he, et as ge, f as _e, hn as c, i as ve, l as ye, o as be, pa as xe, r as Se, s as Ce, sn as l, tr as u, ua as we, w as Te, yn as d, yr as Ee } from "./platform-components-5AE0j2_3.js";
3
+ import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as De, createTextVNode as v, createVNode as y, defineComponent as b, mergeModels as x, normalizeClass as Oe, onMounted as ke, openBlock as S, ref as C, renderList as Ae, toDisplayString as w, unref as T, useModel as E, watch as je, withCtx as D, withModifiers as Me } from "vue";
4
4
  //#region src/views/WorkflowSelectionFields.vue?vue&type=script&setup=true&lang.ts
5
- var Me = { class: "workflow-selection-fields" }, Ne = { class: "workflow-field settings-wide" }, Pe = { class: "settings-help" }, Fe = { class: "workflow-field settings-wide" }, O = { class: "workflow-field" }, k = { class: "settings-help" }, Ie = { class: "settings-wide workflow-field" }, Le = { class: "settings-help" }, Re = /*#__PURE__*/ l(/* @__PURE__ */ b({
5
+ var Ne = { class: "workflow-selection-fields" }, Pe = { class: "workflow-field settings-wide" }, Fe = { class: "settings-help" }, Ie = { class: "workflow-field settings-wide" }, O = { class: "workflow-field" }, k = { class: "settings-help" }, Le = { class: "settings-wide workflow-field" }, Re = { class: "settings-help" }, ze = /*#__PURE__*/ u(/* @__PURE__ */ b({
6
6
  name: "WorkflowSelectionFields",
7
7
  __name: "WorkflowSelectionFields",
8
8
  props: /*@__PURE__*/ x({
@@ -30,34 +30,34 @@ var Me = { class: "workflow-selection-fields" }, Ne = { class: "workflow-field s
30
30
  "update:fallback"
31
31
  ],
32
32
  setup(e) {
33
- let t = he(), n = e, r = E(e, "organizationId"), i = E(e, "matchExpression"), a = E(e, "matchPriority"), s = E(e, "fallback");
34
- return (e, c) => (S(), g("div", Me, [
35
- _("label", Ne, [
33
+ let t = o(), n = e, r = E(e, "organizationId"), i = E(e, "matchExpression"), a = E(e, "matchPriority"), ee = E(e, "fallback");
34
+ return (e, o) => (S(), g("div", Ne, [
35
+ _("label", Pe, [
36
36
  v(w(T(t).t("platform.screen.WorkflowConfigurationView.applicable-organization", "适用组织")), 1),
37
- n.organizationContext ? (S(), m(T(ne), {
37
+ n.organizationContext ? (S(), m(T(ge), {
38
38
  key: 0,
39
39
  placeholder: T(t).t("platform.workflow-config.organization-placeholder", "全部组织(可选指定组织)"),
40
40
  value: r.value || void 0,
41
41
  context: n.organizationContext,
42
42
  disabled: n.disabled,
43
43
  mode: "tree",
44
- "onUpdate:value": c[0] ||= (e) => r.value = e ?? ""
44
+ "onUpdate:value": o[0] ||= (e) => r.value = e ?? ""
45
45
  }, null, 8, [
46
46
  "placeholder",
47
47
  "value",
48
48
  "context",
49
49
  "disabled"
50
- ])) : (S(), m(T(re), {
50
+ ])) : (S(), m(T(s), {
51
51
  key: 1,
52
52
  value: r.value || T(t).t("platform.workflow-config.all-organizations", "模块内全部组织"),
53
53
  disabled: ""
54
54
  }, null, 8, ["value"])),
55
- _("small", Pe, w(n.organizationContext ? T(t).t("platform.workflow-config.organization-help", "留空适用于全部组织;指定组织后包含其下级组织。") : T(t).t("platform.workflow-config.global-scope-help", "当前为全局流程模板,适用于全部组织;组织选择需使用租户身份。")), 1)
55
+ _("small", Fe, w(n.organizationContext ? T(t).t("platform.workflow-config.organization-help", "留空适用于全部组织;指定组织后包含其下级组织。") : T(t).t("platform.workflow-config.global-scope-help", "当前为全局流程模板,适用于全部组织;组织选择需使用租户身份。")), 1)
56
56
  ]),
57
- _("label", Fe, [v(w(T(t).t("platform.screen.WorkflowConfigurationView.matching-condition", "匹配条件")), 1), y(T(pe), {
58
- disabled: n.disabled || s.value,
57
+ _("label", Ie, [v(w(T(t).t("platform.screen.WorkflowConfigurationView.matching-condition", "匹配条件")), 1), y(T(c), {
58
+ disabled: n.disabled || ee.value,
59
59
  value: i.value,
60
- "onUpdate:value": c[1] ||= (e) => i.value = e,
60
+ "onUpdate:value": o[1] ||= (e) => i.value = e,
61
61
  fields: n.fields,
62
62
  placeholder: T(t).t("platform.screen.WorkflowConfigurationView.leave-empty-to-match-all-records", "留空匹配所有记录")
63
63
  }, null, 8, [
@@ -68,10 +68,10 @@ var Me = { class: "workflow-selection-fields" }, Ne = { class: "workflow-field s
68
68
  ])]),
69
69
  _("label", O, [
70
70
  v(w(T(t).t("platform.screen.WorkflowConfigurationView.priority", "优先级")), 1),
71
- y(T(re), {
71
+ y(T(s), {
72
72
  disabled: n.disabled,
73
73
  value: a.value,
74
- "onUpdate:value": c[2] ||= (e) => a.value = e,
74
+ "onUpdate:value": o[2] ||= (e) => a.value = e,
75
75
  type: "number",
76
76
  step: "1",
77
77
  invalid: n.invalidPriority,
@@ -84,14 +84,14 @@ var Me = { class: "workflow-selection-fields" }, Ne = { class: "workflow-field s
84
84
  ]),
85
85
  _("small", k, w(n.invalidPriority ? T(t).t("platform.workflow-config.invalid-priority", "请输入 -2147483648 至 2147483647 范围内的整数。") : T(t).t("platform.workflow-config.priority-help", "填写整数,同一组织范围内数值越大越优先。")), 1)
86
86
  ]),
87
- _("div", Ie, [y(T(o), {
87
+ _("div", Le, [y(T(ue), {
88
88
  disabled: n.disabled,
89
- checked: s.value,
90
- "onUpdate:checked": c[3] ||= (e) => s.value = e
89
+ checked: ee.value,
90
+ "onUpdate:checked": o[3] ||= (e) => ee.value = e
91
91
  }, {
92
92
  default: D(() => [v(w(T(t).t("platform.screen.WorkflowConfigurationView.use-as-the-fallback-workflow-for-this", "作为当前组织范围的兜底流程")), 1)]),
93
93
  _: 1
94
- }, 8, ["disabled", "checked"]), _("small", Le, w(T(t).t("platform.workflow-config.fallback-help", "同一组织范围内无普通流程命中时使用;兜底流程不判断匹配条件。")), 1)])
94
+ }, 8, ["disabled", "checked"]), _("small", Re, w(T(t).t("platform.workflow-config.fallback-help", "同一组织范围内无普通流程命中时使用;兜底流程不判断匹配条件。")), 1)])
95
95
  ]));
96
96
  }
97
97
  }), [["__scopeId", "data-v-911451b9"]]);
@@ -107,7 +107,7 @@ function A(e, t) {
107
107
  allowReject: !0
108
108
  };
109
109
  }
110
- function ze(e, t, n) {
110
+ function Be(e, t, n) {
111
111
  let r = e.links.find((e) => e.routeKey === t);
112
112
  if (!r) throw Error("请选择需要插入分支的路径");
113
113
  let i = `${n}_join`, a = [
@@ -153,7 +153,7 @@ function ze(e, t, n) {
153
153
  } : e), ...o]
154
154
  };
155
155
  }
156
- function Be(e, t, n) {
156
+ function Ve(e, t, n) {
157
157
  let r = e.nodes.find((e) => e.nodeKey === t && e.nodeType === "branch"), i = e.nodes.find((e) => e.nodeKey === r?.convergeNodeKey && e.nodeType === "converge");
158
158
  if (!r || !i) throw Error("分支必须绑定有效汇聚节点");
159
159
  if (e.nodes.some((e) => e.nodeKey === n)) throw Error("节点标识已存在");
@@ -178,7 +178,7 @@ function Be(e, t, n) {
178
178
  ]
179
179
  };
180
180
  }
181
- function Ve(e, t) {
181
+ function He(e, t) {
182
182
  let n = e.nodes.find((e) => e.nodeKey === t && e.nodeType === "branch"), r = e.nodes.find((e) => e.nodeKey === n?.convergeNodeKey && e.nodeType === "converge");
183
183
  if (!n || !r) throw Error("分支必须绑定有效汇聚节点");
184
184
  let i = /* @__PURE__ */ new Set([t]);
@@ -201,7 +201,7 @@ function Ve(e, t) {
201
201
  } : e)
202
202
  };
203
203
  }
204
- function He(e, t, n) {
204
+ function Ue(e, t, n) {
205
205
  let r = e.links.find((e) => e.routeKey === t);
206
206
  if (!r) throw Error("路径不存在");
207
207
  return {
@@ -216,7 +216,7 @@ function He(e, t, n) {
216
216
  } : e)
217
217
  };
218
218
  }
219
- function Ue(e, t, n) {
219
+ function We(e, t, n) {
220
220
  let r = e.links.find((e) => e.routeKey === t);
221
221
  if (!r) throw Error("请选择需要插入节点的路径");
222
222
  if (e.nodes.some((e) => e.nodeKey === n.nodeKey)) throw Error("节点标识已存在");
@@ -234,7 +234,7 @@ function Ue(e, t, n) {
234
234
  }]
235
235
  };
236
236
  }
237
- function We(e, t) {
237
+ function Ge(e, t) {
238
238
  let n = e.nodes.find((e) => e.nodeKey === t);
239
239
  if (!n || ["start", "end"].includes(n.nodeType)) throw Error("开始和结束节点必须保留");
240
240
  let r = e.links.filter((e) => e.targetNodeKey === t), i = e.links.filter((e) => e.sourceNodeKey === t);
@@ -248,7 +248,7 @@ function We(e, t) {
248
248
  } : e)
249
249
  };
250
250
  }
251
- function Ge(e) {
251
+ function Ke(e) {
252
252
  let t = [
253
253
  {
254
254
  nodeKey: "start",
@@ -287,26 +287,30 @@ function Ge(e) {
287
287
  }
288
288
  //#endregion
289
289
  //#region src/views/WorkflowConfigurationView.vue?vue&type=script&setup=true&lang.ts
290
- var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, Je = { class: "workflow-field" }, Ye = { class: "workflow-field" }, Xe = { class: "settings-help" }, Ze = { class: "settings-wide workflow-field" }, Qe = { class: "settings-help" }, $e = { class: "settings-wide" }, et = { class: "workflow-field" }, tt = { class: "settings-help" }, nt = { key: 1 }, rt = { key: 2 }, it = { class: "toolbar" }, at = { class: "publish-nodes" }, ot = { key: 0 }, st = { key: 0 }, ct = { key: 1 }, lt = { key: 0 }, j = /*#__PURE__*/ l(/* @__PURE__ */ b({
290
+ var qe = { class: "workflow-configuration" }, Je = { class: "settings-help" }, Ye = { class: "workflow-field" }, Xe = { class: "workflow-field-help" }, Ze = { class: "workflow-field" }, Qe = {
291
+ key: 0,
292
+ class: "settings-help",
293
+ role: "alert"
294
+ }, $e = { class: "settings-wide workflow-approval-setting" }, et = { class: "settings-wide" }, tt = { class: "workflow-field" }, nt = { class: "settings-help" }, rt = { key: 1 }, it = { key: 2 }, at = { class: "toolbar" }, ot = { class: "publish-nodes" }, st = { key: 0 }, ct = { key: 0 }, lt = { key: 1 }, ut = { key: 0 }, j = /*#__PURE__*/ u(/* @__PURE__ */ b({
291
295
  name: "WorkflowConfigurationView",
292
296
  __name: "WorkflowConfigurationView",
293
297
  props: {
294
298
  moduleAlias: {},
295
299
  moduleTitle: {}
296
300
  },
297
- setup(ne) {
298
- let l = he();
299
- function pe(e) {
300
- return fe(e, l);
301
+ setup(ge) {
302
+ let c = o();
303
+ function u(e) {
304
+ return _e(e, c);
301
305
  }
302
- let b = ne, x = n({ moduleAlias: "platform.workflow.definition" }), E = oe(x.http, b.moduleAlias), Me = i({
306
+ let b = ge, x = a({ moduleAlias: "platform.workflow.definition" }), E = ce(x.http, b.moduleAlias), Ne = ee({
303
307
  http: x.http,
304
- language: l,
308
+ language: c,
305
309
  moduleAlias: b.moduleAlias,
306
310
  runtimeAccess: "VIEW"
307
- }), Ne = t(), Pe = p(() => Ne?.value?.tenantId ? i({
311
+ }), Pe = t(), Fe = p(() => Pe?.value?.tenantId ? ee({
308
312
  http: x.http,
309
- language: l,
313
+ language: c,
310
314
  moduleAlias: "iam.organization",
311
315
  runtimeAccess: "REFERENCE"
312
316
  }) : void 0);
@@ -315,16 +319,16 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
315
319
  predicate: (e) => e.type === "configuration-translations-changed",
316
320
  handler: async () => {
317
321
  try {
318
- await Me.runtime.refreshTexts?.();
322
+ await Ne.runtime.refreshTexts?.();
319
323
  } catch (e) {
320
- d(e, {
324
+ l(e, {
321
325
  source: "workflow-design",
322
326
  phase: "load"
323
327
  });
324
328
  }
325
329
  }
326
330
  });
327
- let Fe = p(() => ee(Me.runtime)), O = p(() => [...te(Fe.value?.uiDescriptor)].map(([e, t]) => ({
331
+ let Ie = p(() => oe(Ne.runtime)), O = p(() => [...r(Ie.value?.uiDescriptor)].map(([e, t]) => ({
328
332
  name: e,
329
333
  label: t.label ?? e,
330
334
  valueType: t.valueType,
@@ -334,99 +338,99 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
334
338
  queries: [],
335
339
  generations: [],
336
340
  associations: []
337
- }), Ie = p(() => (Fe.value?.actions ?? []).map((e) => ({
341
+ }), Le = p(() => (Ie.value?.actions ?? []).map((e) => ({
338
342
  value: e.actionCode,
339
- label: e.title ?? pe(e.actionCode)
343
+ label: e.title ?? u(e.actionCode)
340
344
  })));
341
- async function Le(e) {
345
+ async function Re(e) {
342
346
  k.value = await E.catalog(e);
343
347
  }
344
- let j = C(!1), ut = C(!1), M = C(!1);
345
- async function dt() {
348
+ let j = C(!1), dt = C(!1), M = C(!1);
349
+ async function ft() {
346
350
  try {
347
- await Me.runtime.ready;
351
+ await Ne.runtime.ready;
348
352
  } catch (e) {
349
- d(e, {
353
+ l(e, {
350
354
  source: "workflow-design",
351
355
  phase: "load"
352
356
  });
353
357
  }
354
358
  }
355
- let ft = p(() => [
359
+ let pt = p(() => [
356
360
  {
357
361
  key: "save",
358
- title: l.t("platform.screen.WorkflowConfigurationView.save-draft", "保存草稿"),
362
+ title: c.t("platform.screen.WorkflowConfigurationView.save-draft", "保存草稿"),
359
363
  level: "primary",
360
364
  disabled: !Q.value || !H.value
361
365
  },
362
366
  {
363
367
  key: "validate",
364
- title: l.t("platform.screen.WorkflowConfigurationView.validate-workflow", "校验流程"),
368
+ title: c.t("platform.screen.WorkflowConfigurationView.validate-workflow", "校验流程"),
365
369
  disabled: !Q.value
366
370
  },
367
371
  {
368
372
  key: "publish",
369
- title: L.value?.publishStatus === "published" ? l.t("platform.screen.WorkflowConfigurationView.enable-published", "启用已发布版本") : l.t("platform.screen.WorkflowConfigurationView.publish-workflow", "发布流程"),
373
+ title: L.value?.publishStatus === "published" ? c.t("platform.screen.WorkflowConfigurationView.enable-published", "启用已发布版本") : c.t("platform.screen.WorkflowConfigurationView.publish-workflow", "发布流程"),
370
374
  disabled: !L.value || V.value || M.value
371
375
  },
372
376
  {
373
377
  key: "upgrade",
374
- title: l.t("platform.screen.WorkflowConfigurationView.create-version", "创建新版本"),
378
+ title: c.t("platform.screen.WorkflowConfigurationView.create-version", "创建新版本"),
375
379
  level: "secondary",
376
380
  disabled: V.value || H.value || M.value
377
381
  },
378
382
  {
379
383
  key: "selection",
380
- title: l.t("platform.screen.WorkflowConfigurationView.matching-rules", "匹配规则"),
384
+ title: c.t("platform.screen.WorkflowConfigurationView.matching-rules", "匹配规则"),
381
385
  level: "secondary",
382
386
  disabled: V.value || H.value
383
387
  },
384
388
  {
385
389
  key: "disable",
386
- title: l.t("platform.screen.WorkflowConfigurationView.disable", "停用"),
390
+ title: c.t("platform.screen.WorkflowConfigurationView.disable", "停用"),
387
391
  level: "secondary",
388
392
  danger: !0,
389
393
  disabled: V.value || H.value || M.value
390
394
  },
391
395
  {
392
396
  key: "archive",
393
- title: l.t("platform.screen.WorkflowConfigurationView.archive", "归档"),
397
+ title: c.t("platform.screen.WorkflowConfigurationView.archive", "归档"),
394
398
  level: "secondary",
395
399
  danger: !0,
396
400
  disabled: V.value || H.value || M.value
397
401
  }
398
402
  ]);
399
- function pt(e) {
400
- e === "save" ? Nt() : e === "validate" ? Pt() : e === "publish" ? ut.value = !0 : e === "upgrade" ? It() : e === "selection" ? jt() : Lt(e);
401
- }
402
403
  function mt(e) {
404
+ e === "save" ? Pt() : e === "validate" ? Ft() : e === "publish" ? dt.value = !0 : e === "upgrade" ? Lt() : e === "selection" ? Mt() : Rt(e);
405
+ }
406
+ function ht(e) {
403
407
  try {
404
- return be(e).map((e) => ({
405
- INITIATOR_SELF: l.t("platform.workflow-participant.initiator", "提交人本人"),
406
- USER: l.t("platform.workflow-participant.named-accounts", "指定账号"),
407
- ROLE: l.t("platform.workflow-participant.role-members", "角色成员"),
408
- DEPT: l.t("platform.workflow-participant.department-members", "部门成员"),
409
- ORG: l.t("platform.workflow-participant.organization-members", "组织成员"),
410
- FIELD: l.t("platform.workflow-participant.participant-field", "业务人员字段"),
411
- RELATIVE: l.t("platform.workflow-participant.relative-participants", "相对人员")
412
- }[e.type] ?? e.type) + (e.ids?.length ? l.t("platform.workflow-config.target-count", "({count} 个目标)", { count: e.ids.length }) : e.fieldName ? `(${O.value.find((t) => t.name === e.fieldName)?.label ?? e.fieldName})` : "")).join("、") || l.t("platform.workflow-config.empty-participants", "尚未配置参与人");
408
+ return Ce(e).map((e) => ({
409
+ INITIATOR_SELF: c.t("platform.workflow-participant.initiator", "提交人本人"),
410
+ USER: c.t("platform.workflow-participant.named-accounts", "指定账号"),
411
+ ROLE: c.t("platform.workflow-participant.role-members", "角色成员"),
412
+ DEPT: c.t("platform.workflow-participant.department-members", "部门成员"),
413
+ ORG: c.t("platform.workflow-participant.organization-members", "组织成员"),
414
+ FIELD: c.t("platform.workflow-participant.participant-field", "业务人员字段"),
415
+ RELATIVE: c.t("platform.workflow-participant.relative-participants", "相对人员")
416
+ }[e.type] ?? e.type) + (e.ids?.length ? c.t("platform.workflow-config.target-count", "({count} 个目标)", { count: e.ids.length }) : e.fieldName ? `(${O.value.find((t) => t.name === e.fieldName)?.label ?? e.fieldName})` : "")).join("、") || c.t("platform.workflow-config.empty-participants", "尚未配置参与人");
413
417
  } catch {
414
- return l.t("platform.workflow-config.invalid-participants", "人员配置格式无效");
418
+ return c.t("platform.workflow-config.invalid-participants", "人员配置格式无效");
415
419
  }
416
420
  }
417
- let ht = C(""), gt = C(!1), N = C(), P = C([]), F = C([]), I = C(), L = C(), R = C({
421
+ let gt = C(""), _t = C(!1), N = C(), P = C([]), F = C([]), I = C(), L = C(), R = C({
418
422
  nodes: [],
419
423
  links: []
420
- }), z = C(""), B = C(""), V = C(!1), H = C(!1), U = C(!1), W = C(!1), G = C(""), K = C(""), q = C(""), J = C(""), Y = C("0"), X = C(!1), Z = C(!0), _t = p(() => ["published", "archived"].includes(L.value?.publishStatus ?? "")), Q = p(() => L.value?.publishStatus === "draft" && !V.value), vt = p(() => R.value.nodes.find((e) => e.nodeKey === z.value)), yt = p(() => R.value.links.find((e) => e.routeKey === B.value));
421
- function bt(e) {
424
+ }), z = C(""), B = C(""), V = C(!1), H = C(!1), U = C(!1), W = C(!1), G = C(""), K = C(""), q = C(""), J = C(""), Y = C("0"), X = C(!1), Z = C(!0), vt = p(() => ["published", "archived"].includes(L.value?.publishStatus ?? "")), Q = p(() => L.value?.publishStatus === "draft" && !V.value), yt = p(() => R.value.nodes.find((e) => e.nodeKey === z.value)), bt = p(() => R.value.links.find((e) => e.routeKey === B.value));
425
+ function xt(e) {
422
426
  let t = R.value.nodes.find((t) => t.nodeKey === e.convergeNodeKey), n = {
423
- all: l.t("platform.workflow-config.all-arrive", "全部到达"),
424
- any: l.t("platform.workflow-config.any-arrive", "任一到达"),
425
- ratio: l.t("platform.workflow-config.ratio-arrive", "比例到达")
427
+ all: c.t("platform.workflow-config.all-arrive", "全部到达"),
428
+ any: c.t("platform.workflow-config.any-arrive", "任一到达"),
429
+ ratio: c.t("platform.workflow-config.ratio-arrive", "比例到达")
426
430
  }, r = t?.convergeMode ?? "all";
427
431
  return `${n[r]}${r === "ratio" ? ` ${t?.convergeRatio ?? 100}%` : ""}`;
428
432
  }
429
- ve(() => l.t("platform.workflow-config.configuration", "流程配置"), () => H.value || M.value, () => V.value), Ae([
433
+ Ee(() => c.t("platform.workflow-config.configuration", "流程配置"), () => H.value || M.value, () => V.value), je([
430
434
  K,
431
435
  G,
432
436
  Z,
@@ -436,8 +440,8 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
436
440
  X
437
441
  ], () => {
438
442
  (W.value || U.value) && (M.value = !0);
439
- }, { flush: "sync" }), Oe(() => {
440
- xt(), dt();
443
+ }, { flush: "sync" }), ke(() => {
444
+ St(), ft();
441
445
  });
442
446
  async function $(e) {
443
447
  if (!V.value) {
@@ -445,7 +449,7 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
445
449
  try {
446
450
  await e();
447
451
  } catch (e) {
448
- d(e, {
452
+ l(e, {
449
453
  source: "workflow-design",
450
454
  phase: "action"
451
455
  });
@@ -454,21 +458,21 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
454
458
  }
455
459
  }
456
460
  }
457
- async function xt() {
461
+ async function St() {
458
462
  if (!(V.value || H.value || M.value)) {
459
- V.value = !0, gt.value = !0, N.value = void 0;
463
+ V.value = !0, _t.value = !0, N.value = void 0;
460
464
  try {
461
465
  P.value = await E.query();
462
466
  } catch (e) {
463
- N.value = () => de(ce(e), l);
467
+ N.value = () => xe(we(e), c);
464
468
  } finally {
465
- gt.value = !1, V.value = !1;
469
+ _t.value = !1, V.value = !1;
466
470
  }
467
471
  }
468
472
  }
469
- async function St(e) {
473
+ async function Ct(e) {
470
474
  if (H.value || M.value) {
471
- d(Error(l.t("platform.workflow-config.save-first", "请先保存流程设计")), {
475
+ l(Error(c.t("platform.workflow-config.save-first", "请先保存流程设计")), {
472
476
  source: "workflow-design",
473
477
  phase: "validation"
474
478
  });
@@ -482,21 +486,21 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
482
486
  W.value = !1, U.value = !1, I.value = e, k.value = t, F.value = n, L.value = r, R.value = i, K.value = e.title ?? e.alias, q.value = e.organizationId ?? "", J.value = e.matchExpression ?? "", Y.value = String(e.matchPriority ?? 0), X.value = e.defaultDefinition === !0, z.value = i.nodes[0]?.nodeKey ?? "", B.value = "", j.value = !1;
483
487
  });
484
488
  }
485
- async function Ct(e) {
489
+ async function wt(e) {
486
490
  let t = await E.design(I.value.id, e.id);
487
491
  L.value = e, R.value = t, H.value = !1, z.value = R.value.nodes[0]?.nodeKey ?? "", B.value = "", j.value = !1;
488
492
  }
489
- async function wt(e) {
493
+ async function Tt(e) {
490
494
  if (H.value || M.value) return;
491
495
  let t = F.value.find((t) => t.id === e);
492
- t && await $(() => Ct(t));
496
+ t && await $(() => wt(t));
493
497
  }
494
- function Tt() {
498
+ function Et() {
495
499
  V.value || H.value || M.value || (K.value = "", G.value = "", q.value = "", J.value = "", Y.value = "0", X.value = !1, Z.value = !0, U.value = !0, M.value = !1);
496
500
  }
497
- let Et = p(() => /^-?\d+$/.test(Y.value.trim()) && Number(Y.value) >= -2147483648 && Number(Y.value) <= 2147483647), Dt = p(() => /^[a-z][a-z0-9_]{0,62}$/.test(G.value.trim())), Ot = p(() => !!K.value.trim() && Et.value);
498
- async function kt() {
499
- Dt.value && Ot.value && await $(async () => {
501
+ let Dt = p(() => /^-?\d+$/.test(Y.value.trim()) && Number(Y.value) >= -2147483648 && Number(Y.value) <= 2147483647), Ot = p(() => /^[a-z][a-z0-9_]{0,62}$/.test(G.value.trim())), kt = p(() => !!K.value.trim() && Dt.value);
502
+ async function At() {
503
+ Ot.value && kt.value && await $(async () => {
500
504
  let e = await E.create({
501
505
  alias: G.value.trim(),
502
506
  title: K.value.trim(),
@@ -515,27 +519,27 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
515
519
  queries: [],
516
520
  generations: [],
517
521
  associations: []
518
- }, z.value = "", B.value = "", j.value = !1, ht.value = "", await Le(e.id);
522
+ }, z.value = "", B.value = "", j.value = !1, gt.value = "", await Re(e.id);
519
523
  let t = await E.upgrade(e.id);
520
- F.value = [t], L.value = t, R.value = Ge(Z.value), H.value = !0, Rt("approval");
524
+ F.value = [t], L.value = t, R.value = Ke(Z.value), H.value = !0, zt("approval");
521
525
  });
522
526
  }
523
- async function At() {
524
- (!M.value || await Ce({
525
- title: l.t("platform.workflow-config.discard-confirm", "放弃未保存的流程设置?"),
527
+ async function jt() {
528
+ (!M.value || await me({
529
+ title: c.t("platform.workflow-config.discard-confirm", "放弃未保存的流程设置?"),
526
530
  danger: !0,
527
- okText: l.t("platform.workflow-config.discard", "放弃修改")
528
- }, l)) && (U.value = !1, W.value = !1, M.value = !1, I.value && (K.value = I.value.title ?? I.value.alias, q.value = I.value.organizationId ?? "", J.value = I.value.matchExpression ?? "", Y.value = String(I.value.matchPriority ?? 0), X.value = I.value.defaultDefinition === !0));
531
+ okText: c.t("platform.workflow-config.discard", "放弃修改")
532
+ }, c)) && (U.value = !1, W.value = !1, M.value = !1, I.value && (K.value = I.value.title ?? I.value.alias, q.value = I.value.organizationId ?? "", J.value = I.value.matchExpression ?? "", Y.value = String(I.value.matchPriority ?? 0), X.value = I.value.defaultDefinition === !0));
529
533
  }
530
- async function jt() {
534
+ async function Mt() {
531
535
  if (W.value) {
532
- await At();
536
+ await jt();
533
537
  return;
534
538
  }
535
539
  W.value = !0;
536
540
  }
537
- async function Mt() {
538
- !V.value && I.value && Ot.value && await $(async () => {
541
+ async function Nt() {
542
+ !V.value && I.value && kt.value && await $(async () => {
539
543
  let e = await E.saveSelection(I.value.id, {
540
544
  version: I.value.version,
541
545
  title: K.value,
@@ -544,182 +548,182 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
544
548
  matchPriority: Number(Y.value),
545
549
  defaultDefinition: X.value
546
550
  });
547
- P.value = P.value.map((t) => t.id === e.id ? e : t), I.value = e, W.value = !1, M.value = !1, u(l.t("platform.workflow-config.matching-saved", "流程匹配规则已保存,后续提交生效"));
551
+ P.value = P.value.map((t) => t.id === e.id ? e : t), I.value = e, W.value = !1, M.value = !1, d(c.t("platform.workflow-config.matching-saved", "流程匹配规则已保存,后续提交生效"));
548
552
  });
549
553
  }
550
- async function Nt() {
554
+ async function Pt() {
551
555
  L.value && I.value && await $(async () => {
552
- L.value = await E.saveDesign(I.value.id, L.value.id, L.value.version, R.value), F.value = F.value.map((e) => e.id === L.value.id ? L.value : e), H.value = !1, u(l.t("platform.workflow-config.draft-saved", "流程草稿已保存"));
556
+ L.value = await E.saveDesign(I.value.id, L.value.id, L.value.version, R.value), F.value = F.value.map((e) => e.id === L.value.id ? L.value : e), H.value = !1, d(c.t("platform.workflow-config.draft-saved", "流程草稿已保存"));
553
557
  });
554
558
  }
555
- async function Pt() {
556
- H.value && await Nt(), !H.value && L.value && await $(async () => {
557
- await E.validate(I.value.id, L.value.id), u(l.t("platform.workflow-config.validated", "流程发布校验通过"));
559
+ async function Ft() {
560
+ H.value && await Pt(), !H.value && L.value && await $(async () => {
561
+ await E.validate(I.value.id, L.value.id), d(c.t("platform.workflow-config.validated", "流程发布校验通过"));
558
562
  });
559
563
  }
560
- async function Ft() {
561
- if (R.value.nodes.some((e) => ["approval", "task"].includes(e.nodeType) && !se(e.participantPolicyText))) {
562
- d(Error(l.t("platform.workflow-config.participants-required", "请为每个审批或业务任务节点明确配置参与人")), {
564
+ async function It() {
565
+ if (R.value.nodes.some((e) => ["approval", "task"].includes(e.nodeType) && !be(e.participantPolicyText))) {
566
+ l(Error(c.t("platform.workflow-config.participants-required", "请为每个审批或业务任务节点明确配置参与人")), {
563
567
  source: "workflow-design",
564
568
  phase: "validation"
565
569
  });
566
570
  return;
567
571
  }
568
- H.value && await Nt(), !H.value && I.value && L.value && (await $(async () => {
569
- L.value = await E.publish(I.value.id, L.value.id, I.value.version, L.value.version), F.value = F.value.map((e) => e.id === L.value.id ? L.value : e), I.value = await E.view(I.value.id), H.value = !1, ut.value = !1, u(l.t("platform.workflow-config.published", "流程已发布,后续新申请使用该版本"));
570
- }), await xt());
572
+ H.value && await Pt(), !H.value && I.value && L.value && (await $(async () => {
573
+ L.value = await E.publish(I.value.id, L.value.id, I.value.version, L.value.version), F.value = F.value.map((e) => e.id === L.value.id ? L.value : e), I.value = await E.view(I.value.id), H.value = !1, dt.value = !1, d(c.t("platform.workflow-config.published", "流程已发布,后续新申请使用该版本"));
574
+ }), await St());
571
575
  }
572
- async function It() {
576
+ async function Lt() {
573
577
  I.value && await $(async () => {
574
578
  let e = await E.upgrade(I.value.id);
575
- F.value = [e, ...F.value.filter((t) => t.id !== e.id)], await Ct(e), R.value.nodes.length || (R.value = Ge(I.value.approvalEnabled), H.value = !0, Rt("approval"));
579
+ F.value = [e, ...F.value.filter((t) => t.id !== e.id)], await wt(e), R.value.nodes.length || (R.value = Ke(I.value.approvalEnabled), H.value = !0, zt("approval"));
576
580
  });
577
581
  }
578
- async function Lt(e) {
579
- I.value && await Ce({
580
- title: e === "archive" ? l.t("platform.workflow-config.archive-confirm", "归档此流程?") : l.t("platform.workflow-config.disable-confirm", "停用此流程?"),
581
- content: l.t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。"),
582
+ async function Rt(e) {
583
+ I.value && await me({
584
+ title: e === "archive" ? c.t("platform.workflow-config.archive-confirm", "归档此流程?") : c.t("platform.workflow-config.disable-confirm", "停用此流程?"),
585
+ content: c.t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。"),
582
586
  danger: !0
583
- }, l) && (await $(async () => {
584
- I.value = await E.changeStatus(I.value.id, e, I.value.version), u(l.t("platform.workflow-config.status-updated", "流程状态已更新"));
585
- }), await xt());
587
+ }, c) && (await $(async () => {
588
+ I.value = await E.changeStatus(I.value.id, e, I.value.version), d(c.t("platform.workflow-config.status-updated", "流程状态已更新"));
589
+ }), await St());
586
590
  }
587
- function Rt(e) {
591
+ function zt(e) {
588
592
  z.value = e, B.value = "", j.value = !!e;
589
593
  }
590
- function zt(e) {
594
+ function Bt(e) {
591
595
  B.value = e, z.value = "", j.value = !!e;
592
596
  }
593
- function Bt(e) {
597
+ function Vt(e) {
594
598
  Q.value && R.value.layoutJson !== e && (R.value = {
595
599
  ...R.value,
596
600
  layoutJson: e
597
601
  }, H.value = !0);
598
602
  }
599
- function Vt(e) {
600
- vt.value && Q.value && (Object.assign(vt.value, e), H.value = !0);
601
- }
602
603
  function Ht(e) {
603
- yt.value && Q.value && (R.value = He(R.value, yt.value.routeKey, e), H.value = !0);
604
+ yt.value && Q.value && (Object.assign(yt.value, e), H.value = !0);
605
+ }
606
+ function Ut(e) {
607
+ bt.value && Q.value && (R.value = Ue(R.value, bt.value.routeKey, e), H.value = !0);
604
608
  }
605
- function Ut() {
609
+ function Wt() {
606
610
  let e = R.value.links.filter((e) => e.sourceNodeKey === z.value);
607
611
  return B.value || (e.length === 1 ? e[0]?.routeKey : void 0) || "";
608
612
  }
609
- function Wt() {
613
+ function Gt() {
610
614
  if (!Q.value) return;
611
615
  let e = `branch_${Date.now().toString(36)}`;
612
616
  try {
613
- R.value = ze(R.value, Ut(), e), H.value = !0, Rt(e);
617
+ R.value = Be(R.value, Wt(), e), H.value = !0, zt(e);
614
618
  } catch (e) {
615
- d(e, {
619
+ l(e, {
616
620
  source: "workflow-design",
617
621
  phase: "validation"
618
622
  });
619
623
  }
620
624
  }
621
- function Gt() {
625
+ function Kt() {
622
626
  if (Q.value) try {
623
- R.value = Be(R.value, z.value, `path_${Date.now().toString(36)}`), H.value = !0;
627
+ R.value = Ve(R.value, z.value, `path_${Date.now().toString(36)}`), H.value = !0;
624
628
  } catch (e) {
625
- d(e, {
629
+ l(e, {
626
630
  source: "workflow-design",
627
631
  phase: "validation"
628
632
  });
629
633
  }
630
634
  }
631
- async function Kt() {
635
+ async function qt() {
632
636
  if (Q.value) try {
633
- let e = Ve(R.value, z.value);
634
- if (!await Ce({
635
- title: l.t("platform.workflow-config.delete-branch-confirm", "删除整个分支?"),
636
- content: l.t("platform.workflow-config.delete-branch-detail", "将删除分支、配对汇聚及其中 {count} 个节点,并连接前后路径。", { count: R.value.nodes.length - e.nodes.length - 2 }),
637
+ let e = He(R.value, z.value);
638
+ if (!await me({
639
+ title: c.t("platform.workflow-config.delete-branch-confirm", "删除整个分支?"),
640
+ content: c.t("platform.workflow-config.delete-branch-detail", "将删除分支、配对汇聚及其中 {count} 个节点,并连接前后路径。", { count: R.value.nodes.length - e.nodes.length - 2 }),
637
641
  danger: !0,
638
- okText: l.t("platform.workflow-config.delete-branch", "删除分支")
639
- }, l)) return;
642
+ okText: c.t("platform.workflow-config.delete-branch", "删除分支")
643
+ }, c)) return;
640
644
  R.value = e, H.value = !0, z.value = "", j.value = !1;
641
645
  } catch (e) {
642
- d(e, {
646
+ l(e, {
643
647
  source: "workflow-design",
644
648
  phase: "validation"
645
649
  });
646
650
  }
647
651
  }
648
- function qt() {
652
+ function Jt() {
649
653
  if (!Q.value) return;
650
654
  let e = R.value.links.filter((e) => e.sourceNodeKey === z.value), t = B.value || (e.length === 1 ? e[0]?.routeKey : void 0), n = `node_${Date.now().toString(36)}`;
651
655
  try {
652
- R.value = Ue(R.value, t ?? "", A(n, "新审批节点")), H.value = !0, Rt(n);
656
+ R.value = We(R.value, t ?? "", A(n, "新审批节点")), H.value = !0, zt(n);
653
657
  } catch (e) {
654
- d(e, {
658
+ l(e, {
655
659
  source: "workflow-design",
656
660
  phase: "validation"
657
661
  });
658
662
  }
659
663
  }
660
- function Jt() {
664
+ function Yt() {
661
665
  if (Q.value) try {
662
- R.value = We(R.value, z.value), H.value = !0, z.value = "", j.value = !1;
666
+ R.value = Ge(R.value, z.value), H.value = !0, z.value = "", j.value = !1;
663
667
  } catch (e) {
664
- d(e, {
668
+ l(e, {
665
669
  source: "workflow-design",
666
670
  phase: "validation"
667
671
  });
668
672
  }
669
673
  }
670
- function Yt() {
674
+ function Xt() {
671
675
  Q.value && (R.value.links = R.value.links.filter((e) => e.routeKey !== B.value), B.value = "", H.value = !0);
672
676
  }
673
- function Xt() {
677
+ function Zt() {
674
678
  if (!Q.value) return;
675
679
  let e = R.value.nodes[0], t = R.value.nodes.find((e) => e.nodeType === "end");
676
680
  if (!e || !t) return;
677
681
  let n = `route_${Date.now().toString(36)}`;
678
682
  R.value.links.push({
679
683
  routeKey: n,
680
- sourceNodeKey: vt.value?.nodeKey ?? e.nodeKey,
684
+ sourceNodeKey: yt.value?.nodeKey ?? e.nodeKey,
681
685
  targetNodeKey: t.nodeKey,
682
686
  title: "新路径"
683
687
  }), B.value = n, z.value = "", j.value = !0, H.value = !0;
684
688
  }
685
- return (e, t) => (S(), g("section", Ke, [y(T(r), {
686
- "explorer-title": T(l).t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"),
687
- "refresh-title": T(l).t("platform.workflow-config.refresh-definitions", "刷新审批流程"),
689
+ return (e, t) => (S(), g("section", qe, [y(T(Te), {
690
+ "explorer-title": T(c).t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"),
691
+ "refresh-title": T(c).t("platform.workflow-config.refresh-definitions", "刷新审批流程"),
688
692
  mode: U.value ? "create" : W.value || H.value || M.value ? "edit" : "view",
689
693
  busy: V.value,
690
- "detail-title": U.value ? T(l).t("platform.screen.WorkflowConfigurationView.new-workflow", "新建流程") : I.value?.title ?? T(l).t("platform.workflow-config.configuration", "流程配置"),
691
- "explorer-search-keyword": ht.value,
692
- "onUpdate:explorerSearchKeyword": t[18] ||= (e) => ht.value = e,
693
- onRefresh: xt
694
- }, Ee({
695
- "explorer-actions": D(() => [y(T(xe), {
694
+ "detail-title": U.value ? T(c).t("platform.screen.WorkflowConfigurationView.new-workflow", "新建流程") : I.value?.title ?? T(c).t("platform.workflow-config.configuration", "流程配置"),
695
+ "explorer-search-keyword": gt.value,
696
+ "onUpdate:explorerSearchKeyword": t[18] ||= (e) => gt.value = e,
697
+ onRefresh: St
698
+ }, De({
699
+ "explorer-actions": D(() => [y(T(ie), {
696
700
  class: "record-panel-create-button",
697
701
  "icon-name": "plus",
698
- title: T(l).t("platform.screen.WorkflowConfigurationView.new-workflow", "新建流程"),
702
+ title: T(c).t("platform.screen.WorkflowConfigurationView.new-workflow", "新建流程"),
699
703
  disabled: V.value || U.value || H.value || M.value,
700
- onClick: Tt
704
+ onClick: Et
701
705
  }, null, 8, ["title", "disabled"])]),
702
- explorer: D(() => [N.value ? (S(), g(f, { key: 0 }, [y(T(le), { message: N.value() }, null, 8, ["message"]), y(T(s), {
706
+ explorer: D(() => [N.value ? (S(), g(f, { key: 0 }, [y(T(se), { message: N.value() }, null, 8, ["message"]), y(T(n), {
703
707
  type: "text",
704
- onClick: xt
708
+ onClick: St
705
709
  }, {
706
- default: D(() => [v(w(T(l).t("platform.screen.CrudRecordListExplorer.reload", "重新加载")), 1)]),
710
+ default: D(() => [v(w(T(c).t("platform.screen.CrudRecordListExplorer.reload", "重新加载")), 1)]),
707
711
  _: 1
708
- })], 64)) : h("v-if", !0), gt.value && !P.value.length ? (S(), m(T(we), {
712
+ })], 64)) : h("v-if", !0), _t.value && !P.value.length ? (S(), m(T(i), {
709
713
  key: 1,
710
- tip: T(l).t("platform.workflow-config.loading-definitions", "正在加载审批流程")
711
- }, null, 8, ["tip"])) : !N.value || P.value.length ? (S(), m(T(_e), {
714
+ tip: T(c).t("platform.workflow-config.loading-definitions", "正在加载审批流程")
715
+ }, null, 8, ["tip"])) : !N.value || P.value.length ? (S(), m(T(he), {
712
716
  key: 2,
713
717
  records: P.value,
714
- keyword: ht.value,
715
- "empty-description": T(l).t("platform.workflow-config.no-definitions", "暂无流程,点击“新建流程”开始配置"),
718
+ keyword: gt.value,
719
+ "empty-description": T(c).t("platform.workflow-config.no-definitions", "暂无流程,点击“新建流程”开始配置"),
716
720
  "selected-id": I.value?.id,
717
721
  "item-of": (e) => ({
718
722
  title: String(e.title ?? e.alias ?? ""),
719
723
  secondary: String(e.alias ?? ""),
720
- tag: pe(String(e.definitionStatus ?? ""))
724
+ tag: u(String(e.definitionStatus ?? ""))
721
725
  }),
722
- onSelect: t[0] ||= (e) => St(P.value.find((t) => t.id === e.id))
726
+ onSelect: t[0] ||= (e) => Ct(P.value.find((t) => t.id === e.id))
723
727
  }, null, 8, [
724
728
  "records",
725
729
  "keyword",
@@ -730,52 +734,61 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
730
734
  default: D(() => [U.value ? (S(), g("form", {
731
735
  key: 0,
732
736
  class: "property-form",
733
- onSubmit: je(kt, ["prevent"])
737
+ onSubmit: Me(At, ["prevent"])
734
738
  }, [
735
- _("p", qe, w(T(l).t("platform.workflow-config.creation-help", "先创建草稿,再配置节点和参与人;发布后才会用于后续申请。")), 1),
736
- _("label", Je, [y(T(ae), { required: "" }, {
737
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
739
+ _("p", Je, w(T(c).t("platform.workflow-config.creation-help", "先创建草稿,再配置节点和参与人;发布后才会用于后续申请。")), 1),
740
+ _("label", Ye, [y(T(fe), { required: "" }, {
741
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
738
742
  _: 1
739
- }), y(T(re), {
743
+ }), y(T(s), {
740
744
  disabled: V.value,
741
745
  value: K.value,
742
746
  "onUpdate:value": t[2] ||= (e) => K.value = e,
743
747
  required: "",
744
- "aria-label": T(l).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")
748
+ "aria-label": T(c).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")
745
749
  }, null, 8, [
746
750
  "disabled",
747
751
  "value",
748
752
  "aria-label"
749
753
  ])]),
750
- _("label", Ye, [
751
- y(T(ae), { required: "" }, {
752
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.workflow-code", "流程编码")), 1)]),
754
+ _("div", Xe, [_("label", Ze, [
755
+ y(T(fe), { required: "" }, {
756
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.workflow-code", "流程编码")), 1)]),
753
757
  _: 1
754
758
  }),
755
- y(T(re), {
759
+ y(T(s), {
756
760
  disabled: V.value,
757
761
  value: G.value,
758
762
  "onUpdate:value": t[3] ||= (e) => G.value = e,
759
763
  required: "",
760
- invalid: !!G.value.trim() && !Dt.value,
761
- "aria-label": T(l).t("platform.screen.WorkflowConfigurationView.workflow-code", "流程编码")
764
+ invalid: !!G.value.trim() && !Ot.value,
765
+ "aria-label": T(c).t("platform.screen.WorkflowConfigurationView.workflow-code", "流程编码")
762
766
  }, null, 8, [
763
767
  "disabled",
764
768
  "value",
765
769
  "invalid",
766
770
  "aria-label"
767
771
  ]),
768
- _("small", Xe, w(T(l).t("platform.workflow-config.alias-help", "小写字母开头,仅含小写字母、数字和下划线,最多 63 个字符。")), 1)
769
- ]),
770
- _("div", Ze, [y(T(o), {
772
+ G.value.trim() && !Ot.value ? (S(), g("small", Qe, w(T(c).t("platform.workflow-config.alias-help", "小写字母开头,仅含小写字母、数字和下划线,最多 63 个字符。")), 1)) : h("v-if", !0)
773
+ ]), y(T(ae), {
774
+ class: "workflow-field-help__trigger",
775
+ label: T(c).t("platform.workflow-config.alias-help-title", "流程编码格式说明")
776
+ }, {
777
+ default: D(() => [v(w(T(c).t("platform.workflow-config.alias-help", "小写字母开头,仅含小写字母、数字和下划线,最多 63 个字符。")), 1)]),
778
+ _: 1
779
+ }, 8, ["label"])]),
780
+ _("div", $e, [y(T(ue), {
771
781
  disabled: V.value,
772
782
  checked: Z.value,
773
783
  "onUpdate:checked": t[4] ||= (e) => Z.value = e
774
784
  }, {
775
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.govern-business-approval-status", "驱动业务审批状态")), 1)]),
785
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.govern-business-approval-status", "驱动业务审批状态")), 1)]),
786
+ _: 1
787
+ }, 8, ["disabled", "checked"]), y(T(ae), { label: T(c).t("platform.workflow-config.approval-help-title", "审批状态说明") }, {
788
+ default: D(() => [v(w(T(c).t("platform.workflow-config.approval-help", "开启后回写业务记录的审批状态;关闭后仅编排任务流程。")), 1)]),
776
789
  _: 1
777
- }, 8, ["disabled", "checked"]), _("small", Qe, w(T(l).t("platform.workflow-config.approval-help", "开启后回写业务记录的审批状态;关闭后仅编排任务流程。")), 1)]),
778
- _("details", $e, [_("summary", null, w(T(l).t("platform.workflow-config.optional-matching", "适用范围与匹配规则(可选)")), 1), y(Re, {
790
+ }, 8, ["label"])]),
791
+ _("details", et, [_("summary", null, w(T(c).t("platform.workflow-config.optional-matching", "适用范围与匹配规则(可选)")), 1), y(ze, {
779
792
  class: "optional-settings",
780
793
  "organization-id": q.value,
781
794
  "onUpdate:organizationId": t[5] ||= (e) => q.value = e,
@@ -785,10 +798,10 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
785
798
  "onUpdate:matchPriority": t[7] ||= (e) => Y.value = e,
786
799
  fallback: X.value,
787
800
  "onUpdate:fallback": t[8] ||= (e) => X.value = e,
788
- "organization-context": Pe.value,
801
+ "organization-context": Fe.value,
789
802
  fields: O.value,
790
803
  disabled: V.value,
791
- "invalid-priority": !Et.value
804
+ "invalid-priority": !Dt.value
792
805
  }, null, 8, [
793
806
  "organization-id",
794
807
  "match-expression",
@@ -800,17 +813,17 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
800
813
  "invalid-priority"
801
814
  ])])
802
815
  ], 32)) : I.value ? (S(), g(f, { key: 1 }, [
803
- _("div", { class: De(["toolbar", { "configuration-toolbar--properties": j.value }]) }, [y(T(ie), {
816
+ _("div", { class: Oe(["toolbar", { "configuration-toolbar--properties": j.value }]) }, [y(T(de), {
804
817
  value: L.value?.id,
805
818
  options: F.value.map((e) => ({
806
819
  value: e.id,
807
- label: T(l).t("platform.screen.WorkflowConfigurationView.version-value-value", "版本 {value1} · {value2}", {
820
+ label: T(c).t("platform.screen.WorkflowConfigurationView.version-value-value", "版本 {value1} · {value2}", {
808
821
  value1: e.versionNo,
809
- value2: pe(e.publishStatus)
822
+ value2: u(e.publishStatus)
810
823
  })
811
824
  })),
812
825
  disabled: V.value || H.value || M.value || W.value,
813
- "onUpdate:value": t[9] ||= (e) => wt(String(e))
826
+ "onUpdate:value": t[9] ||= (e) => Tt(String(e))
814
827
  }, null, 8, [
815
828
  "value",
816
829
  "options",
@@ -819,22 +832,22 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
819
832
  W.value ? (S(), g("form", {
820
833
  key: 0,
821
834
  class: "property-form",
822
- onSubmit: je(Mt, ["prevent"])
835
+ onSubmit: Me(Nt, ["prevent"])
823
836
  }, [
824
- y(T(c), {
837
+ y(T(re), {
825
838
  class: "settings-wide",
826
- title: T(l).t("platform.screen.WorkflowConfigurationView.workflow-matching-rules", "流程匹配规则")
839
+ title: T(c).t("platform.screen.WorkflowConfigurationView.workflow-matching-rules", "流程匹配规则")
827
840
  }, null, 8, ["title"]),
828
- _("label", et, [y(T(ae), { required: "" }, {
829
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
841
+ _("label", tt, [y(T(fe), { required: "" }, {
842
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
830
843
  _: 1
831
- }), y(T(re), {
844
+ }), y(T(s), {
832
845
  disabled: V.value,
833
846
  value: K.value,
834
847
  "onUpdate:value": t[10] ||= (e) => K.value = e,
835
848
  required: ""
836
849
  }, null, 8, ["disabled", "value"])]),
837
- y(Re, {
850
+ y(ze, {
838
851
  "organization-id": q.value,
839
852
  "onUpdate:organizationId": t[11] ||= (e) => q.value = e,
840
853
  "match-expression": J.value,
@@ -843,10 +856,10 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
843
856
  "onUpdate:matchPriority": t[13] ||= (e) => Y.value = e,
844
857
  fallback: X.value,
845
858
  "onUpdate:fallback": t[14] ||= (e) => X.value = e,
846
- "organization-context": Pe.value,
859
+ "organization-context": Fe.value,
847
860
  fields: O.value,
848
861
  disabled: V.value,
849
- "invalid-priority": !Et.value
862
+ "invalid-priority": !Dt.value
850
863
  }, null, 8, [
851
864
  "organization-id",
852
865
  "match-expression",
@@ -857,11 +870,11 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
857
870
  "disabled",
858
871
  "invalid-priority"
859
872
  ]),
860
- _("p", tt, w(T(l).t("platform.screen.WorkflowConfigurationView.changes-affect-future-submissions-existing-instances-retain", "调整仅影响后续提交,已有实例保留原发布版本和分派快照。")), 1)
873
+ _("p", nt, w(T(c).t("platform.screen.WorkflowConfigurationView.changes-affect-future-submissions-existing-instances-retain", "调整仅影响后续提交,已有实例保留原发布版本和分派快照。")), 1)
861
874
  ], 32)) : h("v-if", !0),
862
- _t.value ? (S(), g("p", nt, w(T(l).t("platform.screen.WorkflowConfigurationView.this-version-is-frozen-create-a-new", "此版本已冻结。修改流程请创建新版本;已有实例继续使用原版本。")), 1)) : h("v-if", !0),
863
- H.value ? (S(), g("p", rt, w(T(l).t("platform.screen.WorkflowConfigurationView.the-draft-has-unsaved-changes", "草稿有未保存的修改")), 1)) : h("v-if", !0),
864
- _("div", { class: De(["configuration-design", { "configuration-design--properties": j.value }]) }, [(S(), m(T(ue), {
875
+ vt.value ? (S(), g("p", rt, w(T(c).t("platform.screen.WorkflowConfigurationView.this-version-is-frozen-create-a-new", "此版本已冻结。修改流程请创建新版本;已有实例继续使用原版本。")), 1)) : h("v-if", !0),
876
+ H.value ? (S(), g("p", it, w(T(c).t("platform.screen.WorkflowConfigurationView.the-draft-has-unsaved-changes", "草稿有未保存的修改")), 1)) : h("v-if", !0),
877
+ _("div", { class: Oe(["configuration-design", { "configuration-design--properties": j.value }]) }, [(S(), m(T(ye), {
865
878
  key: L.value?.id,
866
879
  nodes: R.value.nodes,
867
880
  routes: R.value.links,
@@ -870,9 +883,9 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
870
883
  "layout-json": R.value.layoutJson,
871
884
  editable: Q.value,
872
885
  interactive: "",
873
- onSelect: Rt,
874
- onSelectRoute: zt,
875
- onLayoutChange: Bt
886
+ onSelect: zt,
887
+ onSelectRoute: Bt,
888
+ onLayoutChange: Vt
876
889
  }, null, 8, [
877
890
  "nodes",
878
891
  "routes",
@@ -880,72 +893,72 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
880
893
  "selected-route-key",
881
894
  "layout-json",
882
895
  "editable"
883
- ])), _("div", it, [
884
- y(T(s), {
896
+ ])), _("div", at, [
897
+ y(T(n), {
885
898
  disabled: !Q.value,
886
- onClick: qt
899
+ onClick: Jt
887
900
  }, {
888
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.insert-approval-node", "插入审批节点")), 1)]),
901
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.insert-approval-node", "插入审批节点")), 1)]),
889
902
  _: 1
890
903
  }, 8, ["disabled"]),
891
- y(T(s), {
904
+ y(T(n), {
892
905
  disabled: !Q.value,
893
- onClick: Wt
906
+ onClick: Gt
894
907
  }, {
895
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.insert-branch-and-convergence", "插入分支与汇聚")), 1)]),
908
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.insert-branch-and-convergence", "插入分支与汇聚")), 1)]),
896
909
  _: 1
897
910
  }, 8, ["disabled"]),
898
- y(T(s), {
911
+ y(T(n), {
899
912
  disabled: !Q.value,
900
- onClick: Xt
913
+ onClick: Zt
901
914
  }, {
902
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.add-link", "添加连线")), 1)]),
915
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.add-link", "添加连线")), 1)]),
903
916
  _: 1
904
917
  }, 8, ["disabled"]),
905
- y(T(ie), {
918
+ y(T(de), {
906
919
  value: B.value || void 0,
907
- placeholder: T(l).t("platform.screen.WorkflowConfigurationView.select-link", "选择连线"),
920
+ placeholder: T(c).t("platform.screen.WorkflowConfigurationView.select-link", "选择连线"),
908
921
  options: R.value.links.map((e) => ({
909
922
  value: e.routeKey,
910
- label: `${e.title ?? T(l).t("platform.workflow-config.route", "路径")}:${R.value.nodes.find((t) => t.nodeKey === e.sourceNodeKey)?.title} → ${R.value.nodes.find((t) => t.nodeKey === e.targetNodeKey)?.title}`
923
+ label: `${e.title ?? T(c).t("platform.workflow-config.route", "路径")}:${R.value.nodes.find((t) => t.nodeKey === e.sourceNodeKey)?.title} → ${R.value.nodes.find((t) => t.nodeKey === e.targetNodeKey)?.title}`
911
924
  })),
912
- "onUpdate:value": t[15] ||= (e) => zt(String(e))
925
+ "onUpdate:value": t[15] ||= (e) => Bt(String(e))
913
926
  }, null, 8, [
914
927
  "value",
915
928
  "placeholder",
916
929
  "options"
917
930
  ])
918
931
  ])], 2),
919
- y(T(ge), {
932
+ y(T(te), {
920
933
  width: "wide",
921
934
  open: j.value,
922
- title: vt.value?.title ? T(l).t("platform.workflow-config.node-properties", "节点属性 · {title}", { title: vt.value.title }) : T(l).t("platform.workflow-config.route-properties", "路径属性"),
935
+ title: yt.value?.title ? T(c).t("platform.workflow-config.node-properties", "节点属性 · {title}", { title: yt.value.title }) : T(c).t("platform.workflow-config.route-properties", "路径属性"),
923
936
  onClose: t[17] ||= (e) => j.value = !1
924
937
  }, {
925
- operation: D(() => [y(T(s), {
938
+ operation: D(() => [y(T(n), {
926
939
  disabled: V.value,
927
940
  onClick: t[16] ||= (e) => j.value = !1
928
941
  }, {
929
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.finish-configuration", "完成配置")), 1)]),
942
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.finish-configuration", "完成配置")), 1)]),
930
943
  _: 1
931
944
  }, 8, ["disabled"])]),
932
- default: D(() => [y(T(ye), {
945
+ default: D(() => [y(T(Se), {
933
946
  design: R.value,
934
947
  "node-key": z.value,
935
948
  "route-key": B.value,
936
949
  editable: Q.value,
937
950
  http: T(x).http,
938
- "module-alias": ne.moduleAlias,
951
+ "module-alias": ge.moduleAlias,
939
952
  fields: O.value,
940
953
  catalog: k.value,
941
- actions: Ie.value,
942
- onUpdateNode: Vt,
943
- onUpdateRoute: Ht,
944
- onSelectRoute: zt,
945
- onRemoveNode: Jt,
946
- onRemoveRoute: Yt,
947
- onAppendBranchPath: Gt,
948
- onDeleteBranch: Kt
954
+ actions: Le.value,
955
+ onUpdateNode: Ht,
956
+ onUpdateRoute: Ut,
957
+ onSelectRoute: Bt,
958
+ onRemoveNode: Yt,
959
+ onRemoveRoute: Xt,
960
+ onAppendBranchPath: Kt,
961
+ onDeleteBranch: qt
949
962
  }, null, 8, [
950
963
  "design",
951
964
  "node-key",
@@ -959,48 +972,48 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
959
972
  ])]),
960
973
  _: 1
961
974
  }, 8, ["open", "title"])
962
- ], 64)) : (S(), m(T(a), {
975
+ ], 64)) : (S(), m(T(ne), {
963
976
  key: 2,
964
- description: T(l).t("platform.screen.WorkflowConfigurationView.select-or-create-a-workflow-to-configure", "选择或新建流程,配置节点、参与人、路径和业务完成条件。")
977
+ description: T(c).t("platform.screen.WorkflowConfigurationView.select-or-create-a-workflow-to-configure", "选择或新建流程,配置节点、参与人、路径和业务完成条件。")
965
978
  }, null, 8, ["description"]))]),
966
979
  _: 2
967
980
  }, [I.value && !U.value ? {
968
981
  name: "detail-actions",
969
- fn: D(() => [y(T(Te), {
982
+ fn: D(() => [y(T(le), {
970
983
  class: "configuration-action-bar",
971
- actions: ft.value,
972
- onAction: t[1] ||= (e) => pt(e.key)
984
+ actions: pt.value,
985
+ onAction: t[1] ||= (e) => mt(e.key)
973
986
  }, null, 8, ["actions"])]),
974
987
  key: "0"
975
988
  } : void 0, U.value || W.value ? {
976
989
  name: "detail-operation",
977
- fn: D(() => [U.value ? (S(), g(f, { key: 0 }, [y(T(s), {
990
+ fn: D(() => [U.value ? (S(), g(f, { key: 0 }, [y(T(n), {
978
991
  type: "primary",
979
992
  loading: V.value,
980
- disabled: V.value || !Ot.value || !Dt.value,
981
- onClick: kt
993
+ disabled: V.value || !kt.value || !Ot.value,
994
+ onClick: At
982
995
  }, {
983
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.create-workflow-draft", "创建流程草稿")), 1)]),
996
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.create-workflow-draft", "创建流程草稿")), 1)]),
984
997
  _: 1
985
- }, 8, ["loading", "disabled"]), y(T(s), {
998
+ }, 8, ["loading", "disabled"]), y(T(n), {
986
999
  disabled: V.value,
987
- onClick: At
1000
+ onClick: jt
988
1001
  }, {
989
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.cancel-creation", "取消新建")), 1)]),
1002
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.cancel-creation", "取消新建")), 1)]),
990
1003
  _: 1
991
- }, 8, ["disabled"])], 64)) : (S(), g(f, { key: 1 }, [y(T(s), {
1004
+ }, 8, ["disabled"])], 64)) : (S(), g(f, { key: 1 }, [y(T(n), {
992
1005
  type: "primary",
993
1006
  loading: V.value,
994
- disabled: V.value || !Ot.value,
995
- onClick: Mt
1007
+ disabled: V.value || !kt.value,
1008
+ onClick: Nt
996
1009
  }, {
997
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.save-matching-rules", "保存匹配规则")), 1)]),
1010
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.save-matching-rules", "保存匹配规则")), 1)]),
998
1011
  _: 1
999
- }, 8, ["loading", "disabled"]), y(T(s), {
1012
+ }, 8, ["loading", "disabled"]), y(T(n), {
1000
1013
  disabled: V.value,
1001
- onClick: At
1014
+ onClick: jt
1002
1015
  }, {
1003
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.cancel-changes", "取消修改")), 1)]),
1016
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.cancel-changes", "取消修改")), 1)]),
1004
1017
  _: 1
1005
1018
  }, 8, ["disabled"])], 64))]),
1006
1019
  key: "1"
@@ -1011,30 +1024,30 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
1011
1024
  "busy",
1012
1025
  "detail-title",
1013
1026
  "explorer-search-keyword"
1014
- ]), y(T(ge), {
1027
+ ]), y(T(te), {
1015
1028
  width: "extraWide",
1016
- open: ut.value,
1017
- title: T(l).t("platform.screen.WorkflowConfigurationView.confirm-workflow-publication", "确认发布流程"),
1018
- onClose: t[19] ||= (e) => ut.value = !1
1029
+ open: dt.value,
1030
+ title: T(c).t("platform.screen.WorkflowConfigurationView.confirm-workflow-publication", "确认发布流程"),
1031
+ onClose: t[19] ||= (e) => dt.value = !1
1019
1032
  }, {
1020
- operation: D(() => [y(T(s), {
1033
+ operation: D(() => [y(T(n), {
1021
1034
  type: "primary",
1022
1035
  loading: V.value,
1023
- onClick: Ft
1036
+ onClick: It
1024
1037
  }, {
1025
- default: D(() => [v(w(T(l).t("platform.screen.WorkflowConfigurationView.confirm-publication", "确认发布")), 1)]),
1038
+ default: D(() => [v(w(T(c).t("platform.screen.WorkflowConfigurationView.confirm-publication", "确认发布")), 1)]),
1026
1039
  _: 1
1027
1040
  }, 8, ["loading"])]),
1028
1041
  default: D(() => [
1029
- _("p", null, w(T(l).t("platform.workflow-config.publication-frozen", "流程:{title} · 版本 {version}。发布后配置冻结;已有实例继续使用原版本。", {
1042
+ _("p", null, w(T(c).t("platform.workflow-config.publication-frozen", "流程:{title} · 版本 {version}。发布后配置冻结;已有实例继续使用原版本。", {
1030
1043
  title: I.value?.title,
1031
1044
  version: L.value?.versionNo
1032
1045
  })), 1),
1033
- _("p", null, w(T(l).t("platform.workflow-config.matching-scope", "匹配范围")) + ":" + w(I.value?.organizationId ? T(l).t("platform.workflow-config.scoped-organizations", "指定组织及下级组织") : T(l).t("platform.workflow-config.all-organizations", "模块内全部组织")) + "; " + w(T(l).t("platform.workflow-config.priority", "优先级")) + " " + w(I.value?.matchPriority ?? 0) + ";" + w(I.value?.defaultDefinition ? T(l).t("platform.workflow-config.default-workflow", "作为默认兜底流程") : T(l).t("platform.workflow-config.conditional-workflow", "按匹配条件选择")) + "。 " + w(I.value?.matchExpression ? T(l).t("platform.workflow-config.matching-expression", "匹配条件:{expression}", { expression: I.value.matchExpression }) : T(l).t("platform.workflow-config.no-matching-condition", "未设置额外条件")), 1),
1034
- _("ul", at, [(S(!0), g(f, null, ke(R.value.nodes.filter((e) => ["approval", "task"].includes(e.nodeType)), (e) => (S(), g("li", { key: e.nodeKey }, [
1046
+ _("p", null, w(T(c).t("platform.workflow-config.matching-scope", "匹配范围")) + ":" + w(I.value?.organizationId ? T(c).t("platform.workflow-config.scoped-organizations", "指定组织及下级组织") : T(c).t("platform.workflow-config.all-organizations", "模块内全部组织")) + "; " + w(T(c).t("platform.workflow-config.priority", "优先级")) + " " + w(I.value?.matchPriority ?? 0) + ";" + w(I.value?.defaultDefinition ? T(c).t("platform.workflow-config.default-workflow", "作为默认兜底流程") : T(c).t("platform.workflow-config.conditional-workflow", "按匹配条件选择")) + "。 " + w(I.value?.matchExpression ? T(c).t("platform.workflow-config.matching-expression", "匹配条件:{expression}", { expression: I.value.matchExpression }) : T(c).t("platform.workflow-config.no-matching-condition", "未设置额外条件")), 1),
1047
+ _("ul", ot, [(S(!0), g(f, null, Ae(R.value.nodes.filter((e) => ["approval", "task"].includes(e.nodeType)), (e) => (S(), g("li", { key: e.nodeKey }, [
1035
1048
  _("strong", null, w(e.title), 1),
1036
- v(" · " + w(mt(e.participantPolicyText)) + " ", 1),
1037
- _("details", null, [_("summary", null, w(T(l).t("platform.screen.WorkflowConfigurationView.view-complete-participant-rules", "查看完整人员规则")), 1), y(T(me), {
1049
+ v(" · " + w(ht(e.participantPolicyText)) + " ", 1),
1050
+ _("details", null, [_("summary", null, w(T(c).t("platform.screen.WorkflowConfigurationView.view-complete-participant-rules", "查看完整人员规则")), 1), y(T(pe), {
1038
1051
  value: e.participantPolicyText,
1039
1052
  http: T(x).http,
1040
1053
  fields: O.value,
@@ -1044,15 +1057,15 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
1044
1057
  "http",
1045
1058
  "fields"
1046
1059
  ])]),
1047
- e.nodeType === "task" ? (S(), g("details", ot, [
1048
- _("summary", null, w(T(l).t("platform.screen.WorkflowConfigurationView.view-business-task-checks-and-instructions", "查看业务任务检查与办理指引")), 1),
1049
- e.taskDefinitionId ? (S(), g("p", st, w(T(l).t("platform.workflow-config.referenced-task", "引用任务")) + ":" + w(k.value.tasks.find((t) => t.id === e.taskDefinitionId)?.title ?? e.taskDefinitionId), 1)) : h("v-if", !0),
1050
- y(T(Se), {
1060
+ e.nodeType === "task" ? (S(), g("details", st, [
1061
+ _("summary", null, w(T(c).t("platform.screen.WorkflowConfigurationView.view-business-task-checks-and-instructions", "查看业务任务检查与办理指引")), 1),
1062
+ e.taskDefinitionId ? (S(), g("p", ct, w(T(c).t("platform.workflow-config.referenced-task", "引用任务")) + ":" + w(k.value.tasks.find((t) => t.id === e.taskDefinitionId)?.title ?? e.taskDefinitionId), 1)) : h("v-if", !0),
1063
+ y(T(ve), {
1051
1064
  value: e.nodeConfigText,
1052
- "module-alias": ne.moduleAlias,
1065
+ "module-alias": ge.moduleAlias,
1053
1066
  fields: O.value,
1054
1067
  catalog: k.value,
1055
- actions: Ie.value,
1068
+ actions: Le.value,
1056
1069
  associations: k.value.associations.map((e) => ({
1057
1070
  value: e.id,
1058
1071
  label: e.title
@@ -1067,18 +1080,18 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
1067
1080
  "associations"
1068
1081
  ])
1069
1082
  ])) : h("v-if", !0),
1070
- e.participantPolicyText?.includes("INITIATOR_SELF") ? (S(), g("p", ct, w(T(l).t("platform.screen.WorkflowConfigurationView.the-submitter-processes-this-node-confirm-that", "此节点由提交人本人办理,请确认符合业务要求。")), 1)) : h("v-if", !0)
1083
+ e.participantPolicyText?.includes("INITIATOR_SELF") ? (S(), g("p", lt, w(T(c).t("platform.screen.WorkflowConfigurationView.the-submitter-processes-this-node-confirm-that", "此节点由提交人本人办理,请确认符合业务要求。")), 1)) : h("v-if", !0)
1071
1084
  ]))), 128))]),
1072
- (S(!0), g(f, null, ke(R.value.nodes.filter((e) => e.nodeType === "branch"), (e) => (S(), g("div", { key: e.nodeKey }, [
1073
- _("strong", null, w(e.title) + " · " + w(e.routeMode === "manual" ? T(l).t("platform.workflow-config.manual-route", "人工单选") : T(l).t("platform.workflow-config.auto-route", "自动判定(全部命中出口)")), 1),
1074
- e.routeMode === "manual" ? (S(), g("p", lt, w(T(l).t("platform.workflow-config.selector-summary", "由{title}的实际办理人选路;{reason}。", {
1075
- title: R.value.nodes.find((t) => t.nodeKey === e.selectorNodeKey)?.title ?? T(l).t("platform.workflow-config.missing-selector", "未配置选择节点"),
1076
- reason: e.requireManualSelectionReason ? T(l).t("platform.workflow-config.reason-required", "必须填写原因") : T(l).t("platform.workflow-config.reason-optional", "原因选填")
1085
+ (S(!0), g(f, null, Ae(R.value.nodes.filter((e) => e.nodeType === "branch"), (e) => (S(), g("div", { key: e.nodeKey }, [
1086
+ _("strong", null, w(e.title) + " · " + w(e.routeMode === "manual" ? T(c).t("platform.workflow-config.manual-route", "人工单选") : T(c).t("platform.workflow-config.auto-route", "自动判定(全部命中出口)")), 1),
1087
+ e.routeMode === "manual" ? (S(), g("p", ut, w(T(c).t("platform.workflow-config.selector-summary", "由{title}的实际办理人选路;{reason}。", {
1088
+ title: R.value.nodes.find((t) => t.nodeKey === e.selectorNodeKey)?.title ?? T(c).t("platform.workflow-config.missing-selector", "未配置选择节点"),
1089
+ reason: e.requireManualSelectionReason ? T(c).t("platform.workflow-config.reason-required", "必须填写原因") : T(c).t("platform.workflow-config.reason-optional", "原因选填")
1077
1090
  })), 1)) : h("v-if", !0),
1078
- _("ul", null, [(S(!0), g(f, null, ke(R.value.links.filter((t) => t.sourceNodeKey === e.nodeKey), (e) => (S(), g("li", { key: e.routeKey }, w(e.title ?? T(l).t("platform.workflow-config.exit", "出口")) + ":" + w(e.defaultRoute ? T(l).t("platform.workflow-config.fallback-exit", "默认兜底") : e.conditionExpression || T(l).t("platform.workflow-config.unconditional", "无条件(始终命中)")), 1))), 128))]),
1079
- _("p", null, w(T(l).t("platform.workflow-config.convergence-counting", "汇聚:{summary},只计算有效出口。", { summary: bt(e) })), 1)
1091
+ _("ul", null, [(S(!0), g(f, null, Ae(R.value.links.filter((t) => t.sourceNodeKey === e.nodeKey), (e) => (S(), g("li", { key: e.routeKey }, w(e.title ?? T(c).t("platform.workflow-config.exit", "出口")) + ":" + w(e.defaultRoute ? T(c).t("platform.workflow-config.fallback-exit", "默认兜底") : e.conditionExpression || T(c).t("platform.workflow-config.unconditional", "无条件(始终命中)")), 1))), 128))]),
1092
+ _("p", null, w(T(c).t("platform.workflow-config.convergence-counting", "汇聚:{summary},只计算有效出口。", { summary: xt(e) })), 1)
1080
1093
  ]))), 128)),
1081
- _("details", null, [_("summary", null, w(T(l).t("platform.screen.WorkflowConfigurationView.view-published-workflow", "查看发布流程图")), 1), y(T(ue), {
1094
+ _("details", null, [_("summary", null, w(T(c).t("platform.screen.WorkflowConfigurationView.view-published-workflow", "查看发布流程图")), 1), y(T(ye), {
1082
1095
  presentation: "detail",
1083
1096
  nodes: R.value.nodes,
1084
1097
  routes: R.value.links,
@@ -1092,6 +1105,6 @@ var Ke = { class: "workflow-configuration" }, qe = { class: "settings-help" }, J
1092
1105
  _: 1
1093
1106
  }, 8, ["open", "title"])]));
1094
1107
  }
1095
- }), [["__scopeId", "data-v-8eec3665"]]);
1108
+ }), [["__scopeId", "data-v-e106b7a3"]]);
1096
1109
  //#endregion
1097
1110
  export { j as default };