@ximatai/muyun-web-app 0.26.21 → 0.26.23

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 (39) hide show
  1. package/dist/{BusinessActivityLogView-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
  3. package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
  4. package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
  5. package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
  6. package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
  7. package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
  8. package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
  10. package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
  11. package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
  12. package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
  13. package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
  14. package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +524 -550
  17. package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
  18. package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
  19. package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
  20. package/dist/record-read.js +2 -0
  21. package/dist/recordReadEntry-CxDHM44F.js +152 -0
  22. package/dist/types/consumer/recordRead.d.ts +6 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  27. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  29. package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
  30. package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
  31. package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
  32. package/dist/types/web-contracts/operation.d.ts +2 -0
  33. package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
  34. package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
  35. package/package.json +5 -1
  36. package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
  37. package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
  38. package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
  39. package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
@@ -1,16 +1,16 @@
1
1
  import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { E as t, M as n, T as r, d as i, j as a, lt as o, m as s, ut as c, x as l, y as u } from "./platform-workbench-DhaREttd.js";
3
- import { $n as d, Aa as f, An as p, Bn as m, D as h, Da as g, Fa as _, G as v, Ht as y, Ia as b, Jr as x, Ka as S, Kt as C, Ma as w, Mn as T, Nn as E, Rn as D, Tn as O, V as k, Vn as A, W as ee, Wn as te, Xa as j, Ya as ne, Yn as M, Zn as N, _n as P, cr as F, da as re, fa as ie, fr as I, gn as ae, it as oe, jn as se, jr as ce, k as le, lr as ue, m as de, ma as fe, or as pe, pa as me, pn as he, pt as ge, qa as _e, qr as ve, rr as L, rt as ye, sn as be, sr as xe, ur as R, wa as Se, yn as Ce, z as we, zn as Te } from "./platform-components-i2ONyZ8r.js";
4
- import { d as Ee, m as De, p as Oe } from "./codeConfiguration-DhCBKbkc.js";
5
- import { a as ke, i as Ae, o as je, r as Me, s as Ne, t as Pe } from "./moduleMenuWorkspace-BbVmNKZn.js";
6
- import { t as Fe } from "./useWorkflowConfigurationContext-B_NxZFyz.js";
2
+ import { E as t, M as n, T as r, d as i, j as a, lt as o, m as s, ut as c, x as l, y as u } from "./platform-workbench-CobObbuz.js";
3
+ import { $n as d, An as f, Ar as p, Bn as m, Ca as h, D as g, Ea as _, Fa as v, G as y, Ga as b, Ht as x, Ja as S, Ka as C, Kr as w, Kt as ee, Mn as T, Nn as E, Pa as te, Rn as D, Tn as O, V as k, Vn as A, W as ne, Wn as re, Ya as j, Yn as ie, Zn as M, _n as N, cr as P, da as F, fa as ae, fr as I, gn as oe, it as se, ja as L, jn as ce, k as le, ka as ue, lr as de, m as fe, or as pe, pa as me, pn as he, pt as ge, qr as _e, rr as ve, rt as ye, sn as be, sr as xe, ua as Se, ur as R, yn as Ce, z as we, zn as Te } from "./platform-components-D0T03KGl.js";
4
+ import { d as Ee, m as De, p as Oe } from "./codeConfiguration-D1zrxzoW.js";
5
+ import { a as ke, i as Ae, o as je, r as Me, s as Ne, t as Pe } from "./moduleMenuWorkspace-lIVrTaOB.js";
6
+ import { t as Fe } from "./useWorkflowConfigurationContext-BkcNPU2H.js";
7
7
  import { Fragment as z, computed as B, createBlock as V, createCommentVNode as H, createElementBlock as U, createElementVNode as W, createSlots as Ie, createTextVNode as G, createVNode as K, defineAsyncComponent as Le, defineComponent as q, guardReactiveProps as Re, mergeModels as ze, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as Ue, onActivated as We, onBeforeUnmount as Ge, onMounted as Ke, onScopeDispose as qe, onUnmounted as Je, openBlock as J, ref as Y, renderList as Ye, renderSlot as Xe, resolveDynamicComponent as Ze, shallowRef as Qe, toDisplayString as X, toRaw as $e, toValue as et, unref as Z, useModel as tt, watch as Q, withCtx as $, withKeys as nt, withModifiers as rt } from "vue";
8
8
  //#region src/views/codeConfigurationWorkspaceView.ts
9
9
  var it = De({
10
10
  type: "platform.code.configuration",
11
11
  route: "/_platform/workspace/platform.code.configuration",
12
12
  moduleAlias: "platform.code_rule",
13
- component: Le(() => import("./CodeConfigurationView-D7sqbNCg.js").then((e) => e.n)),
13
+ component: Le(() => import("./CodeConfigurationView-Calkazua.js").then((e) => e.n)),
14
14
  layout: "workspace",
15
15
  routeTitle: "业务编码",
16
16
  routeTitleKey: "platform.code.config.title",
@@ -34,7 +34,7 @@ var it = De({
34
34
  type: "iam.role.detail",
35
35
  route: "/iam/role",
36
36
  moduleAlias: "iam.role",
37
- component: Le(() => import("./RoleDetailWorkspaceView-C0Ab3PEp.js")),
37
+ component: Le(() => import("./RoleDetailWorkspaceView-6Bs1eKbm.js")),
38
38
  layout: "workspace",
39
39
  routeTitle: "角色管理",
40
40
  routeTitleKey: "platform.workspace-view.roles.route-title",
@@ -79,7 +79,7 @@ var it = De({
79
79
  type: "platform.module.actions",
80
80
  route: "/_platform/workspace/platform.module.actions",
81
81
  moduleAlias: "platform.module",
82
- component: Le(() => import("./ModuleActionManagementView-DtGF3NC_.js").then((e) => e.n)),
82
+ component: Le(() => import("./ModuleActionManagementView-BZ89Woex.js").then((e) => e.n)),
83
83
  layout: "workspace",
84
84
  routeTitle: "模块管理",
85
85
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -100,7 +100,7 @@ var it = De({
100
100
  type: "platform.module.workflows",
101
101
  route: "/_platform/workspace/platform.module.workflows",
102
102
  moduleAlias: "platform.module",
103
- component: Le(() => import("./WorkflowConfigurationView-Dh6BKQm5.js")),
103
+ component: Le(() => import("./WorkflowConfigurationView-mSyL_-We.js")),
104
104
  layout: "workspace",
105
105
  routeTitle: "模块管理",
106
106
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -189,7 +189,7 @@ var it = De({
189
189
  return (o, s) => (J(), U("div", ft, [
190
190
  W("label", pt, [
191
191
  G(X(Z(t).t("platform.screen.WorkflowConfigurationView.applicable-organization", "适用组织")), 1),
192
- n.organizationContext ? (J(), V(Z(oe), {
192
+ n.organizationContext ? (J(), V(Z(se), {
193
193
  key: 0,
194
194
  placeholder: Z(t).t("platform.workflow-config.organization-placeholder", "全部组织(可选指定组织)"),
195
195
  value: r.value || void 0,
@@ -202,7 +202,7 @@ var it = De({
202
202
  "value",
203
203
  "context",
204
204
  "disabled"
205
- ])) : (J(), V(Z(L), {
205
+ ])) : (J(), V(Z(ve), {
206
206
  key: 1,
207
207
  value: r.value || Z(t).t("platform.workflow-config.all-organizations", "模块内全部组织"),
208
208
  disabled: ""
@@ -288,7 +288,7 @@ var it = De({
288
288
  W("label", bt, [K(Z(be), { required: "" }, {
289
289
  default: $(() => [G(X(Z(n).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
290
290
  _: 1
291
- }), K(Z(L), {
291
+ }), K(Z(ve), {
292
292
  disabled: e.busy,
293
293
  value: s.value,
294
294
  "onUpdate:value": p[0] ||= (e) => s.value = e,
@@ -306,7 +306,7 @@ var it = De({
306
306
  }, {
307
307
  default: $(() => [G(X(Z(n).t("platform.screen.WorkflowConfigurationView.govern-business-approval-status", "驱动业务审批状态")), 1)]),
308
308
  _: 1
309
- }, 8, ["disabled", "checked"]), K(Z(M), { label: Z(n).t("platform.workflow-config.approval-help-title", "审批状态说明") }, {
309
+ }, 8, ["disabled", "checked"]), K(Z(ie), { label: Z(n).t("platform.workflow-config.approval-help-title", "审批状态说明") }, {
310
310
  default: $(() => [G(X(Z(n).t("platform.workflow-config.approval-help", "开启后回写业务记录的审批状态;关闭后仅编排任务流程。")), 1)]),
311
311
  _: 1
312
312
  }, 8, ["label"])])) : H("v-if", !0),
@@ -315,7 +315,7 @@ var it = De({
315
315
  default: $(() => [G(X(Z(n).t("platform.workflow-config.action-code", "模块动作编码")), 1)]),
316
316
  _: 1
317
317
  }),
318
- K(Z(L), {
318
+ K(Z(ve), {
319
319
  value: l.value,
320
320
  "onUpdate:value": p[2] ||= (e) => l.value = e,
321
321
  required: "",
@@ -360,104 +360,104 @@ var it = De({
360
360
  __name: "ModuleWorkflowDrawer",
361
361
  props: { context: {} },
362
362
  setup(e) {
363
- let n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = String(n.context.record?.title ?? r), a = Fe(r), { client: o, context: l, language: u } = a, d = s(), f = Y([]), m = Y(), h = Y(!1), _ = Y(!1), v = Y(!1), b = Y(!1), x = Y(""), S = Y(!1), w = Y(), E = Y(""), D = Y(!0), O = Y(""), k = Y(""), A = Y(""), j = Y(!1), ne = B(() => l.can?.("sort") === !0), M = B(() => !!E.value.trim() && (D.value || /^[a-z][A-Za-z0-9_]{0,63}$/.test(O.value.trim()))), F = !0;
363
+ let n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = String(n.context.record?.title ?? r), a = Fe(r), { client: o, context: l, language: u } = a, d = s(), m = Y([]), g = Y(), v = Y(!1), y = Y(!1), b = Y(!1), S = Y(!1), C = Y(""), w = Y(!1), E = Y(), te = Y(""), D = Y(!0), O = Y(""), k = Y(""), A = Y(""), j = Y(!1), ie = B(() => l.can?.("sort") === !0), P = B(() => !!te.value.trim() && (D.value || /^[a-z][A-Za-z0-9_]{0,63}$/.test(O.value.trim()))), F = !0;
364
364
  Ge(() => {
365
365
  F = !1;
366
- }), ce(() => u.t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"), () => b.value, () => v.value), Q([
367
- E,
366
+ }), p(() => u.t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"), () => S.value, () => b.value), Q([
367
+ te,
368
368
  D,
369
369
  O,
370
370
  k,
371
371
  A,
372
372
  j
373
373
  ], () => {
374
- h.value && (b.value = !0);
374
+ v.value && (S.value = !0);
375
375
  }, { flush: "sync" });
376
- let re = B(() => u.t(_.value ? "platform.screen.WorkflowConfigurationView.new-workflow" : "platform.workflow-manager.edit", _.value ? "新建流程" : "流程设置")), ie = B(() => [{
376
+ let ae = B(() => u.t(y.value ? "platform.screen.WorkflowConfigurationView.new-workflow" : "platform.workflow-manager.edit", y.value ? "新建流程" : "流程设置")), I = B(() => [{
377
377
  key: "cancel",
378
378
  label: u.t("platform.action.cancel", "取消"),
379
- disabled: v.value,
380
- run: fe
379
+ disabled: b.value,
380
+ run: ue
381
381
  }, {
382
382
  key: "save",
383
- label: u.t(_.value ? "platform.screen.WorkflowConfigurationView.create-workflow-draft" : "platform.action.save", _.value ? "创建流程草稿" : "保存"),
383
+ label: u.t(y.value ? "platform.screen.WorkflowConfigurationView.create-workflow-draft" : "platform.action.save", y.value ? "创建流程草稿" : "保存"),
384
384
  emphasis: "primary",
385
- disabled: v.value || !M.value,
386
- loading: v.value,
385
+ disabled: b.value || !P.value,
386
+ loading: b.value,
387
387
  run: pe
388
388
  }]);
389
- n.context.setSubtitle(i), n.context.setOperation(void 0), Q(v, () => n.context.setCloseBlocked(v.value), { immediate: !0 });
390
- async function I(e) {
391
- if (!v.value) {
392
- v.value = !0, w.value = void 0;
389
+ n.context.setSubtitle(i), n.context.setOperation(void 0), Q(b, () => n.context.setCloseBlocked(b.value), { immediate: !0 });
390
+ async function oe(e) {
391
+ if (!b.value) {
392
+ b.value = !0, E.value = void 0;
393
393
  try {
394
394
  await e();
395
395
  } catch (e) {
396
- F && (w.value = () => g(Se(e), u));
396
+ F && (E.value = () => _(h(e), u));
397
397
  } finally {
398
- F && (v.value = !1);
398
+ F && (b.value = !1);
399
399
  }
400
400
  }
401
401
  }
402
- async function ae() {
403
- h.value || v.value || await I(async () => {
402
+ async function se() {
403
+ v.value || b.value || await oe(async () => {
404
404
  let e = await o.query();
405
- F && (f.value = e, await oe(e));
405
+ F && (m.value = e, await L(e));
406
406
  });
407
407
  }
408
- async function oe(e) {
408
+ async function L(e) {
409
409
  l.invalidateRecordActions?.(e.map((e) => e.id)), l.recordActionsBatch ? await l.recordActionsBatch(e.map((e) => e.id)) : l.recordActions && await Promise.all(e.map((e) => l.recordActions(e.id)));
410
410
  }
411
411
  Ke(() => {
412
- ae();
412
+ se();
413
413
  }), We(() => {
414
- ae();
414
+ se();
415
415
  }), t({
416
416
  moduleAlias: "platform.workflow.definition",
417
417
  handler: async () => {
418
- await ae();
418
+ await se();
419
419
  }
420
420
  });
421
- function se(e) {
422
- v.value || h.value || (S.value = !1, m.value = e, E.value = e?.title ?? "", D.value = e?.approvalEnabled ?? !0, O.value = e?.actionCode ?? "", k.value = e?.organizationId ?? "", A.value = e?.matchExpression ?? "", j.value = e?.defaultDefinition ?? !1, _.value = !e, b.value = !1, h.value = !0);
421
+ function ce(e) {
422
+ b.value || v.value || (w.value = !1, g.value = e, te.value = e?.title ?? "", D.value = e?.approvalEnabled ?? !0, O.value = e?.actionCode ?? "", k.value = e?.organizationId ?? "", A.value = e?.matchExpression ?? "", j.value = e?.defaultDefinition ?? !1, y.value = !e, S.value = !1, v.value = !0);
423
423
  }
424
424
  async function le() {
425
- return v.value || b.value && !await p({
425
+ return b.value || S.value && !await f({
426
426
  title: u.t("platform.workflow-config.discard-confirm", "放弃未保存的流程设置?"),
427
427
  danger: !0,
428
428
  okText: u.t("platform.workflow-config.discard", "放弃修改")
429
- }, u) ? !1 : (b.value = !1, !0);
429
+ }, u) ? !1 : (S.value = !1, !0);
430
430
  }
431
431
  n.context.setBeforeClose(le);
432
- async function fe() {
433
- await le() && (h.value = !1, await ae());
432
+ async function ue() {
433
+ await le() && (v.value = !1, await se());
434
434
  }
435
435
  async function pe() {
436
- h.value && M.value && await I(async () => {
436
+ v.value && P.value && await oe(async () => {
437
437
  let e = {
438
- title: E.value.trim(),
438
+ title: te.value.trim(),
439
439
  organizationId: k.value || null,
440
440
  matchExpression: A.value || null,
441
441
  defaultDefinition: j.value,
442
442
  ...D.value ? {} : { actionCode: O.value.trim() }
443
- }, t = _.value ? await o.create({
443
+ }, t = y.value ? await o.create({
444
444
  ...e,
445
445
  ...D.value ? { approvalEnabled: !0 } : {
446
446
  approvalEnabled: !1,
447
447
  actionCode: O.value.trim()
448
448
  },
449
449
  enabled: !0
450
- }) : await o.saveSelection(m.value.id, {
450
+ }) : await o.saveSelection(g.value.id, {
451
451
  ...e,
452
- version: m.value.version
452
+ version: g.value.version
453
453
  });
454
- F && (f.value = _.value ? [...f.value, t] : f.value.map((e) => e.id === t.id ? t : e), m.value = t, h.value = !1, b.value = !1, x.value = "", n.context.refreshDetailExtensions(), await oe([t]));
454
+ F && (m.value = y.value ? [...m.value, t] : m.value.map((e) => e.id === t.id ? t : e), g.value = t, v.value = !1, S.value = !1, C.value = "", n.context.refreshDetailExtensions(), await L([t]));
455
455
  });
456
456
  }
457
457
  function me(e) {
458
- if (!(v.value || h.value)) {
458
+ if (!(b.value || v.value)) {
459
459
  if (!d) {
460
- P(Error(u.t("platform.workflow-manager.navigation-unavailable", "工作台导航暂不可用")), {
460
+ N(Error(u.t("platform.workflow-manager.navigation-unavailable", "工作台导航暂不可用")), {
461
461
  source: "workflow-design",
462
462
  phase: "action"
463
463
  });
@@ -497,79 +497,79 @@ var it = De({
497
497
  title: u.t("platform.workflow-manager.active", "启用状态"),
498
498
  width: 90
499
499
  }
500
- ]), ve = B(() => f.value.filter((e) => !x.value.trim() || [
500
+ ]), ve = B(() => m.value.filter((e) => !C.value.trim() || [
501
501
  e.title,
502
502
  e.matchExpression,
503
- de(e.definitionStatus, u)
504
- ].some((e) => String(e ?? "").toLocaleLowerCase().includes(x.value.trim().toLocaleLowerCase()))).map((e) => ({ ...e })));
505
- function L(e) {
503
+ fe(e.definitionStatus, u)
504
+ ].some((e) => String(e ?? "").toLocaleLowerCase().includes(C.value.trim().toLocaleLowerCase()))).map((e) => ({ ...e })));
505
+ function ye(e) {
506
506
  return e.definitionStatus === "published" || e.definitionStatus === "disabled" && e.currentVersionNo != null;
507
507
  }
508
- function ye(e, t) {
509
- return !v.value && !h.value && l.can?.(e, String(t.id)) === !0;
508
+ function be(e, t) {
509
+ return !b.value && !v.value && l.can?.(e, String(t.id)) === !0;
510
510
  }
511
- function be(e) {
511
+ function xe(e) {
512
512
  if (e.source.tenantId === e.target.tenantId) return Ce({
513
513
  dragRecord: e.source,
514
514
  dropRecord: e.target,
515
515
  position: e.position === "before" ? -1 : 1
516
516
  });
517
517
  }
518
- async function xe(e, t) {
519
- let n = f.value.find((e) => e.id === t.id);
520
- if (n && !(v.value || h.value)) {
518
+ async function Se(e, t) {
519
+ let n = m.value.find((e) => e.id === t.id);
520
+ if (n && !(b.value || v.value)) {
521
521
  if (e === "design") {
522
522
  me(n);
523
523
  return;
524
524
  }
525
525
  if (e === "settings") {
526
- if (!ye("configureWorkflowSelection", n)) return;
527
- se(n);
526
+ if (!be("configureWorkflowSelection", n)) return;
527
+ ce(n);
528
528
  return;
529
529
  }
530
- (e === "enable" || e === "disable" || e === "archive") && ye(`${e}WorkflowDefinition`, n) && (e !== "enable" || L(n)) && await p({
530
+ (e === "enable" || e === "disable" || e === "archive") && be(`${e}WorkflowDefinition`, n) && (e !== "enable" || ye(n)) && await f({
531
531
  title: u.t(e === "archive" ? "platform.workflow-config.archive-confirm" : e === "enable" ? "platform.workflow-config.enable-confirm" : "platform.workflow-config.disable-confirm", e === "archive" ? "归档此流程?" : e === "enable" ? "启用此流程?" : "停用此流程?"),
532
532
  content: u.t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。"),
533
533
  danger: e !== "enable"
534
- }, u) && await I(async () => {
534
+ }, u) && await oe(async () => {
535
535
  let t = await o.changeStatus(n.id, e, n.version);
536
- F && (f.value = f.value.map((e) => e.id === t.id ? t : e), await oe([t]));
536
+ F && (m.value = m.value.map((e) => e.id === t.id ? t : e), await L([t]));
537
537
  });
538
538
  }
539
539
  }
540
540
  async function Ce(e) {
541
- S.value && ne.value && !v.value && !h.value && !x.value.trim() && e.dragRecord.id && e.dropRecord.id && await I(async () => {
541
+ w.value && ie.value && !b.value && !v.value && !C.value.trim() && e.dragRecord.id && e.dropRecord.id && await oe(async () => {
542
542
  await o.sort(String(e.dragRecord.id), String(e.dropRecord.id), e.position);
543
543
  let t = await o.query();
544
- F && (f.value = t, await oe(t));
544
+ F && (m.value = t, await L(t));
545
545
  });
546
546
  }
547
547
  return (e, t) => (J(), U(z, null, [
548
- h.value ? (J(), V(Z(y), {
548
+ v.value ? (J(), V(Z(x), {
549
549
  key: 0,
550
- open: h.value,
550
+ open: v.value,
551
551
  width: "standard",
552
- title: re.value,
552
+ title: ae.value,
553
553
  subtitle: Z(i),
554
554
  "before-close": le,
555
- onClose: fe
555
+ onClose: ue
556
556
  }, {
557
- operation: $(() => [K(Z(he), { actions: ie.value }, null, 8, ["actions"])]),
558
- default: $(() => [w.value ? (J(), V(Z(T), {
557
+ operation: $(() => [K(Z(he), { actions: I.value }, null, 8, ["actions"])]),
558
+ default: $(() => [E.value ? (J(), V(Z(T), {
559
559
  key: 0,
560
- message: w.value()
560
+ message: E.value()
561
561
  }, null, 8, ["message"])) : H("v-if", !0), K(Tt, {
562
562
  onSubmit: pe,
563
563
  configuration: Z(a),
564
- creating: _.value,
565
- busy: v.value,
566
- title: E.value,
567
- "onUpdate:title": t[0] ||= (e) => E.value = e,
564
+ creating: y.value,
565
+ busy: b.value,
566
+ title: te.value,
567
+ "onUpdate:title": t[0] ||= (e) => te.value = e,
568
568
  "approval-enabled": D.value,
569
569
  "onUpdate:approvalEnabled": t[1] ||= (e) => D.value = e,
570
570
  "action-code": O.value,
571
571
  "onUpdate:actionCode": t[2] ||= (e) => O.value = e,
572
- "action-code-locked": !_.value && m.value?.currentVersionNo != null,
572
+ "action-code-locked": !y.value && g.value?.currentVersionNo != null,
573
573
  "organization-id": k.value,
574
574
  "onUpdate:organizationId": t[3] ||= (e) => k.value = e,
575
575
  "match-expression": A.value,
@@ -594,61 +594,61 @@ var it = De({
594
594
  "title",
595
595
  "subtitle"
596
596
  ])) : H("v-if", !0),
597
- w.value && !h.value ? (J(), V(Z(T), {
597
+ E.value && !v.value ? (J(), V(Z(T), {
598
598
  key: 1,
599
- message: w.value()
599
+ message: E.value()
600
600
  }, null, 8, ["message"])) : H("v-if", !0),
601
- K(Z(C), {
601
+ K(Z(ee), {
602
602
  embedded: "",
603
603
  title: Z(u).t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"),
604
- "title-action-disabled": v.value || h.value,
604
+ "title-action-disabled": b.value || v.value,
605
605
  "title-action-icon": "reload",
606
606
  "title-action-title": Z(u).t("platform.screen.CrudRecordListExplorer.reload", "重新加载"),
607
607
  "fill-height": !1,
608
608
  columns: _e.value,
609
609
  rows: ve.value,
610
- loading: v.value,
611
- "table-visible": h.value || !w.value || f.value.length > 0,
610
+ loading: b.value,
611
+ "table-visible": v.value || !E.value || m.value.length > 0,
612
612
  "empty-description": Z(u).t("platform.workflow-config.no-definitions", "暂无流程,点击“新建流程”开始配置"),
613
613
  "quick-search-visible": !0,
614
- "quick-search-value": x.value,
615
- "quick-search-disabled": v.value || h.value,
616
- "row-draggable": S.value && !v.value && !h.value && ne.value && !x.value.trim(),
614
+ "quick-search-value": C.value,
615
+ "quick-search-disabled": b.value || v.value,
616
+ "row-draggable": w.value && !b.value && !v.value && ie.value && !C.value.trim(),
617
617
  "row-drag-handle-title": Z(u).t("platform.workflow-config.reorder", "调整流程顺序:越靠上越优先"),
618
618
  "show-action-column": !0,
619
619
  "action-column-width": 170,
620
- "onUpdate:quickSearchValue": t[9] ||= (e) => x.value = e,
621
- onTitleAction: ae,
622
- onRowDrop: be
620
+ "onUpdate:quickSearchValue": t[9] ||= (e) => C.value = e,
621
+ onTitleAction: se,
622
+ onRowDrop: xe
623
623
  }, {
624
- operations: $(() => [ne.value ? (J(), V(Z(ee), {
624
+ operations: $(() => [ie.value ? (J(), V(Z(ne), {
625
625
  key: 0,
626
626
  "icon-name": "swap-vertical",
627
627
  "icon-only": "",
628
628
  size: "small",
629
629
  type: "text",
630
- selected: S.value,
631
- disabled: v.value || h.value || !!x.value.trim(),
630
+ selected: w.value,
631
+ disabled: b.value || v.value || !!C.value.trim(),
632
632
  title: Z(u).t("platform.workflow-config.reorder", "调整流程顺序:越靠上越优先"),
633
- onClick: t[6] ||= (e) => S.value = !S.value
633
+ onClick: t[6] ||= (e) => w.value = !w.value
634
634
  }, null, 8, [
635
635
  "selected",
636
636
  "disabled",
637
637
  "title"
638
- ])) : H("v-if", !0), K(Z(ue), {
638
+ ])) : H("v-if", !0), K(Z(de), {
639
639
  "icon-name": "plus",
640
640
  title: Z(u).t("platform.screen.WorkflowConfigurationView.new-workflow", "新建流程"),
641
- disabled: v.value || h.value || Z(l).can?.("create") !== !0,
642
- onClick: t[7] ||= (e) => se()
641
+ disabled: b.value || v.value || Z(l).can?.("create") !== !0,
642
+ onClick: t[7] ||= (e) => ce()
643
643
  }, null, 8, ["title", "disabled"])]),
644
- beforeTable: $(() => [w.value && !h.value ? (J(), V(Z(R), {
644
+ beforeTable: $(() => [E.value && !v.value ? (J(), V(Z(R), {
645
645
  key: 0,
646
- onClick: ae
646
+ onClick: se
647
647
  }, {
648
648
  default: $(() => [G(X(Z(u).t("platform.screen.CrudRecordListExplorer.reload", "重新加载")), 1)]),
649
649
  _: 1
650
650
  })) : H("v-if", !0)]),
651
- cell: $(({ column: e, record: n, value: r }) => [e.key === "definitionStatus" ? (J(), U("span", Et, X(Z(de)(String(r ?? ""), Z(u))), 1)) : e.key === "currentVersionNo" ? (J(), U("span", Dt, X(r == null ? "—" : `v${r}`), 1)) : e.key === "matchExpression" ? (J(), V(Z(ge), {
651
+ cell: $(({ column: e, record: n, value: r }) => [e.key === "definitionStatus" ? (J(), U("span", Et, X(Z(fe)(String(r ?? ""), Z(u))), 1)) : e.key === "currentVersionNo" ? (J(), U("span", Dt, X(r == null ? "—" : `v${r}`), 1)) : e.key === "matchExpression" ? (J(), V(Z(ge), {
652
652
  key: 2,
653
653
  column: {
654
654
  ...e,
@@ -659,15 +659,15 @@ var it = De({
659
659
  ...n,
660
660
  matchExpression: n.defaultDefinition ? Z(u).t("platform.workflow-manager.fallback", "兜底流程") : r || Z(u).t("platform.workflow-manager.all-records", "全部记录")
661
661
  }
662
- }, null, 8, ["column", "record"])) : e.key === "active" ? (J(), V(Z(N), {
662
+ }, null, 8, ["column", "record"])) : e.key === "active" ? (J(), V(Z(M), {
663
663
  key: 3,
664
- title: L(n) ? Z(u).t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。") : Z(u).t("platform.workflow-manager.publish-to-enable", "请进入编排发布流程后启用")
664
+ title: ye(n) ? Z(u).t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。") : Z(u).t("platform.workflow-manager.publish-to-enable", "请进入编排发布流程后启用")
665
665
  }, {
666
- default: $(() => [W("span", { onClick: t[8] ||= rt(() => {}, ["stop"]) }, [K(Z(te), {
666
+ default: $(() => [W("span", { onClick: t[8] ||= rt(() => {}, ["stop"]) }, [K(Z(re), {
667
667
  "aria-label": Z(u).t("platform.workflow-manager.active", "启用状态") + ":" + n.title,
668
668
  checked: n.definitionStatus === "published" && n.enabled !== !1,
669
- disabled: !L(n) || !ye(n.definitionStatus === "published" ? "disableWorkflowDefinition" : "enableWorkflowDefinition", n),
670
- onChange: (e) => xe(e ? "enable" : "disable", n)
669
+ disabled: !ye(n) || !be(n.definitionStatus === "published" ? "disableWorkflowDefinition" : "enableWorkflowDefinition", n),
670
+ onChange: (e) => Se(e ? "enable" : "disable", n)
671
671
  }, null, 8, [
672
672
  "aria-label",
673
673
  "checked",
@@ -688,8 +688,8 @@ var it = De({
688
688
  K(Z(R), {
689
689
  type: "link",
690
690
  size: "small",
691
- disabled: v.value || h.value,
692
- onClick: (t) => xe("design", e)
691
+ disabled: b.value || v.value,
692
+ onClick: (t) => Se("design", e)
693
693
  }, {
694
694
  default: $(() => [G(X(Z(u).t("platform.workflow-manager.design", "编排")), 1)]),
695
695
  _: 1
@@ -697,8 +697,8 @@ var it = De({
697
697
  K(Z(R), {
698
698
  type: "link",
699
699
  size: "small",
700
- disabled: !ye("configureWorkflowSelection", e),
701
- onClick: (t) => xe("settings", e)
700
+ disabled: !be("configureWorkflowSelection", e),
701
+ onClick: (t) => Se("settings", e)
702
702
  }, {
703
703
  default: $(() => [G(X(Z(u).t("platform.workflow-manager.settings", "设置")), 1)]),
704
704
  _: 1
@@ -707,8 +707,8 @@ var it = De({
707
707
  type: "link",
708
708
  size: "small",
709
709
  danger: "",
710
- disabled: e.definitionStatus === "archived" || !ye("archiveWorkflowDefinition", e),
711
- onClick: (t) => xe("archive", e)
710
+ disabled: e.definitionStatus === "archived" || !be("archiveWorkflowDefinition", e),
711
+ onClick: (t) => Se("archive", e)
712
712
  }, {
713
713
  default: $(() => [G(X(Z(u).t("platform.screen.WorkflowConfigurationView.archive", "归档")), 1)]),
714
714
  _: 1
@@ -738,7 +738,7 @@ var it = De({
738
738
  __name: "ModuleMenuEntriesSection",
739
739
  props: { context: {} },
740
740
  setup(e) {
741
- let t = j(), n = e, r = s(), i = Y([]), a = B(() => i.value.flatMap(({ scheme: e, tree: r }) => Ne(r, _(e, "title", t) ?? e.alias ?? e.id, t).filter(({ menu: e }) => e.moduleAlias === String(n.context.record.alias ?? n.context.record.id ?? "")))), o = Y(/* @__PURE__ */ new Map()), c = Y(!1), l = Y(!1), u = B(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
741
+ let t = j(), n = e, r = s(), i = Y([]), a = B(() => i.value.flatMap(({ scheme: e, tree: r }) => Ne(r, te(e, "title", t) ?? e.alias ?? e.id, t).filter(({ menu: e }) => e.moduleAlias === String(n.context.record.alias ?? n.context.record.id ?? "")))), o = Y(/* @__PURE__ */ new Map()), c = Y(!1), l = Y(!1), u = B(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
742
742
  Ge(() => d++), Q(() => [n.context.record.id, n.context.refreshKey], () => void f(), { immediate: !0 });
743
743
  async function f() {
744
744
  let e = ++d, t = je(n.context.module.http);
@@ -793,7 +793,7 @@ function It(e) {
793
793
  n.get(r) === i && (t.value[r] = {
794
794
  phase: "failed",
795
795
  configurable: !1,
796
- error: g(Se(e))
796
+ error: _(h(e))
797
797
  });
798
798
  }
799
799
  }
@@ -1017,7 +1017,7 @@ var $t = { class: "password-policy-preview" }, en = {
1017
1017
  __name: "PasswordPolicyPreview",
1018
1018
  props: { context: {} },
1019
1019
  setup(e) {
1020
- let t = j(), n = e, r = Y("CURRENT"), i = Y(""), a = Y(), o = Y(!1), s = Y(!1), c = 0, l = B(() => y(n.context.record)), u = B(() => n.context.mode !== "view" || E(l.value?.id) !== void 0), f = B(() => [{
1020
+ let t = j(), n = e, r = Y("CURRENT"), i = Y(""), a = Y(), o = Y(!1), s = Y(!1), c = 0, l = B(() => x(n.context.record)), u = B(() => n.context.mode !== "view" || ee(l.value?.id) !== void 0), f = B(() => [{
1021
1021
  value: "CURRENT",
1022
1022
  label: t.t("platform.screen.PasswordPolicyPreview.current-rule", "本规则"),
1023
1023
  disabled: !u.value
@@ -1052,18 +1052,18 @@ var $t = { class: "password-policy-preview" }, en = {
1052
1052
  let e = u.value ? l.value : void 0;
1053
1053
  if (r.value === "CURRENT") return e ? [e] : [];
1054
1054
  if (!a.value) return [];
1055
- let t = a.value.filter(O), n = E(e?.id);
1055
+ let t = a.value.filter(E), n = ee(e?.id);
1056
1056
  if (n) {
1057
- let e = t.findIndex((e) => E(e.id) === n);
1057
+ let e = t.findIndex((e) => ee(e.id) === n);
1058
1058
  e >= 0 && t.splice(e, 1);
1059
1059
  }
1060
- return e && O(e) && t.push(e), t.length > 0 ? t.sort(C) : [];
1061
- }), g = B(() => i.value ? h.value.map((e, t) => x(e, i.value, t)) : []), _ = B(() => g.value.map((e) => ({
1060
+ return e && E(e) && t.push(e), t.length > 0 ? t.sort(C) : [];
1061
+ }), g = B(() => i.value ? h.value.map((e, t) => S(e, i.value, t)) : []), _ = B(() => g.value.map((e) => ({
1062
1062
  ...e,
1063
- title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : w(e.title, e.titleText, t),
1064
- message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : w(e.message, e.messageText, t),
1063
+ title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : L(e.title, e.titleText, t),
1064
+ message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : L(e.message, e.messageText, t),
1065
1065
  diagnostic: e.diagnostic ? t.t(e.diagnostic.sourceId, e.diagnostic.originalText) : void 0
1066
- }))), v = B(() => {
1066
+ }))), y = B(() => {
1067
1067
  if (!u.value && r.value === "CURRENT") return t.t("platform.screen.PasswordPolicyPreview.select-or-create-a-rule", "请选择或新建一条规则");
1068
1068
  if (r.value === "ALL" && s.value) return t.t("platform.screen.PasswordPolicyPreview.loading-the-authoritative-rules", "正在加载权威规则集");
1069
1069
  if (r.value === "ALL" && o.value) return t.t("platform.screen.PasswordPolicyPreview.unable-to-load-the-authoritative-rules", "无法加载权威规则集");
@@ -1075,29 +1075,29 @@ var $t = { class: "password-policy-preview" }, en = {
1075
1075
  value2: g.value.length
1076
1076
  }) : t.t("platform.screen.PasswordPolicyPreview.value-rules-failed", "{value1} 条规则未通过", { value1: e });
1077
1077
  });
1078
- function y(e) {
1078
+ function x(e) {
1079
1079
  if (e) return e;
1080
1080
  }
1081
- function x(e, t, n) {
1082
- let r = e.title?.trim() ? void 0 : S("platform.screen.PasswordPolicyPreview.unnamed-rule"), i = e.message?.trim() ? void 0 : S("platform.screen.PasswordPolicyPreview.no-failure-message-configured"), a = D(e.title, r?.originalText ?? ""), o = D(e.message, i?.originalText ?? ""), s = {
1083
- titleText: b(e, "title"),
1084
- messageText: b(e, "message")
1081
+ function S(e, t, n) {
1082
+ let r = e.title?.trim() ? void 0 : b("platform.screen.PasswordPolicyPreview.unnamed-rule"), i = e.message?.trim() ? void 0 : b("platform.screen.PasswordPolicyPreview.no-failure-message-configured"), a = T(e.title, r?.originalText ?? ""), o = T(e.message, i?.originalText ?? ""), s = {
1083
+ titleText: v(e, "title"),
1084
+ messageText: v(e, "message")
1085
1085
  }, c = e.pattern;
1086
1086
  if (!c?.trim()) return {
1087
1087
  ...s,
1088
- key: T(e, n),
1088
+ key: w(e, n),
1089
1089
  title: a,
1090
1090
  message: o,
1091
1091
  titleSource: r,
1092
1092
  messageSource: i,
1093
1093
  passed: !1,
1094
- diagnostic: S("platform.screen.PasswordPolicyPreview.regular-expression-required")
1094
+ diagnostic: b("platform.screen.PasswordPolicyPreview.regular-expression-required")
1095
1095
  };
1096
1096
  try {
1097
1097
  let l = RegExp(`^(?:${c})$`).test(t);
1098
1098
  return {
1099
1099
  ...s,
1100
- key: T(e, n),
1100
+ key: w(e, n),
1101
1101
  title: a,
1102
1102
  message: o,
1103
1103
  titleSource: r,
@@ -1107,33 +1107,33 @@ var $t = { class: "password-policy-preview" }, en = {
1107
1107
  } catch {
1108
1108
  return {
1109
1109
  ...s,
1110
- key: T(e, n),
1110
+ key: w(e, n),
1111
1111
  title: a,
1112
1112
  message: o,
1113
1113
  titleSource: r,
1114
1114
  messageSource: i,
1115
1115
  passed: !1,
1116
- diagnostic: S("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
1116
+ diagnostic: b("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
1117
1117
  };
1118
1118
  }
1119
1119
  }
1120
1120
  function C(e, t) {
1121
- return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || D(e.title, "").localeCompare(D(t.title, ""));
1121
+ return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || T(e.title, "").localeCompare(T(t.title, ""));
1122
1122
  }
1123
- function T(e, t) {
1124
- return E(e.id) ?? `draft:${t}`;
1123
+ function w(e, t) {
1124
+ return ee(e.id) ?? `draft:${t}`;
1125
1125
  }
1126
- function E(e) {
1126
+ function ee(e) {
1127
1127
  return e?.trim() || void 0;
1128
1128
  }
1129
- function D(e, t) {
1129
+ function T(e, t) {
1130
1130
  return e?.trim() || t;
1131
1131
  }
1132
- function O(e) {
1132
+ function E(e) {
1133
1133
  return e.enabled !== !1 && (e.scopeType == null || e.scopeType.toLowerCase() === "global");
1134
1134
  }
1135
1135
  return (e, n) => (J(), U("section", $t, [
1136
- W("header", null, [W("h3", null, X(Z(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), W("span", { class: He({ failed: g.value.some((e) => !e.passed) }) }, X(v.value), 3)]),
1136
+ W("header", null, [W("h3", null, X(Z(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), W("span", { class: He({ failed: g.value.some((e) => !e.passed) }) }, X(y.value), 3)]),
1137
1137
  K(Z(d), {
1138
1138
  class: "preview-scope",
1139
1139
  value: r.value,
@@ -1141,7 +1141,7 @@ var $t = { class: "password-policy-preview" }, en = {
1141
1141
  size: "small",
1142
1142
  "onUpdate:value": p
1143
1143
  }, null, 8, ["value", "options"]),
1144
- K(Z(L), {
1144
+ K(Z(ve), {
1145
1145
  value: i.value,
1146
1146
  "onUpdate:value": n[0] ||= (e) => i.value = e,
1147
1147
  type: "text",
@@ -1206,7 +1206,7 @@ var $t = { class: "password-policy-preview" }, en = {
1206
1206
  })]);
1207
1207
  s === a && (o.value = new Map(t.records.filter((e) => e.alias && e.title).map((e) => [e.alias, e.title])), r.value = i.records);
1208
1208
  } catch (e) {
1209
- s === a && P(e, {
1209
+ s === a && N(e, {
1210
1210
  language: t,
1211
1211
  source: "tenant-applications-detail",
1212
1212
  phase: "load"
@@ -1218,7 +1218,7 @@ var $t = { class: "password-policy-preview" }, en = {
1218
1218
  function l(e, t) {
1219
1219
  return `/iam.tenant/${encodeURIComponent(e)}/applications/${t}`;
1220
1220
  }
1221
- return (e, n) => (J(), U("section", nn, [W("div", rn, [i.value ? (J(), U("span", an, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (J(), V(Z(F), {
1221
+ return (e, n) => (J(), U("section", nn, [W("div", rn, [i.value ? (J(), U("span", an, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (J(), V(Z(P), {
1222
1222
  key: 1,
1223
1223
  items: s.value,
1224
1224
  "max-visible": 8,
@@ -1290,7 +1290,7 @@ var $t = { class: "password-policy-preview" }, en = {
1290
1290
  let o = new Set(r.value.map((e) => e.alias).filter(Boolean));
1291
1291
  i.value = /* @__PURE__ */ new Set(["iam", ...a.records.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && o.has(e))]);
1292
1292
  } catch (e) {
1293
- P(e, {
1293
+ N(e, {
1294
1294
  language: t,
1295
1295
  source: "tenant-application-configuration",
1296
1296
  phase: "load"
@@ -1311,7 +1311,7 @@ var $t = { class: "password-policy-preview" }, en = {
1311
1311
  body: { applicationAliases: [...i.value] }
1312
1312
  }), n.context.refreshDetailExtensions(), n.context.refreshList(), n.context.close();
1313
1313
  } catch (e) {
1314
- P(e, {
1314
+ N(e, {
1315
1315
  language: t,
1316
1316
  source: "tenant-application-configuration",
1317
1317
  phase: "action"
@@ -1357,8 +1357,8 @@ var $t = { class: "password-policy-preview" }, en = {
1357
1357
  },
1358
1358
  ...["lightLogoAssetId", "darkLogoAssetId"].map((e) => ({
1359
1359
  fieldName: e,
1360
- imageUploadHint: ({ draft: e }, t = _e) => e.workbenchBrandMode === "logoOnly" ? t.t("platform.entry.logo-only-mode-supports-landscape-or-square-images-up-to-512-kb", "纯 Logo 模式支持横向或正方形图片(最大 512 KB)") : t.t("platform.entry.logo-and-title-mode-requires-square-images-recommended-128-128-px-up-to-512-kb", "Logo + 标题模式仅支持正方形图片(建议 128 × 128 px,最大 512 KB)"),
1361
- imageUploadAdvisory: ({ draft: e }, t = _e) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => un(e, t)
1360
+ imageUploadHint: ({ draft: e }, t = C) => e.workbenchBrandMode === "logoOnly" ? t.t("platform.entry.logo-only-mode-supports-landscape-or-square-images-up-to-512-kb", "纯 Logo 模式支持横向或正方形图片(最大 512 KB)") : t.t("platform.entry.logo-and-title-mode-requires-square-images-recommended-128-128-px-up-to-512-kb", "Logo + 标题模式仅支持正方形图片(建议 128 × 128 px,最大 512 KB)"),
1361
+ imageUploadAdvisory: ({ draft: e }, t = C) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => un(e, t)
1362
1362
  }))
1363
1363
  ]
1364
1364
  },
@@ -1431,7 +1431,7 @@ var fn = {
1431
1431
  try {
1432
1432
  r.value = await n.context.module.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/account` });
1433
1433
  } catch (e) {
1434
- P(e, {
1434
+ N(e, {
1435
1435
  language: t,
1436
1436
  source: "employee-account",
1437
1437
  phase: "load"
@@ -1463,9 +1463,9 @@ var fn = {
1463
1463
  password: o.value
1464
1464
  }
1465
1465
  });
1466
- r.value = fe(t).binding, o.value = "", n.context.refreshList();
1466
+ r.value = me(t).binding, o.value = "", n.context.refreshList();
1467
1467
  } catch (e) {
1468
- P(e, {
1468
+ N(e, {
1469
1469
  language: t,
1470
1470
  source: "employee-account",
1471
1471
  phase: "action"
@@ -1476,9 +1476,9 @@ var fn = {
1476
1476
  }
1477
1477
  async function d(e) {
1478
1478
  let t = e[0];
1479
- t && await f(t.id);
1479
+ t && await p(t.id);
1480
1480
  }
1481
- async function f(e) {
1481
+ async function p(e) {
1482
1482
  let a = v();
1483
1483
  if (a && e && !c.value) {
1484
1484
  c.value = !0;
@@ -1493,7 +1493,7 @@ var fn = {
1493
1493
  phase: "action"
1494
1494
  });
1495
1495
  } catch (e) {
1496
- P(e, {
1496
+ N(e, {
1497
1497
  language: t,
1498
1498
  source: "employee-account",
1499
1499
  phase: "action"
@@ -1553,7 +1553,7 @@ var fn = {
1553
1553
  }
1554
1554
  async function _() {
1555
1555
  let e = v();
1556
- if (e && r.value && !c.value && await p({
1556
+ if (e && r.value && !c.value && await f({
1557
1557
  title: t.t("platform.screen.EmployeeAccountDrawer.remove-account", "移除账户"),
1558
1558
  content: t.t("platform.screen.EmployeeAccountDrawer.remove-this-employee-s-account-the-user-account-will-also", "确认移除该职员的账户?该用户账号会同步删除。"),
1559
1559
  okText: t.t("platform.screen.RecordPermissionDialog.remove", "移除"),
@@ -1566,7 +1566,7 @@ var fn = {
1566
1566
  path: `/iam.employee/${encodeURIComponent(e)}/account/delete`
1567
1567
  }), r.value = void 0, n.context.refreshList();
1568
1568
  } catch (e) {
1569
- P(e, {
1569
+ N(e, {
1570
1570
  language: t,
1571
1571
  source: "employee-account",
1572
1572
  phase: "action"
@@ -1607,7 +1607,7 @@ var fn = {
1607
1607
  "title"
1608
1608
  ])]), W("form", { onSubmit: rt(u, ["prevent"]) }, [
1609
1609
  W("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.you-can-also-create-a-login-account-and-bind-it", "也可直接创建登录账号并自动绑定到当前职员。")), 1),
1610
- W("label", null, [W("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), K(Z(L), {
1610
+ W("label", null, [W("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), K(Z(ve), {
1611
1611
  value: a.value,
1612
1612
  "onUpdate:value": n[1] ||= (e) => a.value = e,
1613
1613
  disabled: c.value,
@@ -1617,7 +1617,7 @@ var fn = {
1617
1617
  "disabled",
1618
1618
  "placeholder"
1619
1619
  ])]),
1620
- W("label", null, [W("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), K(Z(L), {
1620
+ W("label", null, [W("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), K(Z(ve), {
1621
1621
  value: o.value,
1622
1622
  "onUpdate:value": n[2] ||= (e) => o.value = e,
1623
1623
  type: "password",
@@ -1663,7 +1663,7 @@ var fn = {
1663
1663
  }] }
1664
1664
  }, gn = "iam.user.session.collectionChanged", _n = /* @__PURE__ */ new WeakMap();
1665
1665
  function vn() {
1666
- let e = x(), t = _n.get(e);
1666
+ let e = _e(), t = _n.get(e);
1667
1667
  t || (t = yn(e), _n.set(e, t));
1668
1668
  let n = t;
1669
1669
  return n.users += 1, qe(() => {
@@ -1703,7 +1703,7 @@ function yn(e) {
1703
1703
  ...Object.fromEntries(r.map((e) => [e.userId, e]))
1704
1704
  };
1705
1705
  } catch (e) {
1706
- o || P(e, {
1706
+ o || N(e, {
1707
1707
  source: "iam-user-online-status",
1708
1708
  phase: "load"
1709
1709
  });
@@ -1790,7 +1790,7 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1790
1790
  phase: "action"
1791
1791
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1792
1792
  } catch (e) {
1793
- P(e, {
1793
+ N(e, {
1794
1794
  language: t,
1795
1795
  source: "iam-user-password",
1796
1796
  phase: "action"
@@ -1810,7 +1810,7 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1810
1810
  path: `/iam.user/resetPassword/${encodeURIComponent(e)}`
1811
1811
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1812
1812
  } catch (e) {
1813
- P(e, {
1813
+ N(e, {
1814
1814
  language: t,
1815
1815
  source: "iam-user-password",
1816
1816
  phase: "action"
@@ -1822,7 +1822,7 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1822
1822
  }
1823
1823
  return (n, l) => o.value ? (J(), U("section", Sn, [e.context.module.can("changePassword", o.value) === !0 ? (J(), U("label", Cn, [
1824
1824
  W("span", null, X(Z(t).t("platform.screen.LoginView.new-password", "新密码")), 1),
1825
- K(Z(L), {
1825
+ K(Z(ve), {
1826
1826
  value: r.value,
1827
1827
  "onUpdate:value": l[0] ||= (e) => r.value = e,
1828
1828
  type: "password",
@@ -1861,7 +1861,7 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1861
1861
  //#endregion
1862
1862
  //#region src/platform-admin-runtime/user/useUserSessionRows.ts
1863
1863
  function Dn(e) {
1864
- let t = e.language ?? _e, n = Y([]), i = Y({}), a = r({ load: async (e) => {
1864
+ let t = e.language ?? C, n = Y([]), i = Y({}), a = r({ load: async (e) => {
1865
1865
  await Promise.all(e.keys.map((t) => s(t, e.isLatest)));
1866
1866
  } });
1867
1867
  function o(e) {
@@ -1887,8 +1887,8 @@ function Dn(e) {
1887
1887
  });
1888
1888
  } catch (i) {
1889
1889
  if (!r(n)) return;
1890
- let a = Se(i);
1891
- P(a, {
1890
+ let a = h(i);
1891
+ N(a, {
1892
1892
  language: t,
1893
1893
  source: `${e.source}-sessions`,
1894
1894
  phase: "load"
@@ -1913,7 +1913,7 @@ function Dn(e) {
1913
1913
  let n = e ? i.value[e] : void 0;
1914
1914
  return n ? n.failure ? {
1915
1915
  ...n,
1916
- error: g(n.failure, t)
1916
+ error: _(n.failure, t)
1917
1917
  } : n : {
1918
1918
  records: [],
1919
1919
  loading: !1
@@ -1970,7 +1970,7 @@ var On = {
1970
1970
  });
1971
1971
  async function u(e) {
1972
1972
  let a = r.value;
1973
- a && !e.current && n.context.module.can("revokeSession", a) === !0 && await p({
1973
+ a && !e.current && n.context.module.can("revokeSession", a) === !0 && await f({
1974
1974
  title: t.t("platform.screen.UserSessionListExpansion.sign-out-session", "下线登录会话"),
1975
1975
  content: t.t("platform.screen.UserSessionListExpansion.sign-out-this-login-session", "确认下线该登录会话?"),
1976
1976
  okText: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-session", "下线"),
@@ -1982,7 +1982,7 @@ var On = {
1982
1982
  }
1983
1983
  async function d() {
1984
1984
  let e = r.value, a = s.value.map((e) => e.id);
1985
- e && a.length !== 0 && n.context.module.can("revokeSessions", e) === !0 && await p({
1985
+ e && a.length !== 0 && n.context.module.can("revokeSessions", e) === !0 && await f({
1986
1986
  title: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
1987
1987
  content: t.t("platform.screen.UserSessionListExpansion.sign-out-this-user-s-value-login-sessions", "确认下线该用户的 {value1} 个登录会话?", { value1: a.length }),
1988
1988
  okText: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
@@ -2112,7 +2112,7 @@ function In(e) {
2112
2112
  }
2113
2113
  function Ln(e, t) {
2114
2114
  let n = zn(e), r = n.source;
2115
- if (!f(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !ne(r, t)) return;
2115
+ if (!ue(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !S(r, t)) return;
2116
2116
  let i = {};
2117
2117
  for (let [e, t] of Object.entries(zn(n.languages))) {
2118
2118
  let n = zn(t);
@@ -2165,40 +2165,40 @@ var qn = /* @__PURE__ */ q({
2165
2165
  __name: "RoleScopeTree",
2166
2166
  props: { context: {} },
2167
2167
  setup(e) {
2168
- let t = j(), n = e, r = jn(x()), i = Y(), a = Y(""), o = Y(!1), s = Y([]), c = Y([]), l = Y(0), u = Y(/* @__PURE__ */ new Map()), d = B(() => n.context.selectionKey), f = B(() => i.value?.navigations.some((e) => e.level === "TENANT") === !0), p = B(() => i.value?.navigations.length !== 0), h = B(() => f.value ? t.t("platform.screen.ModulePageHostRuntime.tenant", "租户") : t.t("platform.user-picker.axis.organization", "机构")), g = A({
2168
+ let t = j(), n = e, r = jn(_e()), i = Y(), a = Y(""), o = Y(!1), s = Y([]), c = Y([]), l = Y(0), u = Y(/* @__PURE__ */ new Map()), d = B(() => n.context.selectionKey), f = B(() => i.value?.navigations.some((e) => e.level === "TENANT") === !0), p = B(() => i.value?.navigations.length !== 0), h = B(() => f.value ? t.t("platform.screen.ModulePageHostRuntime.tenant", "租户") : t.t("platform.user-picker.axis.organization", "机构")), g = A({
2169
2169
  nodes: () => s.value,
2170
- loader: () => ne,
2170
+ loader: () => O,
2171
2171
  version: () => l.value
2172
2172
  }), _ = B(() => v(g.nodes.value));
2173
2173
  function v(e) {
2174
2174
  return e.map((e) => ({
2175
2175
  ...e,
2176
- title: w(e.title, u.value.get(e.key)?.labelText, t),
2176
+ title: L(e.title, u.value.get(e.key)?.labelText, t),
2177
2177
  ...e.children ? { children: v(e.children) } : {}
2178
2178
  }));
2179
2179
  }
2180
- let y = g.states, b = 0, S;
2181
- Ke(() => void C()), Ge(() => {
2182
- b += 1, S && clearTimeout(S);
2180
+ let y = g.states, b = 0, x;
2181
+ Ke(() => void S()), Ge(() => {
2182
+ b += 1, x && clearTimeout(x);
2183
2183
  }), Q(a, () => {
2184
- p.value && (S && clearTimeout(S), S = setTimeout(() => void D(), 240));
2184
+ p.value && (x && clearTimeout(x), x = setTimeout(() => void w(), 240));
2185
2185
  });
2186
- async function C() {
2186
+ async function S() {
2187
2187
  o.value = !0;
2188
2188
  try {
2189
2189
  i.value = await r.descriptor();
2190
2190
  let e = i.value.directSelections[0], t = i.value.directSelections.find((e) => e.selectionKey === n.context.selectionKey);
2191
- t?.labelText && F({
2191
+ t?.labelText && re({
2192
2192
  key: t.selectionKey,
2193
2193
  label: t.label,
2194
2194
  labelText: t.labelText
2195
- }), !n.context.selectionKey && e && F({
2195
+ }), !n.context.selectionKey && e && re({
2196
2196
  key: e.selectionKey,
2197
2197
  label: e.label,
2198
2198
  labelText: e.labelText
2199
- }), await T();
2199
+ }), await C();
2200
2200
  } catch (e) {
2201
- P(e, {
2201
+ N(e, {
2202
2202
  language: t,
2203
2203
  source: "role-scope-tree",
2204
2204
  phase: "load"
@@ -2207,19 +2207,19 @@ var qn = /* @__PURE__ */ q({
2207
2207
  o.value = !1;
2208
2208
  }
2209
2209
  }
2210
- async function T(e = {}) {
2210
+ async function C(e = {}) {
2211
2211
  let n = i.value;
2212
2212
  if (!n) return;
2213
2213
  let r = ++b;
2214
2214
  if (!e.append) {
2215
2215
  c.value = [], l.value += 1, o.value = !0;
2216
2216
  try {
2217
- let e = O(n);
2217
+ let e = ee(n);
2218
2218
  if (r !== b) return;
2219
- u.value = /* @__PURE__ */ new Map(), M(e), s.value = e.map((e) => e.ui);
2219
+ u.value = /* @__PURE__ */ new Map(), k(e), s.value = e.map((e) => e.ui);
2220
2220
  } catch (e) {
2221
2221
  if (r !== b) return;
2222
- s.value = [], P(e, {
2222
+ s.value = [], N(e, {
2223
2223
  language: t,
2224
2224
  source: "role-scope-tree",
2225
2225
  phase: "load"
@@ -2229,12 +2229,12 @@ var qn = /* @__PURE__ */ q({
2229
2229
  }
2230
2230
  }
2231
2231
  }
2232
- async function D() {
2233
- if (await T(), !a.value.trim()) return;
2232
+ async function w() {
2233
+ if (await C(), !a.value.trim()) return;
2234
2234
  let e = (i.value?.navigations ?? []).map((e) => `navigation:${e.navigationKey}`);
2235
2235
  c.value = e, await Ve(), await Promise.all(e.map((e) => g.request(e, "refresh")));
2236
2236
  }
2237
- function O(e) {
2237
+ function ee(e) {
2238
2238
  return [
2239
2239
  ...e.directSelections.map((e) => ({
2240
2240
  ui: {
@@ -2249,11 +2249,11 @@ var qn = /* @__PURE__ */ q({
2249
2249
  labelText: e.labelText
2250
2250
  }
2251
2251
  })),
2252
- ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => k(e)),
2253
- ...e.navigations.filter((e) => e.level === "TENANT").map((e) => k(e))
2252
+ ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => T(e)),
2253
+ ...e.navigations.filter((e) => e.level === "TENANT").map((e) => T(e))
2254
2254
  ];
2255
2255
  }
2256
- function k(e) {
2256
+ function T(e) {
2257
2257
  return {
2258
2258
  ui: {
2259
2259
  key: `navigation:${e.navigationKey}`,
@@ -2267,8 +2267,8 @@ var qn = /* @__PURE__ */ q({
2267
2267
  }
2268
2268
  };
2269
2269
  }
2270
- function ee(e, t, n) {
2271
- let r = te(e, t, n);
2270
+ function te(e, t, n) {
2271
+ let r = D(e, t, n);
2272
2272
  return {
2273
2273
  ui: {
2274
2274
  key: e.selectionKey,
@@ -2284,7 +2284,7 @@ var qn = /* @__PURE__ */ q({
2284
2284
  children: r
2285
2285
  };
2286
2286
  }
2287
- function te(e, t, n) {
2287
+ function D(e, t, n) {
2288
2288
  return t === "TENANT" ? {
2289
2289
  navigationKey: e.selectionKey,
2290
2290
  level: "ORGANIZATION"
@@ -2294,7 +2294,7 @@ var qn = /* @__PURE__ */ q({
2294
2294
  parentId: e.id
2295
2295
  } : void 0;
2296
2296
  }
2297
- async function ne(e, n) {
2297
+ async function O(e, n) {
2298
2298
  let i = u.value.get(e.key);
2299
2299
  if (!i?.children) throw Error(t.t("platform.screen.RoleScopeTree.the-role-ownership-scope-is-no-longer-available", "角色归属范围已失效"));
2300
2300
  try {
@@ -2304,39 +2304,39 @@ var qn = /* @__PURE__ */ q({
2304
2304
  pageNum: n.reason === "load-more" ? Number(n.cursor) : 1
2305
2305
  });
2306
2306
  n.signal.throwIfAborted();
2307
- let t = e.records.map((e) => ee(e, i.children.level, i.children.navigationKey));
2308
- return M(t), {
2307
+ let t = e.records.map((e) => te(e, i.children.level, i.children.navigationKey));
2308
+ return k(t), {
2309
2309
  mode: n.reason === "load-more" ? "append" : "replace",
2310
2310
  nodes: t.map((e) => e.ui),
2311
2311
  hasMore: e.hasMore,
2312
2312
  nextCursor: e.nextPage == null ? void 0 : String(e.nextPage)
2313
2313
  };
2314
2314
  } catch (e) {
2315
- throw n.signal.aborted || P(e, {
2315
+ throw n.signal.aborted || N(e, {
2316
2316
  language: t,
2317
2317
  source: "role-scope-tree",
2318
2318
  phase: "load"
2319
2319
  }), e;
2320
2320
  }
2321
2321
  }
2322
- function M(e) {
2322
+ function k(e) {
2323
2323
  let t = new Map(u.value);
2324
2324
  e.forEach((e) => t.set(e.ui.key, e)), u.value = t;
2325
2325
  }
2326
- function N(e) {
2326
+ function ne(e) {
2327
2327
  let t = u.value.get(e.key)?.selection;
2328
- t && F(t);
2328
+ t && re(t);
2329
2329
  }
2330
- function F(e) {
2330
+ function re(e) {
2331
2331
  n.context.selectSelectionKey(e.key, {
2332
2332
  label: e.label,
2333
2333
  ...e.labelText ? { labelText: e.labelText } : {},
2334
2334
  secondaryLabel: e.secondaryLabel
2335
2335
  });
2336
2336
  }
2337
- function re() {
2337
+ function ie() {
2338
2338
  let e = i.value?.directSelections[0];
2339
- e && F({
2339
+ e && re({
2340
2340
  key: e.selectionKey,
2341
2341
  label: e.label,
2342
2342
  labelText: e.labelText
@@ -2349,7 +2349,7 @@ var qn = /* @__PURE__ */ q({
2349
2349
  "search-keyword": a.value,
2350
2350
  "search-placeholder": Z(t).t("platform.screen.RoleScopeTree.search-names-codes-or-ids", "搜索名称、编码或标识"),
2351
2351
  searchable: p.value,
2352
- onRefresh: T,
2352
+ onRefresh: C,
2353
2353
  "onUpdate:searchKeyword": n[3] ||= (e) => a.value = e
2354
2354
  }, {
2355
2355
  default: $(() => [o.value ? (J(), V(Z(E), {
@@ -2366,8 +2366,8 @@ var qn = /* @__PURE__ */ q({
2366
2366
  "reload-on-reexpand": "",
2367
2367
  "branch-states": Z(y),
2368
2368
  onLoadRequest: n[1] ||= (e) => Z(g).request(e.node.key, e.reason, Z(g).stateOf(e.node.key).status === "error"),
2369
- onSelect: N,
2370
- onDeselect: re,
2369
+ onSelect: ne,
2370
+ onDeselect: ie,
2371
2371
  onUnloadChildren: n[2] ||= (e) => Z(g).release(e.key)
2372
2372
  }, null, 8, [
2373
2373
  "expanded-keys",
@@ -2544,17 +2544,17 @@ var Xn = {
2544
2544
  },
2545
2545
  emits: ["close", "saved"],
2546
2546
  setup(e, { emit: t }) {
2547
- let n = j(), r = e, i = t, a = Y([]), o = Y({}), s = Y([]), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(""), d = Y(""), f = Y(1), p = Y(0), m = Y(!1), h = Y(!1), g = Y(!1), v = Y(!1), b = Y(), x = B(() => Yn(r.context.http)), S = ve({ moduleAlias: "iam.tenant" }), C = B(() => r.role?.id), w = B(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: De(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), D = B(() => r.embedded ? "section" : y), O = B(() => r.embedded ? {} : {
2547
+ let n = j(), r = e, i = t, a = Y([]), o = Y({}), s = Y([]), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(""), d = Y(""), f = Y(1), p = Y(0), m = Y(!1), h = Y(!1), g = Y(!1), _ = Y(!1), v = Y(), y = B(() => Yn(r.context.http)), b = w({ moduleAlias: "iam.tenant" }), S = B(() => r.role?.id), C = B(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: De(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), ee = B(() => r.embedded ? "section" : x), D = B(() => r.embedded ? {} : {
2548
2548
  open: r.open,
2549
- title: w.value,
2549
+ title: C.value,
2550
2550
  renderMode: r.container ? "inline" : "portal",
2551
2551
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
2552
2552
  onClose: _e
2553
- }), k = B(() => r.role?.ownerScopeType === "platform"), A = B(() => b.value?.id), ee = B(() => !k.value || !!A.value), te = B(() => S), ne = B(() => {
2553
+ }), O = B(() => r.role?.ownerScopeType === "platform"), k = B(() => v.value?.id), A = B(() => !O.value || !!k.value), ne = B(() => b), re = B(() => {
2554
2554
  let e = /* @__PURE__ */ new Map();
2555
2555
  for (let t of a.value) t.userId && e.set(t.userId, t);
2556
2556
  return e;
2557
- }), M = B(() => s.value.filter((e) => e.id).map((e) => ({
2557
+ }), ie = B(() => s.value.filter((e) => e.id).map((e) => ({
2558
2558
  id: e.id,
2559
2559
  username: Te(e),
2560
2560
  employeeNo: e.employeeNo ?? "",
@@ -2562,7 +2562,7 @@ var Xn = {
2562
2562
  organizationTitle: e.organizationTitle ?? e.organizationId ?? "",
2563
2563
  departmentTitle: e.departmentTitle ?? e.departmentId ?? "",
2564
2564
  boundTitle: l.value.has(e.id) ? n.t("platform.screen.RoleAccountGrantDrawer.assigned", "已绑定") : n.t("platform.screen.MetadataGovernanceSurface.unbound", "未绑定")
2565
- }))), N = B(() => [...c.value].map((e) => o.value[e] ?? we(e))), F = B(() => [...c.value].filter((e) => !l.value.has(e))), re = B(() => [...l.value].filter((e) => !c.value.has(e))), ie = B(() => F.value.length > 0 || re.value.length > 0), I = {
2565
+ }))), M = B(() => [...c.value].map((e) => o.value[e] ?? we(e))), P = B(() => [...c.value].filter((e) => !l.value.has(e))), F = B(() => [...l.value].filter((e) => !c.value.has(e))), ae = B(() => P.value.length > 0 || F.value.length > 0), I = {
2566
2566
  rowKey: "id",
2567
2567
  columns: [
2568
2568
  {
@@ -2596,7 +2596,7 @@ var Xn = {
2596
2596
  width: 90
2597
2597
  }
2598
2598
  ]
2599
- }, ce = B(() => ({
2599
+ }, L = B(() => ({
2600
2600
  selectedRowKeys: [...c.value],
2601
2601
  preserveSelectedRowKeys: !0,
2602
2602
  disabledOf: () => g.value,
@@ -2617,10 +2617,10 @@ var Xn = {
2617
2617
  () => r.embedded,
2618
2618
  () => r.drawerContext,
2619
2619
  c,
2620
- ie,
2621
- ee,
2620
+ ae,
2621
+ A,
2622
+ P,
2622
2623
  F,
2623
- re,
2624
2624
  g,
2625
2625
  m
2626
2626
  ], ue, { immediate: !0 }), Ge(() => r.drawerContext?.setOperation(void 0));
@@ -2640,37 +2640,37 @@ var Xn = {
2640
2640
  key: "save-account-role-grants",
2641
2641
  label: n.t("platform.screen.RoleAccountGrantDrawer.confirm", "确定"),
2642
2642
  emphasis: "primary",
2643
- disabled: m.value || !ee.value || !ie.value,
2643
+ disabled: m.value || !A.value || !ae.value,
2644
2644
  loading: g.value,
2645
2645
  run: () => void ge()
2646
2646
  }]
2647
2647
  }));
2648
2648
  }
2649
2649
  function de() {
2650
- return ee.value ? ie.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
2650
+ return A.value ? ae.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
2651
2651
  value1: c.value.size,
2652
- value2: F.value.length,
2653
- value3: re.value.length
2652
+ value2: P.value.length,
2653
+ value3: F.value.length
2654
2654
  }) : n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected", "已选 {value1} 个用户", { value1: c.value.size }) : n.t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant", "请选择目标租户");
2655
2655
  }
2656
2656
  async function fe() {
2657
- let e = C.value;
2657
+ let e = S.value;
2658
2658
  if (!e) {
2659
2659
  ye();
2660
2660
  return;
2661
2661
  }
2662
- if (!ee.value) {
2662
+ if (!A.value) {
2663
2663
  be();
2664
2664
  return;
2665
2665
  }
2666
- m.value = !0, v.value = !1;
2666
+ m.value = !0, _.value = !1;
2667
2667
  try {
2668
- let t = await x.value.accountRoleGrants(e, A.value);
2668
+ let t = await y.value.accountRoleGrants(e, k.value);
2669
2669
  a.value = t;
2670
2670
  let n = new Set(t.map((e) => e.userId).filter((e) => !!e));
2671
2671
  l.value = n, c.value = new Set(n), o.value = Ce([...t.map((e) => we(e.userId)).filter((e) => !!e)]), await pe(1);
2672
2672
  } catch (e) {
2673
- v.value = !0, P(e, {
2673
+ _.value = !0, N(e, {
2674
2674
  language: n,
2675
2675
  source: "role-account-grants",
2676
2676
  phase: "load"
@@ -2680,12 +2680,12 @@ var Xn = {
2680
2680
  }
2681
2681
  }
2682
2682
  async function pe(e) {
2683
- let t = C.value;
2684
- if (t && ee.value) {
2683
+ let t = S.value;
2684
+ if (t && A.value) {
2685
2685
  h.value = !0;
2686
2686
  try {
2687
- let n = await x.value.accountRoleCandidates(t, {
2688
- targetTenantId: A.value,
2687
+ let n = await y.value.accountRoleCandidates(t, {
2688
+ targetTenantId: k.value,
2689
2689
  keyword: d.value,
2690
2690
  enabledOnly: !0,
2691
2691
  page: {
@@ -2698,7 +2698,7 @@ var Xn = {
2698
2698
  ...Ce(n.records)
2699
2699
  }, f.value = n.pageNum, p.value = n.total;
2700
2700
  } catch (e) {
2701
- P(e, {
2701
+ N(e, {
2702
2702
  language: n,
2703
2703
  source: "role-account-grants",
2704
2704
  phase: "load"
@@ -2716,23 +2716,23 @@ var Xn = {
2716
2716
  t ? n.add(e) : n.delete(e), c.value = n;
2717
2717
  }
2718
2718
  async function ge() {
2719
- let e = C.value;
2720
- if (e && ee.value) {
2721
- if (!ie.value) {
2719
+ let e = S.value;
2720
+ if (e && A.value) {
2721
+ if (!ae.value) {
2722
2722
  i("close");
2723
2723
  return;
2724
2724
  }
2725
2725
  g.value = !0;
2726
2726
  try {
2727
- for (let t of F.value) await x.value.grantAccountRole(e, {
2727
+ for (let t of P.value) await y.value.grantAccountRole(e, {
2728
2728
  userId: t,
2729
- targetTenantId: A.value
2729
+ targetTenantId: k.value
2730
2730
  });
2731
- for (let t of re.value) {
2732
- let n = ne.value.get(t)?.id;
2733
- n && await x.value.deleteAccountRoleGrant(e, n, A.value);
2731
+ for (let t of F.value) {
2732
+ let n = re.value.get(t)?.id;
2733
+ n && await y.value.deleteAccountRoleGrant(e, n, k.value);
2734
2734
  }
2735
- await ae({
2735
+ await oe({
2736
2736
  success: !0,
2737
2737
  message: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2738
2738
  }, {
@@ -2742,7 +2742,7 @@ var Xn = {
2742
2742
  fallbackMessage: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2743
2743
  }), i("saved"), i("close");
2744
2744
  } catch (e) {
2745
- P(e, {
2745
+ N(e, {
2746
2746
  language: n,
2747
2747
  source: "role-account-grants",
2748
2748
  phase: "action"
@@ -2756,18 +2756,18 @@ var Xn = {
2756
2756
  g.value || i("close");
2757
2757
  }
2758
2758
  function ye() {
2759
- b.value = void 0, be();
2759
+ v.value = void 0, be();
2760
2760
  }
2761
2761
  function be() {
2762
- a.value = [], o.value = {}, s.value = [], c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = "", d.value = "", f.value = 1, p.value = 0, m.value = !1, h.value = !1, g.value = !1, v.value = !1;
2762
+ a.value = [], o.value = {}, s.value = [], c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = "", d.value = "", f.value = 1, p.value = 0, m.value = !1, h.value = !1, g.value = !1, _.value = !1;
2763
2763
  }
2764
2764
  async function xe(e) {
2765
2765
  if (!e) {
2766
- b.value = void 0, be();
2766
+ v.value = void 0, be();
2767
2767
  return;
2768
2768
  }
2769
- let t = await S.crud.view(e);
2770
- b.value = t ?? {
2769
+ let t = await b.crud.view(e);
2770
+ v.value = t ?? {
2771
2771
  id: e,
2772
2772
  title: e
2773
2773
  }, await fe();
@@ -2793,17 +2793,17 @@ var Xn = {
2793
2793
  return e.employeeTitle && e.employeeNo ? `${e.employeeTitle} / ${e.employeeNo}` : e.employeeTitle ?? e.employeeNo ?? e.employeeId ?? e.id;
2794
2794
  }
2795
2795
  function De(e) {
2796
- return String(_(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2796
+ return String(te(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2797
2797
  }
2798
2798
  function Oe(e) {
2799
2799
  return e?.ownerScopeType === "platform" ? n.t("platform.screen.RoleAuthorizationView.platform-scope", "平台范围") : e?.ownerScopeType === "organization" ? n.t("platform.screen.RoleAuthorizationView.organization-scope", "机构范围") : n.t("platform.screen.RoleAuthorizationView.tenant-scope", "租户范围");
2800
2800
  }
2801
- return (t, r) => (J(), V(Ze(D.value), Be(O.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Ie({
2801
+ return (t, r) => (J(), V(Ze(ee.value), Be(D.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Ie({
2802
2802
  default: $(() => [m.value ? (J(), V(Z(E), {
2803
2803
  key: 0,
2804
2804
  class: "role-account-grant-drawer-state",
2805
2805
  tip: Z(n).t("platform.screen.RoleAccountGrantDrawer.loading-users", "加载用户")
2806
- }, null, 8, ["tip"])) : v.value ? (J(), U("div", Xn, [K(Z(T), {
2806
+ }, null, 8, ["tip"])) : _.value ? (J(), U("div", Xn, [K(Z(T), {
2807
2807
  title: Z(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-users", "用户加载失败"),
2808
2808
  message: Z(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-user-assignments-for-this-role", "无法加载当前角色的用户绑定")
2809
2809
  }, null, 8, ["title", "message"]), K(Z(R), {
@@ -2815,10 +2815,10 @@ var Xn = {
2815
2815
  _: 1
2816
2816
  })])) : (J(), U("section", {
2817
2817
  key: 2,
2818
- class: He(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": k.value }])
2819
- }, [k.value ? (J(), U("label", Zn, [W("span", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), K(Z(oe), {
2820
- context: te.value,
2821
- value: A.value,
2818
+ class: He(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": O.value }])
2819
+ }, [O.value ? (J(), U("label", Zn, [W("span", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), K(Z(se), {
2820
+ context: ne.value,
2821
+ value: k.value,
2822
2822
  mode: "list",
2823
2823
  placeholder: Z(n).t("platform.screen.RoleAccountGrantDrawer.select-the-target-tenant-for-this-role-assignment", "请选择角色下发的目标租户"),
2824
2824
  disabled: g.value || m.value,
@@ -2828,8 +2828,8 @@ var Xn = {
2828
2828
  "value",
2829
2829
  "placeholder",
2830
2830
  "disabled"
2831
- ])])) : H("v-if", !0), ee.value ? (J(), U(z, { key: 2 }, [
2832
- W("div", $n, [K(Z(L), {
2831
+ ])])) : H("v-if", !0), A.value ? (J(), U(z, { key: 2 }, [
2832
+ W("div", $n, [K(Z(ve), {
2833
2833
  value: u.value,
2834
2834
  "allow-clear": "",
2835
2835
  disabled: g.value,
@@ -2848,14 +2848,14 @@ var Xn = {
2848
2848
  default: $(() => [G(X(Z(n).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
2849
2849
  _: 1
2850
2850
  }, 8, ["disabled"])]),
2851
- K(Z(se), {
2851
+ K(Z(ce), {
2852
2852
  class: "role-account-grant-table",
2853
2853
  size: "middle",
2854
2854
  contract: I,
2855
- rows: M.value,
2855
+ rows: ie.value,
2856
2856
  loading: h.value,
2857
2857
  pagination: le.value,
2858
- selection: ce.value,
2858
+ selection: L.value,
2859
2859
  "fill-height": ""
2860
2860
  }, null, 8, [
2861
2861
  "rows",
@@ -2863,7 +2863,7 @@ var Xn = {
2863
2863
  "pagination",
2864
2864
  "selection"
2865
2865
  ]),
2866
- N.value.length > 0 ? (J(), U("section", er, [W("div", tr, [W("strong", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), W("span", null, X(N.value.length), 1)]), W("div", nr, [(J(!0), U(z, null, Ye(N.value, (e) => (J(), U("button", {
2866
+ M.value.length > 0 ? (J(), U("section", er, [W("div", tr, [W("strong", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), W("span", null, X(M.value.length), 1)]), W("div", nr, [(J(!0), U(z, null, Ye(M.value, (e) => (J(), U("button", {
2867
2867
  key: e.id,
2868
2868
  type: "button",
2869
2869
  disabled: g.value,
@@ -2882,7 +2882,7 @@ var Xn = {
2882
2882
  }, 8, ["disabled"]), K(Z(R), {
2883
2883
  type: "primary",
2884
2884
  loading: g.value,
2885
- disabled: m.value || !ie.value,
2885
+ disabled: m.value || !ae.value,
2886
2886
  onClick: ge
2887
2887
  }, {
2888
2888
  default: $(() => [G(X(Z(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
@@ -3096,22 +3096,22 @@ var Xn = {
3096
3096
  },
3097
3097
  emits: ["close", "saved"],
3098
3098
  setup(e, { emit: t }) {
3099
- let n = j(), r = e, i = t, a = Y([]), o = Y([]), s = Y({}), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(!1), d = Y(!1), f = Y(!1), p = Y(!1), m = Y(1), h = Y(0), g = Y(""), _ = B(() => r.role?.id), v = B(() => Yn(r.context.http)), b = B(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), x = B(() => r.embedded ? "section" : y), S = B(() => r.embedded ? {} : {
3099
+ let n = j(), r = e, i = t, a = Y([]), o = Y([]), s = Y({}), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(!1), d = Y(!1), f = Y(!1), p = Y(!1), m = Y(1), h = Y(0), g = Y(""), _ = B(() => r.role?.id), v = B(() => Yn(r.context.http)), y = B(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), b = B(() => r.embedded ? "section" : x), S = B(() => r.embedded ? {} : {
3100
3100
  open: r.open,
3101
- title: b.value,
3101
+ title: y.value,
3102
3102
  renderMode: r.container ? "inline" : "portal",
3103
3103
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
3104
3104
  onClose: () => !f.value && i("close")
3105
- }), C = B(() => [...c.value].filter((e) => !l.value.has(e))), w = B(() => [...l.value].filter((e) => !c.value.has(e))), D = B(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), O = B(() => o.value.filter((e) => !g.value.trim() || N(e).includes(g.value.trim()))), k = B(() => [...c.value].map((e) => s.value[e] ?? ie(e))), A = B(() => ({
3105
+ }), C = B(() => [...c.value].filter((e) => !l.value.has(e))), w = B(() => [...l.value].filter((e) => !c.value.has(e))), ee = B(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), te = B(() => o.value.filter((e) => !g.value.trim() || ie(e).includes(g.value.trim()))), D = B(() => [...c.value].map((e) => s.value[e] ?? F(e))), O = B(() => ({
3106
3106
  current: m.value,
3107
3107
  total: h.value,
3108
3108
  pageSize: 50,
3109
3109
  showSizeChanger: !1,
3110
3110
  showQuickJumper: !1,
3111
- onChange: (e) => void te(e)
3111
+ onChange: (e) => void A(e)
3112
3112
  }));
3113
3113
  Q(() => [r.open, r.role?.id], ([e]) => {
3114
- e ? te() : M();
3114
+ e ? A() : re();
3115
3115
  }, { immediate: !0 }), Q([
3116
3116
  () => r.embedded,
3117
3117
  () => r.drawerContext,
@@ -3120,8 +3120,8 @@ var Xn = {
3120
3120
  w,
3121
3121
  f,
3122
3122
  d
3123
- ], ee, { immediate: !0 }), Ge(() => r.drawerContext?.setOperation(void 0));
3124
- function ee() {
3123
+ ], k, { immediate: !0 }), Ge(() => r.drawerContext?.setOperation(void 0));
3124
+ function k() {
3125
3125
  let e = r.drawerContext;
3126
3126
  r.embedded && e && (e.setSubtitle(n.t("platform.screen.RoleAccountGrantDrawer.role-value-value", "角色:{value1} · {value2}", {
3127
3127
  value1: r.role?.title ?? r.role?.id ?? n.t("platform.screen.RoleManagementView.role", "角色"),
@@ -3149,7 +3149,7 @@ var Xn = {
3149
3149
  }]
3150
3150
  }));
3151
3151
  }
3152
- async function te(e = 1) {
3152
+ async function A(e = 1) {
3153
3153
  let t = _.value;
3154
3154
  if (t) {
3155
3155
  d.value = !0, p.value = !1;
@@ -3163,10 +3163,10 @@ var Xn = {
3163
3163
  })]);
3164
3164
  a.value = n, l.value = new Set(n.map((e) => e.employeePositionId).filter((e) => !!e)), s.value = {
3165
3165
  ...s.value,
3166
- ...re(r.records)
3166
+ ...P(r.records)
3167
3167
  }, u.value ||= (c.value = new Set(l.value), !0), o.value = r.records, m.value = r.pageNum, h.value = r.total;
3168
3168
  } catch (e) {
3169
- p.value = !0, P(e, {
3169
+ p.value = !0, N(e, {
3170
3170
  language: n,
3171
3171
  source: "role-employment-grants",
3172
3172
  phase: "load"
@@ -3183,10 +3183,10 @@ var Xn = {
3183
3183
  try {
3184
3184
  for (let t of C.value) await v.value.grantEmploymentRole(e, t);
3185
3185
  for (let t of w.value) {
3186
- let n = D.value.get(t)?.id;
3186
+ let n = ee.value.get(t)?.id;
3187
3187
  n && await v.value.deleteEmploymentRoleGrant(e, n);
3188
3188
  }
3189
- await ae({
3189
+ await oe({
3190
3190
  success: !0,
3191
3191
  message: n.t("platform.screen.RoleEmploymentGrantDrawer.position-role-assignments-saved", "任职角色授权已保存")
3192
3192
  }, {
@@ -3195,7 +3195,7 @@ var Xn = {
3195
3195
  phase: "action"
3196
3196
  }), i("saved"), i("close");
3197
3197
  } catch (e) {
3198
- P(e, {
3198
+ N(e, {
3199
3199
  language: n,
3200
3200
  source: "role-employment-grants",
3201
3201
  phase: "action"
@@ -3205,10 +3205,10 @@ var Xn = {
3205
3205
  }
3206
3206
  }
3207
3207
  }
3208
- function M() {
3208
+ function re() {
3209
3209
  a.value = [], o.value = [], s.value = {}, c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = !1, g.value = "", m.value = 1, h.value = 0, p.value = !1;
3210
3210
  }
3211
- function N(e) {
3211
+ function ie(e) {
3212
3212
  return [
3213
3213
  e.employeeTitle,
3214
3214
  e.employeeNo,
@@ -3217,26 +3217,26 @@ var Xn = {
3217
3217
  e.positionTitle
3218
3218
  ].filter(Boolean).join(" ");
3219
3219
  }
3220
- function F(e) {
3220
+ function M(e) {
3221
3221
  let t = new Set(c.value);
3222
3222
  t.delete(e), c.value = t;
3223
3223
  }
3224
- function re(e) {
3224
+ function P(e) {
3225
3225
  let t = {};
3226
3226
  for (let n of e) n.id && (t[n.id] = n);
3227
3227
  return t;
3228
3228
  }
3229
- function ie(e) {
3229
+ function F(e) {
3230
3230
  return {
3231
3231
  id: e,
3232
3232
  positionId: e
3233
3233
  };
3234
3234
  }
3235
- function I(e) {
3235
+ function ae(e) {
3236
3236
  let t = e.positionTitle ?? e.positionId ?? e.id;
3237
3237
  return e.employeeTitle ? `${e.employeeTitle} · ${t}` : t;
3238
3238
  }
3239
- function oe(e) {
3239
+ function I(e) {
3240
3240
  return [
3241
3241
  e.employeeNo,
3242
3242
  e.organizationTitle ?? e.organizationId,
@@ -3246,18 +3246,18 @@ var Xn = {
3246
3246
  function se(e) {
3247
3247
  return e?.ownerScopeType === "platform" ? n.t("platform.screen.RoleAuthorizationView.platform-scope", "平台范围") : e?.ownerScopeType === "organization" ? n.t("platform.screen.RoleAuthorizationView.organization-scope", "机构范围") : n.t("platform.screen.RoleAuthorizationView.tenant-scope", "租户范围");
3248
3248
  }
3249
- return (t, r) => (J(), V(Ze(x.value), Be(S.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Ie({
3249
+ return (t, r) => (J(), V(Ze(b.value), Be(S.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Ie({
3250
3250
  default: $(() => [d.value ? (J(), V(Z(E), {
3251
3251
  key: 0,
3252
3252
  tip: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.loading-positions", "加载任职")
3253
3253
  }, null, 8, ["tip"])) : p.value ? (J(), U("div", cr, [K(Z(T), {
3254
3254
  title: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-positions", "任职加载失败"),
3255
3255
  message: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-position-assignments", "无法加载任职授权")
3256
- }, null, 8, ["title", "message"]), K(Z(R), { onClick: r[1] ||= (e) => te() }, {
3256
+ }, null, 8, ["title", "message"]), K(Z(R), { onClick: r[1] ||= (e) => A() }, {
3257
3257
  default: $(() => [G(X(Z(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
3258
3258
  _: 1
3259
3259
  })])) : (J(), U("section", lr, [
3260
- K(Z(L), {
3260
+ K(Z(ve), {
3261
3261
  value: g.value,
3262
3262
  "onUpdate:value": r[2] ||= (e) => g.value = e,
3263
3263
  "allow-clear": "",
@@ -3266,10 +3266,10 @@ var Xn = {
3266
3266
  K(sr, {
3267
3267
  "selected-ids": c.value,
3268
3268
  "onUpdate:selectedIds": r[3] ||= (e) => c.value = e,
3269
- rows: O.value,
3269
+ rows: te.value,
3270
3270
  selectable: "",
3271
3271
  disabled: f.value,
3272
- pagination: A.value,
3272
+ pagination: O.value,
3273
3273
  "fill-height": ""
3274
3274
  }, null, 8, [
3275
3275
  "selected-ids",
@@ -3277,12 +3277,12 @@ var Xn = {
3277
3277
  "disabled",
3278
3278
  "pagination"
3279
3279
  ]),
3280
- k.value.length > 0 ? (J(), U("section", ur, [W("div", dr, [W("strong", null, X(Z(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), W("span", null, X(k.value.length), 1)]), W("div", fr, [(J(!0), U(z, null, Ye(k.value, (e) => (J(), U("button", {
3280
+ D.value.length > 0 ? (J(), U("section", ur, [W("div", dr, [W("strong", null, X(Z(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), W("span", null, X(D.value.length), 1)]), W("div", fr, [(J(!0), U(z, null, Ye(D.value, (e) => (J(), U("button", {
3281
3281
  key: e.id,
3282
3282
  type: "button",
3283
3283
  disabled: f.value,
3284
- onClick: (t) => F(e.id)
3285
- }, [W("span", null, X(I(e)), 1), W("small", null, X(oe(e)), 1)], 8, pr))), 128))])])) : H("v-if", !0)
3284
+ onClick: (t) => M(e.id)
3285
+ }, [W("span", null, X(ae(e)), 1), W("small", null, X(I(e)), 1)], 8, pr))), 128))])])) : H("v-if", !0)
3286
3286
  ]))]),
3287
3287
  _: 2
3288
3288
  }, [e.embedded ? void 0 : {
@@ -3346,7 +3346,7 @@ var Xn = {
3346
3346
  emits: ["close"],
3347
3347
  setup(e, { emit: t }) {
3348
3348
  let n = e, r = t, i = B(() => n.profile === "wide-work" ? "wide" : "standard");
3349
- return (t, n) => (J(), V(Z(y), {
3349
+ return (t, n) => (J(), V(Z(x), {
3350
3350
  open: e.open,
3351
3351
  title: e.title,
3352
3352
  "render-mode": e.container ? "inline" : "portal",
@@ -3457,29 +3457,29 @@ var Ar = { class: "panel-title" }, jr = {
3457
3457
  },
3458
3458
  emits: ["close"],
3459
3459
  setup(e, { emit: t }) {
3460
- let n = j(), r = e, a = t, o = ve({ moduleAlias: "iam.role" }), s = r.moduleContext ?? o, c = Yn(s.http), l = r.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", u = i(), d = r.roleId ? { roleId: r.roleId } : void 0, f = d ? kr(d) : void 0, m = Y(), g = Y([]), y = Y(), b = Y(""), x = Y([]), S = Y(), C = Y(), w = Y(!1), O = Y(!1), k = Y(!1), A = Qe(), ee = B(() => A.value ? me(A.value, n) : void 0), ne = Y(), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), F = Y(0), I, oe = B(() => m.value?.roleKind === "group"), se = B(() => m.value?.roleKind === "dataGrant"), le = B(() => m.value?.assignmentType === "employment"), ue = B(() => !!r.drawerContext), de = B(() => (m.value && _(m.value, "title", n)) ?? l ?? n.t("platform.screen.RoleManagementView.role", "角色")), fe = B(() => n.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: de.value })), he = B(() => ge.value ? n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: ge.value.title }) : n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: de.value })), ge = B(() => g.value.find((e) => e.moduleAlias === y.value)), _e = B(() => {
3461
- let e = b.value.trim().toLocaleLowerCase(), t = new Set(e ? g.value.filter((t) => [
3460
+ let n = j(), r = e, a = t, o = w({ moduleAlias: "iam.role" }), s = r.moduleContext ?? o, c = Yn(s.http), l = r.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", u = i(), d = r.roleId ? { roleId: r.roleId } : void 0, m = d ? kr(d) : void 0, h = Y(), _ = Y([]), v = Y(), b = Y(""), x = Y([]), S = Y(), C = Y(), ee = Y(!1), O = Y(!1), k = Y(!1), A = Qe(), ne = B(() => A.value ? ae(A.value, n) : void 0), ie = Y(), M = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), I = Y(0), se, L = B(() => h.value?.roleKind === "group"), ce = B(() => h.value?.roleKind === "dataGrant"), le = B(() => h.value?.assignmentType === "employment"), ue = B(() => !!r.drawerContext), de = B(() => (h.value && te(h.value, "title", n)) ?? l ?? n.t("platform.screen.RoleManagementView.role", "角色")), fe = B(() => n.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: de.value })), me = B(() => he.value ? n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: he.value.title }) : n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: de.value })), he = B(() => _.value.find((e) => e.moduleAlias === v.value)), ge = B(() => {
3461
+ let e = b.value.trim().toLocaleLowerCase(), t = new Set(e ? _.value.filter((t) => [
3462
3462
  t.title,
3463
3463
  t.moduleAlias,
3464
3464
  t.applicationAlias
3465
- ].filter((e) => !!e).some((t) => t.toLocaleLowerCase().includes(e))).map((e) => e.moduleAlias) : g.value.map((e) => e.moduleAlias)), n = new Map(g.value.map((e) => [e.moduleAlias, e]));
3465
+ ].filter((e) => !!e).some((t) => t.toLocaleLowerCase().includes(e))).map((e) => e.moduleAlias) : _.value.map((e) => e.moduleAlias)), n = new Map(_.value.map((e) => [e.moduleAlias, e]));
3466
3466
  for (let e of [...t]) {
3467
3467
  let r = n.get(e)?.parentId;
3468
3468
  for (; r && n.has(r) && !t.has(r);) t.add(r), r = n.get(r)?.parentId;
3469
3469
  }
3470
- return g.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
3470
+ return _.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
3471
3471
  id: e.moduleAlias,
3472
3472
  parentId: e.parentId,
3473
3473
  title: e.title,
3474
3474
  secondary: e.applicationAlias
3475
3475
  }));
3476
- }), L = B(() => (C.value?.options ?? []).map((e) => ({
3476
+ }), _e = B(() => (C.value?.options ?? []).map((e) => ({
3477
3477
  value: e.code,
3478
3478
  label: e.title
3479
- }))), be = B(() => (C.value?.referenceDependencies ?? []).map((e) => ({
3479
+ }))), ve = B(() => (C.value?.referenceDependencies ?? []).map((e) => ({
3480
3480
  value: e.referenceFieldId,
3481
3481
  label: `${e.title} → ${e.targetModuleTitle}`
3482
- }))), Se = B(() => new Map((C.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), we = B(() => le.value && x.value.some((e) => !!e.dataAuth)), Ee = B(() => [
3482
+ }))), be = B(() => new Map((C.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), we = B(() => le.value && x.value.some((e) => !!e.dataAuth)), Ee = B(() => [
3483
3483
  {
3484
3484
  key: "title",
3485
3485
  title: n.t("platform.governance.tab.actions", "动作"),
@@ -3513,7 +3513,7 @@ var Ar = { class: "panel-title" }, jr = {
3513
3513
  title: n.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
3514
3514
  width: 160
3515
3515
  }
3516
- ]), Oe = B(() => x.value), ke = B(() => S.value?.actions ?? []), Ae = B(() => r.drawer === !0 || !!d && u?.presentation === "drawer"), je = B(() => !!d), Me = B(() => je.value && !ue.value), Ne = B(() => ue.value ? "div" : Ae.value ? gr : je.value ? v : "div"), Pe = B(() => Ae.value ? {
3516
+ ]), Oe = B(() => x.value), ke = B(() => S.value?.actions ?? []), Ae = B(() => r.drawer === !0 || !!d && u?.presentation === "drawer"), je = B(() => !!d), Me = B(() => je.value && !ue.value), Ne = B(() => ue.value ? "div" : Ae.value ? gr : je.value ? y : "div"), Pe = B(() => Ae.value ? {
3517
3517
  open: !0,
3518
3518
  title: fe.value,
3519
3519
  container: r.container ?? null,
@@ -3524,11 +3524,11 @@ var Ar = { class: "panel-title" }, jr = {
3524
3524
  onClose: pt
3525
3525
  } : Me.value ? { title: fe.value } : {}), Fe = B(() => {
3526
3526
  let e = S.value;
3527
- return !e || ne.value === void 0 ? !1 : JSON.stringify(e.actions) !== ne.value;
3528
- }), Le = B(() => F.value >= 0 && [...M.entries()].some(([e, t]) => N.get(e) !== JSON.stringify(t))), q = B(() => Fe.value || Le.value);
3529
- ce(() => n.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => q.value, () => k.value);
3527
+ return !e || ie.value === void 0 ? !1 : JSON.stringify(e.actions) !== ie.value;
3528
+ }), Le = B(() => I.value >= 0 && [...M.entries()].some(([e, t]) => P.get(e) !== JSON.stringify(t))), q = B(() => Fe.value || Le.value);
3529
+ p(() => n.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => q.value, () => k.value);
3530
3530
  let ze = B(() => x.value.length > 0 && x.value.every((e) => e.granted)), Be = B(() => x.value.some((e) => e.granted) && !ze.value), Ve = B(() => {
3531
- let e = ge.value?.title ?? n.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = x.value.filter((e) => e.granted).length, r = q.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
3531
+ let e = he.value?.title ?? n.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = x.value.filter((e) => e.granted).length, r = q.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
3532
3532
  return n.t("platform.screen.RoleAuthorizationView.current-module-value-value-value-actions-granted-value", "当前模块:{value1} · 已授权 {value2}/{value3} 项 · {value4}", {
3533
3533
  value1: e,
3534
3534
  value2: t,
@@ -3540,17 +3540,17 @@ var Ar = { class: "panel-title" }, jr = {
3540
3540
  input: () => d,
3541
3541
  title: fe,
3542
3542
  eligibility: () => ({
3543
- hasStableIdentity: !!(l && m.value),
3543
+ hasStableIdentity: !!(l && h.value),
3544
3544
  busy: k.value
3545
3545
  }),
3546
3546
  beforePromote: (e) => Dr(e, {
3547
- selectedModuleAlias: y.value,
3547
+ selectedModuleAlias: v.value,
3548
3548
  dataGrantMatrix: S.value,
3549
3549
  actionDrafts: [...M.entries()].map(([e, t]) => ({
3550
3550
  moduleAlias: e,
3551
3551
  actions: t
3552
3552
  })),
3553
- actionSnapshots: [...N.entries()].map(([e, t]) => ({
3553
+ actionSnapshots: [...P.entries()].map(([e, t]) => ({
3554
3554
  moduleAlias: e,
3555
3555
  snapshot: t
3556
3556
  }))
@@ -3563,28 +3563,28 @@ var Ar = { class: "panel-title" }, jr = {
3563
3563
  })
3564
3564
  });
3565
3565
  Ke(() => {
3566
- d && !Ae.value && (I = Or(d, ht)), Je();
3566
+ d && !Ae.value && (se = Or(d, ht)), Je();
3567
3567
  }), Q(fe, (e) => {
3568
3568
  je.value && u?.setTitle(e);
3569
- }, { immediate: !0 }), Q(y, () => void Ye()), Q([
3569
+ }, { immediate: !0 }), Q(v, () => void Ye()), Q([
3570
3570
  de,
3571
3571
  Ve,
3572
3572
  q,
3573
3573
  k,
3574
- oe,
3575
- se
3574
+ L,
3575
+ ce
3576
3576
  ], qe, { immediate: !0 }), Ke(() => window.addEventListener("beforeunload", _t)), Ge(() => {
3577
- I?.(), r.drawerContext?.setOperation(void 0), r.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
3577
+ se?.(), r.drawerContext?.setOperation(void 0), r.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
3578
3578
  });
3579
3579
  function qe() {
3580
3580
  let e = r.drawerContext;
3581
3581
  if (e) {
3582
- if (e.setSubtitle(`${de.value} · ${vt(m.value)}`), oe.value) {
3582
+ if (e.setSubtitle(`${de.value} · ${vt(h.value)}`), L.value) {
3583
3583
  e.setOperation(void 0);
3584
3584
  return;
3585
3585
  }
3586
3586
  e.setOperation({
3587
- summary: se.value ? q.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Ve.value,
3587
+ summary: ce.value ? q.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Ve.value,
3588
3588
  actions: [{
3589
3589
  key: "confirm-role-authorization",
3590
3590
  label: n.t("platform.screen.UiModal.confirmText", "确认"),
@@ -3598,37 +3598,37 @@ var Ar = { class: "panel-title" }, jr = {
3598
3598
  }
3599
3599
  async function Je() {
3600
3600
  if (!l) {
3601
- A.value = new re(ie(n, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
3601
+ A.value = new Se(F(n, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
3602
3602
  return;
3603
3603
  }
3604
- w.value = !0, A.value = void 0;
3604
+ ee.value = !0, A.value = void 0;
3605
3605
  try {
3606
- if (m.value = await s.crud.view(l), m.value.roleKind === "group") return;
3607
- if (m.value.roleKind === "dataGrant") {
3606
+ if (h.value = await s.crud.view(l), h.value.roleKind === "group") return;
3607
+ if (h.value.roleKind === "dataGrant") {
3608
3608
  let [e, t] = await Promise.all([c.dataGrantActionMatrix(l), c.dataScopePolicyCatalog(l)]);
3609
- S.value = f?.dataGrantMatrix ?? e, C.value = t, ne.value = JSON.stringify(e.actions);
3609
+ S.value = m?.dataGrantMatrix ?? e, C.value = t, ie.value = JSON.stringify(e.actions);
3610
3610
  return;
3611
3611
  }
3612
- g.value = (await c.authorizationModules(l)).records, y.value = f?.selectedModuleAlias ?? g.value[0]?.moduleAlias;
3612
+ _.value = (await c.authorizationModules(l)).records, v.value = m?.selectedModuleAlias ?? _.value[0]?.moduleAlias;
3613
3613
  } catch (e) {
3614
- A.value = new re(ie(n, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), P(e, {
3614
+ A.value = new Se(F(n, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), N(e, {
3615
3615
  language: n,
3616
3616
  source: "role-authorization",
3617
3617
  phase: "load"
3618
3618
  });
3619
3619
  } finally {
3620
- w.value = !1;
3620
+ ee.value = !1;
3621
3621
  }
3622
3622
  }
3623
3623
  async function Ye() {
3624
- let e = y.value;
3625
- if (!(!e || se.value || oe.value)) {
3624
+ let e = v.value;
3625
+ if (!(!e || ce.value || L.value)) {
3626
3626
  O.value = !0;
3627
3627
  try {
3628
- let [t, n] = await Promise.all([c.permissionMatrix(l, [e]), c.dataScopePolicyCatalog(l, e)]), r = (t.modules[0]?.actions ?? []).map(ct), i = f?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions, a = M.get(e) ?? i;
3629
- x.value = a ?? r, M.has(e) || (M.set(e, x.value), N.set(e, f?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), F.value += 1, C.value = n;
3628
+ let [t, n] = await Promise.all([c.permissionMatrix(l, [e]), c.dataScopePolicyCatalog(l, e)]), r = (t.modules[0]?.actions ?? []).map(ct), i = m?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions, a = M.get(e) ?? i;
3629
+ x.value = a ?? r, M.has(e) || (M.set(e, x.value), P.set(e, m?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), I.value += 1, C.value = n;
3630
3630
  } catch (e) {
3631
- P(e, {
3631
+ N(e, {
3632
3632
  language: n,
3633
3633
  source: "role-authorization",
3634
3634
  phase: "load"
@@ -3639,24 +3639,24 @@ var Ar = { class: "panel-title" }, jr = {
3639
3639
  }
3640
3640
  }
3641
3641
  function Xe(e, t) {
3642
- t && e.dataAuth && le.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, F.value += 1;
3642
+ t && e.dataAuth && le.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, I.value += 1;
3643
3643
  }
3644
3644
  function $e(e) {
3645
3645
  x.value.forEach((t) => Xe(t, e));
3646
3646
  }
3647
3647
  function et(e, t) {
3648
3648
  if (e.dataScopePolicy = String(t || "none"), e.dataScopePolicy === "referenceDependency") {
3649
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, F.value += 1;
3649
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, I.value += 1;
3650
3650
  return;
3651
3651
  }
3652
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, F.value += 1;
3652
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, I.value += 1;
3653
3653
  }
3654
3654
  function tt(e, t) {
3655
- let n = Se.value.get(String(t || ""));
3656
- e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, F.value += 1;
3655
+ let n = be.value.get(String(t || ""));
3656
+ e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, I.value += 1;
3657
3657
  }
3658
3658
  function nt(e) {
3659
- return Se.value.get(String(e || ""));
3659
+ return be.value.get(String(e || ""));
3660
3660
  }
3661
3661
  function rt(e) {
3662
3662
  return typeof e == "string" || typeof e == "number" ? e : void 0;
@@ -3685,14 +3685,14 @@ var Ar = { class: "panel-title" }, jr = {
3685
3685
  dataScopePolicy: e.dataScopePolicy,
3686
3686
  enabled: e.configured
3687
3687
  })));
3688
- await ae(e, {
3688
+ await oe(e, {
3689
3689
  language: n,
3690
3690
  source: "role-authorization",
3691
3691
  phase: "action",
3692
3692
  fallbackMessage: n.t("platform.screen.RoleAuthorizationView.data-permission-template-saved", "数据权限模板已保存")
3693
- }), ne.value = JSON.stringify(S.value.actions);
3693
+ }), ie.value = JSON.stringify(S.value.actions);
3694
3694
  } catch (e) {
3695
- P(e, {
3695
+ N(e, {
3696
3696
  language: n,
3697
3697
  source: "role-authorization",
3698
3698
  phase: "action"
@@ -3703,7 +3703,7 @@ var Ar = { class: "panel-title" }, jr = {
3703
3703
  }
3704
3704
  }
3705
3705
  async function ut() {
3706
- let e = [...M.entries()].filter(([e, t]) => N.get(e) !== JSON.stringify(t));
3706
+ let e = [...M.entries()].filter(([e, t]) => P.get(e) !== JSON.stringify(t));
3707
3707
  if (e.length) {
3708
3708
  k.value = !0;
3709
3709
  try {
@@ -3715,14 +3715,14 @@ var Ar = { class: "panel-title" }, jr = {
3715
3715
  referenceFieldId: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceFieldId : void 0,
3716
3716
  referenceActionCode: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceActionCode : void 0
3717
3717
  }))));
3718
- await ae(t, {
3718
+ await oe(t, {
3719
3719
  language: n,
3720
3720
  source: "role-authorization",
3721
3721
  phase: "action",
3722
3722
  fallbackMessage: n.t("platform.screen.RoleAuthorizationView.role-permissions-saved", "角色授权已保存")
3723
- }), e.forEach(([e, t]) => N.set(e, JSON.stringify(t))), F.value += 1;
3723
+ }), e.forEach(([e, t]) => P.set(e, JSON.stringify(t))), I.value += 1;
3724
3724
  } catch (e) {
3725
- P(e, {
3725
+ N(e, {
3726
3726
  language: n,
3727
3727
  source: "role-authorization",
3728
3728
  phase: "action"
@@ -3733,14 +3733,14 @@ var Ar = { class: "panel-title" }, jr = {
3733
3733
  }
3734
3734
  }
3735
3735
  async function dt() {
3736
- if (se.value) {
3736
+ if (ce.value) {
3737
3737
  await lt();
3738
3738
  return;
3739
3739
  }
3740
3740
  await ut();
3741
3741
  }
3742
3742
  async function ft() {
3743
- return !q.value || p({
3743
+ return !q.value || f({
3744
3744
  title: n.t("platform.screen.RoleAuthorizationView.discard-unconfirmed-permission-changes", "放弃未确认的授权配置"),
3745
3745
  content: n.t("platform.screen.RoleAuthorizationView.these-changes-have-not-been-confirmed-and-will-be-lost", "当前修改尚未确认,关闭后将丢失这些修改。"),
3746
3746
  okText: n.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
@@ -3754,7 +3754,7 @@ var Ar = { class: "panel-title" }, jr = {
3754
3754
  gt();
3755
3755
  }
3756
3756
  function ht(e) {
3757
- return !q.value && (y.value = e.selectedModuleAlias, S.value = e.dataGrantMatrix, M.clear(), N.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => M.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => N.set(e, t)), F.value += 1, !0);
3757
+ return !q.value && (v.value = e.selectedModuleAlias, S.value = e.dataGrantMatrix, M.clear(), P.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => M.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => P.set(e, t)), I.value += 1, !0);
3758
3758
  }
3759
3759
  function gt() {
3760
3760
  if (r.drawer === !0) {
@@ -3770,18 +3770,18 @@ var Ar = { class: "panel-title" }, jr = {
3770
3770
  return e?.ownerScopeType === "platform" ? n.t("platform.screen.RoleAuthorizationView.platform-scope", "平台范围") : e?.ownerScopeType === "organization" ? n.t("platform.screen.RoleAuthorizationView.organization-scope", "机构范围") : n.t("platform.screen.RoleAuthorizationView.tenant-scope", "租户范围");
3771
3771
  }
3772
3772
  return (e, t) => (J(), V(Ze(Ne.value), Ue(Re(Pe.value)), Ie({
3773
- default: $(() => [W("section", { class: He(["role-authorization-page", { "role-authorization-page--drawer": Ae.value || ue.value }]) }, [w.value ? (J(), V(Z(E), {
3773
+ default: $(() => [W("section", { class: He(["role-authorization-page", { "role-authorization-page--drawer": Ae.value || ue.value }]) }, [ee.value ? (J(), V(Z(E), {
3774
3774
  key: 0,
3775
3775
  tip: Z(n).t("platform.screen.RoleAuthorizationView.loading-permissions", "加载授权信息")
3776
- }, null, 8, ["tip"])) : ee.value ? (J(), V(Z(T), {
3776
+ }, null, 8, ["tip"])) : ne.value ? (J(), V(Z(T), {
3777
3777
  key: 1,
3778
3778
  title: Z(n).t("platform.screen.RoleAuthorizationView.failed-to-load-the-permissions-page", "授权页加载失败"),
3779
- message: ee.value
3780
- }, null, 8, ["title", "message"])) : oe.value ? (J(), V(Z(Te), {
3779
+ message: ne.value
3780
+ }, null, 8, ["title", "message"])) : L.value ? (J(), V(Z(Te), {
3781
3781
  key: 2,
3782
3782
  title: Z(n).t("platform.screen.RoleAuthorizationView.role-groups-do-not-have-separate-permissions", "角色组不独立授权"),
3783
3783
  description: Z(n).t("platform.screen.RoleAuthorizationView.role-groups-combine-their-member-roles-configure-action-and-data", "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。")
3784
- }, null, 8, ["title", "description"])) : se.value && S.value ? (J(), V(Z(ye), {
3784
+ }, null, 8, ["title", "description"])) : ce.value && S.value ? (J(), V(Z(ye), {
3785
3785
  key: 3,
3786
3786
  class: "data-grant-content",
3787
3787
  title: Me.value ? Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template", "数据权限模板") : Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template-value", "数据权限模板 - {value1}", { value1: de.value }),
@@ -3803,7 +3803,7 @@ var Ar = { class: "panel-title" }, jr = {
3803
3803
  "row-key": "actionCode",
3804
3804
  "horizontal-scroll": ""
3805
3805
  }, {
3806
- cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), U(z, { key: 0 }, [W("strong", null, X(t.title || t.actionCode), 1), W("small", null, X(t.actionCode), 1)], 64)) : e.key === "configured" ? (J(), V(Z(te), {
3806
+ cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), U(z, { key: 0 }, [W("strong", null, X(t.title || t.actionCode), 1), W("small", null, X(t.actionCode), 1)], 64)) : e.key === "configured" ? (J(), V(Z(re), {
3807
3807
  key: 1,
3808
3808
  checked: !!t.configured,
3809
3809
  disabled: k.value,
@@ -3815,7 +3815,7 @@ var Ar = { class: "panel-title" }, jr = {
3815
3815
  ])) : (J(), V(Z(pe), {
3816
3816
  key: 2,
3817
3817
  value: t.dataScopePolicy,
3818
- options: L.value,
3818
+ options: _e.value,
3819
3819
  disabled: !t.configured || k.value,
3820
3820
  placeholder: Z(n).t("platform.screen.RoleAuthorizationView.select-a-data-scope", "请选择数据范围"),
3821
3821
  "allow-clear": !1,
@@ -3842,10 +3842,10 @@ var Ar = { class: "panel-title" }, jr = {
3842
3842
  "search-placeholder": Z(n).t("platform.screen.RoleAuthorizationView.search-module-names-or-aliases", "搜索模块名称或别名"),
3843
3843
  onRefresh: Je
3844
3844
  }, {
3845
- default: $(() => [K(Z(h), {
3846
- records: _e.value,
3847
- "selected-id": y.value,
3848
- onSelect: t[0] ||= (e) => y.value = e.id
3845
+ default: $(() => [K(Z(g), {
3846
+ records: ge.value,
3847
+ "selected-id": v.value,
3848
+ onSelect: t[0] ||= (e) => v.value = e.id
3849
3849
  }, null, 8, ["records", "selected-id"])]),
3850
3850
  _: 1
3851
3851
  }, 8, [
@@ -3855,13 +3855,13 @@ var Ar = { class: "panel-title" }, jr = {
3855
3855
  "search-placeholder"
3856
3856
  ]), K(Z(ye), {
3857
3857
  class: "action-panel",
3858
- title: he.value,
3858
+ title: me.value,
3859
3859
  searchable: !1
3860
3860
  }, Ie({
3861
3861
  default: $(() => [O.value ? (J(), V(Z(E), {
3862
3862
  key: 0,
3863
3863
  tip: Z(n).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作")
3864
- }, null, 8, ["tip"])) : y.value ? (J(), V(Z(D), {
3864
+ }, null, 8, ["tip"])) : v.value ? (J(), V(Z(D), {
3865
3865
  key: 2,
3866
3866
  columns: Ee.value,
3867
3867
  rows: Oe.value,
@@ -3892,7 +3892,7 @@ var Ar = { class: "panel-title" }, jr = {
3892
3892
  "onChange"
3893
3893
  ])) : t.dataAuth && le.value && t.granted ? (J(), U("div", Mr, [K(Z(pe), {
3894
3894
  value: it(t),
3895
- options: L.value,
3895
+ options: _e.value,
3896
3896
  disabled: k.value,
3897
3897
  "allow-clear": !1,
3898
3898
  "onUpdate:value": (e) => et(t, e)
@@ -3903,7 +3903,7 @@ var Ar = { class: "panel-title" }, jr = {
3903
3903
  "onUpdate:value"
3904
3904
  ]), t.dataScopePolicy === "referenceDependency" ? (J(), U(z, { key: 0 }, [K(Z(pe), {
3905
3905
  value: rt(t.referenceFieldId),
3906
- options: be.value,
3906
+ options: ve.value,
3907
3907
  disabled: k.value,
3908
3908
  placeholder: Z(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field", "请选择引用字段"),
3909
3909
  "allow-clear": !1,
@@ -3935,7 +3935,7 @@ var Ar = { class: "panel-title" }, jr = {
3935
3935
  key: "0"
3936
3936
  }]), 1032, ["title"])], 2))], 2)]),
3937
3937
  _: 2
3938
- }, [Me.value && !oe.value ? {
3938
+ }, [Me.value && !L.value ? {
3939
3939
  name: "operation",
3940
3940
  fn: $(() => [K(Z(R), {
3941
3941
  type: "primary",