@ximatai/muyun-web-app 0.26.24 → 0.26.25

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 (52) hide show
  1. package/dist/{BusinessActivityLogView-DQ5_VmLp.js → BusinessActivityLogView-a6oZ2t9t.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-BnucgqNA.js → BusinessLogListDrawer-DtSXpK6g.js} +170 -166
  3. package/dist/{CodeConfigurationView-CtQjmpLz.js → CodeConfigurationView-BVu1ZnH-.js} +291 -291
  4. package/dist/{ConfigurationTranslationView-BiYn2MJx.js → ConfigurationTranslationView-Cd8ezR4t.js} +39 -39
  5. package/dist/{LoginAuditLogView-BIz1LVC3.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
  6. package/dist/{ModuleActionManagementView-0_ek9yag.js → ModuleActionManagementView-y3t2YHKF.js} +161 -161
  7. package/dist/{ModuleGovernanceView-DEDF61vj.js → ModuleGovernanceView-BqJq2Pxm.js} +2501 -2501
  8. package/dist/{RequestErrorLogView-HatmiK8_.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
  9. package/dist/{RoleDetailWorkspaceView-BzzoarpR.js → RoleDetailWorkspaceView-G-5VAV_B.js} +79 -79
  10. package/dist/{RuntimeLogView-Vdt6SWK6.js → RuntimeLogView-CulSgS0l.js} +60 -60
  11. package/dist/{WorkflowAdministrationView-Dlw2ng0N.js → WorkflowAdministrationView-y8VBYMLZ.js} +154 -154
  12. package/dist/{WorkflowConfigurationView-j2xnGmkM.js → WorkflowConfigurationView-DpONX2nN.js} +293 -293
  13. package/dist/{WorkflowWorkbenchView-Nv4mvTTP.js → WorkflowWorkbenchView-CGo1eZjr.js} +235 -235
  14. package/dist/{codeConfiguration-B_z1qQvB.js → codeConfiguration-fZiz0PNC.js} +26 -26
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +2195 -1562
  17. package/dist/{moduleMenuWorkspace-1N0U7QW9.js → moduleMenuWorkspace-AZ4G9BpZ.js} +233 -233
  18. package/dist/{platform-components-Xb5qgsXU.js → platform-components-D98pyZ77.js} +3584 -2996
  19. package/dist/{platform-workbench-VhgKhPLI.js → platform-workbench-BBLDvT9V.js} +5542 -5417
  20. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +4 -1
  21. package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
  22. package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
  23. package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
  24. package/dist/types/app/themeSkinPreference.d.ts +2 -2
  25. package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
  26. package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
  27. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
  28. package/dist/types/consumer/index.d.ts +9 -0
  29. package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
  30. package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
  31. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  32. package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
  33. package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
  34. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  35. package/dist/types/platform-components/cronExpression.d.ts +36 -0
  36. package/dist/types/platform-components/durationSeconds.d.ts +31 -0
  37. package/dist/types/platform-components/index.d.ts +6 -0
  38. package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
  39. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
  40. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
  41. package/dist/types/platform-workbench/index.d.ts +3 -0
  42. package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
  43. package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
  44. package/dist/types/views/businessLogClient.d.ts +2 -0
  45. package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
  46. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
  47. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  48. package/dist/types/web-contracts/index.d.ts +16 -0
  49. package/dist/types/web-core/clients.d.ts +15 -1
  50. package/dist/{useWorkflowConfigurationContext-BLFXzHwn.js → useWorkflowConfigurationContext-BcK19EXl.js} +8 -8
  51. package/dist/{workspaceViews-Cas3PR5B.js → workspaceViews-Dr7RZXvX.js} +620 -620
  52. package/package.json +1 -1
@@ -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-VhgKhPLI.js";
3
- import { $n as d, An as f, Bn as p, D as m, G as h, Ht as g, Ia as _, Ja as v, Jr as y, Kt as b, La as x, Mn as ee, Na as S, Nn as C, Oa as w, Rn as T, Ta as te, Tn as E, V as D, Vn as O, W as ne, Wn as re, Xa as ie, Yn as ae, Yr as k, Za as A, Zn as j, _n as M, cr as N, dr as P, et as F, fa as oe, gn as se, ha as ce, ir as I, it as le, ja as ue, jn as de, jr as fe, k as pe, lr as me, m as he, ma as ge, pa as _e, pn as ve, pr as L, pt as ye, qa as be, rt as xe, sn as Se, sr as Ce, ur as we, yn as Te, z as Ee, zn as De } from "./platform-components-Xb5qgsXU.js";
4
- import { d as Oe, m as ke, p as Ae } from "./codeConfiguration-B_z1qQvB.js";
5
- import { a as je, i as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./moduleMenuWorkspace-1N0U7QW9.js";
6
- import { t as Le } from "./useWorkflowConfigurationContext-BLFXzHwn.js";
2
+ import { E as t, M as n, T as r, d as i, dt as a, j as o, m as s, ut as c, x as l, y as u } from "./platform-workbench-BBLDvT9V.js";
3
+ import { $a as d, $n as f, $r as p, Aa as m, D as h, Fn as g, Gn as _, Ha as v, Hn as y, Ia as b, In as x, Ir as ee, Jn as S, Jt as C, K as te, Ln as ne, Na as re, Pn as ie, Qa as w, Ra as T, Sn as E, U as D, Un as ae, V as O, Va as oe, Wn as se, Wt as ce, _a as k, at as le, ba as A, bn as j, ei as M, fr as ue, gn as de, gr as N, hr as fe, ht as pe, k as P, kn as me, ln as he, lr as F, m as ge, mr as _e, no as I, nt as ve, ot as ye, pr as be, q as xe, rr as Se, to as Ce, tr as we, va as Te, vr as L, ya as Ee, yn as De } from "./platform-components-D98pyZ77.js";
4
+ import { d as Oe, m as ke, p as Ae } from "./codeConfiguration-fZiz0PNC.js";
5
+ import { a as je, i as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./moduleMenuWorkspace-AZ4G9BpZ.js";
6
+ import { t as Le } from "./useWorkflowConfigurationContext-BcK19EXl.js";
7
7
  import { Fragment as R, computed as z, createBlock as B, createCommentVNode as V, createElementBlock as H, createElementVNode as U, createSlots as Re, createTextVNode as W, createVNode as G, defineAsyncComponent as K, defineComponent as q, guardReactiveProps as ze, mergeModels as Be, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as We, onActivated as Ge, onBeforeUnmount as Ke, onMounted as qe, onScopeDispose as Je, onUnmounted as Ye, openBlock as J, ref as Y, renderList as Xe, renderSlot as Ze, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as X, toRaw as et, toValue as tt, unref as Z, useModel as nt, watch as Q, withCtx as $, withKeys as rt, withModifiers as it } from "vue";
8
8
  //#region src/views/codeConfigurationWorkspaceView.ts
9
9
  var at = ke({
10
10
  type: "platform.code.configuration",
11
11
  route: "/_platform/workspace/platform.code.configuration",
12
12
  moduleAlias: "platform.code_rule",
13
- component: K(() => import("./CodeConfigurationView-CtQjmpLz.js").then((e) => e.n)),
13
+ component: K(() => import("./CodeConfigurationView-BVu1ZnH-.js").then((e) => e.n)),
14
14
  layout: "workspace",
15
15
  routeTitle: "业务编码",
16
16
  routeTitleKey: "platform.code.config.title",
@@ -34,7 +34,7 @@ var at = ke({
34
34
  type: "iam.role.detail",
35
35
  route: "/iam/role",
36
36
  moduleAlias: "iam.role",
37
- component: K(() => import("./RoleDetailWorkspaceView-BzzoarpR.js")),
37
+ component: K(() => import("./RoleDetailWorkspaceView-G-5VAV_B.js")),
38
38
  layout: "workspace",
39
39
  routeTitle: "角色管理",
40
40
  routeTitleKey: "platform.workspace-view.roles.route-title",
@@ -79,7 +79,7 @@ var at = ke({
79
79
  type: "platform.module.actions",
80
80
  route: "/_platform/workspace/platform.module.actions",
81
81
  moduleAlias: "platform.module",
82
- component: K(() => import("./ModuleActionManagementView-0_ek9yag.js").then((e) => e.n)),
82
+ component: K(() => import("./ModuleActionManagementView-y3t2YHKF.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 at = ke({
100
100
  type: "platform.module.workflows",
101
101
  route: "/_platform/workspace/platform.module.workflows",
102
102
  moduleAlias: "platform.module",
103
- component: K(() => import("./WorkflowConfigurationView-j2xnGmkM.js")),
103
+ component: K(() => import("./WorkflowConfigurationView-DpONX2nN.js")),
104
104
  layout: "workspace",
105
105
  routeTitle: "模块管理",
106
106
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -125,7 +125,7 @@ var at = ke({
125
125
  __name: "ModuleMenuDrawer",
126
126
  props: { context: {} },
127
127
  setup(e) {
128
- let t = A(), n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = s(), a = Ie(), o = a?.language ?? t, c = u(), l = () => JSON.stringify([
128
+ let t = I(), n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = s(), a = Ie(), o = a?.language ?? t, c = u(), l = () => JSON.stringify([
129
129
  c?.value?.userId,
130
130
  c?.value?.tenantId,
131
131
  c?.value?.organizationId,
@@ -185,11 +185,11 @@ var at = ke({
185
185
  "update:fallback"
186
186
  ],
187
187
  setup(e) {
188
- let t = A(), n = e, r = nt(e, "organizationId"), i = nt(e, "matchExpression"), a = nt(e, "fallback");
188
+ let t = I(), n = e, r = nt(e, "organizationId"), i = nt(e, "matchExpression"), a = nt(e, "fallback");
189
189
  return (o, s) => (J(), H("div", pt, [
190
190
  U("label", mt, [
191
191
  W(X(Z(t).t("platform.screen.WorkflowConfigurationView.applicable-organization", "适用组织")), 1),
192
- n.organizationContext ? (J(), B(Z(le), {
192
+ n.organizationContext ? (J(), B(Z(ye), {
193
193
  key: 0,
194
194
  placeholder: Z(t).t("platform.workflow-config.organization-placeholder", "全部组织(可选指定组织)"),
195
195
  value: r.value || void 0,
@@ -202,14 +202,14 @@ var at = ke({
202
202
  "value",
203
203
  "context",
204
204
  "disabled"
205
- ])) : (J(), B(Z(I), {
205
+ ])) : (J(), B(Z(F), {
206
206
  key: 1,
207
207
  value: r.value || Z(t).t("platform.workflow-config.all-organizations", "模块内全部组织"),
208
208
  disabled: ""
209
209
  }, null, 8, ["value"])),
210
210
  U("small", ht, X(n.organizationContext ? Z(t).t("platform.workflow-config.organization-help", "留空适用于全部组织;指定组织后包含其下级组织。") : Z(t).t("platform.workflow-config.global-scope-help", "当前为全局流程模板,适用于全部组织;组织选择需使用租户身份。")), 1)
211
211
  ]),
212
- U("div", gt, [U("span", null, X(Z(t).t("platform.screen.WorkflowConfigurationView.matching-condition", "匹配条件")), 1), G(Z(E), {
212
+ U("div", gt, [U("span", null, X(Z(t).t("platform.screen.WorkflowConfigurationView.matching-condition", "匹配条件")), 1), G(Z(me), {
213
213
  disabled: n.disabled || a.value,
214
214
  value: i.value,
215
215
  "onUpdate:value": s[1] ||= (e) => i.value = e,
@@ -224,7 +224,7 @@ var at = ke({
224
224
  "tools",
225
225
  "placeholder"
226
226
  ])]),
227
- U("div", _t, [G(Z(N), {
227
+ U("div", _t, [G(Z(be), {
228
228
  disabled: n.disabled,
229
229
  checked: a.value,
230
230
  "onUpdate:checked": s[2] ||= (e) => a.value = e
@@ -279,19 +279,19 @@ var at = ke({
279
279
  "update:fallback"
280
280
  ]),
281
281
  setup(e, { emit: t }) {
282
- let { language: n, fields: r, organizationContext: i, conditionTools: a } = e.configuration, o = t, s = nt(e, "title"), c = nt(e, "approvalEnabled"), l = nt(e, "actionCode"), u = nt(e, "organizationId"), d = nt(e, "matchExpression"), f = nt(e, "fallback");
283
- return (t, p) => (J(), H("form", {
282
+ let { language: n, fields: r, organizationContext: i, conditionTools: a } = e.configuration, o = t, s = nt(e, "title"), c = nt(e, "approvalEnabled"), l = nt(e, "actionCode"), u = nt(e, "organizationId"), d = nt(e, "matchExpression"), p = nt(e, "fallback");
283
+ return (t, m) => (J(), H("form", {
284
284
  class: "property-form",
285
- onSubmit: p[6] ||= it((e) => o("submit"), ["prevent"])
285
+ onSubmit: m[6] ||= it((e) => o("submit"), ["prevent"])
286
286
  }, [
287
287
  e.creating ? (J(), H("p", bt, X(Z(n).t("platform.workflow-config.creation-help", "先创建草稿,再配置节点和参与人;发布后才会用于后续申请。")), 1)) : V("v-if", !0),
288
- U("label", xt, [G(Z(Se), { required: "" }, {
288
+ U("label", xt, [G(Z(he), { required: "" }, {
289
289
  default: $(() => [W(X(Z(n).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
290
290
  _: 1
291
- }), G(Z(I), {
291
+ }), G(Z(F), {
292
292
  disabled: e.busy,
293
293
  value: s.value,
294
- "onUpdate:value": p[0] ||= (e) => s.value = e,
294
+ "onUpdate:value": m[0] ||= (e) => s.value = e,
295
295
  required: "",
296
296
  "aria-label": Z(n).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")
297
297
  }, null, 8, [
@@ -299,25 +299,25 @@ var at = ke({
299
299
  "value",
300
300
  "aria-label"
301
301
  ])]),
302
- e.creating ? (J(), H("div", St, [G(Z(N), {
302
+ e.creating ? (J(), H("div", St, [G(Z(be), {
303
303
  disabled: e.busy,
304
304
  checked: c.value,
305
- "onUpdate:checked": p[1] ||= (e) => c.value = e
305
+ "onUpdate:checked": m[1] ||= (e) => c.value = e
306
306
  }, {
307
307
  default: $(() => [W(X(Z(n).t("platform.screen.WorkflowConfigurationView.govern-business-approval-status", "驱动业务审批状态")), 1)]),
308
308
  _: 1
309
- }, 8, ["disabled", "checked"]), G(Z(ae), { label: Z(n).t("platform.workflow-config.approval-help-title", "审批状态说明") }, {
309
+ }, 8, ["disabled", "checked"]), G(Z(f), { label: Z(n).t("platform.workflow-config.approval-help-title", "审批状态说明") }, {
310
310
  default: $(() => [W(X(Z(n).t("platform.workflow-config.approval-help", "开启后回写业务记录的审批状态;关闭后仅编排任务流程。")), 1)]),
311
311
  _: 1
312
312
  }, 8, ["label"])])) : V("v-if", !0),
313
313
  c.value ? V("v-if", !0) : (J(), H("label", Ct, [
314
- G(Z(Se), { required: "" }, {
314
+ G(Z(he), { required: "" }, {
315
315
  default: $(() => [W(X(Z(n).t("platform.workflow-config.action-code", "模块动作编码")), 1)]),
316
316
  _: 1
317
317
  }),
318
- G(Z(I), {
318
+ G(Z(F), {
319
319
  value: l.value,
320
- "onUpdate:value": p[2] ||= (e) => l.value = e,
320
+ "onUpdate:value": m[2] ||= (e) => l.value = e,
321
321
  required: "",
322
322
  disabled: e.busy || e.actionCodeLocked,
323
323
  invalid: !!l.value.trim() && !/^[a-z][A-Za-z0-9_]{0,63}$/.test(l.value.trim()),
@@ -337,11 +337,11 @@ var at = ke({
337
337
  "condition-tools": Z(a),
338
338
  class: "optional-settings",
339
339
  "organization-id": u.value,
340
- "onUpdate:organizationId": p[3] ||= (e) => u.value = e,
340
+ "onUpdate:organizationId": m[3] ||= (e) => u.value = e,
341
341
  "match-expression": d.value,
342
- "onUpdate:matchExpression": p[4] ||= (e) => d.value = e,
343
- fallback: f.value,
344
- "onUpdate:fallback": p[5] ||= (e) => f.value = e,
342
+ "onUpdate:matchExpression": m[4] ||= (e) => d.value = e,
343
+ fallback: p.value,
344
+ "onUpdate:fallback": m[5] ||= (e) => p.value = e,
345
345
  "organization-context": Z(i),
346
346
  fields: Z(r),
347
347
  disabled: e.busy
@@ -360,110 +360,110 @@ var at = ke({
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 = Le(r), { client: o, context: l, language: u } = a, d = s(), p = Y([]), m = Y(), h = Y(!1), _ = Y(!1), v = Y(!1), y = Y(!1), x = Y(""), S = Y(!1), C = Y(), T = Y(""), E = Y(!0), D = Y(""), O = Y(""), ie = Y(""), ae = Y(!1), k = z(() => l.can?.("sort") === !0), A = z(() => !!T.value.trim() && (E.value || /^[a-z][A-Za-z0-9_]{0,63}$/.test(D.value.trim()))), N = !0;
363
+ let n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = String(n.context.record?.title ?? r), o = Le(r), { client: c, context: l, language: u } = o, d = s(), f = Y([]), p = Y(), h = Y(!1), g = Y(!1), _ = Y(!1), v = Y(!1), y = Y(""), b = Y(!1), ne = Y(), w = Y(""), T = Y(!0), E = Y(""), D = Y(""), ae = Y(""), O = Y(!1), oe = z(() => l.can?.("sort") === !0), se = z(() => !!w.value.trim() && (T.value || /^[a-z][A-Za-z0-9_]{0,63}$/.test(E.value.trim()))), k = !0;
364
364
  Ke(() => {
365
- N = !1;
366
- }), fe(() => u.t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"), () => y.value, () => v.value), Q([
365
+ k = !1;
366
+ }), ee(() => u.t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"), () => v.value, () => _.value), Q([
367
+ w,
367
368
  T,
368
369
  E,
369
370
  D,
370
- O,
371
- ie,
372
- ae
371
+ ae,
372
+ O
373
373
  ], () => {
374
- h.value && (y.value = !0);
374
+ h.value && (v.value = !0);
375
375
  }, { flush: "sync" });
376
- let F = z(() => u.t(_.value ? "platform.screen.WorkflowConfigurationView.new-workflow" : "platform.workflow-manager.edit", _.value ? "新建流程" : "流程设置")), oe = z(() => [{
376
+ let le = z(() => u.t(g.value ? "platform.screen.WorkflowConfigurationView.new-workflow" : "platform.workflow-manager.edit", g.value ? "新建流程" : "流程设置")), A = z(() => [{
377
377
  key: "cancel",
378
378
  label: u.t("platform.action.cancel", "取消"),
379
- disabled: v.value,
380
- run: de
379
+ disabled: _.value,
380
+ run: F
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(g.value ? "platform.screen.WorkflowConfigurationView.create-workflow-draft" : "platform.action.save", g.value ? "创建流程草稿" : "保存"),
384
384
  emphasis: "primary",
385
- disabled: v.value || !A.value,
386
- loading: v.value,
387
- run: pe
385
+ disabled: _.value || !se.value,
386
+ loading: _.value,
387
+ run: _e
388
388
  }]);
389
- n.context.setSubtitle(i), n.context.setOperation(void 0), Q(v, () => n.context.setCloseBlocked(v.value), { immediate: !0 });
390
- async function se(e) {
391
- if (!v.value) {
392
- v.value = !0, C.value = void 0;
389
+ n.context.setSubtitle(i), n.context.setOperation(void 0), Q(_, () => n.context.setCloseBlocked(_.value), { immediate: !0 });
390
+ async function M(e) {
391
+ if (!_.value) {
392
+ _.value = !0, ne.value = void 0;
393
393
  try {
394
394
  await e();
395
395
  } catch (e) {
396
- N && (C.value = () => w(te(e), u));
396
+ k && (ne.value = () => re(m(e), u));
397
397
  } finally {
398
- N && (v.value = !1);
398
+ k && (_.value = !1);
399
399
  }
400
400
  }
401
401
  }
402
- async function ce() {
403
- h.value || v.value || await se(async () => {
404
- let e = await o.query();
405
- N && (p.value = e, await I(e));
402
+ async function ue() {
403
+ h.value || _.value || await M(async () => {
404
+ let e = await c.query();
405
+ k && (f.value = e, await P(e));
406
406
  });
407
407
  }
408
- async function I(e) {
408
+ async function P(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
  qe(() => {
412
- ce();
412
+ ue();
413
413
  }), Ge(() => {
414
- ce();
414
+ ue();
415
415
  }), t({
416
416
  moduleAlias: "platform.workflow.definition",
417
417
  handler: async () => {
418
- await ce();
418
+ await ue();
419
419
  }
420
420
  });
421
- function le(e) {
422
- v.value || h.value || (S.value = !1, m.value = e, T.value = e?.title ?? "", E.value = e?.approvalEnabled ?? !0, D.value = e?.actionCode ?? "", O.value = e?.organizationId ?? "", ie.value = e?.matchExpression ?? "", ae.value = e?.defaultDefinition ?? !1, _.value = !e, y.value = !1, h.value = !0);
421
+ function me(e) {
422
+ _.value || h.value || (b.value = !1, p.value = e, w.value = e?.title ?? "", T.value = e?.approvalEnabled ?? !0, E.value = e?.actionCode ?? "", D.value = e?.organizationId ?? "", ae.value = e?.matchExpression ?? "", O.value = e?.defaultDefinition ?? !1, g.value = !e, v.value = !1, h.value = !0);
423
423
  }
424
- async function ue() {
425
- return v.value || y.value && !await f({
424
+ async function he() {
425
+ return _.value || v.value && !await ie({
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 : (y.value = !1, !0);
429
+ }, u) ? !1 : (v.value = !1, !0);
430
430
  }
431
- n.context.setBeforeClose(ue);
432
- async function de() {
433
- await ue() && (h.value = !1, await ce());
431
+ n.context.setBeforeClose(he);
432
+ async function F() {
433
+ await he() && (h.value = !1, await ue());
434
434
  }
435
- async function pe() {
436
- h.value && A.value && await se(async () => {
435
+ async function _e() {
436
+ h.value && se.value && await M(async () => {
437
437
  let e = {
438
- title: T.value.trim(),
439
- organizationId: O.value || null,
440
- matchExpression: ie.value || null,
441
- defaultDefinition: ae.value,
442
- ...E.value ? {} : { actionCode: D.value.trim() }
443
- }, t = _.value ? await o.create({
438
+ title: w.value.trim(),
439
+ organizationId: D.value || null,
440
+ matchExpression: ae.value || null,
441
+ defaultDefinition: O.value,
442
+ ...T.value ? {} : { actionCode: E.value.trim() }
443
+ }, t = g.value ? await c.create({
444
444
  ...e,
445
- ...E.value ? { approvalEnabled: !0 } : {
445
+ ...T.value ? { approvalEnabled: !0 } : {
446
446
  approvalEnabled: !1,
447
- actionCode: D.value.trim()
447
+ actionCode: E.value.trim()
448
448
  },
449
449
  enabled: !0
450
- }) : await o.saveSelection(m.value.id, {
450
+ }) : await c.saveSelection(p.value.id, {
451
451
  ...e,
452
- version: m.value.version
452
+ version: p.value.version
453
453
  });
454
- N && (p.value = _.value ? [...p.value, t] : p.value.map((e) => e.id === t.id ? t : e), m.value = t, h.value = !1, y.value = !1, x.value = "", n.context.refreshDetailExtensions(), await I([t]));
454
+ k && (f.value = g.value ? [...f.value, t] : f.value.map((e) => e.id === t.id ? t : e), p.value = t, h.value = !1, v.value = !1, y.value = "", n.context.refreshDetailExtensions(), await P([t]));
455
455
  });
456
456
  }
457
- function me(e) {
458
- if (!(v.value || h.value)) {
457
+ function I(e) {
458
+ if (!(_.value || h.value)) {
459
459
  if (!d) {
460
- M(Error(u.t("platform.workflow-manager.navigation-unavailable", "工作台导航暂不可用")), {
460
+ j(Error(u.t("platform.workflow-manager.navigation-unavailable", "工作台导航暂不可用")), {
461
461
  source: "workflow-design",
462
462
  phase: "action"
463
463
  });
464
464
  return;
465
465
  }
466
- d.openPage(c(dt, {
466
+ d.openPage(a(dt, {
467
467
  moduleAlias: r,
468
468
  moduleTitle: i,
469
469
  definitionId: e.id,
@@ -471,7 +471,7 @@ var at = ke({
471
471
  }));
472
472
  }
473
473
  }
474
- let ge = z(() => [
474
+ let ve = z(() => [
475
475
  {
476
476
  key: "title",
477
477
  title: u.t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称"),
@@ -497,85 +497,85 @@ var at = ke({
497
497
  title: u.t("platform.workflow-manager.active", "启用状态"),
498
498
  width: 90
499
499
  }
500
- ]), _e = z(() => p.value.filter((e) => !x.value.trim() || [
500
+ ]), ye = z(() => f.value.filter((e) => !y.value.trim() || [
501
501
  e.title,
502
502
  e.matchExpression,
503
- he(e.definitionStatus, u)
504
- ].some((e) => String(e ?? "").toLocaleLowerCase().includes(x.value.trim().toLocaleLowerCase()))).map((e) => ({ ...e })));
505
- function L(e) {
503
+ ge(e.definitionStatus, u)
504
+ ].some((e) => String(e ?? "").toLocaleLowerCase().includes(y.value.trim().toLocaleLowerCase()))).map((e) => ({ ...e })));
505
+ function be(e) {
506
506
  return e.definitionStatus === "published" || e.definitionStatus === "disabled" && e.currentVersionNo != null;
507
507
  }
508
- function be(e, t) {
509
- return !v.value && !h.value && l.can?.(e, String(t.id)) === !0;
508
+ function xe(e, t) {
509
+ return !_.value && !h.value && l.can?.(e, String(t.id)) === !0;
510
510
  }
511
- function xe(e) {
512
- if (e.source.tenantId === e.target.tenantId) return Ce({
511
+ function Se(e) {
512
+ if (e.source.tenantId === e.target.tenantId) return Te({
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 Se(e, t) {
519
- let n = p.value.find((e) => e.id === t.id);
520
- if (n && !(v.value || h.value)) {
518
+ async function Ce(e, t) {
519
+ let n = f.value.find((e) => e.id === t.id);
520
+ if (n && !(_.value || h.value)) {
521
521
  if (e === "design") {
522
- me(n);
522
+ I(n);
523
523
  return;
524
524
  }
525
525
  if (e === "settings") {
526
- if (!be("configureWorkflowSelection", n)) return;
527
- le(n);
526
+ if (!xe("configureWorkflowSelection", n)) return;
527
+ me(n);
528
528
  return;
529
529
  }
530
- (e === "enable" || e === "disable" || e === "archive") && be(`${e}WorkflowDefinition`, n) && (e !== "enable" || L(n)) && await f({
530
+ (e === "enable" || e === "disable" || e === "archive") && xe(`${e}WorkflowDefinition`, n) && (e !== "enable" || be(n)) && await ie({
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 se(async () => {
535
- let t = await o.changeStatus(n.id, e, n.version);
536
- N && (p.value = p.value.map((e) => e.id === t.id ? t : e), await I([t]));
534
+ }, u) && await M(async () => {
535
+ let t = await c.changeStatus(n.id, e, n.version);
536
+ k && (f.value = f.value.map((e) => e.id === t.id ? t : e), await P([t]));
537
537
  });
538
538
  }
539
539
  }
540
- async function Ce(e) {
541
- S.value && k.value && !v.value && !h.value && !x.value.trim() && e.dragRecord.id && e.dropRecord.id && await se(async () => {
542
- await o.sort(String(e.dragRecord.id), String(e.dropRecord.id), e.position);
543
- let t = await o.query();
544
- N && (p.value = t, await I(t));
540
+ async function Te(e) {
541
+ b.value && oe.value && !_.value && !h.value && !y.value.trim() && e.dragRecord.id && e.dropRecord.id && await M(async () => {
542
+ await c.sort(String(e.dragRecord.id), String(e.dropRecord.id), e.position);
543
+ let t = await c.query();
544
+ k && (f.value = t, await P(t));
545
545
  });
546
546
  }
547
547
  return (e, t) => (J(), H(R, null, [
548
- h.value ? (J(), B(Z(g), {
548
+ h.value ? (J(), B(Z(ce), {
549
549
  key: 0,
550
550
  open: h.value,
551
551
  width: "standard",
552
- title: F.value,
552
+ title: le.value,
553
553
  subtitle: Z(i),
554
- "before-close": ue,
555
- onClose: de
554
+ "before-close": he,
555
+ onClose: F
556
556
  }, {
557
- operation: $(() => [G(Z(ve), { actions: oe.value }, null, 8, ["actions"])]),
558
- default: $(() => [C.value ? (J(), B(Z(ee), {
557
+ operation: $(() => [G(Z(de), { actions: A.value }, null, 8, ["actions"])]),
558
+ default: $(() => [ne.value ? (J(), B(Z(x), {
559
559
  key: 0,
560
- message: C.value()
560
+ message: ne.value()
561
561
  }, null, 8, ["message"])) : V("v-if", !0), G(Et, {
562
- onSubmit: pe,
563
- configuration: Z(a),
564
- creating: _.value,
565
- busy: v.value,
566
- title: T.value,
567
- "onUpdate:title": t[0] ||= (e) => T.value = e,
568
- "approval-enabled": E.value,
569
- "onUpdate:approvalEnabled": t[1] ||= (e) => E.value = e,
570
- "action-code": D.value,
571
- "onUpdate:actionCode": t[2] ||= (e) => D.value = e,
572
- "action-code-locked": !_.value && m.value?.currentVersionNo != null,
573
- "organization-id": O.value,
574
- "onUpdate:organizationId": t[3] ||= (e) => O.value = e,
575
- "match-expression": ie.value,
576
- "onUpdate:matchExpression": t[4] ||= (e) => ie.value = e,
577
- fallback: ae.value,
578
- "onUpdate:fallback": t[5] ||= (e) => ae.value = e
562
+ onSubmit: _e,
563
+ configuration: Z(o),
564
+ creating: g.value,
565
+ busy: _.value,
566
+ title: w.value,
567
+ "onUpdate:title": t[0] ||= (e) => w.value = e,
568
+ "approval-enabled": T.value,
569
+ "onUpdate:approvalEnabled": t[1] ||= (e) => T.value = e,
570
+ "action-code": E.value,
571
+ "onUpdate:actionCode": t[2] ||= (e) => E.value = e,
572
+ "action-code-locked": !g.value && p.value?.currentVersionNo != null,
573
+ "organization-id": D.value,
574
+ "onUpdate:organizationId": t[3] ||= (e) => D.value = e,
575
+ "match-expression": ae.value,
576
+ "onUpdate:matchExpression": t[4] ||= (e) => ae.value = e,
577
+ fallback: O.value,
578
+ "onUpdate:fallback": t[5] ||= (e) => O.value = e
579
579
  }, null, 8, [
580
580
  "configuration",
581
581
  "creating",
@@ -594,61 +594,61 @@ var at = ke({
594
594
  "title",
595
595
  "subtitle"
596
596
  ])) : V("v-if", !0),
597
- C.value && !h.value ? (J(), B(Z(ee), {
597
+ ne.value && !h.value ? (J(), B(Z(x), {
598
598
  key: 1,
599
- message: C.value()
599
+ message: ne.value()
600
600
  }, null, 8, ["message"])) : V("v-if", !0),
601
- G(Z(b), {
601
+ G(Z(C), {
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": _.value || h.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
- columns: ge.value,
609
- rows: _e.value,
610
- loading: v.value,
611
- "table-visible": h.value || !C.value || p.value.length > 0,
608
+ columns: ve.value,
609
+ rows: ye.value,
610
+ loading: _.value,
611
+ "table-visible": h.value || !ne.value || f.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 && k.value && !x.value.trim(),
614
+ "quick-search-value": y.value,
615
+ "quick-search-disabled": _.value || h.value,
616
+ "row-draggable": b.value && !_.value && !h.value && oe.value && !y.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: ce,
622
- onRowDrop: xe
620
+ "onUpdate:quickSearchValue": t[9] ||= (e) => y.value = e,
621
+ onTitleAction: ue,
622
+ onRowDrop: Se
623
623
  }, {
624
- operations: $(() => [k.value ? (J(), B(Z(ne), {
624
+ operations: $(() => [oe.value ? (J(), B(Z(te), {
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: b.value,
631
+ disabled: _.value || h.value || !!y.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) => b.value = !b.value
634
634
  }, null, 8, [
635
635
  "selected",
636
636
  "disabled",
637
637
  "title"
638
- ])) : V("v-if", !0), G(Z(we), {
638
+ ])) : V("v-if", !0), G(Z(fe), {
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) => le()
641
+ disabled: _.value || h.value || Z(l).can?.("create") !== !0,
642
+ onClick: t[7] ||= (e) => me()
643
643
  }, null, 8, ["title", "disabled"])]),
644
- beforeTable: $(() => [C.value && !h.value ? (J(), B(Z(P), {
644
+ beforeTable: $(() => [ne.value && !h.value ? (J(), B(Z(N), {
645
645
  key: 0,
646
- onClick: ce
646
+ onClick: ue
647
647
  }, {
648
648
  default: $(() => [W(X(Z(u).t("platform.screen.CrudRecordListExplorer.reload", "重新加载")), 1)]),
649
649
  _: 1
650
650
  })) : V("v-if", !0)]),
651
- cell: $(({ column: e, record: n, value: r }) => [e.key === "definitionStatus" ? (J(), H("span", Dt, X(Z(he)(String(r ?? ""), Z(u))), 1)) : e.key === "currentVersionNo" ? (J(), H("span", Ot, X(r == null ? "—" : `v${r}`), 1)) : e.key === "matchExpression" ? (J(), B(Z(ye), {
651
+ cell: $(({ column: e, record: n, value: r }) => [e.key === "definitionStatus" ? (J(), H("span", Dt, X(Z(ge)(String(r ?? ""), Z(u))), 1)) : e.key === "currentVersionNo" ? (J(), H("span", Ot, X(r == null ? "—" : `v${r}`), 1)) : e.key === "matchExpression" ? (J(), B(Z(pe), {
652
652
  key: 2,
653
653
  column: {
654
654
  ...e,
@@ -659,15 +659,15 @@ var at = ke({
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(), B(Z(j), {
662
+ }, null, 8, ["column", "record"])) : e.key === "active" ? (J(), B(Z(we), {
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: be(n) ? Z(u).t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。") : Z(u).t("platform.workflow-manager.publish-to-enable", "请进入编排发布流程后启用")
665
665
  }, {
666
- default: $(() => [U("span", { onClick: t[8] ||= it(() => {}, ["stop"]) }, [G(Z(re), {
666
+ default: $(() => [U("span", { onClick: t[8] ||= it(() => {}, ["stop"]) }, [G(Z(S), {
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) || !be(n.definitionStatus === "published" ? "disableWorkflowDefinition" : "enableWorkflowDefinition", n),
670
- onChange: (e) => Se(e ? "enable" : "disable", n)
669
+ disabled: !be(n) || !xe(n.definitionStatus === "published" ? "disableWorkflowDefinition" : "enableWorkflowDefinition", n),
670
+ onChange: (e) => Ce(e ? "enable" : "disable", n)
671
671
  }, null, 8, [
672
672
  "aria-label",
673
673
  "checked",
@@ -675,7 +675,7 @@ var at = ke({
675
675
  "onChange"
676
676
  ])])]),
677
677
  _: 2
678
- }, 1032, ["title"])) : (J(), B(Z(ye), {
678
+ }, 1032, ["title"])) : (J(), B(Z(pe), {
679
679
  key: 4,
680
680
  column: {
681
681
  ...e,
@@ -685,30 +685,30 @@ var at = ke({
685
685
  record: n
686
686
  }, null, 8, ["column", "record"]))]),
687
687
  rowActions: $(({ record: e }) => [
688
- G(Z(P), {
688
+ G(Z(N), {
689
689
  type: "link",
690
690
  size: "small",
691
- disabled: v.value || h.value,
692
- onClick: (t) => Se("design", e)
691
+ disabled: _.value || h.value,
692
+ onClick: (t) => Ce("design", e)
693
693
  }, {
694
694
  default: $(() => [W(X(Z(u).t("platform.workflow-manager.design", "编排")), 1)]),
695
695
  _: 1
696
696
  }, 8, ["disabled", "onClick"]),
697
- G(Z(P), {
697
+ G(Z(N), {
698
698
  type: "link",
699
699
  size: "small",
700
- disabled: !be("configureWorkflowSelection", e),
701
- onClick: (t) => Se("settings", e)
700
+ disabled: !xe("configureWorkflowSelection", e),
701
+ onClick: (t) => Ce("settings", e)
702
702
  }, {
703
703
  default: $(() => [W(X(Z(u).t("platform.workflow-manager.settings", "设置")), 1)]),
704
704
  _: 1
705
705
  }, 8, ["disabled", "onClick"]),
706
- G(Z(P), {
706
+ G(Z(N), {
707
707
  type: "link",
708
708
  size: "small",
709
709
  danger: "",
710
- disabled: e.definitionStatus === "archived" || !be("archiveWorkflowDefinition", e),
711
- onClick: (t) => Se("archive", e)
710
+ disabled: e.definitionStatus === "archived" || !xe("archiveWorkflowDefinition", e),
711
+ onClick: (t) => Ce("archive", e)
712
712
  }, {
713
713
  default: $(() => [W(X(Z(u).t("platform.screen.WorkflowConfigurationView.archive", "归档")), 1)]),
714
714
  _: 1
@@ -738,7 +738,7 @@ var at = ke({
738
738
  __name: "ModuleMenuEntriesSection",
739
739
  props: { context: {} },
740
740
  setup(e) {
741
- let t = A(), n = e, r = s(), i = Y([]), a = z(() => i.value.flatMap(({ scheme: e, tree: r }) => Fe(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 = z(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
741
+ let t = I(), n = e, r = s(), i = Y([]), a = z(() => i.value.flatMap(({ scheme: e, tree: r }) => Fe(r, oe(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 = z(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
742
742
  Ke(() => d++), Q(() => [n.context.record.id, n.context.refreshKey], () => void f(), { immediate: !0 });
743
743
  async function f() {
744
744
  let e = ++d, t = Ne(n.context.module.http);
@@ -756,7 +756,7 @@ var at = ke({
756
756
  e === d && (c.value = !1);
757
757
  }
758
758
  }
759
- return (e, n) => (J(), H("div", At, [c.value ? (J(), H("span", jt, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : u.value ? (J(), H("div", Mt, [W(X(u.value) + " ", 1), G(Z(P), {
759
+ return (e, n) => (J(), H("div", At, [c.value ? (J(), H("span", jt, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : u.value ? (J(), H("div", Mt, [W(X(u.value) + " ", 1), G(Z(N), {
760
760
  type: "link",
761
761
  onClick: f
762
762
  }, {
@@ -765,7 +765,7 @@ var at = ke({
765
765
  })])) : a.value.length ? V("v-if", !0) : (J(), H("span", Nt, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.no-menu-entry-yet-use-add-to-menu-above-to", "尚未添加到菜单,可通过上方“添加到菜单”设置入口。")), 1)), (J(!0), H(R, null, Xe(a.value, (e) => (J(), H("div", {
766
766
  key: e.menu.id,
767
767
  class: "menu-entry"
768
- }, [U("span", null, [W(X(e.path), 1), e.menu.enabled === !1 ? (J(), H("small", Pt, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.disabled", "· 已停用")), 1)) : V("v-if", !0)]), o.value.has(e.menu.id) && Z(r)?.openMenu ? (J(), B(Z(P), {
768
+ }, [U("span", null, [W(X(e.path), 1), e.menu.enabled === !1 ? (J(), H("small", Pt, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.disabled", "· 已停用")), 1)) : V("v-if", !0)]), o.value.has(e.menu.id) && Z(r)?.openMenu ? (J(), B(Z(N), {
769
769
  key: 0,
770
770
  type: "link",
771
771
  onClick: (t) => Z(r).openMenu(o.value.get(e.menu.id))
@@ -793,7 +793,7 @@ function Lt(e) {
793
793
  n.get(r) === i && (t.value[r] = {
794
794
  phase: "failed",
795
795
  configurable: !1,
796
- error: w(te(e))
796
+ error: re(m(e))
797
797
  });
798
798
  }
799
799
  }
@@ -837,33 +837,33 @@ var Vt = {
837
837
  __name: "ModuleCodeConfigurationStatus",
838
838
  props: { context: {} },
839
839
  setup(e) {
840
- let t = e, n = A(), r = s(), i = z(() => Rt(t.context.module)), a = z(() => String(t.context.record?.alias ?? t.context.record?.id ?? "")), o = z(() => i.value.states.value[a.value]);
840
+ let t = e, n = I(), r = s(), i = z(() => Rt(t.context.module)), o = z(() => String(t.context.record?.alias ?? t.context.record?.id ?? "")), c = z(() => i.value.states.value[o.value]);
841
841
  Q([
842
- a,
842
+ o,
843
843
  () => t.context.mode,
844
844
  () => t.context.module
845
845
  ], ([e, t]) => {
846
846
  e && t === "view" && !i.value.states.value[e] && i.value.refresh(e);
847
847
  }, { immediate: !0 });
848
- let l = z(() => o.value?.reason), u = z(() => t.context.mode === "view" && !!a.value && (o.value?.phase === "failed" || t.context.record?.moduleKind === "dynamic" && o.value?.phase === "ready" && !o.value.configurable));
848
+ let l = z(() => c.value?.reason), u = z(() => t.context.mode === "view" && !!o.value && (c.value?.phase === "failed" || t.context.record?.moduleKind === "dynamic" && c.value?.phase === "ready" && !c.value.configurable));
849
849
  function d() {
850
- r?.openPage(c(Ae, {
851
- moduleAlias: a.value,
852
- moduleTitle: String(t.context.record?.title ?? a.value),
850
+ r?.openPage(a(Ae, {
851
+ moduleAlias: o.value,
852
+ moduleTitle: String(t.context.record?.title ?? o.value),
853
853
  governanceTab: "metadata"
854
854
  }));
855
855
  }
856
- return (e, t) => u.value ? (J(), H("div", Vt, [o.value?.phase === "failed" ? (J(), H(R, { key: 0 }, [
856
+ return (e, t) => u.value ? (J(), H("div", Vt, [c.value?.phase === "failed" ? (J(), H(R, { key: 0 }, [
857
857
  U("span", null, X(Z(n).t("platform.code.config.catalog-failed", "暂时无法检查业务编码配置条件,请重试。")), 1),
858
- U("span", null, X(o.value?.error), 1),
859
- G(Z(P), {
858
+ U("span", null, X(c.value?.error), 1),
859
+ G(Z(N), {
860
860
  type: "link",
861
- onClick: t[0] ||= (e) => i.value.refresh(a.value)
861
+ onClick: t[0] ||= (e) => i.value.refresh(o.value)
862
862
  }, {
863
863
  default: $(() => [W(X(Z(n).t("platform.code.config.retry", "重试")), 1)]),
864
864
  _: 1
865
865
  })
866
- ], 64)) : (J(), H(R, { key: 1 }, [U("span", null, X(Z(n).t(`platform.code.config.reason.${l.value}`, l.value === "no-model" ? "尚未关联业务数据模型,请先配置模型,再设置编号规则。" : "当前数据模型没有可用于编号的字段,请先检查字段配置。")), 1), Z(r) ? (J(), B(Z(P), {
866
+ ], 64)) : (J(), H(R, { key: 1 }, [U("span", null, X(Z(n).t(`platform.code.config.reason.${l.value}`, l.value === "no-model" ? "尚未关联业务数据模型,请先配置模型,再设置编号规则。" : "当前数据模型没有可用于编号的字段,请先检查字段配置。")), 1), Z(r) ? (J(), B(Z(N), {
867
867
  key: 0,
868
868
  type: "link",
869
869
  onClick: d
@@ -1017,7 +1017,7 @@ var en = { class: "password-policy-preview" }, tn = {
1017
1017
  __name: "PasswordPolicyPreview",
1018
1018
  props: { context: {} },
1019
1019
  setup(e) {
1020
- let t = A(), n = e, r = Y("CURRENT"), i = Y(""), a = Y(), o = Y(!1), s = Y(!1), c = 0, l = z(() => y(n.context.record)), u = z(() => n.context.mode !== "view" || w(l.value?.id) !== void 0), f = z(() => [{
1020
+ let t = I(), n = e, r = Y("CURRENT"), i = Y(""), a = Y(), o = Y(!1), s = Y(!1), c = 0, l = z(() => y(n.context.record)), u = z(() => n.context.mode !== "view" || S(l.value?.id) !== void 0), d = z(() => [{
1021
1021
  value: "CURRENT",
1022
1022
  label: t.t("platform.screen.PasswordPolicyPreview.current-rule", "本规则"),
1023
1023
  disabled: !u.value
@@ -1028,13 +1028,13 @@ var en = { class: "password-policy-preview" }, tn = {
1028
1028
  Q(u, (e) => {
1029
1029
  !e && r.value === "CURRENT" && (r.value = "ALL");
1030
1030
  }, { immediate: !0 });
1031
- function p(e) {
1031
+ function f(e) {
1032
1032
  (e !== "CURRENT" || u.value) && (e === "CURRENT" || e === "ALL") && (r.value = e);
1033
1033
  }
1034
1034
  Q([r, () => n.context.formSessionKey], ([e]) => {
1035
- e === "ALL" && m();
1035
+ e === "ALL" && p();
1036
1036
  }, { immediate: !0 });
1037
- async function m() {
1037
+ async function p() {
1038
1038
  let e = ++c;
1039
1039
  s.value = !0, o.value = !1, a.value = void 0;
1040
1040
  try {
@@ -1048,56 +1048,56 @@ var en = { class: "password-policy-preview" }, tn = {
1048
1048
  e === c && (s.value = !1);
1049
1049
  }
1050
1050
  }
1051
- let h = z(() => {
1051
+ let m = z(() => {
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(te), n = w(e?.id);
1055
+ let t = a.value.filter(te), n = S(e?.id);
1056
1056
  if (n) {
1057
- let e = t.findIndex((e) => w(e.id) === n);
1057
+ let e = t.findIndex((e) => S(e.id) === n);
1058
1058
  e >= 0 && t.splice(e, 1);
1059
1059
  }
1060
- return e && te(e) && t.push(e), t.length > 0 ? t.sort(ee) : [];
1061
- }), g = z(() => i.value ? h.value.map((e, t) => b(e, i.value, t)) : []), _ = z(() => g.value.map((e) => ({
1060
+ return e && te(e) && t.push(e), t.length > 0 ? t.sort(x) : [];
1061
+ }), h = z(() => i.value ? m.value.map((e, t) => b(e, i.value, t)) : []), g = z(() => h.value.map((e) => ({
1062
1062
  ...e,
1063
- title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : S(e.title, e.titleText, t),
1064
- message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : S(e.message, e.messageText, t),
1063
+ title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : T(e.title, e.titleText, t),
1064
+ message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : T(e.message, e.messageText, t),
1065
1065
  diagnostic: e.diagnostic ? t.t(e.diagnostic.sourceId, e.diagnostic.originalText) : void 0
1066
- }))), v = z(() => {
1066
+ }))), _ = z(() => {
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", "无法加载权威规则集");
1070
1070
  if (!i.value) return t.t("platform.screen.PasswordPolicyPreview.enter-a-test-password-for-immediate-feedback", "输入测试密码后即时反馈");
1071
- if (g.value.length === 0) return t.t("platform.screen.PasswordPolicyPreview.no-enabled-rules-participate-in-this-preview", "当前没有参与试算的启用规则");
1072
- let e = g.value.filter((e) => !e.passed).length;
1071
+ if (h.value.length === 0) return t.t("platform.screen.PasswordPolicyPreview.no-enabled-rules-participate-in-this-preview", "当前没有参与试算的启用规则");
1072
+ let e = h.value.filter((e) => !e.passed).length;
1073
1073
  return e === 0 ? t.t("platform.screen.PasswordPolicyPreview.all-passed-value-value", "全部通过({value1}/{value2})", {
1074
- value1: g.value.length,
1075
- value2: g.value.length
1074
+ value1: h.value.length,
1075
+ value2: h.value.length
1076
1076
  }) : t.t("platform.screen.PasswordPolicyPreview.value-rules-failed", "{value1} 条规则未通过", { value1: e });
1077
1077
  });
1078
1078
  function y(e) {
1079
1079
  if (e) return e;
1080
1080
  }
1081
1081
  function b(e, t, n) {
1082
- let r = e.title?.trim() ? void 0 : be("platform.screen.PasswordPolicyPreview.unnamed-rule"), i = e.message?.trim() ? void 0 : be("platform.screen.PasswordPolicyPreview.no-failure-message-configured"), a = T(e.title, r?.originalText ?? ""), o = T(e.message, i?.originalText ?? ""), s = {
1083
- titleText: x(e, "title"),
1084
- messageText: x(e, "message")
1082
+ let r = e.title?.trim() ? void 0 : w("platform.screen.PasswordPolicyPreview.unnamed-rule"), i = e.message?.trim() ? void 0 : w("platform.screen.PasswordPolicyPreview.no-failure-message-configured"), a = C(e.title, r?.originalText ?? ""), o = C(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: C(e, n),
1088
+ key: ee(e, n),
1089
1089
  title: a,
1090
1090
  message: o,
1091
1091
  titleSource: r,
1092
1092
  messageSource: i,
1093
1093
  passed: !1,
1094
- diagnostic: be("platform.screen.PasswordPolicyPreview.regular-expression-required")
1094
+ diagnostic: w("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: C(e, n),
1100
+ key: ee(e, n),
1101
1101
  title: a,
1102
1102
  message: o,
1103
1103
  titleSource: r,
@@ -1107,41 +1107,41 @@ var en = { class: "password-policy-preview" }, tn = {
1107
1107
  } catch {
1108
1108
  return {
1109
1109
  ...s,
1110
- key: C(e, n),
1110
+ key: ee(e, n),
1111
1111
  title: a,
1112
1112
  message: o,
1113
1113
  titleSource: r,
1114
1114
  messageSource: i,
1115
1115
  passed: !1,
1116
- diagnostic: be("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
1116
+ diagnostic: w("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
1117
1117
  };
1118
1118
  }
1119
1119
  }
1120
- function ee(e, t) {
1121
- return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || T(e.title, "").localeCompare(T(t.title, ""));
1120
+ function x(e, t) {
1121
+ return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || C(e.title, "").localeCompare(C(t.title, ""));
1122
1122
  }
1123
- function C(e, t) {
1124
- return w(e.id) ?? `draft:${t}`;
1123
+ function ee(e, t) {
1124
+ return S(e.id) ?? `draft:${t}`;
1125
1125
  }
1126
- function w(e) {
1126
+ function S(e) {
1127
1127
  return e?.trim() || void 0;
1128
1128
  }
1129
- function T(e, t) {
1129
+ function C(e, t) {
1130
1130
  return e?.trim() || t;
1131
1131
  }
1132
1132
  function te(e) {
1133
1133
  return e.enabled !== !1 && (e.scopeType == null || e.scopeType.toLowerCase() === "global");
1134
1134
  }
1135
1135
  return (e, n) => (J(), H("section", en, [
1136
- U("header", null, [U("h3", null, X(Z(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), U("span", { class: Ue({ failed: g.value.some((e) => !e.passed) }) }, X(v.value), 3)]),
1137
- G(Z(d), {
1136
+ U("header", null, [U("h3", null, X(Z(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), U("span", { class: Ue({ failed: h.value.some((e) => !e.passed) }) }, X(_.value), 3)]),
1137
+ G(Z(Se), {
1138
1138
  class: "preview-scope",
1139
1139
  value: r.value,
1140
- options: f.value,
1140
+ options: d.value,
1141
1141
  size: "small",
1142
- "onUpdate:value": p
1142
+ "onUpdate:value": f
1143
1143
  }, null, 8, ["value", "options"]),
1144
- G(Z(I), {
1144
+ G(Z(F), {
1145
1145
  value: i.value,
1146
1146
  "onUpdate:value": n[0] ||= (e) => i.value = e,
1147
1147
  type: "text",
@@ -1153,7 +1153,7 @@ var en = { class: "password-policy-preview" }, tn = {
1153
1153
  "placeholder",
1154
1154
  "aria-label"
1155
1155
  ]),
1156
- g.value.length ? (J(), H("ul", tn, [(J(!0), H(R, null, Xe(_.value, (e) => (J(), H("li", {
1156
+ h.value.length ? (J(), H("ul", tn, [(J(!0), H(R, null, Xe(g.value, (e) => (J(), H("li", {
1157
1157
  key: e.key,
1158
1158
  class: Ue({
1159
1159
  passed: e.passed,
@@ -1176,7 +1176,7 @@ var en = { class: "password-policy-preview" }, tn = {
1176
1176
  __name: "TenantApplicationsDetailSection",
1177
1177
  props: { context: {} },
1178
1178
  setup(e) {
1179
- let t = A(), n = e, r = Y([]), i = Y(!1), a = 0, o = Y(/* @__PURE__ */ new Map()), s = z(() => r.value.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && e.length > 0).map((e) => ({
1179
+ let t = I(), n = e, r = Y([]), i = Y(!1), a = 0, o = Y(/* @__PURE__ */ new Map()), s = z(() => r.value.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && e.length > 0).map((e) => ({
1180
1180
  key: e,
1181
1181
  label: o.value.get(e) ? `${o.value.get(e)} · ${e}` : e
1182
1182
  })));
@@ -1206,7 +1206,7 @@ var en = { class: "password-policy-preview" }, tn = {
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 && M(e, {
1209
+ s === a && j(e, {
1210
1210
  language: t,
1211
1211
  source: "tenant-applications-detail",
1212
1212
  phase: "load"
@@ -1218,7 +1218,7 @@ var en = { class: "password-policy-preview" }, tn = {
1218
1218
  function l(e, t) {
1219
1219
  return `/iam.tenant/${encodeURIComponent(e)}/applications/${t}`;
1220
1220
  }
1221
- return (e, n) => (J(), H("section", rn, [U("div", an, [i.value ? (J(), H("span", on, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (J(), B(Z(me), {
1221
+ return (e, n) => (J(), H("section", rn, [U("div", an, [i.value ? (J(), H("span", on, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (J(), B(Z(_e), {
1222
1222
  key: 1,
1223
1223
  items: s.value,
1224
1224
  "max-visible": 8,
@@ -1230,7 +1230,7 @@ var en = { class: "password-policy-preview" }, tn = {
1230
1230
  __name: "TenantApplicationConfigurationDrawer",
1231
1231
  props: { context: {} },
1232
1232
  setup(e) {
1233
- let t = A(), n = e, r = Y([]), i = Y(/* @__PURE__ */ new Set()), a = Y(!1), o = Y(!1), s = z(() => [{
1233
+ let t = I(), n = e, r = Y([]), i = Y(/* @__PURE__ */ new Set()), a = Y(!1), o = Y(!1), s = z(() => [{
1234
1234
  key: "title",
1235
1235
  title: t.t("platform.screen.TenantApplicationConfigurationDrawer.application-name", "应用名称"),
1236
1236
  width: 260
@@ -1290,7 +1290,7 @@ var en = { class: "password-policy-preview" }, tn = {
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
- M(e, {
1293
+ j(e, {
1294
1294
  language: t,
1295
1295
  source: "tenant-application-configuration",
1296
1296
  phase: "load"
@@ -1311,7 +1311,7 @@ var en = { class: "password-policy-preview" }, tn = {
1311
1311
  body: { applicationAliases: [...i.value] }
1312
1312
  }), n.context.refreshDetailExtensions(), n.context.refreshList(), n.context.close();
1313
1313
  } catch (e) {
1314
- M(e, {
1314
+ j(e, {
1315
1315
  language: t,
1316
1316
  source: "tenant-application-configuration",
1317
1317
  phase: "action"
@@ -1324,7 +1324,7 @@ var en = { class: "password-policy-preview" }, tn = {
1324
1324
  function p(e, t) {
1325
1325
  return `/iam.tenant/${encodeURIComponent(e)}/applications/${t}`;
1326
1326
  }
1327
- return (e, n) => (J(), H("section", cn, [U("p", null, X(Z(t).t("platform.screen.TenantApplicationConfigurationDrawer.select-applications-to-provision-for-this-tenant-deselecting-an-application", "勾选表示向当前租户开通应用;取消勾选将移除该租户的应用开通记录。")), 1), G(Z(T), {
1327
+ return (e, n) => (J(), H("section", cn, [U("p", null, X(Z(t).t("platform.screen.TenantApplicationConfigurationDrawer.select-applications-to-provision-for-this-tenant-deselecting-an-application", "勾选表示向当前租户开通应用;取消勾选将移除该租户的应用开通记录。")), 1), G(Z(y), {
1328
1328
  columns: s.value,
1329
1329
  rows: c.value,
1330
1330
  loading: a.value,
@@ -1357,8 +1357,8 @@ var en = { class: "password-policy-preview" }, tn = {
1357
1357
  },
1358
1358
  ...["lightLogoAssetId", "darkLogoAssetId"].map((e) => ({
1359
1359
  fieldName: e,
1360
- imageUploadHint: ({ draft: e }, t = v) => 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 = v) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => dn(e, t)
1360
+ imageUploadHint: ({ draft: e }, t = d) => 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 = d) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => dn(e, t)
1362
1362
  }))
1363
1363
  ]
1364
1364
  },
@@ -1422,16 +1422,16 @@ var pn = {
1422
1422
  __name: "EmployeeAccountDrawer",
1423
1423
  props: { context: {} },
1424
1424
  setup(e) {
1425
- let t = A(), n = e, r = Y(), i = Y(), a = Y(""), o = Y(""), s = Y(!1), c = Y(!1);
1425
+ let t = I(), n = e, r = Y(), i = Y(), a = Y(""), o = Y(""), s = Y(!1), c = Y(!1);
1426
1426
  qe(() => void l());
1427
1427
  async function l() {
1428
- let e = v();
1428
+ let e = _();
1429
1429
  if (e) {
1430
1430
  s.value = !0;
1431
1431
  try {
1432
1432
  r.value = await n.context.module.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/account` });
1433
1433
  } catch (e) {
1434
- M(e, {
1434
+ j(e, {
1435
1435
  language: t,
1436
1436
  source: "employee-account",
1437
1437
  phase: "load"
@@ -1442,11 +1442,11 @@ var pn = {
1442
1442
  }
1443
1443
  }
1444
1444
  async function u() {
1445
- let e = v();
1445
+ let e = _();
1446
1446
  if (!e || c.value) return;
1447
1447
  let i = a.value.trim();
1448
1448
  if (!i || !o.value) {
1449
- Te(t.t("platform.screen.EmployeeAccountDrawer.enter-an-account-and-initial-password", "请输入账号和初始密码。"), {
1449
+ E(t.t("platform.screen.EmployeeAccountDrawer.enter-an-account-and-initial-password", "请输入账号和初始密码。"), {
1450
1450
  language: t,
1451
1451
  source: "employee-account",
1452
1452
  phase: "validation"
@@ -1463,9 +1463,9 @@ var pn = {
1463
1463
  password: o.value
1464
1464
  }
1465
1465
  });
1466
- r.value = ce(t).binding, o.value = "", n.context.refreshList();
1466
+ r.value = A(t).binding, o.value = "", n.context.refreshList();
1467
1467
  } catch (e) {
1468
- M(e, {
1468
+ j(e, {
1469
1469
  language: t,
1470
1470
  source: "employee-account",
1471
1471
  phase: "action"
@@ -1476,10 +1476,10 @@ var pn = {
1476
1476
  }
1477
1477
  async function d(e) {
1478
1478
  let t = e[0];
1479
- t && await p(t.id);
1479
+ t && await f(t.id);
1480
1480
  }
1481
- async function p(e) {
1482
- let a = v();
1481
+ async function f(e) {
1482
+ let a = _();
1483
1483
  if (a && e && !c.value) {
1484
1484
  c.value = !0;
1485
1485
  try {
@@ -1487,13 +1487,13 @@ var pn = {
1487
1487
  method: "POST",
1488
1488
  path: `/iam.employee/${encodeURIComponent(a)}/account`,
1489
1489
  body: { userId: e }
1490
- }), i.value = void 0, n.context.refreshList(), Te(t.t("platform.screen.EmployeeAccountDrawer.the-account-is-bound-to-this-employee", "账号已绑定到当前职员。"), {
1490
+ }), i.value = void 0, n.context.refreshList(), E(t.t("platform.screen.EmployeeAccountDrawer.the-account-is-bound-to-this-employee", "账号已绑定到当前职员。"), {
1491
1491
  language: t,
1492
1492
  source: "employee-account",
1493
1493
  phase: "action"
1494
1494
  });
1495
1495
  } catch (e) {
1496
- M(e, {
1496
+ j(e, {
1497
1497
  language: t,
1498
1498
  source: "employee-account",
1499
1499
  phase: "action"
@@ -1503,8 +1503,8 @@ var pn = {
1503
1503
  }
1504
1504
  }
1505
1505
  }
1506
- async function m(e) {
1507
- let t = v();
1506
+ async function p(e) {
1507
+ let t = _();
1508
1508
  if (!t) return {
1509
1509
  records: [],
1510
1510
  total: 0
@@ -1521,12 +1521,12 @@ var pn = {
1521
1521
  }
1522
1522
  });
1523
1523
  return {
1524
- records: r.records.map(g),
1524
+ records: r.records.map(h),
1525
1525
  total: r.total
1526
1526
  };
1527
1527
  }
1528
- async function h(e) {
1529
- let t = v();
1528
+ async function m(e) {
1529
+ let t = _();
1530
1530
  return !t || e.length === 0 ? [] : (await n.context.module.http.request({
1531
1531
  method: "POST",
1532
1532
  path: `/iam.employee/${encodeURIComponent(t)}/account-candidates/query`,
@@ -1537,9 +1537,9 @@ var pn = {
1537
1537
  pageSize: e.length
1538
1538
  }
1539
1539
  }
1540
- })).records.map(g);
1540
+ })).records.map(h);
1541
1541
  }
1542
- function g(e) {
1542
+ function h(e) {
1543
1543
  return {
1544
1544
  id: e.id,
1545
1545
  title: e.username ?? e.id,
@@ -1551,9 +1551,9 @@ var pn = {
1551
1551
  departmentName: e.departmentTitle
1552
1552
  };
1553
1553
  }
1554
- async function _() {
1555
- let e = v();
1556
- if (e && r.value && !c.value && await f({
1554
+ async function g() {
1555
+ let e = _();
1556
+ if (e && r.value && !c.value && await ie({
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 pn = {
1566
1566
  path: `/iam.employee/${encodeURIComponent(e)}/account/delete`
1567
1567
  }), r.value = void 0, n.context.refreshList();
1568
1568
  } catch (e) {
1569
- M(e, {
1569
+ j(e, {
1570
1570
  language: t,
1571
1571
  source: "employee-account",
1572
1572
  phase: "action"
@@ -1576,28 +1576,28 @@ var pn = {
1576
1576
  }
1577
1577
  }
1578
1578
  }
1579
- function v() {
1579
+ function _() {
1580
1580
  let e = n.context.record?.id;
1581
1581
  return e == null ? void 0 : String(e);
1582
1582
  }
1583
- return (e, n) => s.value ? (J(), B(Z(C), {
1583
+ return (e, n) => s.value ? (J(), B(Z(ne), {
1584
1584
  key: 0,
1585
1585
  tip: Z(t).t("platform.screen.EmployeeAccountDrawer.loading-account-binding", "加载账号绑定")
1586
- }, null, 8, ["tip"])) : (J(), H("section", pn, [v() ? r.value ? (J(), H(R, { key: 1 }, [U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.currently-bound-user", "当前已绑定用户:")) + X(r.value.userId ?? "-"), 1), G(Z(P), {
1586
+ }, null, 8, ["tip"])) : (J(), H("section", pn, [_() ? r.value ? (J(), H(R, { key: 1 }, [U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.currently-bound-user", "当前已绑定用户:")) + X(r.value.userId ?? "-"), 1), G(Z(N), {
1587
1587
  danger: "",
1588
1588
  "icon-name": "delete",
1589
1589
  loading: c.value,
1590
- onClick: _
1590
+ onClick: g
1591
1591
  }, {
1592
1592
  default: $(() => [W(X(Z(t).t("platform.screen.EmployeeAccountDrawer.remove-account", "移除账户")), 1)]),
1593
1593
  _: 1
1594
- }, 8, ["loading"])], 64)) : (J(), H(R, { key: 2 }, [U("section", mn, [U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.bind-an-existing-user-account-only-enabled-accounts-in-this", "绑定已有用户账号;仅显示当前租户内启用且尚未绑定其他职员的账号。")), 1), G(Z(pe), {
1594
+ }, 8, ["loading"])], 64)) : (J(), H(R, { key: 2 }, [U("section", mn, [U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.bind-an-existing-user-account-only-enabled-accounts-in-this", "绑定已有用户账号;仅显示当前租户内启用且尚未绑定其他职员的账号。")), 1), G(Z(P), {
1595
1595
  value: i.value,
1596
1596
  disabled: c.value,
1597
1597
  placeholder: Z(t).t("platform.screen.EmployeeAccountDrawer.search-and-select-an-existing-login-account", "搜索并选择已有登录账号"),
1598
1598
  title: Z(t).t("platform.screen.EmployeeAccountDrawer.select-an-existing-login-account", "选择已有登录账号"),
1599
- "search-page": m,
1600
- "resolve-users": h,
1599
+ "search-page": p,
1600
+ "resolve-users": m,
1601
1601
  "onUpdate:value": n[0] ||= (e) => i.value = typeof e == "string" ? e : void 0,
1602
1602
  onSelect: d
1603
1603
  }, null, 8, [
@@ -1607,7 +1607,7 @@ var pn = {
1607
1607
  "title"
1608
1608
  ])]), U("form", { onSubmit: it(u, ["prevent"]) }, [
1609
1609
  U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.you-can-also-create-a-login-account-and-bind-it", "也可直接创建登录账号并自动绑定到当前职员。")), 1),
1610
- U("label", null, [U("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), G(Z(I), {
1610
+ U("label", null, [U("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), G(Z(F), {
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 pn = {
1617
1617
  "disabled",
1618
1618
  "placeholder"
1619
1619
  ])]),
1620
- U("label", null, [U("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), G(Z(I), {
1620
+ U("label", null, [U("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), G(Z(F), {
1621
1621
  value: o.value,
1622
1622
  "onUpdate:value": n[2] ||= (e) => o.value = e,
1623
1623
  type: "password",
@@ -1628,7 +1628,7 @@ var pn = {
1628
1628
  "disabled",
1629
1629
  "placeholder"
1630
1630
  ])]),
1631
- G(Z(P), {
1631
+ G(Z(N), {
1632
1632
  type: "primary",
1633
1633
  "html-type": "submit",
1634
1634
  "icon-name": "plus",
@@ -1637,7 +1637,7 @@ var pn = {
1637
1637
  default: $(() => [W(X(Z(t).t("platform.screen.EmployeeAccountDrawer.create-and-bind-account", "创建账号并绑定")), 1)]),
1638
1638
  _: 1
1639
1639
  }, 8, ["loading"])
1640
- ], 32)], 64)) : (J(), B(Z(ee), {
1640
+ ], 32)], 64)) : (J(), B(Z(x), {
1641
1641
  key: 0,
1642
1642
  title: Z(t).t("platform.screen.EmployeeAccountDrawer.employee-not-found", "职员不存在"),
1643
1643
  message: Z(t).t("platform.screen.EmployeeAccountDrawer.reopen-the-employee-record-to-set-up-an-account", "请重新打开职员档案后再设置账号。")
@@ -1663,7 +1663,7 @@ var pn = {
1663
1663
  }] }
1664
1664
  }, _n = "iam.user.session.collectionChanged", vn = /* @__PURE__ */ new WeakMap();
1665
1665
  function yn() {
1666
- let e = k(), t = vn.get(e);
1666
+ let e = M(), t = vn.get(e);
1667
1667
  t || (t = bn(e), vn.set(e, t));
1668
1668
  let n = t;
1669
1669
  return n.users += 1, Je(() => {
@@ -1675,18 +1675,18 @@ function yn() {
1675
1675
  };
1676
1676
  }
1677
1677
  function bn(e) {
1678
- let t = Y({}), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, o = !1, s = a((e) => {
1678
+ let t = Y({}), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, s = o((e) => {
1679
1679
  xn(e) && n.has(e.recordId) && u(e.recordId);
1680
1680
  });
1681
1681
  function c(e) {
1682
- e && !o && (n.add(e), t.value[e] || u(e));
1682
+ e && !a && (n.add(e), t.value[e] || u(e));
1683
1683
  }
1684
1684
  function l(e) {
1685
1685
  return e ? t.value[e] : void 0;
1686
1686
  }
1687
1687
  function u(e) {
1688
- e && !o && (r.add(e), !i && (i = !0, queueMicrotask(() => {
1689
- i = !1, o || d();
1688
+ e && !a && (r.add(e), !i && (i = !0, queueMicrotask(() => {
1689
+ i = !1, a || d();
1690
1690
  })));
1691
1691
  }
1692
1692
  async function d() {
@@ -1697,13 +1697,13 @@ function bn(e) {
1697
1697
  path: "/iam.user/sessions/status",
1698
1698
  body: { userIds: n }
1699
1699
  });
1700
- if (o) return;
1700
+ if (a) return;
1701
1701
  t.value = {
1702
1702
  ...t.value,
1703
1703
  ...Object.fromEntries(r.map((e) => [e.userId, e]))
1704
1704
  };
1705
1705
  } catch (e) {
1706
- o || M(e, {
1706
+ a || j(e, {
1707
1707
  source: "iam-user-online-status",
1708
1708
  phase: "load"
1709
1709
  });
@@ -1715,7 +1715,7 @@ function bn(e) {
1715
1715
  statusOf: l,
1716
1716
  refresh: u,
1717
1717
  dispose() {
1718
- o = !0, n.clear(), r.clear(), s.unsubscribe();
1718
+ a = !0, n.clear(), r.clear(), s.unsubscribe();
1719
1719
  }
1720
1720
  };
1721
1721
  }
@@ -1732,7 +1732,7 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1732
1732
  column: {}
1733
1733
  },
1734
1734
  setup(e) {
1735
- let t = A(), n = e, r = yn(), i = z(() => n.record.id == null ? void 0 : String(n.record.id)), a = z(() => r.statusOf(i.value)), o = z(() => {
1735
+ let t = I(), n = e, r = yn(), i = z(() => n.record.id == null ? void 0 : String(n.record.id)), a = z(() => r.statusOf(i.value)), o = z(() => {
1736
1736
  let e = a.value;
1737
1737
  if (!e) return "-";
1738
1738
  if (e.present) {
@@ -1766,12 +1766,12 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1766
1766
  __name: "UserPasswordDrawer",
1767
1767
  props: { context: {} },
1768
1768
  setup(e) {
1769
- let t = A(), n = e, r = Y(""), i = Y(), a = Y(!1), o = z(() => n.context.record?.id == null ? void 0 : String(n.context.record.id));
1769
+ let t = I(), n = e, r = Y(""), i = Y(), a = Y(!1), o = z(() => n.context.record?.id == null ? void 0 : String(n.context.record.id));
1770
1770
  async function s() {
1771
1771
  let e = o.value;
1772
1772
  if (e && !a.value && n.context.module.can("changePassword", e) === !0) {
1773
1773
  if (!r.value) {
1774
- Te(t.t("platform.screen.UserPasswordDrawer.enter-a-new-password", "请输入新密码。"), {
1774
+ E(t.t("platform.screen.UserPasswordDrawer.enter-a-new-password", "请输入新密码。"), {
1775
1775
  language: t,
1776
1776
  source: "iam-user-password",
1777
1777
  phase: "validation"
@@ -1784,13 +1784,13 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1784
1784
  method: "POST",
1785
1785
  path: `/iam.user/changePassword/${encodeURIComponent(e)}`,
1786
1786
  body: { password: r.value }
1787
- }), r.value = "", Te(t.t("platform.screen.UserPasswordDrawer.password-changed", "密码已修改。"), {
1787
+ }), r.value = "", E(t.t("platform.screen.UserPasswordDrawer.password-changed", "密码已修改。"), {
1788
1788
  language: t,
1789
1789
  source: "iam-user-password",
1790
1790
  phase: "action"
1791
1791
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1792
1792
  } catch (e) {
1793
- M(e, {
1793
+ j(e, {
1794
1794
  language: t,
1795
1795
  source: "iam-user-password",
1796
1796
  phase: "action"
@@ -1810,7 +1810,7 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1810
1810
  path: `/iam.user/resetPassword/${encodeURIComponent(e)}`
1811
1811
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1812
1812
  } catch (e) {
1813
- M(e, {
1813
+ j(e, {
1814
1814
  language: t,
1815
1815
  source: "iam-user-password",
1816
1816
  phase: "action"
@@ -1822,7 +1822,7 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1822
1822
  }
1823
1823
  return (n, l) => o.value ? (J(), H("section", Cn, [e.context.module.can("changePassword", o.value) === !0 ? (J(), H("label", wn, [
1824
1824
  U("span", null, X(Z(t).t("platform.screen.LoginView.new-password", "新密码")), 1),
1825
- G(Z(I), {
1825
+ G(Z(F), {
1826
1826
  value: r.value,
1827
1827
  "onUpdate:value": l[0] ||= (e) => r.value = e,
1828
1828
  type: "password",
@@ -1833,7 +1833,7 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1833
1833
  "disabled",
1834
1834
  "placeholder"
1835
1835
  ]),
1836
- G(Z(P), {
1836
+ G(Z(N), {
1837
1837
  type: "primary",
1838
1838
  loading: a.value,
1839
1839
  onClick: s
@@ -1843,7 +1843,7 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1843
1843
  }, 8, ["loading"])
1844
1844
  ])) : V("v-if", !0), e.context.module.can("resetPassword", o.value) === !0 ? (J(), H("section", Tn, [
1845
1845
  U("p", null, X(Z(t).t("platform.screen.UserPasswordDrawer.generate-a-temporary-password-deliver-it-to-the-user-through", "由系统生成临时密码。请在安全渠道交付给用户,并提醒其尽快修改。")), 1),
1846
- G(Z(P), {
1846
+ G(Z(N), {
1847
1847
  loading: a.value,
1848
1848
  onClick: c
1849
1849
  }, {
@@ -1851,7 +1851,7 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1851
1851
  _: 1
1852
1852
  }, 8, ["loading"]),
1853
1853
  i.value ? (J(), H("dl", En, [U("div", null, [U("dt", null, X(Z(t).t("platform.screen.UserPasswordDrawer.temporary-password", "临时密码")), 1), U("dd", null, X(i.value.temporaryPassword), 1)]), U("div", null, [U("dt", null, X(Z(t).t("platform.screen.UserPasswordDrawer.expires-at", "失效时间")), 1), U("dd", null, X(i.value.expiresAt ?? "-"), 1)])])) : V("v-if", !0)
1854
- ])) : V("v-if", !0)])) : (J(), B(Z(ee), {
1854
+ ])) : V("v-if", !0)])) : (J(), B(Z(x), {
1855
1855
  key: 0,
1856
1856
  title: Z(t).t("platform.screen.UserPasswordDrawer.user-not-found", "用户不存在"),
1857
1857
  message: Z(t).t("platform.screen.UserPasswordDrawer.reopen-the-user-details-to-manage-the-password", "请重新打开用户详情后再管理密码。")
@@ -1861,7 +1861,7 @@ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1861
1861
  //#endregion
1862
1862
  //#region src/platform-admin-runtime/user/useUserSessionRows.ts
1863
1863
  function On(e) {
1864
- let t = e.language ?? v, n = Y([]), i = Y({}), a = r({ load: async (e) => {
1864
+ let t = e.language ?? d, 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) {
@@ -1869,7 +1869,7 @@ function On(e) {
1869
1869
  }
1870
1870
  async function s(n, r) {
1871
1871
  if (e.context.can("sessions", n) !== !1) {
1872
- f(n, {
1872
+ p(n, {
1873
1873
  ...u(n),
1874
1874
  loading: !0,
1875
1875
  error: void 0,
@@ -1881,18 +1881,18 @@ function On(e) {
1881
1881
  method: "GET",
1882
1882
  path: `/iam.user/${encodeURIComponent(n)}/sessions`
1883
1883
  });
1884
- r(n) && f(n, {
1884
+ r(n) && p(n, {
1885
1885
  records: t,
1886
1886
  loading: !1
1887
1887
  });
1888
1888
  } catch (i) {
1889
1889
  if (!r(n)) return;
1890
- let a = te(i);
1891
- M(a, {
1890
+ let a = m(i);
1891
+ j(a, {
1892
1892
  language: t,
1893
1893
  source: `${e.source}-sessions`,
1894
1894
  phase: "load"
1895
- }), f(n, {
1895
+ }), p(n, {
1896
1896
  ...u(n),
1897
1897
  loading: !1,
1898
1898
  failure: a
@@ -1913,16 +1913,16 @@ function On(e) {
1913
1913
  let n = e ? i.value[e] : void 0;
1914
1914
  return n ? n.failure ? {
1915
1915
  ...n,
1916
- error: w(n.failure, t)
1916
+ error: re(n.failure, t)
1917
1917
  } : n : {
1918
1918
  records: [],
1919
1919
  loading: !1
1920
1920
  };
1921
1921
  }
1922
- function d() {
1922
+ function f() {
1923
1923
  a.reset(), n.value = [], i.value = {};
1924
1924
  }
1925
- function f(e, t) {
1925
+ function p(e, t) {
1926
1926
  i.value = {
1927
1927
  ...i.value,
1928
1928
  [e]: t
@@ -1932,7 +1932,7 @@ function On(e) {
1932
1932
  handleUserRowExpand: c,
1933
1933
  handleUserSessionBusinessEvent: l,
1934
1934
  loadUserSessions: o,
1935
- reset: d,
1935
+ reset: f,
1936
1936
  userSessionState: u
1937
1937
  };
1938
1938
  }
@@ -1956,21 +1956,21 @@ var kn = {
1956
1956
  __name: "UserSessionListExpansion",
1957
1957
  props: { context: {} },
1958
1958
  setup(e) {
1959
- let t = A(), n = e, r = z(() => n.context.record.id == null ? void 0 : String(n.context.record.id)), i = On({
1959
+ let t = I(), n = e, r = z(() => n.context.record.id == null ? void 0 : String(n.context.record.id)), i = On({
1960
1960
  context: n.context.module,
1961
1961
  source: "iam-user-list-expansion",
1962
1962
  language: t
1963
- }), o = z(() => i.userSessionState(r.value)), s = z(() => o.value.records.filter((e) => !e.current && n.context.module.can("revokeSession", r.value) === !0)), c = z(() => s.value.length > 1 && n.context.module.can("revokeSessions", r.value) === !0);
1963
+ }), a = z(() => i.userSessionState(r.value)), s = z(() => a.value.records.filter((e) => !e.current && n.context.module.can("revokeSession", r.value) === !0)), c = z(() => s.value.length > 1 && n.context.module.can("revokeSessions", r.value) === !0);
1964
1964
  Q([r, () => n.context.expanded], ([e, t]) => {
1965
1965
  e && i.handleUserRowExpand({ id: e }, t);
1966
1966
  }, { immediate: !0 });
1967
- let l = a((e) => i.handleUserSessionBusinessEvent(e));
1967
+ let l = o((e) => i.handleUserSessionBusinessEvent(e));
1968
1968
  Ye(() => {
1969
1969
  l.unsubscribe(), i.reset();
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 f({
1973
+ a && !e.current && n.context.module.can("revokeSession", a) === !0 && await ie({
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 kn = {
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 f({
1985
+ e && a.length !== 0 && n.context.module.can("revokeSessions", e) === !0 && await ie({
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", "全部下线"),
@@ -1993,11 +1993,11 @@ var kn = {
1993
1993
  body: { sessionIds: a }
1994
1994
  }), i.loadUserSessions(e));
1995
1995
  }
1996
- return (t, n) => (J(), B(Z(Ee), {
1996
+ return (t, n) => (J(), B(Z(O), {
1997
1997
  embedded: "",
1998
- sessions: o.value.records,
1999
- loading: o.value.loading,
2000
- error: o.value.error,
1998
+ sessions: a.value.records,
1999
+ loading: a.value.loading,
2000
+ error: a.value.error,
2001
2001
  "can-revoke": (t) => !t.current && e.context.module.can("revokeSession", r.value) === !0,
2002
2002
  "can-revoke-all": c.value,
2003
2003
  onRefresh: n[0] ||= (e) => Z(i).loadUserSessions(r.value),
@@ -2058,7 +2058,7 @@ var kn = {
2058
2058
  __name: "ScheduledActionTargetFields",
2059
2059
  props: { context: {} },
2060
2060
  setup(e) {
2061
- let t = e, n = A(), r = k(), i = Y([]), a = Y(!0), o = Y(!1), s = Y(!0), c = Y(!0), l = 0, u = z(() => String(t.context.draft.moduleAlias ?? "")), d = z(() => String(t.context.draft.actionCode ?? "")), f = z(() => JSON.stringify([
2061
+ let t = e, n = I(), r = M(), i = Y([]), a = Y(!0), o = Y(!1), s = Y(!0), c = Y(!0), l = 0, u = z(() => String(t.context.draft.moduleAlias ?? "")), d = z(() => String(t.context.draft.actionCode ?? "")), f = z(() => JSON.stringify([
2062
2062
  t.context.formSessionKey,
2063
2063
  t.context.draft.executionTenantId,
2064
2064
  n.languageTag.value
@@ -2147,7 +2147,7 @@ var kn = {
2147
2147
  return t.context.fields.find((t) => t.fieldName === e)?.label ?? e;
2148
2148
  }
2149
2149
  return (e, t) => (J(), H("div", An, [
2150
- U("label", null, [U("span", null, X(ee("moduleAlias")), 1), G(Z(F), {
2150
+ U("label", null, [U("span", null, X(ee("moduleAlias")), 1), G(Z(ve), {
2151
2151
  value: u.value || void 0,
2152
2152
  provider: _.value,
2153
2153
  "reload-key": f.value,
@@ -2161,7 +2161,7 @@ var kn = {
2161
2161
  "reload-key",
2162
2162
  "disabled"
2163
2163
  ])]),
2164
- U("label", null, [U("span", null, X(ee("actionCode")), 1), G(Z(F), {
2164
+ U("label", null, [U("span", null, X(ee("actionCode")), 1), G(Z(ve), {
2165
2165
  value: d.value || void 0,
2166
2166
  provider: v.value,
2167
2167
  "reload-key": `${f.value}:${u.value}`,
@@ -2267,7 +2267,7 @@ function Wn(e) {
2267
2267
  }
2268
2268
  function Gn(e, t) {
2269
2269
  let n = qn(e), r = n.source;
2270
- if (!ue(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !ie(r, t)) return;
2270
+ if (!b(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !Ce(r, t)) return;
2271
2271
  let i = {};
2272
2272
  for (let [e, t] of Object.entries(qn(n.languages))) {
2273
2273
  let n = qn(t);
@@ -2320,40 +2320,40 @@ var tr = /* @__PURE__ */ q({
2320
2320
  __name: "RoleScopeTree",
2321
2321
  props: { context: {} },
2322
2322
  setup(e) {
2323
- let t = A(), n = e, r = zn(k()), i = Y(), a = Y(""), o = Y(!1), s = Y([]), c = Y([]), l = Y(0), u = Y(/* @__PURE__ */ new Map()), d = z(() => n.context.selectionKey), f = z(() => i.value?.navigations.some((e) => e.level === "TENANT") === !0), m = z(() => i.value?.navigations.length !== 0), h = z(() => f.value ? t.t("platform.screen.ModulePageHostRuntime.tenant", "租户") : t.t("platform.user-picker.axis.organization", "机构")), g = O({
2323
+ let t = I(), n = e, r = zn(M()), i = Y(), a = Y(""), o = Y(!1), s = Y([]), c = Y([]), l = Y(0), u = Y(/* @__PURE__ */ new Map()), d = z(() => n.context.selectionKey), f = z(() => i.value?.navigations.some((e) => e.level === "TENANT") === !0), p = z(() => i.value?.navigations.length !== 0), m = z(() => f.value ? t.t("platform.screen.ModulePageHostRuntime.tenant", "租户") : t.t("platform.user-picker.axis.organization", "机构")), h = _({
2324
2324
  nodes: () => s.value,
2325
- loader: () => re,
2325
+ loader: () => E,
2326
2326
  version: () => l.value
2327
- }), _ = z(() => v(g.nodes.value));
2327
+ }), g = z(() => v(h.nodes.value));
2328
2328
  function v(e) {
2329
2329
  return e.map((e) => ({
2330
2330
  ...e,
2331
- title: S(e.title, u.value.get(e.key)?.labelText, t),
2331
+ title: T(e.title, u.value.get(e.key)?.labelText, t),
2332
2332
  ...e.children ? { children: v(e.children) } : {}
2333
2333
  }));
2334
2334
  }
2335
- let y = g.states, b = 0, x;
2335
+ let y = h.states, b = 0, x;
2336
2336
  qe(() => void ee()), Ke(() => {
2337
2337
  b += 1, x && clearTimeout(x);
2338
2338
  }), Q(a, () => {
2339
- m.value && (x && clearTimeout(x), x = setTimeout(() => void T(), 240));
2339
+ p.value && (x && clearTimeout(x), x = setTimeout(() => void C(), 240));
2340
2340
  });
2341
2341
  async function ee() {
2342
2342
  o.value = !0;
2343
2343
  try {
2344
2344
  i.value = await r.descriptor();
2345
2345
  let e = i.value.directSelections[0], t = i.value.directSelections.find((e) => e.selectionKey === n.context.selectionKey);
2346
- t?.labelText && j({
2346
+ t?.labelText && O({
2347
2347
  key: t.selectionKey,
2348
2348
  label: t.label,
2349
2349
  labelText: t.labelText
2350
- }), !n.context.selectionKey && e && j({
2350
+ }), !n.context.selectionKey && e && O({
2351
2351
  key: e.selectionKey,
2352
2352
  label: e.label,
2353
2353
  labelText: e.labelText
2354
- }), await w();
2354
+ }), await S();
2355
2355
  } catch (e) {
2356
- M(e, {
2356
+ j(e, {
2357
2357
  language: t,
2358
2358
  source: "role-scope-tree",
2359
2359
  phase: "load"
@@ -2362,7 +2362,7 @@ var tr = /* @__PURE__ */ q({
2362
2362
  o.value = !1;
2363
2363
  }
2364
2364
  }
2365
- async function w(e = {}) {
2365
+ async function S(e = {}) {
2366
2366
  let n = i.value;
2367
2367
  if (!n) return;
2368
2368
  let r = ++b;
@@ -2371,10 +2371,10 @@ var tr = /* @__PURE__ */ q({
2371
2371
  try {
2372
2372
  let e = te(n);
2373
2373
  if (r !== b) return;
2374
- u.value = /* @__PURE__ */ new Map(), ie(e), s.value = e.map((e) => e.ui);
2374
+ u.value = /* @__PURE__ */ new Map(), D(e), s.value = e.map((e) => e.ui);
2375
2375
  } catch (e) {
2376
2376
  if (r !== b) return;
2377
- s.value = [], M(e, {
2377
+ s.value = [], j(e, {
2378
2378
  language: t,
2379
2379
  source: "role-scope-tree",
2380
2380
  phase: "load"
@@ -2384,10 +2384,10 @@ var tr = /* @__PURE__ */ q({
2384
2384
  }
2385
2385
  }
2386
2386
  }
2387
- async function T() {
2388
- if (await w(), !a.value.trim()) return;
2387
+ async function C() {
2388
+ if (await S(), !a.value.trim()) return;
2389
2389
  let e = (i.value?.navigations ?? []).map((e) => `navigation:${e.navigationKey}`);
2390
- c.value = e, await He(), await Promise.all(e.map((e) => g.request(e, "refresh")));
2390
+ c.value = e, await He(), await Promise.all(e.map((e) => h.request(e, "refresh")));
2391
2391
  }
2392
2392
  function te(e) {
2393
2393
  return [
@@ -2404,11 +2404,11 @@ var tr = /* @__PURE__ */ q({
2404
2404
  labelText: e.labelText
2405
2405
  }
2406
2406
  })),
2407
- ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => E(e)),
2408
- ...e.navigations.filter((e) => e.level === "TENANT").map((e) => E(e))
2407
+ ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => re(e)),
2408
+ ...e.navigations.filter((e) => e.level === "TENANT").map((e) => re(e))
2409
2409
  ];
2410
2410
  }
2411
- function E(e) {
2411
+ function re(e) {
2412
2412
  return {
2413
2413
  ui: {
2414
2414
  key: `navigation:${e.navigationKey}`,
@@ -2422,8 +2422,8 @@ var tr = /* @__PURE__ */ q({
2422
2422
  }
2423
2423
  };
2424
2424
  }
2425
- function D(e, t, n) {
2426
- let r = ne(e, t, n);
2425
+ function ie(e, t, n) {
2426
+ let r = w(e, t, n);
2427
2427
  return {
2428
2428
  ui: {
2429
2429
  key: e.selectionKey,
@@ -2439,7 +2439,7 @@ var tr = /* @__PURE__ */ q({
2439
2439
  children: r
2440
2440
  };
2441
2441
  }
2442
- function ne(e, t, n) {
2442
+ function w(e, t, n) {
2443
2443
  return t === "TENANT" ? {
2444
2444
  navigationKey: e.selectionKey,
2445
2445
  level: "ORGANIZATION"
@@ -2449,7 +2449,7 @@ var tr = /* @__PURE__ */ q({
2449
2449
  parentId: e.id
2450
2450
  } : void 0;
2451
2451
  }
2452
- async function re(e, n) {
2452
+ async function E(e, n) {
2453
2453
  let i = u.value.get(e.key);
2454
2454
  if (!i?.children) throw Error(t.t("platform.screen.RoleScopeTree.the-role-ownership-scope-is-no-longer-available", "角色归属范围已失效"));
2455
2455
  try {
@@ -2459,71 +2459,71 @@ var tr = /* @__PURE__ */ q({
2459
2459
  pageNum: n.reason === "load-more" ? Number(n.cursor) : 1
2460
2460
  });
2461
2461
  n.signal.throwIfAborted();
2462
- let t = e.records.map((e) => D(e, i.children.level, i.children.navigationKey));
2463
- return ie(t), {
2462
+ let t = e.records.map((e) => ie(e, i.children.level, i.children.navigationKey));
2463
+ return D(t), {
2464
2464
  mode: n.reason === "load-more" ? "append" : "replace",
2465
2465
  nodes: t.map((e) => e.ui),
2466
2466
  hasMore: e.hasMore,
2467
2467
  nextCursor: e.nextPage == null ? void 0 : String(e.nextPage)
2468
2468
  };
2469
2469
  } catch (e) {
2470
- throw n.signal.aborted || M(e, {
2470
+ throw n.signal.aborted || j(e, {
2471
2471
  language: t,
2472
2472
  source: "role-scope-tree",
2473
2473
  phase: "load"
2474
2474
  }), e;
2475
2475
  }
2476
2476
  }
2477
- function ie(e) {
2477
+ function D(e) {
2478
2478
  let t = new Map(u.value);
2479
2479
  e.forEach((e) => t.set(e.ui.key, e)), u.value = t;
2480
2480
  }
2481
2481
  function ae(e) {
2482
2482
  let t = u.value.get(e.key)?.selection;
2483
- t && j(t);
2483
+ t && O(t);
2484
2484
  }
2485
- function j(e) {
2485
+ function O(e) {
2486
2486
  n.context.selectSelectionKey(e.key, {
2487
2487
  label: e.label,
2488
2488
  ...e.labelText ? { labelText: e.labelText } : {},
2489
2489
  secondaryLabel: e.secondaryLabel
2490
2490
  });
2491
2491
  }
2492
- function N() {
2492
+ function oe() {
2493
2493
  let e = i.value?.directSelections[0];
2494
- e && j({
2494
+ e && O({
2495
2495
  key: e.selectionKey,
2496
2496
  label: e.label,
2497
2497
  labelText: e.labelText
2498
2498
  });
2499
2499
  }
2500
- return (e, n) => (J(), B(Z(xe), {
2500
+ return (e, n) => (J(), B(Z(le), {
2501
2501
  class: "role-scope-tree",
2502
- title: h.value,
2502
+ title: m.value,
2503
2503
  "refresh-title": Z(t).t("platform.screen.RoleScopeTree.refresh-role-ownership-scopes", "刷新角色归属范围"),
2504
2504
  "search-keyword": a.value,
2505
2505
  "search-placeholder": Z(t).t("platform.screen.RoleScopeTree.search-names-codes-or-ids", "搜索名称、编码或标识"),
2506
- searchable: m.value,
2507
- onRefresh: w,
2506
+ searchable: p.value,
2507
+ onRefresh: S,
2508
2508
  "onUpdate:searchKeyword": n[3] ||= (e) => a.value = e
2509
2509
  }, {
2510
- default: $(() => [o.value ? (J(), B(Z(C), {
2510
+ default: $(() => [o.value ? (J(), B(Z(ne), {
2511
2511
  key: 0,
2512
2512
  tip: Z(t).t("platform.screen.RoleScopeTree.loading-role-ownership-scopes", "加载角色归属范围")
2513
- }, null, 8, ["tip"])) : (J(), B(Z(p), {
2513
+ }, null, 8, ["tip"])) : (J(), B(Z(se), {
2514
2514
  key: 1,
2515
2515
  "expanded-keys": c.value,
2516
2516
  "onUpdate:expandedKeys": n[0] ||= (e) => c.value = e,
2517
- nodes: _.value,
2517
+ nodes: g.value,
2518
2518
  "selected-key": d.value,
2519
2519
  "reload-key": l.value,
2520
2520
  "load-strategy": "controlled",
2521
2521
  "reload-on-reexpand": "",
2522
2522
  "branch-states": Z(y),
2523
- onLoadRequest: n[1] ||= (e) => Z(g).request(e.node.key, e.reason, Z(g).stateOf(e.node.key).status === "error"),
2523
+ onLoadRequest: n[1] ||= (e) => Z(h).request(e.node.key, e.reason, Z(h).stateOf(e.node.key).status === "error"),
2524
2524
  onSelect: ae,
2525
- onDeselect: N,
2526
- onUnloadChildren: n[2] ||= (e) => Z(g).release(e.key)
2525
+ onDeselect: oe,
2526
+ onUnloadChildren: n[2] ||= (e) => Z(h).release(e.key)
2527
2527
  }, null, 8, [
2528
2528
  "expanded-keys",
2529
2529
  "nodes",
@@ -2548,7 +2548,7 @@ var tr = /* @__PURE__ */ q({
2548
2548
  column: {}
2549
2549
  },
2550
2550
  setup(e) {
2551
- let t = A(), n = e, r = z(() => {
2551
+ let t = I(), n = e, r = z(() => {
2552
2552
  let e = String(n.record[n.column?.key ?? ""] ?? "");
2553
2553
  return {
2554
2554
  account: t.t("platform.screen.RoleManagementView.account-role", "账号角色"),
@@ -2699,25 +2699,25 @@ var ir = {
2699
2699
  },
2700
2700
  emits: ["close", "saved"],
2701
2701
  setup(e, { emit: t }) {
2702
- let n = A(), 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), v = Y(!1), b = Y(!1), x = Y(), S = z(() => rr(r.context.http)), w = y({ moduleAlias: "iam.tenant" }), T = z(() => r.role?.id), te = z(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: Oe(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), E = z(() => r.embedded ? "section" : g), D = z(() => r.embedded ? {} : {
2702
+ let n = I(), 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), m = Y(0), h = Y(!1), _ = Y(!1), v = Y(!1), y = Y(!1), b = Y(), ee = z(() => rr(r.context.http)), S = p({ moduleAlias: "iam.tenant" }), C = z(() => r.role?.id), te = z(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: Oe(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), re = z(() => r.embedded ? "section" : ce), ie = z(() => r.embedded ? {} : {
2703
2703
  open: r.open,
2704
2704
  title: te.value,
2705
2705
  renderMode: r.container ? "inline" : "portal",
2706
2706
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
2707
- onClose: ye
2708
- }), O = z(() => r.role?.ownerScopeType === "platform"), ne = z(() => x.value?.id), re = z(() => !O.value || !!ne.value), ie = z(() => w), ae = z(() => {
2707
+ onClose: ve
2708
+ }), w = z(() => r.role?.ownerScopeType === "platform"), T = z(() => b.value?.id), E = z(() => !w.value || !!T.value), D = z(() => S), ae = z(() => {
2709
2709
  let e = /* @__PURE__ */ new Map();
2710
2710
  for (let t of a.value) t.userId && e.set(t.userId, t);
2711
2711
  return e;
2712
- }), k = z(() => s.value.filter((e) => e.id).map((e) => ({
2712
+ }), O = z(() => s.value.filter((e) => e.id).map((e) => ({
2713
2713
  id: e.id,
2714
- username: Ee(e),
2714
+ username: L(e),
2715
2715
  employeeNo: e.employeeNo ?? "",
2716
2716
  employeeTitle: e.employeeTitle ?? "",
2717
2717
  organizationTitle: e.organizationTitle ?? e.organizationId ?? "",
2718
2718
  departmentTitle: e.departmentTitle ?? e.departmentId ?? "",
2719
2719
  boundTitle: l.value.has(e.id) ? n.t("platform.screen.RoleAccountGrantDrawer.assigned", "已绑定") : n.t("platform.screen.MetadataGovernanceSurface.unbound", "未绑定")
2720
- }))), j = z(() => [...c.value].map((e) => o.value[e] ?? Te(e))), N = z(() => [...c.value].filter((e) => !l.value.has(e))), F = z(() => [...l.value].filter((e) => !c.value.has(e))), oe = z(() => N.value.length > 0 || F.value.length > 0), ce = {
2720
+ }))), se = z(() => [...c.value].map((e) => o.value[e] ?? Te(e))), k = z(() => [...c.value].filter((e) => !l.value.has(e))), le = z(() => [...l.value].filter((e) => !c.value.has(e))), A = z(() => k.value.length > 0 || le.value.length > 0), M = {
2721
2721
  rowKey: "id",
2722
2722
  columns: [
2723
2723
  {
@@ -2758,89 +2758,89 @@ var ir = {
2758
2758
  onChange: (e) => {
2759
2759
  c.value = new Set(e.map((e) => String(e)));
2760
2760
  }
2761
- })), fe = z(() => ({
2761
+ })), de = z(() => ({
2762
2762
  current: f.value,
2763
- total: p.value,
2763
+ total: m.value,
2764
2764
  pageSize: fr,
2765
2765
  showSizeChanger: !1,
2766
2766
  showQuickJumper: !1,
2767
- onChange: (e) => void ge(e)
2767
+ onChange: (e) => void me(e)
2768
2768
  }));
2769
2769
  Q(() => [r.open, r.role?.id], ([e]) => {
2770
- e ? he() : be();
2770
+ e ? P() : be();
2771
2771
  }, { immediate: !0 }), Q([
2772
2772
  () => r.embedded,
2773
2773
  () => r.drawerContext,
2774
2774
  c,
2775
- oe,
2776
- re,
2777
- N,
2778
- F,
2775
+ A,
2776
+ E,
2777
+ k,
2778
+ le,
2779
2779
  v,
2780
- m
2781
- ], pe, { immediate: !0 }), Ke(() => r.drawerContext?.setOperation(void 0));
2782
- function pe() {
2780
+ h
2781
+ ], fe, { immediate: !0 }), Ke(() => r.drawerContext?.setOperation(void 0));
2782
+ function fe() {
2783
2783
  let e = r.drawerContext;
2784
2784
  r.embedded && e && (e.setSubtitle(n.t("platform.screen.RoleAccountGrantDrawer.role-value-value", "角色:{value1} · {value2}", {
2785
2785
  value1: Oe(r.role ?? {}),
2786
2786
  value2: ke(r.role)
2787
2787
  })), e.setOperation({
2788
- summary: me(),
2788
+ summary: pe(),
2789
2789
  actions: [{
2790
2790
  key: "cancel-account-role-grants",
2791
2791
  label: n.t("platform.action.cancel", "取消"),
2792
- disabled: v.value || m.value,
2793
- run: ye
2792
+ disabled: v.value || h.value,
2793
+ run: ve
2794
2794
  }, {
2795
2795
  key: "save-account-role-grants",
2796
2796
  label: n.t("platform.screen.RoleAccountGrantDrawer.confirm", "确定"),
2797
2797
  emphasis: "primary",
2798
- disabled: m.value || !re.value || !oe.value,
2798
+ disabled: h.value || !E.value || !A.value,
2799
2799
  loading: v.value,
2800
- run: () => void L()
2800
+ run: () => void _e()
2801
2801
  }]
2802
2802
  }));
2803
2803
  }
2804
- function me() {
2805
- return re.value ? oe.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
2804
+ function pe() {
2805
+ return E.value ? A.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
2806
2806
  value1: c.value.size,
2807
- value2: N.value.length,
2808
- value3: F.value.length
2807
+ value2: k.value.length,
2808
+ value3: le.value.length
2809
2809
  }) : n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected", "已选 {value1} 个用户", { value1: c.value.size }) : n.t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant", "请选择目标租户");
2810
2810
  }
2811
- async function he() {
2812
- let e = T.value;
2811
+ async function P() {
2812
+ let e = C.value;
2813
2813
  if (!e) {
2814
2814
  be();
2815
2815
  return;
2816
2816
  }
2817
- if (!re.value) {
2817
+ if (!E.value) {
2818
2818
  xe();
2819
2819
  return;
2820
2820
  }
2821
- m.value = !0, b.value = !1;
2821
+ h.value = !0, y.value = !1;
2822
2822
  try {
2823
- let t = await S.value.accountRoleGrants(e, ne.value);
2823
+ let t = await ee.value.accountRoleGrants(e, T.value);
2824
2824
  a.value = t;
2825
2825
  let n = new Set(t.map((e) => e.userId).filter((e) => !!e));
2826
- l.value = n, c.value = new Set(n), o.value = we([...t.map((e) => Te(e.userId)).filter((e) => !!e)]), await ge(1);
2826
+ l.value = n, c.value = new Set(n), o.value = we([...t.map((e) => Te(e.userId)).filter((e) => !!e)]), await me(1);
2827
2827
  } catch (e) {
2828
- b.value = !0, M(e, {
2828
+ y.value = !0, j(e, {
2829
2829
  language: n,
2830
2830
  source: "role-account-grants",
2831
2831
  phase: "load"
2832
2832
  });
2833
2833
  } finally {
2834
- m.value = !1;
2834
+ h.value = !1;
2835
2835
  }
2836
2836
  }
2837
- async function ge(e) {
2838
- let t = T.value;
2839
- if (t && re.value) {
2840
- h.value = !0;
2837
+ async function me(e) {
2838
+ let t = C.value;
2839
+ if (t && E.value) {
2840
+ _.value = !0;
2841
2841
  try {
2842
- let n = await S.value.accountRoleCandidates(t, {
2843
- targetTenantId: ne.value,
2842
+ let n = await ee.value.accountRoleCandidates(t, {
2843
+ targetTenantId: T.value,
2844
2844
  keyword: d.value,
2845
2845
  enabledOnly: !0,
2846
2846
  page: {
@@ -2851,43 +2851,43 @@ var ir = {
2851
2851
  s.value = n.records, o.value = {
2852
2852
  ...o.value,
2853
2853
  ...we(n.records)
2854
- }, f.value = n.pageNum, p.value = n.total;
2854
+ }, f.value = n.pageNum, m.value = n.total;
2855
2855
  } catch (e) {
2856
- M(e, {
2856
+ j(e, {
2857
2857
  language: n,
2858
2858
  source: "role-account-grants",
2859
2859
  phase: "load"
2860
2860
  });
2861
2861
  } finally {
2862
- h.value = !1;
2862
+ _.value = !1;
2863
2863
  }
2864
2864
  }
2865
2865
  }
2866
- function _e() {
2867
- d.value = u.value.trim(), ge(0);
2866
+ function he() {
2867
+ d.value = u.value.trim(), me(0);
2868
2868
  }
2869
- function ve(e, t) {
2869
+ function ge(e, t) {
2870
2870
  let n = new Set(c.value);
2871
2871
  t ? n.add(e) : n.delete(e), c.value = n;
2872
2872
  }
2873
- async function L() {
2874
- let e = T.value;
2875
- if (e && re.value) {
2876
- if (!oe.value) {
2873
+ async function _e() {
2874
+ let e = C.value;
2875
+ if (e && E.value) {
2876
+ if (!A.value) {
2877
2877
  i("close");
2878
2878
  return;
2879
2879
  }
2880
2880
  v.value = !0;
2881
2881
  try {
2882
- for (let t of N.value) await S.value.grantAccountRole(e, {
2882
+ for (let t of k.value) await ee.value.grantAccountRole(e, {
2883
2883
  userId: t,
2884
- targetTenantId: ne.value
2884
+ targetTenantId: T.value
2885
2885
  });
2886
- for (let t of F.value) {
2886
+ for (let t of le.value) {
2887
2887
  let n = ae.value.get(t)?.id;
2888
- n && await S.value.deleteAccountRoleGrant(e, n, ne.value);
2888
+ n && await ee.value.deleteAccountRoleGrant(e, n, T.value);
2889
2889
  }
2890
- await se({
2890
+ await De({
2891
2891
  success: !0,
2892
2892
  message: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2893
2893
  }, {
@@ -2897,7 +2897,7 @@ var ir = {
2897
2897
  fallbackMessage: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2898
2898
  }), i("saved"), i("close");
2899
2899
  } catch (e) {
2900
- M(e, {
2900
+ j(e, {
2901
2901
  language: n,
2902
2902
  source: "role-account-grants",
2903
2903
  phase: "action"
@@ -2907,28 +2907,28 @@ var ir = {
2907
2907
  }
2908
2908
  }
2909
2909
  }
2910
- function ye() {
2910
+ function ve() {
2911
2911
  v.value || i("close");
2912
2912
  }
2913
2913
  function be() {
2914
- x.value = void 0, xe();
2914
+ b.value = void 0, xe();
2915
2915
  }
2916
2916
  function xe() {
2917
- 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, v.value = !1, b.value = !1;
2917
+ a.value = [], o.value = {}, s.value = [], c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = "", d.value = "", f.value = 1, m.value = 0, h.value = !1, _.value = !1, v.value = !1, y.value = !1;
2918
2918
  }
2919
2919
  async function Se(e) {
2920
2920
  if (!e) {
2921
- x.value = void 0, xe();
2921
+ b.value = void 0, xe();
2922
2922
  return;
2923
2923
  }
2924
- let t = await w.crud.view(e);
2925
- x.value = t ?? {
2924
+ let t = await S.crud.view(e);
2925
+ b.value = t ?? {
2926
2926
  id: e,
2927
2927
  title: e
2928
- }, await he();
2928
+ }, await P();
2929
2929
  }
2930
2930
  function Ce(e) {
2931
- ve(e, !1);
2931
+ ge(e, !1);
2932
2932
  }
2933
2933
  function we(e) {
2934
2934
  let t = {};
@@ -2941,75 +2941,75 @@ var ir = {
2941
2941
  username: e
2942
2942
  } : void 0;
2943
2943
  }
2944
- function Ee(e) {
2944
+ function L(e) {
2945
2945
  return String(e?.username ?? e?.id ?? n.t("platform.screen.RoleAccountGrantDrawer.unknown-user", "未知用户"));
2946
2946
  }
2947
- function De(e) {
2947
+ function Ee(e) {
2948
2948
  return e.employeeTitle && e.employeeNo ? `${e.employeeTitle} / ${e.employeeNo}` : e.employeeTitle ?? e.employeeNo ?? e.employeeId ?? e.id;
2949
2949
  }
2950
2950
  function Oe(e) {
2951
- return String(_(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2951
+ return String(oe(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2952
2952
  }
2953
2953
  function ke(e) {
2954
2954
  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", "租户范围");
2955
2955
  }
2956
- return (t, r) => (J(), B(Qe(E.value), Ve(D.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Re({
2957
- default: $(() => [m.value ? (J(), B(Z(C), {
2956
+ return (t, r) => (J(), B(Qe(re.value), Ve(ie.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Re({
2957
+ default: $(() => [h.value ? (J(), B(Z(ne), {
2958
2958
  key: 0,
2959
2959
  class: "role-account-grant-drawer-state",
2960
2960
  tip: Z(n).t("platform.screen.RoleAccountGrantDrawer.loading-users", "加载用户")
2961
- }, null, 8, ["tip"])) : b.value ? (J(), H("div", ir, [G(Z(ee), {
2961
+ }, null, 8, ["tip"])) : y.value ? (J(), H("div", ir, [G(Z(x), {
2962
2962
  title: Z(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-users", "用户加载失败"),
2963
2963
  message: Z(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-user-assignments-for-this-role", "无法加载当前角色的用户绑定")
2964
- }, null, 8, ["title", "message"]), G(Z(P), {
2964
+ }, null, 8, ["title", "message"]), G(Z(N), {
2965
2965
  type: "primary",
2966
2966
  "icon-name": "reload",
2967
- onClick: he
2967
+ onClick: P
2968
2968
  }, {
2969
2969
  default: $(() => [W(X(Z(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
2970
2970
  _: 1
2971
2971
  })])) : (J(), H("section", {
2972
2972
  key: 2,
2973
- class: Ue(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": O.value }])
2974
- }, [O.value ? (J(), H("label", ar, [U("span", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), G(Z(le), {
2975
- context: ie.value,
2976
- value: ne.value,
2973
+ class: Ue(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": w.value }])
2974
+ }, [w.value ? (J(), H("label", ar, [U("span", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), G(Z(ye), {
2975
+ context: D.value,
2976
+ value: T.value,
2977
2977
  mode: "list",
2978
2978
  placeholder: Z(n).t("platform.screen.RoleAccountGrantDrawer.select-the-target-tenant-for-this-role-assignment", "请选择角色下发的目标租户"),
2979
- disabled: v.value || m.value,
2979
+ disabled: v.value || h.value,
2980
2980
  "onUpdate:value": Se
2981
2981
  }, null, 8, [
2982
2982
  "context",
2983
2983
  "value",
2984
2984
  "placeholder",
2985
2985
  "disabled"
2986
- ])])) : V("v-if", !0), re.value ? (J(), H(R, { key: 2 }, [
2987
- U("div", sr, [G(Z(I), {
2986
+ ])])) : V("v-if", !0), E.value ? (J(), H(R, { key: 2 }, [
2987
+ U("div", sr, [G(Z(F), {
2988
2988
  value: u.value,
2989
2989
  "allow-clear": "",
2990
2990
  disabled: v.value,
2991
2991
  placeholder: Z(n).t("platform.screen.RoleAccountGrantDrawer.search-user-accounts", "搜索用户账号"),
2992
2992
  "onUpdate:value": r[0] ||= (e) => u.value = e,
2993
- onKeydown: rt(_e, ["enter"])
2993
+ onKeydown: rt(he, ["enter"])
2994
2994
  }, null, 8, [
2995
2995
  "value",
2996
2996
  "disabled",
2997
2997
  "placeholder"
2998
- ]), G(Z(P), {
2998
+ ]), G(Z(N), {
2999
2999
  "icon-name": "search",
3000
3000
  disabled: v.value,
3001
- onClick: _e
3001
+ onClick: he
3002
3002
  }, {
3003
3003
  default: $(() => [W(X(Z(n).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
3004
3004
  _: 1
3005
3005
  }, 8, ["disabled"])]),
3006
- G(Z(de), {
3006
+ G(Z(g), {
3007
3007
  class: "role-account-grant-table",
3008
3008
  size: "middle",
3009
- contract: ce,
3010
- rows: k.value,
3011
- loading: h.value,
3012
- pagination: fe.value,
3009
+ contract: M,
3010
+ rows: O.value,
3011
+ loading: _.value,
3012
+ pagination: de.value,
3013
3013
  selection: ue.value,
3014
3014
  "fill-height": ""
3015
3015
  }, null, 8, [
@@ -3018,27 +3018,27 @@ var ir = {
3018
3018
  "pagination",
3019
3019
  "selection"
3020
3020
  ]),
3021
- j.value.length > 0 ? (J(), H("section", cr, [U("div", lr, [U("strong", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), U("span", null, X(j.value.length), 1)]), U("div", ur, [(J(!0), H(R, null, Xe(j.value, (e) => (J(), H("button", {
3021
+ se.value.length > 0 ? (J(), H("section", cr, [U("div", lr, [U("strong", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), U("span", null, X(se.value.length), 1)]), U("div", ur, [(J(!0), H(R, null, Xe(se.value, (e) => (J(), H("button", {
3022
3022
  key: e.id,
3023
3023
  type: "button",
3024
3024
  disabled: v.value,
3025
3025
  onClick: (t) => Ce(e.id)
3026
- }, [U("span", null, X(Ee(e)), 1), U("small", null, X(De(e)), 1)], 8, dr))), 128))])])) : V("v-if", !0)
3026
+ }, [U("span", null, X(L(e)), 1), U("small", null, X(Ee(e)), 1)], 8, dr))), 128))])])) : V("v-if", !0)
3027
3027
  ], 64)) : (J(), H("div", or, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant-for-a-platform-shared-role-before", "平台共享角色需要先选择目标租户,再加载可绑定账号。")), 1))], 2))]),
3028
3028
  _: 2
3029
3029
  }, [e.embedded ? void 0 : {
3030
3030
  name: "operation",
3031
- fn: $(() => [G(Z(P), {
3032
- disabled: v.value || m.value,
3033
- onClick: ye
3031
+ fn: $(() => [G(Z(N), {
3032
+ disabled: v.value || h.value,
3033
+ onClick: ve
3034
3034
  }, {
3035
3035
  default: $(() => [W(X(Z(n).t("platform.action.cancel", "取消")), 1)]),
3036
3036
  _: 1
3037
- }, 8, ["disabled"]), G(Z(P), {
3037
+ }, 8, ["disabled"]), G(Z(N), {
3038
3038
  type: "primary",
3039
3039
  loading: v.value,
3040
- disabled: m.value || !oe.value,
3041
- onClick: L
3040
+ disabled: h.value || !A.value,
3041
+ onClick: _e
3042
3042
  }, {
3043
3043
  default: $(() => [W(X(Z(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
3044
3044
  _: 1
@@ -3093,7 +3093,7 @@ var ir = {
3093
3093
  },
3094
3094
  emits: ["update:selectedIds"],
3095
3095
  setup(e, { emit: t }) {
3096
- let n = A(), r = e, i = t, a = Y([]), o = z(() => [
3096
+ let n = I(), r = e, i = t, a = Y([]), o = z(() => [
3097
3097
  {
3098
3098
  key: "title",
3099
3099
  title: n.t("platform.screen.EmployeePicker.employee", "职员"),
@@ -3189,7 +3189,7 @@ var ir = {
3189
3189
  let t = e.employeeId;
3190
3190
  h(e, !a.value.includes(t));
3191
3191
  }
3192
- return (t, r) => (J(), B(Z(T), {
3192
+ return (t, r) => (J(), B(Z(y), {
3193
3193
  class: "employee-employment-table",
3194
3194
  columns: o.value,
3195
3195
  rows: l.value,
@@ -3204,7 +3204,7 @@ var ir = {
3204
3204
  }, {
3205
3205
  cell: $(({ column: e, record: t }) => [W(X(u(e, t)), 1)]),
3206
3206
  expandedRow: $(({ record: e }) => [G(Z(D), { title: Z(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息") }, {
3207
- default: $(() => [G(Z(T), {
3207
+ default: $(() => [G(Z(y), {
3208
3208
  columns: s.value,
3209
3209
  rows: e.positions,
3210
3210
  "row-key": "id",
@@ -3251,42 +3251,42 @@ var ir = {
3251
3251
  },
3252
3252
  emits: ["close", "saved"],
3253
3253
  setup(e, { emit: t }) {
3254
- let n = A(), 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), _ = Y(""), v = z(() => r.role?.id), y = z(() => rr(r.context.http)), b = z(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), x = z(() => r.embedded ? "section" : g), S = z(() => r.embedded ? {} : {
3254
+ let n = I(), 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(""), _ = z(() => r.role?.id), v = z(() => rr(r.context.http)), y = z(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), b = z(() => r.embedded ? "section" : ce), ee = z(() => r.embedded ? {} : {
3255
3255
  open: r.open,
3256
- title: b.value,
3256
+ title: y.value,
3257
3257
  renderMode: r.container ? "inline" : "portal",
3258
3258
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
3259
3259
  onClose: () => !f.value && i("close")
3260
- }), w = z(() => [...c.value].filter((e) => !l.value.has(e))), T = z(() => [...l.value].filter((e) => !c.value.has(e))), te = z(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), E = z(() => o.value.filter((e) => !_.value.trim() || k(e).includes(_.value.trim()))), D = z(() => [...c.value].map((e) => s.value[e] ?? F(e))), O = z(() => ({
3260
+ }), S = z(() => [...c.value].filter((e) => !l.value.has(e))), C = z(() => [...l.value].filter((e) => !c.value.has(e))), te = z(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), re = z(() => o.value.filter((e) => !g.value.trim() || O(e).includes(g.value.trim()))), ie = z(() => [...c.value].map((e) => s.value[e] ?? k(e))), w = z(() => ({
3261
3261
  current: m.value,
3262
3262
  total: h.value,
3263
3263
  pageSize: 50,
3264
3264
  showSizeChanger: !1,
3265
3265
  showQuickJumper: !1,
3266
- onChange: (e) => void re(e)
3266
+ onChange: (e) => void E(e)
3267
3267
  }));
3268
3268
  Q(() => [r.open, r.role?.id], ([e]) => {
3269
- e ? re() : ae();
3269
+ e ? E() : ae();
3270
3270
  }, { immediate: !0 }), Q([
3271
3271
  () => r.embedded,
3272
3272
  () => r.drawerContext,
3273
3273
  c,
3274
- w,
3275
- T,
3274
+ S,
3275
+ C,
3276
3276
  f,
3277
3277
  d
3278
- ], ne, { immediate: !0 }), Ke(() => r.drawerContext?.setOperation(void 0));
3279
- function ne() {
3278
+ ], T, { immediate: !0 }), Ke(() => r.drawerContext?.setOperation(void 0));
3279
+ function T() {
3280
3280
  let e = r.drawerContext;
3281
3281
  r.embedded && e && (e.setSubtitle(n.t("platform.screen.RoleAccountGrantDrawer.role-value-value", "角色:{value1} · {value2}", {
3282
3282
  value1: r.role?.title ?? r.role?.id ?? n.t("platform.screen.RoleManagementView.role", "角色"),
3283
- value2: le(r.role)
3283
+ value2: M(r.role)
3284
3284
  })), e.setOperation({
3285
3285
  summary: n.t("platform.screen.RoleEmploymentGrantDrawer.value-positions-selectedvalue", "已选 {value1} 个任职{value2}", {
3286
3286
  value1: c.value.size,
3287
- value2: w.value.length || T.value.length ? n.t("platform.screen.RoleEmploymentGrantDrawer.value-added-value-removed", " · 新增 {value1} · 移除 {value2}", {
3288
- value1: w.value.length,
3289
- value2: T.value.length
3287
+ value2: S.value.length || C.value.length ? n.t("platform.screen.RoleEmploymentGrantDrawer.value-added-value-removed", " · 新增 {value1} · 移除 {value2}", {
3288
+ value1: S.value.length,
3289
+ value2: C.value.length
3290
3290
  }) : ""
3291
3291
  }),
3292
3292
  actions: [{
@@ -3298,18 +3298,18 @@ var ir = {
3298
3298
  key: "save-employment-role-grants",
3299
3299
  label: n.t("platform.screen.RoleAccountGrantDrawer.confirm", "确定"),
3300
3300
  emphasis: "primary",
3301
- disabled: d.value || w.value.length === 0 && T.value.length === 0,
3301
+ disabled: d.value || S.value.length === 0 && C.value.length === 0,
3302
3302
  loading: f.value,
3303
- run: () => void ie()
3303
+ run: () => void D()
3304
3304
  }]
3305
3305
  }));
3306
3306
  }
3307
- async function re(e = 1) {
3308
- let t = v.value;
3307
+ async function E(e = 1) {
3308
+ let t = _.value;
3309
3309
  if (t) {
3310
3310
  d.value = !0, p.value = !1;
3311
3311
  try {
3312
- let [n, r] = await Promise.all([y.value.employmentRoleGrants(t), y.value.employmentSelector(t, {
3312
+ let [n, r] = await Promise.all([v.value.employmentRoleGrants(t), v.value.employmentSelector(t, {
3313
3313
  enabledOnly: !0,
3314
3314
  page: {
3315
3315
  pageNum: e,
@@ -3318,10 +3318,10 @@ var ir = {
3318
3318
  })]);
3319
3319
  a.value = n, l.value = new Set(n.map((e) => e.employeePositionId).filter((e) => !!e)), s.value = {
3320
3320
  ...s.value,
3321
- ...N(r.records)
3321
+ ...se(r.records)
3322
3322
  }, u.value ||= (c.value = new Set(l.value), !0), o.value = r.records, m.value = r.pageNum, h.value = r.total;
3323
3323
  } catch (e) {
3324
- p.value = !0, M(e, {
3324
+ p.value = !0, j(e, {
3325
3325
  language: n,
3326
3326
  source: "role-employment-grants",
3327
3327
  phase: "load"
@@ -3331,17 +3331,17 @@ var ir = {
3331
3331
  }
3332
3332
  }
3333
3333
  }
3334
- async function ie() {
3335
- let e = v.value;
3334
+ async function D() {
3335
+ let e = _.value;
3336
3336
  if (e) {
3337
3337
  f.value = !0;
3338
3338
  try {
3339
- for (let t of w.value) await y.value.grantEmploymentRole(e, t);
3340
- for (let t of T.value) {
3339
+ for (let t of S.value) await v.value.grantEmploymentRole(e, t);
3340
+ for (let t of C.value) {
3341
3341
  let n = te.value.get(t)?.id;
3342
- n && await y.value.deleteEmploymentRoleGrant(e, n);
3342
+ n && await v.value.deleteEmploymentRoleGrant(e, n);
3343
3343
  }
3344
- await se({
3344
+ await De({
3345
3345
  success: !0,
3346
3346
  message: n.t("platform.screen.RoleEmploymentGrantDrawer.position-role-assignments-saved", "任职角色授权已保存")
3347
3347
  }, {
@@ -3350,7 +3350,7 @@ var ir = {
3350
3350
  phase: "action"
3351
3351
  }), i("saved"), i("close");
3352
3352
  } catch (e) {
3353
- M(e, {
3353
+ j(e, {
3354
3354
  language: n,
3355
3355
  source: "role-employment-grants",
3356
3356
  phase: "action"
@@ -3361,9 +3361,9 @@ var ir = {
3361
3361
  }
3362
3362
  }
3363
3363
  function ae() {
3364
- a.value = [], o.value = [], s.value = {}, c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = !1, _.value = "", m.value = 1, h.value = 0, p.value = !1;
3364
+ 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;
3365
3365
  }
3366
- function k(e) {
3366
+ function O(e) {
3367
3367
  return [
3368
3368
  e.employeeTitle,
3369
3369
  e.employeeNo,
@@ -3372,59 +3372,59 @@ var ir = {
3372
3372
  e.positionTitle
3373
3373
  ].filter(Boolean).join(" ");
3374
3374
  }
3375
- function j(e) {
3375
+ function oe(e) {
3376
3376
  let t = new Set(c.value);
3377
3377
  t.delete(e), c.value = t;
3378
3378
  }
3379
- function N(e) {
3379
+ function se(e) {
3380
3380
  let t = {};
3381
3381
  for (let n of e) n.id && (t[n.id] = n);
3382
3382
  return t;
3383
3383
  }
3384
- function F(e) {
3384
+ function k(e) {
3385
3385
  return {
3386
3386
  id: e,
3387
3387
  positionId: e
3388
3388
  };
3389
3389
  }
3390
- function oe(e) {
3390
+ function le(e) {
3391
3391
  let t = e.positionTitle ?? e.positionId ?? e.id;
3392
3392
  return e.employeeTitle ? `${e.employeeTitle} · ${t}` : t;
3393
3393
  }
3394
- function ce(e) {
3394
+ function A(e) {
3395
3395
  return [
3396
3396
  e.employeeNo,
3397
3397
  e.organizationTitle ?? e.organizationId,
3398
3398
  e.departmentTitle ?? e.departmentId
3399
3399
  ].filter(Boolean).join(" / ") || e.id;
3400
3400
  }
3401
- function le(e) {
3401
+ function M(e) {
3402
3402
  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", "租户范围");
3403
3403
  }
3404
- return (t, r) => (J(), B(Qe(x.value), Ve(S.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Re({
3405
- default: $(() => [d.value ? (J(), B(Z(C), {
3404
+ return (t, r) => (J(), B(Qe(b.value), Ve(ee.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Re({
3405
+ default: $(() => [d.value ? (J(), B(Z(ne), {
3406
3406
  key: 0,
3407
3407
  tip: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.loading-positions", "加载任职")
3408
- }, null, 8, ["tip"])) : p.value ? (J(), H("div", gr, [G(Z(ee), {
3408
+ }, null, 8, ["tip"])) : p.value ? (J(), H("div", gr, [G(Z(x), {
3409
3409
  title: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-positions", "任职加载失败"),
3410
3410
  message: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-position-assignments", "无法加载任职授权")
3411
- }, null, 8, ["title", "message"]), G(Z(P), { onClick: r[1] ||= (e) => re() }, {
3411
+ }, null, 8, ["title", "message"]), G(Z(N), { onClick: r[1] ||= (e) => E() }, {
3412
3412
  default: $(() => [W(X(Z(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
3413
3413
  _: 1
3414
3414
  })])) : (J(), H("section", _r, [
3415
- G(Z(I), {
3416
- value: _.value,
3417
- "onUpdate:value": r[2] ||= (e) => _.value = e,
3415
+ G(Z(F), {
3416
+ value: g.value,
3417
+ "onUpdate:value": r[2] ||= (e) => g.value = e,
3418
3418
  "allow-clear": "",
3419
3419
  placeholder: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.filter-by-employee-employee-number-organization-department-or-position", "筛选职员、工号、机构、部门或岗位")
3420
3420
  }, null, 8, ["value", "placeholder"]),
3421
3421
  G(hr, {
3422
3422
  "selected-ids": c.value,
3423
3423
  "onUpdate:selectedIds": r[3] ||= (e) => c.value = e,
3424
- rows: E.value,
3424
+ rows: re.value,
3425
3425
  selectable: "",
3426
3426
  disabled: f.value,
3427
- pagination: O.value,
3427
+ pagination: w.value,
3428
3428
  "fill-height": ""
3429
3429
  }, null, 8, [
3430
3430
  "selected-ids",
@@ -3432,27 +3432,27 @@ var ir = {
3432
3432
  "disabled",
3433
3433
  "pagination"
3434
3434
  ]),
3435
- D.value.length > 0 ? (J(), H("section", vr, [U("div", yr, [U("strong", null, X(Z(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), U("span", null, X(D.value.length), 1)]), U("div", br, [(J(!0), H(R, null, Xe(D.value, (e) => (J(), H("button", {
3435
+ ie.value.length > 0 ? (J(), H("section", vr, [U("div", yr, [U("strong", null, X(Z(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), U("span", null, X(ie.value.length), 1)]), U("div", br, [(J(!0), H(R, null, Xe(ie.value, (e) => (J(), H("button", {
3436
3436
  key: e.id,
3437
3437
  type: "button",
3438
3438
  disabled: f.value,
3439
- onClick: (t) => j(e.id)
3440
- }, [U("span", null, X(oe(e)), 1), U("small", null, X(ce(e)), 1)], 8, xr))), 128))])])) : V("v-if", !0)
3439
+ onClick: (t) => oe(e.id)
3440
+ }, [U("span", null, X(le(e)), 1), U("small", null, X(A(e)), 1)], 8, xr))), 128))])])) : V("v-if", !0)
3441
3441
  ]))]),
3442
3442
  _: 2
3443
3443
  }, [e.embedded ? void 0 : {
3444
3444
  name: "operation",
3445
- fn: $(() => [G(Z(P), {
3445
+ fn: $(() => [G(Z(N), {
3446
3446
  disabled: f.value,
3447
3447
  onClick: r[0] ||= (e) => i("close")
3448
3448
  }, {
3449
3449
  default: $(() => [W(X(Z(n).t("platform.action.cancel", "取消")), 1)]),
3450
3450
  _: 1
3451
- }, 8, ["disabled"]), G(Z(P), {
3451
+ }, 8, ["disabled"]), G(Z(N), {
3452
3452
  type: "primary",
3453
3453
  loading: f.value,
3454
- disabled: d.value || w.value.length === 0 && T.value.length === 0,
3455
- onClick: ie
3454
+ disabled: d.value || S.value.length === 0 && C.value.length === 0,
3455
+ onClick: D
3456
3456
  }, {
3457
3457
  default: $(() => [W(X(Z(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
3458
3458
  _: 1
@@ -3501,7 +3501,7 @@ var ir = {
3501
3501
  emits: ["close"],
3502
3502
  setup(e, { emit: t }) {
3503
3503
  let n = e, r = t, i = z(() => n.profile === "wide-work" ? "wide" : "standard");
3504
- return (t, n) => (J(), B(Z(g), {
3504
+ return (t, n) => (J(), B(Z(ce), {
3505
3505
  open: e.open,
3506
3506
  title: e.title,
3507
3507
  "render-mode": e.container ? "inline" : "portal",
@@ -3536,7 +3536,7 @@ function Tr(e) {
3536
3536
  return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
3537
3537
  }
3538
3538
  function Er(e) {
3539
- let t = s(), n = A();
3539
+ let t = s(), n = I();
3540
3540
  return z(() => {
3541
3541
  let r = tt(e.input);
3542
3542
  if (r && Tr(tt(e.eligibility)) && t) return {
@@ -3546,7 +3546,7 @@ function Er(e) {
3546
3546
  e.onPromotionRejected?.();
3547
3547
  return;
3548
3548
  }
3549
- let i = t.openPage(c(e.view, r, "tab", tt(e.title), n));
3549
+ let i = t.openPage(a(e.view, r, "tab", tt(e.title), n));
3550
3550
  e.onPromoted?.(i);
3551
3551
  }
3552
3552
  };
@@ -3612,17 +3612,17 @@ var Rr = { class: "panel-title" }, zr = {
3612
3612
  },
3613
3613
  emits: ["close"],
3614
3614
  setup(e, { emit: t }) {
3615
- let n = A(), r = e, a = t, o = y({ moduleAlias: "iam.role" }), s = r.moduleContext ?? o, c = rr(s.http), l = r.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", u = i(), d = r.roleId ? { roleId: r.roleId } : void 0, p = d ? Lr(d) : void 0, g = Y(), v = Y([]), b = Y(), x = Y(""), S = Y([]), w = Y(), te = Y(), E = Y(!1), D = Y(!1), O = Y(!1), ne = $e(), ie = z(() => ne.value ? ge(ne.value, n) : void 0), ae = Y(), k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), F = Y(0), ce, I = z(() => g.value?.roleKind === "group"), le = z(() => g.value?.roleKind === "dataGrant"), ue = z(() => g.value?.assignmentType === "employment"), de = z(() => !!r.drawerContext), pe = z(() => (g.value && _(g.value, "title", n)) ?? l ?? n.t("platform.screen.RoleManagementView.role", "角色")), me = z(() => n.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: pe.value })), he = z(() => ve.value ? n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: ve.value.title }) : n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: pe.value })), ve = z(() => v.value.find((e) => e.moduleAlias === b.value)), L = z(() => {
3616
- let e = x.value.trim().toLocaleLowerCase(), t = new Set(e ? v.value.filter((t) => [
3615
+ let n = I(), r = e, a = t, o = p({ moduleAlias: "iam.role" }), s = r.moduleContext ?? o, c = rr(s.http), l = r.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", u = i(), d = r.roleId ? { roleId: r.roleId } : void 0, f = d ? Lr(d) : void 0, m = Y(), g = Y([]), _ = Y(), v = Y(""), b = Y([]), C = Y(), te = Y(), re = Y(!1), w = Y(!1), T = Y(!1), D = $e(), O = z(() => D.value ? Ee(D.value, n) : void 0), se = Y(), ce = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), M = Y(0), de, fe = z(() => m.value?.roleKind === "group"), pe = z(() => m.value?.roleKind === "dataGrant"), P = z(() => m.value?.assignmentType === "employment"), me = z(() => !!r.drawerContext), he = z(() => (m.value && oe(m.value, "title", n)) ?? l ?? n.t("platform.screen.RoleManagementView.role", "角色")), F = z(() => n.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: he.value })), ge = z(() => _e.value ? n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: _e.value.title }) : n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: he.value })), _e = z(() => g.value.find((e) => e.moduleAlias === _.value)), ve = z(() => {
3616
+ let e = v.value.trim().toLocaleLowerCase(), t = new Set(e ? g.value.filter((t) => [
3617
3617
  t.title,
3618
3618
  t.moduleAlias,
3619
3619
  t.applicationAlias
3620
- ].filter((e) => !!e).some((t) => t.toLocaleLowerCase().includes(e))).map((e) => e.moduleAlias) : v.value.map((e) => e.moduleAlias)), n = new Map(v.value.map((e) => [e.moduleAlias, e]));
3620
+ ].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]));
3621
3621
  for (let e of [...t]) {
3622
3622
  let r = n.get(e)?.parentId;
3623
3623
  for (; r && n.has(r) && !t.has(r);) t.add(r), r = n.get(r)?.parentId;
3624
3624
  }
3625
- return v.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
3625
+ return g.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
3626
3626
  id: e.moduleAlias,
3627
3627
  parentId: e.parentId,
3628
3628
  title: e.title,
@@ -3631,10 +3631,10 @@ var Rr = { class: "panel-title" }, zr = {
3631
3631
  }), ye = z(() => (te.value?.options ?? []).map((e) => ({
3632
3632
  value: e.code,
3633
3633
  label: e.title
3634
- }))), be = z(() => (te.value?.referenceDependencies ?? []).map((e) => ({
3634
+ }))), Se = z(() => (te.value?.referenceDependencies ?? []).map((e) => ({
3635
3635
  value: e.referenceFieldId,
3636
3636
  label: `${e.title} → ${e.targetModuleTitle}`
3637
- }))), Se = z(() => new Map((te.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), we = z(() => ue.value && S.value.some((e) => !!e.dataAuth)), Ee = z(() => [
3637
+ }))), Ce = z(() => new Map((te.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), we = z(() => P.value && b.value.some((e) => !!e.dataAuth)), L = z(() => [
3638
3638
  {
3639
3639
  key: "title",
3640
3640
  title: n.t("platform.governance.tab.actions", "动作"),
@@ -3668,84 +3668,84 @@ var Rr = { class: "panel-title" }, zr = {
3668
3668
  title: n.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
3669
3669
  width: 160
3670
3670
  }
3671
- ]), ke = z(() => S.value), Ae = z(() => w.value?.actions ?? []), je = z(() => r.drawer === !0 || !!d && u?.presentation === "drawer"), Me = z(() => !!d), Ne = z(() => Me.value && !de.value), Pe = z(() => de.value ? "div" : je.value ? wr : Me.value ? h : "div"), Fe = z(() => je.value ? {
3671
+ ]), ke = z(() => b.value), Ae = z(() => C.value?.actions ?? []), je = z(() => r.drawer === !0 || !!d && u?.presentation === "drawer"), Me = z(() => !!d), Ne = z(() => Me.value && !me.value), Pe = z(() => me.value ? "div" : je.value ? wr : Me.value ? xe : "div"), Fe = z(() => je.value ? {
3672
3672
  open: !0,
3673
- title: me.value,
3673
+ title: F.value,
3674
3674
  container: r.container ?? null,
3675
3675
  profile: ct.drawerProfile,
3676
3676
  promotion: He.value,
3677
3677
  dismissal: "guarded",
3678
3678
  beforeClose: ft,
3679
3679
  onClose: pt
3680
- } : Ne.value ? { title: me.value } : {}), Ie = z(() => {
3681
- let e = w.value;
3682
- return !e || ae.value === void 0 ? !1 : JSON.stringify(e.actions) !== ae.value;
3683
- }), Le = z(() => F.value >= 0 && [...k.entries()].some(([e, t]) => j.get(e) !== JSON.stringify(t))), K = z(() => Ie.value || Le.value);
3684
- fe(() => n.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => K.value, () => O.value);
3685
- let q = z(() => S.value.length > 0 && S.value.every((e) => e.granted)), Be = z(() => S.value.some((e) => e.granted) && !q.value), Ve = z(() => {
3686
- let e = ve.value?.title ?? n.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = S.value.filter((e) => e.granted).length, r = K.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
3680
+ } : Ne.value ? { title: F.value } : {}), Ie = z(() => {
3681
+ let e = C.value;
3682
+ return !e || se.value === void 0 ? !1 : JSON.stringify(e.actions) !== se.value;
3683
+ }), Le = z(() => M.value >= 0 && [...ce.entries()].some(([e, t]) => A.get(e) !== JSON.stringify(t))), K = z(() => Ie.value || Le.value);
3684
+ ee(() => n.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => K.value, () => T.value);
3685
+ let q = z(() => b.value.length > 0 && b.value.every((e) => e.granted)), Be = z(() => b.value.some((e) => e.granted) && !q.value), Ve = z(() => {
3686
+ let e = _e.value?.title ?? n.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = b.value.filter((e) => e.granted).length, r = K.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
3687
3687
  return n.t("platform.screen.RoleAuthorizationView.current-module-value-value-value-actions-granted-value", "当前模块:{value1} · 已授权 {value2}/{value3} 项 · {value4}", {
3688
3688
  value1: e,
3689
3689
  value2: t,
3690
- value3: S.value.length,
3690
+ value3: b.value.length,
3691
3691
  value4: r
3692
3692
  });
3693
3693
  }), He = Er({
3694
3694
  view: ct,
3695
3695
  input: () => d,
3696
- title: me,
3696
+ title: F,
3697
3697
  eligibility: () => ({
3698
- hasStableIdentity: !!(l && g.value),
3699
- busy: O.value
3698
+ hasStableIdentity: !!(l && m.value),
3699
+ busy: T.value
3700
3700
  }),
3701
3701
  beforePromote: (e) => Fr(e, {
3702
- selectedModuleAlias: b.value,
3703
- dataGrantMatrix: w.value,
3704
- actionDrafts: [...k.entries()].map(([e, t]) => ({
3702
+ selectedModuleAlias: _.value,
3703
+ dataGrantMatrix: C.value,
3704
+ actionDrafts: [...ce.entries()].map(([e, t]) => ({
3705
3705
  moduleAlias: e,
3706
3706
  actions: t
3707
3707
  })),
3708
- actionSnapshots: [...j.entries()].map(([e, t]) => ({
3708
+ actionSnapshots: [...A.entries()].map(([e, t]) => ({
3709
3709
  moduleAlias: e,
3710
3710
  snapshot: t
3711
3711
  }))
3712
3712
  }).then((e) => e === "accepted"),
3713
3713
  onPromoted: mt,
3714
- onPromotionRejected: () => Te(n.t("platform.screen.RoleAuthorizationView.the-target-tab-has-unconfirmed-permission-changes-confirm-or-close", "目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。"), {
3714
+ onPromotionRejected: () => E(n.t("platform.screen.RoleAuthorizationView.the-target-tab-has-unconfirmed-permission-changes-confirm-or-close", "目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。"), {
3715
3715
  language: n,
3716
3716
  source: "role-authorization",
3717
3717
  phase: "validation"
3718
3718
  })
3719
3719
  });
3720
3720
  qe(() => {
3721
- d && !je.value && (ce = Ir(d, ht)), Je();
3722
- }), Q(me, (e) => {
3721
+ d && !je.value && (de = Ir(d, ht)), Je();
3722
+ }), Q(F, (e) => {
3723
3723
  Me.value && u?.setTitle(e);
3724
- }, { immediate: !0 }), Q(b, () => void Ye()), Q([
3725
- pe,
3724
+ }, { immediate: !0 }), Q(_, () => void Ye()), Q([
3725
+ he,
3726
3726
  Ve,
3727
3727
  K,
3728
- O,
3729
- I,
3730
- le
3728
+ T,
3729
+ fe,
3730
+ pe
3731
3731
  ], Ge, { immediate: !0 }), qe(() => window.addEventListener("beforeunload", _t)), Ke(() => {
3732
- ce?.(), r.drawerContext?.setOperation(void 0), r.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
3732
+ de?.(), r.drawerContext?.setOperation(void 0), r.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
3733
3733
  });
3734
3734
  function Ge() {
3735
3735
  let e = r.drawerContext;
3736
3736
  if (e) {
3737
- if (e.setSubtitle(`${pe.value} · ${vt(g.value)}`), I.value) {
3737
+ if (e.setSubtitle(`${he.value} · ${vt(m.value)}`), fe.value) {
3738
3738
  e.setOperation(void 0);
3739
3739
  return;
3740
3740
  }
3741
3741
  e.setOperation({
3742
- summary: le.value ? K.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Ve.value,
3742
+ summary: pe.value ? K.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Ve.value,
3743
3743
  actions: [{
3744
3744
  key: "confirm-role-authorization",
3745
3745
  label: n.t("platform.screen.UiModal.confirmText", "确认"),
3746
3746
  emphasis: "primary",
3747
- disabled: O.value || !K.value,
3748
- loading: O.value,
3747
+ disabled: T.value || !K.value,
3748
+ loading: T.value,
3749
3749
  run: () => void dt()
3750
3750
  }]
3751
3751
  });
@@ -3753,65 +3753,65 @@ var Rr = { class: "panel-title" }, zr = {
3753
3753
  }
3754
3754
  async function Je() {
3755
3755
  if (!l) {
3756
- ne.value = new oe(_e(n, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
3756
+ D.value = new k(Te(n, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
3757
3757
  return;
3758
3758
  }
3759
- E.value = !0, ne.value = void 0;
3759
+ re.value = !0, D.value = void 0;
3760
3760
  try {
3761
- if (g.value = await s.crud.view(l), g.value.roleKind === "group") return;
3762
- if (g.value.roleKind === "dataGrant") {
3761
+ if (m.value = await s.crud.view(l), m.value.roleKind === "group") return;
3762
+ if (m.value.roleKind === "dataGrant") {
3763
3763
  let [e, t] = await Promise.all([c.dataGrantActionMatrix(l), c.dataScopePolicyCatalog(l)]);
3764
- w.value = p?.dataGrantMatrix ?? e, te.value = t, ae.value = JSON.stringify(e.actions);
3764
+ C.value = f?.dataGrantMatrix ?? e, te.value = t, se.value = JSON.stringify(e.actions);
3765
3765
  return;
3766
3766
  }
3767
- v.value = (await c.authorizationModules(l)).records, b.value = p?.selectedModuleAlias ?? v.value[0]?.moduleAlias;
3767
+ g.value = (await c.authorizationModules(l)).records, _.value = f?.selectedModuleAlias ?? g.value[0]?.moduleAlias;
3768
3768
  } catch (e) {
3769
- ne.value = new oe(_e(n, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), M(e, {
3769
+ D.value = new k(Te(n, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), j(e, {
3770
3770
  language: n,
3771
3771
  source: "role-authorization",
3772
3772
  phase: "load"
3773
3773
  });
3774
3774
  } finally {
3775
- E.value = !1;
3775
+ re.value = !1;
3776
3776
  }
3777
3777
  }
3778
3778
  async function Ye() {
3779
- let e = b.value;
3780
- if (!(!e || le.value || I.value)) {
3781
- D.value = !0;
3779
+ let e = _.value;
3780
+ if (!(!e || pe.value || fe.value)) {
3781
+ w.value = !0;
3782
3782
  try {
3783
- let [t, n] = await Promise.all([c.permissionMatrix(l, [e]), c.dataScopePolicyCatalog(l, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = p?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions, a = k.get(e) ?? i;
3784
- S.value = a ?? r, k.has(e) || (k.set(e, S.value), j.set(e, p?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), F.value += 1, te.value = n;
3783
+ let [t, n] = await Promise.all([c.permissionMatrix(l, [e]), c.dataScopePolicyCatalog(l, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = f?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions, a = ce.get(e) ?? i;
3784
+ b.value = a ?? r, ce.has(e) || (ce.set(e, b.value), A.set(e, f?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), M.value += 1, te.value = n;
3785
3785
  } catch (e) {
3786
- M(e, {
3786
+ j(e, {
3787
3787
  language: n,
3788
3788
  source: "role-authorization",
3789
3789
  phase: "load"
3790
3790
  });
3791
3791
  } finally {
3792
- D.value = !1;
3792
+ w.value = !1;
3793
3793
  }
3794
3794
  }
3795
3795
  }
3796
3796
  function Xe(e, t) {
3797
- t && e.dataAuth && ue.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, F.value += 1;
3797
+ t && e.dataAuth && P.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, M.value += 1;
3798
3798
  }
3799
3799
  function Ze(e) {
3800
- S.value.forEach((t) => Xe(t, e));
3800
+ b.value.forEach((t) => Xe(t, e));
3801
3801
  }
3802
3802
  function et(e, t) {
3803
3803
  if (e.dataScopePolicy = String(t || "none"), e.dataScopePolicy === "referenceDependency") {
3804
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, F.value += 1;
3804
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, M.value += 1;
3805
3805
  return;
3806
3806
  }
3807
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, F.value += 1;
3807
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, M.value += 1;
3808
3808
  }
3809
3809
  function tt(e, t) {
3810
- let n = Se.value.get(String(t || ""));
3811
- e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, F.value += 1;
3810
+ let n = Ce.value.get(String(t || ""));
3811
+ e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, M.value += 1;
3812
3812
  }
3813
3813
  function nt(e) {
3814
- return Se.value.get(String(e || ""));
3814
+ return Ce.value.get(String(e || ""));
3815
3815
  }
3816
3816
  function rt(e) {
3817
3817
  return typeof e == "string" || typeof e == "number" ? e : void 0;
@@ -3820,82 +3820,82 @@ var Rr = { class: "panel-title" }, zr = {
3820
3820
  return e.dataScopePolicy ?? "inheritDataGrant";
3821
3821
  }
3822
3822
  function at(e) {
3823
- return !!e.dataAuth && ue.value;
3823
+ return !!e.dataAuth && P.value;
3824
3824
  }
3825
3825
  function ot(e, t) {
3826
3826
  return e.key === "dataScopePolicy" && at(t);
3827
3827
  }
3828
3828
  function st(e) {
3829
- return ue.value && e.dataAuth && e.dataScopePolicy === "none" ? {
3829
+ return P.value && e.dataAuth && e.dataScopePolicy === "none" ? {
3830
3830
  ...e,
3831
3831
  dataScopePolicy: "inheritDataGrant"
3832
3832
  } : e;
3833
3833
  }
3834
3834
  async function lt() {
3835
- if (w.value) {
3836
- O.value = !0;
3835
+ if (C.value) {
3836
+ T.value = !0;
3837
3837
  try {
3838
- let e = await c.replaceDataGrantActions(l, w.value.actions.map((e) => ({
3838
+ let e = await c.replaceDataGrantActions(l, C.value.actions.map((e) => ({
3839
3839
  actionCode: e.actionCode,
3840
3840
  dataScopePolicy: e.dataScopePolicy,
3841
3841
  enabled: e.configured
3842
3842
  })));
3843
- await se(e, {
3843
+ await De(e, {
3844
3844
  language: n,
3845
3845
  source: "role-authorization",
3846
3846
  phase: "action",
3847
3847
  fallbackMessage: n.t("platform.screen.RoleAuthorizationView.data-permission-template-saved", "数据权限模板已保存")
3848
- }), ae.value = JSON.stringify(w.value.actions);
3848
+ }), se.value = JSON.stringify(C.value.actions);
3849
3849
  } catch (e) {
3850
- M(e, {
3850
+ j(e, {
3851
3851
  language: n,
3852
3852
  source: "role-authorization",
3853
3853
  phase: "action"
3854
3854
  });
3855
3855
  } finally {
3856
- O.value = !1;
3856
+ T.value = !1;
3857
3857
  }
3858
3858
  }
3859
3859
  }
3860
3860
  async function ut() {
3861
- let e = [...k.entries()].filter(([e, t]) => j.get(e) !== JSON.stringify(t));
3861
+ let e = [...ce.entries()].filter(([e, t]) => A.get(e) !== JSON.stringify(t));
3862
3862
  if (e.length) {
3863
- O.value = !0;
3863
+ T.value = !0;
3864
3864
  try {
3865
3865
  let t = await c.replacePermissionMatrix(l, e.flatMap(([e, t]) => t.map((t) => ({
3866
3866
  moduleAlias: e,
3867
3867
  actionCode: t.actionCode,
3868
3868
  granted: !!t.granted,
3869
- dataScopePolicy: t.granted && t.dataAuth && ue.value ? t.dataScopePolicy ?? "inheritDataGrant" : void 0,
3869
+ dataScopePolicy: t.granted && t.dataAuth && P.value ? t.dataScopePolicy ?? "inheritDataGrant" : void 0,
3870
3870
  referenceFieldId: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceFieldId : void 0,
3871
3871
  referenceActionCode: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceActionCode : void 0
3872
3872
  }))));
3873
- await se(t, {
3873
+ await De(t, {
3874
3874
  language: n,
3875
3875
  source: "role-authorization",
3876
3876
  phase: "action",
3877
3877
  fallbackMessage: n.t("platform.screen.RoleAuthorizationView.role-permissions-saved", "角色授权已保存")
3878
- }), e.forEach(([e, t]) => j.set(e, JSON.stringify(t))), F.value += 1;
3878
+ }), e.forEach(([e, t]) => A.set(e, JSON.stringify(t))), M.value += 1;
3879
3879
  } catch (e) {
3880
- M(e, {
3880
+ j(e, {
3881
3881
  language: n,
3882
3882
  source: "role-authorization",
3883
3883
  phase: "action"
3884
3884
  });
3885
3885
  } finally {
3886
- O.value = !1;
3886
+ T.value = !1;
3887
3887
  }
3888
3888
  }
3889
3889
  }
3890
3890
  async function dt() {
3891
- if (le.value) {
3891
+ if (pe.value) {
3892
3892
  await lt();
3893
3893
  return;
3894
3894
  }
3895
3895
  await ut();
3896
3896
  }
3897
3897
  async function ft() {
3898
- return !K.value || f({
3898
+ return !K.value || ie({
3899
3899
  title: n.t("platform.screen.RoleAuthorizationView.discard-unconfirmed-permission-changes", "放弃未确认的授权配置"),
3900
3900
  content: n.t("platform.screen.RoleAuthorizationView.these-changes-have-not-been-confirmed-and-will-be-lost", "当前修改尚未确认,关闭后将丢失这些修改。"),
3901
3901
  okText: n.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
@@ -3909,7 +3909,7 @@ var Rr = { class: "panel-title" }, zr = {
3909
3909
  gt();
3910
3910
  }
3911
3911
  function ht(e) {
3912
- return !K.value && (b.value = e.selectedModuleAlias, w.value = e.dataGrantMatrix, k.clear(), j.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => k.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => j.set(e, t)), F.value += 1, !0);
3912
+ return !K.value && (_.value = e.selectedModuleAlias, C.value = e.dataGrantMatrix, ce.clear(), A.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => ce.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => A.set(e, t)), M.value += 1, !0);
3913
3913
  }
3914
3914
  function gt() {
3915
3915
  if (r.drawer === !0) {
@@ -3925,53 +3925,53 @@ var Rr = { class: "panel-title" }, zr = {
3925
3925
  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", "租户范围");
3926
3926
  }
3927
3927
  return (e, t) => (J(), B(Qe(Pe.value), We(ze(Fe.value)), Re({
3928
- default: $(() => [U("section", { class: Ue(["role-authorization-page", { "role-authorization-page--drawer": je.value || de.value }]) }, [E.value ? (J(), B(Z(C), {
3928
+ default: $(() => [U("section", { class: Ue(["role-authorization-page", { "role-authorization-page--drawer": je.value || me.value }]) }, [re.value ? (J(), B(Z(ne), {
3929
3929
  key: 0,
3930
3930
  tip: Z(n).t("platform.screen.RoleAuthorizationView.loading-permissions", "加载授权信息")
3931
- }, null, 8, ["tip"])) : ie.value ? (J(), B(Z(ee), {
3931
+ }, null, 8, ["tip"])) : O.value ? (J(), B(Z(x), {
3932
3932
  key: 1,
3933
3933
  title: Z(n).t("platform.screen.RoleAuthorizationView.failed-to-load-the-permissions-page", "授权页加载失败"),
3934
- message: ie.value
3935
- }, null, 8, ["title", "message"])) : I.value ? (J(), B(Z(De), {
3934
+ message: O.value
3935
+ }, null, 8, ["title", "message"])) : fe.value ? (J(), B(Z(ae), {
3936
3936
  key: 2,
3937
3937
  title: Z(n).t("platform.screen.RoleAuthorizationView.role-groups-do-not-have-separate-permissions", "角色组不独立授权"),
3938
3938
  description: Z(n).t("platform.screen.RoleAuthorizationView.role-groups-combine-their-member-roles-configure-action-and-data", "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。")
3939
- }, null, 8, ["title", "description"])) : le.value && w.value ? (J(), B(Z(xe), {
3939
+ }, null, 8, ["title", "description"])) : pe.value && C.value ? (J(), B(Z(le), {
3940
3940
  key: 3,
3941
3941
  class: "data-grant-content",
3942
- title: Ne.value ? Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template", "数据权限模板") : Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template-value", "数据权限模板 - {value1}", { value1: pe.value }),
3942
+ title: Ne.value ? Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template", "数据权限模板") : Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template-value", "数据权限模板 - {value1}", { value1: he.value }),
3943
3943
  searchable: !1,
3944
3944
  onRefresh: Je
3945
3945
  }, {
3946
- default: $(() => [U("header", Rr, [U("div", null, [U("h3", null, X(Z(n).t("platform.screen.RoleAuthorizationView.data-scope-templates-for-standard-actions", "标准动作的数据范围模板")), 1), U("p", null, X(Z(n).t("platform.screen.RoleAuthorizationView.a-template-takes-effect-only-when-a-standard-role-action", "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")), 1)]), Me.value ? V("v-if", !0) : (J(), B(Z(P), {
3946
+ default: $(() => [U("header", Rr, [U("div", null, [U("h3", null, X(Z(n).t("platform.screen.RoleAuthorizationView.data-scope-templates-for-standard-actions", "标准动作的数据范围模板")), 1), U("p", null, X(Z(n).t("platform.screen.RoleAuthorizationView.a-template-takes-effect-only-when-a-standard-role-action", "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")), 1)]), Me.value ? V("v-if", !0) : (J(), B(Z(N), {
3947
3947
  key: 0,
3948
3948
  type: "primary",
3949
3949
  disabled: !K.value,
3950
- loading: O.value,
3950
+ loading: T.value,
3951
3951
  onClick: dt
3952
3952
  }, {
3953
3953
  default: $(() => [W(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3954
3954
  _: 1
3955
- }, 8, ["disabled", "loading"]))]), G(Z(T), {
3955
+ }, 8, ["disabled", "loading"]))]), G(Z(y), {
3956
3956
  columns: Oe.value,
3957
3957
  rows: Ae.value,
3958
3958
  "row-key": "actionCode",
3959
3959
  "horizontal-scroll": ""
3960
3960
  }, {
3961
- cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), H(R, { key: 0 }, [U("strong", null, X(t.title || t.actionCode), 1), U("small", null, X(t.actionCode), 1)], 64)) : e.key === "configured" ? (J(), B(Z(re), {
3961
+ cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), H(R, { key: 0 }, [U("strong", null, X(t.title || t.actionCode), 1), U("small", null, X(t.actionCode), 1)], 64)) : e.key === "configured" ? (J(), B(Z(S), {
3962
3962
  key: 1,
3963
3963
  checked: !!t.configured,
3964
- disabled: O.value,
3964
+ disabled: T.value,
3965
3965
  onChange: (e) => t.configured = e
3966
3966
  }, null, 8, [
3967
3967
  "checked",
3968
3968
  "disabled",
3969
3969
  "onChange"
3970
- ])) : (J(), B(Z(Ce), {
3970
+ ])) : (J(), B(Z(ue), {
3971
3971
  key: 2,
3972
3972
  value: t.dataScopePolicy,
3973
3973
  options: ye.value,
3974
- disabled: !t.configured || O.value,
3974
+ disabled: !t.configured || T.value,
3975
3975
  placeholder: Z(n).t("platform.screen.RoleAuthorizationView.select-a-data-scope", "请选择数据范围"),
3976
3976
  "allow-clear": !1,
3977
3977
  "onUpdate:value": (e) => t.dataScopePolicy = String(e || "")
@@ -3988,19 +3988,19 @@ var Rr = { class: "panel-title" }, zr = {
3988
3988
  }, 8, ["title"])) : (J(), H("section", {
3989
3989
  key: 4,
3990
3990
  class: Ue(["authorization-layout", { "authorization-layout--compact-actions": !we.value }])
3991
- }, [G(Z(xe), {
3992
- "search-keyword": x.value,
3993
- "onUpdate:searchKeyword": t[1] ||= (e) => x.value = e,
3991
+ }, [G(Z(le), {
3992
+ "search-keyword": v.value,
3993
+ "onUpdate:searchKeyword": t[1] ||= (e) => v.value = e,
3994
3994
  class: "module-panel",
3995
3995
  title: Z(n).t("platform.screen.RoleAuthorizationView.module-tree", "模块树"),
3996
3996
  "refresh-title": Z(n).t("platform.screen.RoleAuthorizationView.refresh-module-directory", "刷新模块目录"),
3997
3997
  "search-placeholder": Z(n).t("platform.screen.RoleAuthorizationView.search-module-names-or-aliases", "搜索模块名称或别名"),
3998
3998
  onRefresh: Je
3999
3999
  }, {
4000
- default: $(() => [G(Z(m), {
4001
- records: L.value,
4002
- "selected-id": b.value,
4003
- onSelect: t[0] ||= (e) => b.value = e.id
4000
+ default: $(() => [G(Z(h), {
4001
+ records: ve.value,
4002
+ "selected-id": _.value,
4003
+ onSelect: t[0] ||= (e) => _.value = e.id
4004
4004
  }, null, 8, ["records", "selected-id"])]),
4005
4005
  _: 1
4006
4006
  }, 8, [
@@ -4008,26 +4008,26 @@ var Rr = { class: "panel-title" }, zr = {
4008
4008
  "title",
4009
4009
  "refresh-title",
4010
4010
  "search-placeholder"
4011
- ]), G(Z(xe), {
4011
+ ]), G(Z(le), {
4012
4012
  class: "action-panel",
4013
- title: he.value,
4013
+ title: ge.value,
4014
4014
  searchable: !1
4015
4015
  }, Re({
4016
- default: $(() => [D.value ? (J(), B(Z(C), {
4016
+ default: $(() => [w.value ? (J(), B(Z(ne), {
4017
4017
  key: 0,
4018
4018
  tip: Z(n).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作")
4019
- }, null, 8, ["tip"])) : b.value ? (J(), B(Z(T), {
4019
+ }, null, 8, ["tip"])) : _.value ? (J(), B(Z(y), {
4020
4020
  key: 2,
4021
- columns: Ee.value,
4021
+ columns: L.value,
4022
4022
  rows: ke.value,
4023
4023
  "row-key": "actionCode",
4024
4024
  "fill-height": "",
4025
4025
  "horizontal-scroll": ""
4026
4026
  }, {
4027
- header: $(({ column: e }) => [e.key === "granted" ? (J(), H("span", zr, [G(Z(N), {
4027
+ header: $(({ column: e }) => [e.key === "granted" ? (J(), H("span", zr, [G(Z(be), {
4028
4028
  checked: q.value,
4029
4029
  indeterminate: Be.value,
4030
- disabled: O.value || !S.value.length,
4030
+ disabled: T.value || !b.value.length,
4031
4031
  "aria-label": Z(n).t("platform.screen.RoleAuthorizationView.grant-all-actions-in-the-current-module", "全选当前模块动作授权"),
4032
4032
  onChange: Ze
4033
4033
  }, null, 8, [
@@ -4036,19 +4036,19 @@ var Rr = { class: "panel-title" }, zr = {
4036
4036
  "disabled",
4037
4037
  "aria-label"
4038
4038
  ]), W(" " + X(Z(n).t("platform.page-action.MANAGE_PERMISSIONS.title", "授权")), 1)])) : (J(), H(R, { key: 1 }, [W(X(e.title), 1)], 64))]),
4039
- cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), H(R, { key: 0 }, [U("strong", null, X(t.title || t.actionCode), 1), U("small", null, X(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (J(), B(Z(N), {
4039
+ cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), H(R, { key: 0 }, [U("strong", null, X(t.title || t.actionCode), 1), U("small", null, X(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (J(), B(Z(be), {
4040
4040
  key: 1,
4041
4041
  checked: !!t.granted,
4042
- disabled: O.value,
4042
+ disabled: T.value,
4043
4043
  onChange: (e) => Xe(t, e)
4044
4044
  }, null, 8, [
4045
4045
  "checked",
4046
4046
  "disabled",
4047
4047
  "onChange"
4048
- ])) : t.dataAuth && ue.value && t.granted ? (J(), H("div", Br, [G(Z(Ce), {
4048
+ ])) : t.dataAuth && P.value && t.granted ? (J(), H("div", Br, [G(Z(ue), {
4049
4049
  value: it(t),
4050
4050
  options: ye.value,
4051
- disabled: O.value,
4051
+ disabled: T.value,
4052
4052
  "allow-clear": !1,
4053
4053
  "onUpdate:value": (e) => et(t, e)
4054
4054
  }, null, 8, [
@@ -4056,10 +4056,10 @@ var Rr = { class: "panel-title" }, zr = {
4056
4056
  "options",
4057
4057
  "disabled",
4058
4058
  "onUpdate:value"
4059
- ]), t.dataScopePolicy === "referenceDependency" ? (J(), H(R, { key: 0 }, [G(Z(Ce), {
4059
+ ]), t.dataScopePolicy === "referenceDependency" ? (J(), H(R, { key: 0 }, [G(Z(ue), {
4060
4060
  value: rt(t.referenceFieldId),
4061
- options: be.value,
4062
- disabled: O.value,
4061
+ options: Se.value,
4062
+ disabled: T.value,
4063
4063
  placeholder: Z(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field", "请选择引用字段"),
4064
4064
  "allow-clear": !1,
4065
4065
  "onUpdate:value": (e) => tt(t, e)
@@ -4071,17 +4071,17 @@ var Rr = { class: "panel-title" }, zr = {
4071
4071
  "onUpdate:value"
4072
4072
  ]), t.referenceFieldId ? (J(), H("small", Vr, X(Z(n).t("platform.screen.RoleAuthorizationView.dependency-target", "依赖目标:")) + X(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + X(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (J(), H("small", Hr, X(Z(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field-before-granting-this-action", "请先选择引用字段,再开启该动作授权。")), 1))], 64)) : V("v-if", !0)])) : ot(e, t) ? (J(), H("span", Ur, "—")) : (J(), H("span", Wr, X(Z(n).t("platform.screen.RoleAuthorizationView.not-applicable", "不适用")), 1))]),
4073
4073
  _: 1
4074
- }, 8, ["columns", "rows"])) : (J(), B(Z(De), {
4074
+ }, 8, ["columns", "rows"])) : (J(), B(Z(ae), {
4075
4075
  key: 1,
4076
4076
  title: Z(n).t("platform.screen.useModulePageSession.select-a-module", "请选择模块")
4077
4077
  }, null, 8, ["title"]))]),
4078
4078
  _: 2
4079
4079
  }, [Me.value ? void 0 : {
4080
4080
  name: "actions",
4081
- fn: $(() => [G(Z(P), {
4081
+ fn: $(() => [G(Z(N), {
4082
4082
  type: "primary",
4083
4083
  disabled: !K.value,
4084
- loading: O.value,
4084
+ loading: T.value,
4085
4085
  onClick: dt
4086
4086
  }, {
4087
4087
  default: $(() => [W(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
@@ -4090,12 +4090,12 @@ var Rr = { class: "panel-title" }, zr = {
4090
4090
  key: "0"
4091
4091
  }]), 1032, ["title"])], 2))], 2)]),
4092
4092
  _: 2
4093
- }, [Ne.value && !I.value ? {
4093
+ }, [Ne.value && !fe.value ? {
4094
4094
  name: "operation",
4095
- fn: $(() => [G(Z(P), {
4095
+ fn: $(() => [G(Z(N), {
4096
4096
  type: "primary",
4097
4097
  disabled: !K.value,
4098
- loading: O.value,
4098
+ loading: T.value,
4099
4099
  onClick: dt
4100
4100
  }, {
4101
4101
  default: $(() => [W(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
@@ -4157,7 +4157,7 @@ var Rr = { class: "panel-title" }, zr = {
4157
4157
  __name: "RoleGroupMemberFormField",
4158
4158
  props: { context: {} },
4159
4159
  setup(e) {
4160
- let t = A(), n = e, r = Y([]), i = Y(!1), a = z(() => n.context.draft.roleKind === "group"), o = z(() => f(n.context.draft.memberRoleIds)), s = z(() => String(n.context.draft.id ?? "") || void 0), c = z(() => new Set(r.value.filter((e) => e.roleKind === "dataGrant" && e.id && o.value.includes(e.id)).map((e) => e.id))), l = z(() => r.value.filter((e) => e.id && e.id !== s.value).map((e) => ({
4160
+ let t = I(), n = e, r = Y([]), i = Y(!1), a = z(() => n.context.draft.roleKind === "group"), o = z(() => f(n.context.draft.memberRoleIds)), s = z(() => String(n.context.draft.id ?? "") || void 0), c = z(() => new Set(r.value.filter((e) => e.roleKind === "dataGrant" && e.id && o.value.includes(e.id)).map((e) => e.id))), l = z(() => r.value.filter((e) => e.id && e.id !== s.value).map((e) => ({
4161
4161
  label: `${e.title ?? e.id} / ${e.roleKind === "dataGrant" ? t.t("platform.screen.RoleManagementView.data-authorization-role", "数据授权角色") : t.t("platform.screen.RoleManagementView.standard-role", "标准角色")}`,
4162
4162
  value: e.id,
4163
4163
  disabled: e.roleKind === "dataGrant" && c.value.size > 0 && !o.value.includes(e.id)
@@ -4216,7 +4216,7 @@ var Rr = { class: "panel-title" }, zr = {
4216
4216
  function f(e) {
4217
4217
  return typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : [];
4218
4218
  }
4219
- return (n, r) => a.value ? (J(), H("label", Xr, [U("span", null, X(Z(t).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), G(Z(Ce), {
4219
+ return (n, r) => a.value ? (J(), H("label", Xr, [U("span", null, X(Z(t).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), G(Z(ue), {
4220
4220
  mode: "multiple",
4221
4221
  value: o.value,
4222
4222
  options: l.value,
@@ -4302,7 +4302,7 @@ var Rr = { class: "panel-title" }, zr = {
4302
4302
  }
4303
4303
  ]
4304
4304
  };
4305
- o("platform-admin-runtime", lt), l("platform-admin-runtime", [
4305
+ c("platform-admin-runtime", lt), l("platform-admin-runtime", [
4306
4306
  qt,
4307
4307
  Jt,
4308
4308
  Yt,