@ximatai/muyun-web-app 0.26.8 → 0.26.10

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 (182) hide show
  1. package/dist/{MetadataOrchestrationView-DKYVGMzy.js → MetadataOrchestrationView-BhtVwJII.js} +210 -204
  2. package/dist/{ModuleActionManagementView-DiVzuPdu.js → ModuleActionManagementView-DpZS-xAD.js} +74 -74
  3. package/dist/{RoleAuthorizationView-C0s4Bog7.js → RoleAuthorizationView-8lilhtMB.js} +193 -139
  4. package/dist/{RoleDetailWorkspaceView-dqHxKVfd.js → RoleDetailWorkspaceView-CFha6JHn.js} +1 -1
  5. package/dist/{RoleManagementView-D43pUCxi.js → RoleManagementView-0_KDrzgh.js} +572 -550
  6. package/dist/index.css +1 -1
  7. package/dist/index.js +536 -4427
  8. package/dist/{platform-components-CFU_zR7-.js → platform-components-oRIsIoxu.js} +5154 -3608
  9. package/dist/types/App.vue.d.ts +1 -0
  10. package/dist/types/app/StaticRoutePageHost.vue.d.ts +13 -0
  11. package/dist/types/app/loginTenant.d.ts +1 -1
  12. package/dist/types/app/menuRouteCompiler.d.ts +45 -0
  13. package/dist/types/app/menuRouteRuntime.d.ts +24 -0
  14. package/dist/types/app/pageRouteContext.d.ts +24 -0
  15. package/dist/types/app/routeDiagnosticsStore.d.ts +10 -0
  16. package/dist/types/app/router.d.ts +15 -0
  17. package/dist/types/app/staticRouteDefinitions.d.ts +25 -0
  18. package/dist/types/app/workbenchRouteSync.d.ts +1 -1
  19. package/dist/types/app/workbenchStartup.d.ts +3 -3
  20. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
  21. package/dist/types/consumer/index.d.ts +5 -3
  22. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +3 -10
  23. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +4 -3
  24. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +42 -0
  25. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +15 -0
  26. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +28 -0
  27. package/dist/types/dynamic-page-runtime/ModulePageFormContributionRenderer.vue.d.ts +12 -0
  28. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +14 -0
  29. package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +20 -0
  30. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +14 -0
  31. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +17 -0
  32. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +44 -0
  33. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +41 -0
  34. package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +20 -1
  35. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +17 -5
  36. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +31 -0
  37. package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +30 -0
  38. package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +13 -0
  39. package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +17 -0
  40. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +48 -0
  41. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +28 -0
  42. package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +22 -0
  43. package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +41 -0
  44. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1378 -0
  45. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +23 -0
  46. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +5 -12
  47. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +18 -0
  48. package/dist/types/dynamic-page-runtime/index.d.ts +4 -2
  49. package/dist/types/dynamic-page-runtime/listPageSizePreference.d.ts +10 -0
  50. package/dist/types/dynamic-page-runtime/moduleDetailStateModel.d.ts +12 -0
  51. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +215 -9
  52. package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
  53. package/dist/types/dynamic-page-runtime/navigatorVisibility.d.ts +6 -0
  54. package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +10 -2
  55. package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
  56. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +12 -3
  57. package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +9 -0
  58. package/dist/types/formula/FormulaRuntime.d.ts +29 -0
  59. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -0
  60. package/dist/types/{views/SystemUserManagementView.vue.d.ts → platform-admin-runtime/employee/EmployeeAccountDrawer.vue.d.ts} +2 -2
  61. package/dist/types/platform-admin-runtime/employeeModulePageEnhancement.d.ts +3 -0
  62. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  63. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -0
  64. package/dist/types/platform-admin-runtime/passwordPolicyPageEnhancement.d.ts +6 -0
  65. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -6
  66. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +15 -0
  67. package/dist/types/{views/EmployeeManagementView.vue.d.ts → platform-admin-runtime/tenant/TenantApplicationConfigurationDrawer.vue.d.ts} +2 -2
  68. package/dist/types/platform-admin-runtime/tenant/TenantApplicationsDetailSection.vue.d.ts +7 -0
  69. package/dist/types/platform-admin-runtime/tenantModulePageEnhancement.d.ts +7 -0
  70. package/dist/types/platform-admin-runtime/user/UserOnlineStatusCell.vue.d.ts +8 -0
  71. package/dist/types/platform-admin-runtime/user/UserPasswordDrawer.vue.d.ts +7 -0
  72. package/dist/types/platform-admin-runtime/user/UserSessionListExpansion.vue.d.ts +7 -0
  73. package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +23 -0
  74. package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +11 -0
  75. package/dist/types/platform-admin-runtime/userModulePageEnhancement.d.ts +7 -0
  76. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -2
  77. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +13 -0
  78. package/dist/types/{views/SystemUserDetailWorkspaceView.vue.d.ts → platform-components/DrawerTitleActions.vue.d.ts} +2 -2
  79. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +7 -0
  80. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
  81. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +5 -2
  82. package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +17 -0
  83. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +5 -0
  84. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +8 -3
  85. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +5 -0
  86. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +11 -3
  87. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +14 -6
  88. package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +3 -0
  89. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
  90. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +4 -0
  91. package/dist/types/platform-components/RecordFormFields.vue.d.ts +29 -1
  92. package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +11 -0
  93. package/dist/types/platform-components/RecordListExpansionSurface.vue.d.ts +13 -0
  94. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +4 -2
  95. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
  96. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +12 -2
  97. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
  98. package/dist/types/platform-components/RecordPicker.vue.d.ts +12 -2
  99. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +39 -5
  100. package/dist/types/{views/EmployeeEmploymentDrawer.vue.d.ts → platform-components/RecordRelationTabs.vue.d.ts} +7 -7
  101. package/dist/types/platform-components/RecordSelectionCheckbox.vue.d.ts +13 -0
  102. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
  103. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +12 -4
  104. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +8 -2
  105. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +2 -0
  106. package/dist/types/platform-components/drawerTitleActions.d.ts +11 -0
  107. package/dist/types/platform-components/index.d.ts +11 -5
  108. package/dist/types/platform-components/optionFieldOptionCache.d.ts +3 -0
  109. package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
  110. package/dist/types/platform-components/recordFormFieldModel.d.ts +82 -5
  111. package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -0
  112. package/dist/types/platform-components/recordPickerModel.d.ts +6 -2
  113. package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
  114. package/dist/types/platform-workbench/index.d.ts +3 -2
  115. package/dist/types/platform-workbench/legacyPageHostTypeCompatibility.d.ts +6 -0
  116. package/dist/types/platform-workbench/menuNavigation.d.ts +24 -2
  117. package/dist/types/platform-workbench/pageCacheKey.d.ts +2 -0
  118. package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
  119. package/dist/types/platform-workbench/workbenchNavigation.d.ts +14 -1
  120. package/dist/types/views/PasswordPolicyPreview.vue.d.ts +7 -0
  121. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +1 -0
  122. package/dist/types/views/RoleAuthorizationView.vue.d.ts +2 -0
  123. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +1 -0
  124. package/dist/types/views/{EmployeeDetailWorkspaceView.vue.d.ts → UserDetailRouteView.vue.d.ts} +3 -1
  125. package/dist/types/views/UserManagementView.vue.d.ts +1 -6
  126. package/dist/types/views/userDetailStateModel.d.ts +1 -3
  127. package/dist/types/views/userManagementRouteState.d.ts +11 -0
  128. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +3 -0
  129. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  130. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -1
  131. package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +18 -0
  132. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
  133. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +4 -2
  134. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
  135. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +4 -2
  136. package/dist/types/vue-ui-antdv/index.d.ts +4 -2
  137. package/dist/types/web-contracts/index.d.ts +375 -14
  138. package/dist/types/web-core/businessNotifications.d.ts +3 -2
  139. package/dist/types/web-core/http.d.ts +6 -0
  140. package/dist/types/web-core/index.d.ts +1 -0
  141. package/dist/types/web-core/module/abilities.d.ts +7 -7
  142. package/dist/types/web-core/module/index.d.ts +1 -1
  143. package/dist/types/web-core/module/moduleContext.d.ts +6 -3
  144. package/dist/types/web-core/module/runtimeContext.d.ts +2 -0
  145. package/dist/types/web-core/module/staticModuleClient.d.ts +42 -10
  146. package/dist/types/web-core/realtime.d.ts +8 -0
  147. package/dist/types/web-core/referenceResolveClient.d.ts +11 -0
  148. package/dist/workspaceViews-D-RiJ64o.js +9078 -0
  149. package/package.json +1 -1
  150. package/dist/EmployeeDetailWorkspaceView-DswEDSxH.js +0 -14
  151. package/dist/EmployeeManagementView-C9STtw08.js +0 -1777
  152. package/dist/SystemUserDetailWorkspaceView-CQ9WeLrR.js +0 -17
  153. package/dist/SystemUserManagementView-D75_ylYk.js +0 -758
  154. package/dist/UserDetailWorkspaceView-BCST01d2.js +0 -17
  155. package/dist/UserManagementView-CcdvDo_y.js +0 -964
  156. package/dist/pageRealtime-EAiGWKEo.js +0 -227
  157. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
  158. package/dist/types/views/EmployeeDetailContent.vue.d.ts +0 -64
  159. package/dist/types/views/UserDetailWorkspaceView.vue.d.ts +0 -7
  160. package/dist/types/views/dictionaryManagementState.d.ts +0 -215
  161. package/dist/types/views/employeeDetailStateModel.d.ts +0 -39
  162. package/dist/types/views/employeeDetailWorkspaceSession.d.ts +0 -16
  163. package/dist/types/views/employeeDetailWorkspaceView.d.ts +0 -4
  164. package/dist/types/views/fieldUiControlManagementState.d.ts +0 -76
  165. package/dist/types/views/menuManagementState.d.ts +0 -178
  166. package/dist/types/views/moduleManagementState.d.ts +0 -76
  167. package/dist/types/views/positionManagementState.d.ts +0 -218
  168. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
  169. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
  170. package/dist/types/views/tenantManagementState.d.ts +0 -74
  171. package/dist/types/views/useEmployeeEmploymentRows.d.ts +0 -20
  172. package/dist/types/views/userDetailWorkspaceSession.d.ts +0 -14
  173. package/dist/types/views/userDetailWorkspaceView.d.ts +0 -4
  174. package/dist/useUserSessionRows-DCpUZCzN.js +0 -128
  175. package/dist/workspaceViewSessions-Dj1LjdG1.js +0 -4984
  176. /package/dist/types/views/{DictionaryManagementView.vue.d.ts → DynamicModuleRouteView.vue.d.ts} +0 -0
  177. /package/dist/types/views/{FieldUiControlManagementView.vue.d.ts → ExternalRouteView.vue.d.ts} +0 -0
  178. /package/dist/types/views/{MenuManagementView.vue.d.ts → ModuleOpenApiRouteView.vue.d.ts} +0 -0
  179. /package/dist/types/views/{ModuleManagementView.vue.d.ts → OpenApiCatalogRouteView.vue.d.ts} +0 -0
  180. /package/dist/types/views/{PasswordManagementView.vue.d.ts → RouteDiagnosticsView.vue.d.ts} +0 -0
  181. /package/dist/types/views/{PositionManagementView.vue.d.ts → UserManagementListView.vue.d.ts} +0 -0
  182. /package/dist/types/views/{TenantManagementView.vue.d.ts → WorkspaceRouteView.vue.d.ts} +0 -0
@@ -1,8 +1,72 @@
1
- import { At as e, F as t, Ft as n, Nt as r, Vt as i, Z as a, _t as ee, ct as te, dt as ne, gt as re, it as ie, jt as ae, k as oe, nt as o, p as se, tr as s, ut as ce, w as c, xt as le } from "./platform-components-CFU_zR7-.js";
2
- import { S as ue, i as de, n as fe, r as l, s as u, t as d } from "./workspaceViewSessions-Dj1LjdG1.js";
3
- import { Fragment as f, computed as p, createBlock as m, createCommentVNode as pe, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, defineComponent as b, guardReactiveProps as me, normalizeClass as he, normalizeProps as ge, onBeforeUnmount as _e, onMounted as ve, openBlock as x, ref as S, renderSlot as C, resolveDynamicComponent as ye, toDisplayString as w, unref as T, watch as be, withCtx as E } from "vue";
4
- //#region src/views/roleGrantClient.ts
1
+ import { It as e, Mt as t, Nt as n, Rt as r, St as i, T as a, V as ee, Wt as te, _t as ne, at as o, dr as s, ft as re, it as ie, pt as ae, st as oe, u as se, ut as ce, v as c, vt as le } from "./platform-components-oRIsIoxu.js";
2
+ import { A as ue, N as de, v as l, w as u } from "./workspaceViews-D-RiJ64o.js";
3
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as fe, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as pe, normalizeClass as me, normalizeProps as he, onBeforeUnmount as ge, onMounted as _e, openBlock as b, ref as x, renderSlot as S, resolveDynamicComponent as ve, toDisplayString as C, toValue as w, unref as T, watch as ye, withCtx as E } from "vue";
4
+ //#endregion
5
+ //#region src/platform-admin-runtime/WorkspaceViewDrawer.vue
6
+ var be = /* @__PURE__ */ y({
7
+ name: "WorkspaceViewDrawer",
8
+ __name: "WorkspaceViewDrawer",
9
+ props: {
10
+ open: { type: Boolean },
11
+ title: {},
12
+ container: {},
13
+ subtitle: { default: void 0 },
14
+ profile: { default: "detail" },
15
+ promotion: { default: void 0 }
16
+ },
17
+ emits: ["close"],
18
+ setup(e, { emit: t }) {
19
+ let n = e, r = t, i = f(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
20
+ return (t, n) => (b(), p(T(ee), {
21
+ open: e.open,
22
+ title: e.title,
23
+ "render-mode": e.container ? "inline" : "portal",
24
+ subtitle: e.subtitle,
25
+ width: i.value,
26
+ promotion: e.promotion,
27
+ onClose: n[0] ||= (e) => r("close")
28
+ }, g({
29
+ default: E(() => [S(t.$slots, "default")]),
30
+ _: 2
31
+ }, [t.$slots.operation ? {
32
+ name: "operation",
33
+ fn: E(() => [S(t.$slots, "operation")]),
34
+ key: "0"
35
+ } : void 0]), 1032, [
36
+ "open",
37
+ "title",
38
+ "render-mode",
39
+ "subtitle",
40
+ "width",
41
+ "promotion"
42
+ ]));
43
+ }
44
+ });
45
+ //#endregion
46
+ //#region src/platform-admin-runtime/useWorkspaceViewPromotion.ts
47
+ function D(e) {
48
+ return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
49
+ }
5
50
  function xe(e) {
51
+ let t = de();
52
+ return f(() => {
53
+ let n = w(e.input);
54
+ if (!(!n || !D(w(e.eligibility)) || !t)) return {
55
+ title: "固定为页签",
56
+ promote: async () => {
57
+ if (await e.beforePromote?.(n) === !1) {
58
+ e.onPromotionRejected?.();
59
+ return;
60
+ }
61
+ let r = t.openPage(u(e.view, n, "tab", w(e.title)));
62
+ e.onPromoted?.(r);
63
+ }
64
+ };
65
+ });
66
+ }
67
+ //#endregion
68
+ //#region src/views/roleGrantClient.ts
69
+ function Se(e) {
6
70
  return {
7
71
  accountRoleGrants(t) {
8
72
  return e.request({ path: `/iam.role/${encodeURIComponent(t)}/account-grants` });
@@ -103,53 +167,41 @@ function xe(e) {
103
167
  };
104
168
  }
105
169
  //#endregion
106
- //#region src/platform-admin-runtime/WorkspaceViewDrawer.vue
107
- var Se = /* @__PURE__ */ b({
108
- name: "WorkspaceViewDrawer",
109
- __name: "WorkspaceViewDrawer",
110
- props: {
111
- open: { type: Boolean },
112
- title: {},
113
- subtitle: { default: void 0 },
114
- profile: { default: "detail" },
115
- promotion: { default: void 0 }
116
- },
117
- emits: ["close"],
118
- setup(e, { emit: n }) {
119
- let r = e, i = n, a = p(() => r.profile === "wide-work" ? "min(600px, 100vw)" : 520);
120
- return (n, r) => (x(), m(T(t), {
121
- open: e.open,
122
- title: e.title,
123
- subtitle: e.subtitle,
124
- width: a.value,
125
- promotion: e.promotion,
126
- onClose: r[0] ||= (e) => i("close")
127
- }, _({
128
- default: E(() => [C(n.$slots, "default")]),
129
- _: 2
130
- }, [n.$slots.operation ? {
131
- name: "operation",
132
- fn: E(() => [C(n.$slots, "operation")]),
133
- key: "0"
134
- } : void 0]), 1032, [
135
- "open",
136
- "title",
137
- "subtitle",
138
- "width",
139
- "promotion"
140
- ]));
141
- }
142
- });
170
+ //#region src/platform-admin-runtime/workspaceViewSessions.ts
171
+ var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map();
172
+ function A(e, t) {
173
+ return `${e.type}:${P(t)}`;
174
+ }
175
+ async function j(e, t, n) {
176
+ let r = A(e, t), i = k.get(r), a = i && [...i].at(-1);
177
+ return a ? await a(F(n)) ? "accepted" : "rejected" : (O.set(r, F(n)), "accepted");
178
+ }
179
+ function M(e, t, n) {
180
+ let r = A(e, t), i = k.get(r) ?? /* @__PURE__ */ new Set();
181
+ return i.add(n), k.set(r, i), () => {
182
+ i.delete(n), i.size === 0 && k.delete(r);
183
+ };
184
+ }
185
+ function N(e, t) {
186
+ let n = A(e, t), r = O.get(n);
187
+ return O.delete(n), r;
188
+ }
189
+ function P(e) {
190
+ return Array.isArray(e) ? `[${e.map(P).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${P(t)}`).join(",")}}` : JSON.stringify(e);
191
+ }
192
+ function F(e) {
193
+ return JSON.parse(JSON.stringify(e));
194
+ }
143
195
  //#endregion
144
196
  //#region src/views/roleAuthorizationWorkspaceSession.ts
145
197
  function Ce(e, t) {
146
- return d(u, e, t);
198
+ return j(l, e, t);
147
199
  }
148
200
  function we(e, t) {
149
- return fe(u, e, t);
201
+ return M(l, e, t);
150
202
  }
151
203
  function Te(e) {
152
- return l(u, e);
204
+ return N(l, e);
153
205
  }
154
206
  //#endregion
155
207
  //#region src/views/RoleAuthorizationView.vue?vue&type=script&setup=true&lang.ts
@@ -165,27 +217,28 @@ var Ee = { class: "panel-title" }, De = {
165
217
  }, Ae = { key: 0 }, je = { key: 1 }, Me = { key: 3 }, Ne = {
166
218
  key: 4,
167
219
  class: "not-applicable"
168
- }, D = /*@__PURE__*/ b({
220
+ }, I = /*@__PURE__*/ y({
169
221
  name: "RoleAuthorizationView",
170
222
  __name: "RoleAuthorizationView",
171
223
  props: {
172
224
  roleId: {},
225
+ container: {},
173
226
  drawer: { type: Boolean }
174
227
  },
175
228
  emits: ["close"],
176
- setup(t, { emit: n }) {
177
- let s = t, fe = n, l = i({ moduleAlias: "iam.role" }), d = xe(l.http), b = s.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", C = ue(), D = s.roleId ? { roleId: s.roleId } : void 0, O = D ? Te(D) : void 0, k = S(), A = S([]), j = S(), M = S([]), N = S(), P = S(), F = S(!1), I = S(!1), L = S(!1), R = S(), z = S(), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = S(0), Pe, U = p(() => k.value?.roleKind === "group"), W = p(() => k.value?.roleKind === "dataGrant"), G = p(() => k.value?.assignmentType === "employment"), K = p(() => k.value?.title ?? b ?? "角色"), q = p(() => `授权:${K.value}`), Fe = p(() => Ie.value ? `动作授权 - ${Ie.value.title}` : `动作授权 - ${K.value}`), Ie = p(() => A.value.find((e) => e.moduleAlias === j.value)), Le = p(() => A.value.map((e) => ({
229
+ setup(r, { emit: ee }) {
230
+ let s = r, de = ee, u = te({ moduleAlias: "iam.role" }), y = Se(u.http), S = s.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", w = ue(), D = s.roleId ? { roleId: s.roleId } : void 0, O = D ? Te(D) : void 0, k = x(), A = x([]), j = x(), M = x([]), N = x(), P = x(), F = x(!1), I = x(!1), L = x(!1), R = x(), z = x(), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = x(0), Pe, U = f(() => k.value?.roleKind === "group"), W = f(() => k.value?.roleKind === "dataGrant"), G = f(() => k.value?.assignmentType === "employment"), K = f(() => k.value?.title ?? S ?? "角色"), q = f(() => `授权:${K.value}`), Fe = f(() => Ie.value ? `动作授权 - ${Ie.value.title}` : `动作授权 - ${K.value}`), Ie = f(() => A.value.find((e) => e.moduleAlias === j.value)), Le = f(() => A.value.map((e) => ({
178
231
  id: e.moduleAlias,
179
232
  parentId: e.parentId,
180
233
  title: e.title,
181
234
  secondary: e.applicationAlias
182
- }))), Re = p(() => (P.value?.options ?? []).map((e) => ({
235
+ }))), Re = f(() => (P.value?.options ?? []).map((e) => ({
183
236
  value: e.code,
184
237
  label: e.title
185
- }))), ze = p(() => (P.value?.referenceDependencies ?? []).map((e) => ({
238
+ }))), ze = f(() => (P.value?.referenceDependencies ?? []).map((e) => ({
186
239
  value: e.referenceFieldId,
187
240
  label: `${e.title} → ${e.targetModuleTitle}`
188
- }))), Be = p(() => new Map((P.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), Ve = [
241
+ }))), Be = f(() => new Map((P.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), Ve = [
189
242
  {
190
243
  key: "title",
191
244
  title: "动作",
@@ -219,21 +272,22 @@ var Ee = { class: "panel-title" }, De = {
219
272
  title: "数据范围",
220
273
  width: 160
221
274
  }
222
- ], Ue = p(() => M.value), We = p(() => N.value?.actions ?? []), J = p(() => s.drawer === !0 || !!D && C?.presentation === "drawer"), Y = p(() => !!D), Ge = p(() => J.value ? Se : Y.value ? oe : "div"), Ke = p(() => J.value ? {
275
+ ], Ue = f(() => M.value), We = f(() => N.value?.actions ?? []), J = f(() => s.drawer === !0 || !!D && w?.presentation === "drawer"), Y = f(() => !!D), Ge = f(() => J.value ? be : Y.value ? a : "div"), Ke = f(() => J.value ? {
223
276
  open: !0,
224
277
  title: q.value,
225
- profile: u.drawerProfile,
278
+ container: s.container ?? null,
279
+ profile: l.drawerProfile,
226
280
  promotion: Ze.value,
227
- onClose: dt
228
- } : Y.value ? { title: q.value } : {}), qe = p(() => {
281
+ onClose: ut
282
+ } : Y.value ? { title: q.value } : {}), qe = f(() => {
229
283
  let e = N.value;
230
284
  return !e || z.value === void 0 ? !1 : JSON.stringify(e.actions) !== z.value;
231
- }), Je = p(() => H.value >= 0 && [...B.entries()].some(([e, t]) => V.get(e) !== JSON.stringify(t))), X = p(() => qe.value || Je.value), Ye = p(() => M.value.length > 0 && M.value.every((e) => e.granted)), Xe = p(() => M.value.some((e) => e.granted) && !Ye.value), Ze = de({
232
- view: u,
285
+ }), Je = f(() => H.value >= 0 && [...B.entries()].some(([e, t]) => V.get(e) !== JSON.stringify(t))), X = f(() => qe.value || Je.value), Ye = f(() => M.value.length > 0 && M.value.every((e) => e.granted)), Xe = f(() => M.value.some((e) => e.granted) && !Ye.value), Ze = xe({
286
+ view: l,
233
287
  input: () => D,
234
288
  title: q,
235
289
  eligibility: () => ({
236
- hasStableIdentity: !!(b && k.value),
290
+ hasStableIdentity: !!(S && k.value),
237
291
  busy: L.value
238
292
  }),
239
293
  beforePromote: (e) => Ce(e, {
@@ -248,33 +302,33 @@ var Ee = { class: "panel-title" }, De = {
248
302
  snapshot: t
249
303
  }))
250
304
  }).then((e) => e === "accepted"),
251
- onPromoted: ft,
252
- onPromotionRejected: () => ie("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
305
+ onPromoted: dt,
306
+ onPromotionRejected: () => oe("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
253
307
  source: "role-authorization",
254
308
  phase: "validation"
255
309
  })
256
310
  });
257
- ve(() => {
258
- D && !J.value && (Pe = we(D, pt)), Z();
259
- }), be(q, (e) => {
260
- Y.value && C?.setTitle(e);
261
- }, { immediate: !0 }), be(j, () => void Qe()), ve(() => window.addEventListener("beforeunload", $)), _e(() => {
262
- Pe?.(), window.removeEventListener("beforeunload", $);
311
+ _e(() => {
312
+ D && !J.value && (Pe = we(D, ft)), Z();
313
+ }), ye(q, (e) => {
314
+ Y.value && w?.setTitle(e);
315
+ }, { immediate: !0 }), ye(j, () => void Qe()), _e(() => window.addEventListener("beforeunload", mt)), ge(() => {
316
+ Pe?.(), window.removeEventListener("beforeunload", mt);
263
317
  });
264
318
  async function Z() {
265
- if (!b) {
319
+ if (!S) {
266
320
  R.value = "缺少角色标识,无法打开授权页。";
267
321
  return;
268
322
  }
269
323
  F.value = !0, R.value = void 0;
270
324
  try {
271
- if (k.value = await l.crud.view(b), k.value.roleKind === "group") return;
325
+ if (k.value = await u.crud.view(S), k.value.roleKind === "group") return;
272
326
  if (k.value.roleKind === "dataGrant") {
273
- let [e, t] = await Promise.all([d.dataGrantActionMatrix(b), d.dataScopePolicyCatalog(b)]);
327
+ let [e, t] = await Promise.all([y.dataGrantActionMatrix(S), y.dataScopePolicyCatalog(S)]);
274
328
  N.value = O?.dataGrantMatrix ?? e, P.value = t, z.value = JSON.stringify(e.actions);
275
329
  return;
276
330
  }
277
- A.value = (await d.authorizationModules(b)).records, j.value = O?.selectedModuleAlias ?? A.value[0]?.moduleAlias;
331
+ A.value = (await y.authorizationModules(S)).records, j.value = O?.selectedModuleAlias ?? A.value[0]?.moduleAlias;
278
332
  } catch (e) {
279
333
  R.value = "授权信息加载失败,请重试。", o(e, {
280
334
  source: "role-authorization",
@@ -289,7 +343,7 @@ var Ee = { class: "panel-title" }, De = {
289
343
  if (!(!e || W.value || U.value)) {
290
344
  I.value = !0;
291
345
  try {
292
- let [t, n] = await Promise.all([d.permissionMatrix(b, [e]), d.dataScopePolicyCatalog(b, e)]), r = (t.modules[0]?.actions ?? []).map(ct), i = O?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
346
+ let [t, n] = await Promise.all([y.permissionMatrix(S, [e]), y.dataScopePolicyCatalog(S, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = O?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
293
347
  M.value = B.get(e) ?? i ?? r, B.has(e) || (B.set(e, M.value), V.set(e, O?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), H.value += 1, P.value = n;
294
348
  } catch (e) {
295
349
  o(e, {
@@ -301,49 +355,49 @@ var Ee = { class: "panel-title" }, De = {
301
355
  }
302
356
  }
303
357
  }
304
- function $e(e, t) {
358
+ function Q(e, t) {
305
359
  t && e.dataAuth && G.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, H.value += 1;
306
360
  }
307
- function et(e) {
308
- M.value.forEach((t) => $e(t, e));
361
+ function $e(e) {
362
+ M.value.forEach((t) => Q(t, e));
309
363
  }
310
- function tt(e, t) {
364
+ function et(e, t) {
311
365
  if (e.dataScopePolicy = String(t || "none"), e.dataScopePolicy === "referenceDependency") {
312
366
  e.referenceFieldId = void 0, e.referenceActionCode = void 0, H.value += 1;
313
367
  return;
314
368
  }
315
369
  e.referenceFieldId = void 0, e.referenceActionCode = void 0, H.value += 1;
316
370
  }
317
- function nt(e, t) {
371
+ function tt(e, t) {
318
372
  let n = Be.value.get(String(t || ""));
319
373
  e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, H.value += 1;
320
374
  }
321
- function rt(e) {
375
+ function nt(e) {
322
376
  return Be.value.get(String(e || ""));
323
377
  }
324
- function it(e) {
378
+ function rt(e) {
325
379
  return typeof e == "string" || typeof e == "number" ? e : void 0;
326
380
  }
327
- function at(e) {
381
+ function it(e) {
328
382
  return e.dataScopePolicy ?? "inheritDataGrant";
329
383
  }
330
- function ot(e) {
384
+ function at(e) {
331
385
  return !!e.dataAuth && G.value;
332
386
  }
333
- function st(e, t) {
334
- return e.key === "dataScopePolicy" && ot(t);
387
+ function ot(e, t) {
388
+ return e.key === "dataScopePolicy" && at(t);
335
389
  }
336
- function ct(e) {
390
+ function st(e) {
337
391
  return G.value && e.dataAuth && e.dataScopePolicy === "none" ? {
338
392
  ...e,
339
393
  dataScopePolicy: "inheritDataGrant"
340
394
  } : e;
341
395
  }
342
- async function lt() {
396
+ async function ct() {
343
397
  if (N.value) {
344
398
  L.value = !0;
345
399
  try {
346
- await a(await d.replaceDataGrantActions(b, N.value.actions.map((e) => ({
400
+ await ie(await y.replaceDataGrantActions(S, N.value.actions.map((e) => ({
347
401
  actionCode: e.actionCode,
348
402
  dataScopePolicy: e.dataScopePolicy,
349
403
  enabled: e.configured
@@ -362,12 +416,12 @@ var Ee = { class: "panel-title" }, De = {
362
416
  }
363
417
  }
364
418
  }
365
- async function ut() {
419
+ async function lt() {
366
420
  let e = [...B.entries()].filter(([e, t]) => V.get(e) !== JSON.stringify(t));
367
421
  if (e.length) {
368
422
  L.value = !0;
369
423
  try {
370
- await a(await d.replacePermissionMatrix(b, e.flatMap(([e, t]) => t.map((t) => ({
424
+ await ie(await y.replacePermissionMatrix(S, e.flatMap(([e, t]) => t.map((t) => ({
371
425
  moduleAlias: e,
372
426
  actionCode: t.actionCode,
373
427
  granted: !!t.granted,
@@ -389,72 +443,72 @@ var Ee = { class: "panel-title" }, De = {
389
443
  }
390
444
  }
391
445
  }
392
- async function Q() {
446
+ async function $() {
393
447
  if (W.value) {
394
- await lt();
448
+ await ct();
395
449
  return;
396
450
  }
397
- await ut();
451
+ await lt();
398
452
  }
399
- async function dt() {
400
- X.value && !await te({
453
+ async function ut() {
454
+ X.value && !await ce({
401
455
  title: "放弃未确认的授权配置",
402
456
  content: "当前修改尚未确认,关闭后将丢失这些修改。",
403
457
  okText: "放弃修改",
404
458
  danger: !0
405
- }) || mt();
459
+ }) || pt();
406
460
  }
407
- function ft() {
408
- mt();
461
+ function dt() {
462
+ pt();
409
463
  }
410
- function pt(e) {
464
+ function ft(e) {
411
465
  return X.value ? !1 : (j.value = e.selectedModuleAlias, N.value = e.dataGrantMatrix, B.clear(), V.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => B.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => V.set(e, t)), H.value += 1, !0);
412
466
  }
413
- function mt() {
467
+ function pt() {
414
468
  if (s.drawer === !0) {
415
- fe("close");
469
+ de("close");
416
470
  return;
417
471
  }
418
- C?.dismiss();
472
+ w?.dismiss();
419
473
  }
420
- function $(e) {
474
+ function mt(e) {
421
475
  X.value && (e.preventDefault(), e.returnValue = "");
422
476
  }
423
- return (t, n) => (x(), m(ye(Ge.value), ge(me(Ke.value)), _({
424
- default: E(() => [g("section", { class: he(["role-authorization-page", { "role-authorization-page--drawer": J.value }]) }, [F.value ? (x(), m(T(ne), {
477
+ return (r, a) => (b(), p(ve(Ge.value), he(pe(Ke.value)), g({
478
+ default: E(() => [h("section", { class: me(["role-authorization-page", { "role-authorization-page--drawer": J.value }]) }, [F.value ? (b(), p(T(ae), {
425
479
  key: 0,
426
480
  tip: "加载授权信息"
427
- })) : R.value ? (x(), m(T(ce), {
481
+ })) : R.value ? (b(), p(T(re), {
428
482
  key: 1,
429
483
  title: "授权页加载失败",
430
484
  message: R.value
431
- }, null, 8, ["message"])) : U.value ? (x(), m(T(ee), {
485
+ }, null, 8, ["message"])) : U.value ? (b(), p(T(le), {
432
486
  key: 2,
433
487
  title: "角色组不独立授权",
434
488
  description: "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。"
435
- })) : W.value && N.value ? (x(), m(T(c), {
489
+ })) : W.value && N.value ? (b(), p(T(c), {
436
490
  key: 3,
437
491
  class: "data-grant-content",
438
492
  title: Y.value ? "数据权限模板" : `数据权限模板 - ${K.value}`,
439
493
  searchable: !1,
440
494
  onRefresh: Z
441
495
  }, {
442
- default: E(() => [g("header", Ee, [n[3] ||= g("div", null, [g("h3", null, "标准动作的数据范围模板"), g("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), Y.value ? pe("v-if", !0) : (x(), m(T(r), {
496
+ default: E(() => [h("header", Ee, [a[3] ||= h("div", null, [h("h3", null, "标准动作的数据范围模板"), h("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), Y.value ? fe("v-if", !0) : (b(), p(T(e), {
443
497
  key: 0,
444
498
  type: "primary",
445
499
  disabled: !X.value,
446
500
  loading: L.value,
447
- onClick: Q
501
+ onClick: $
448
502
  }, {
449
- default: E(() => [...n[2] ||= [v(" 确认 ", -1)]]),
503
+ default: E(() => [...a[2] ||= [_(" 确认 ", -1)]]),
450
504
  _: 1
451
- }, 8, ["disabled", "loading"]))]), y(T(re), {
505
+ }, 8, ["disabled", "loading"]))]), v(T(ne), {
452
506
  columns: He,
453
507
  rows: We.value,
454
508
  "row-key": "actionCode",
455
509
  "horizontal-scroll": ""
456
510
  }, {
457
- cell: E(({ column: t, record: n }) => [t.key === "title" ? (x(), h(f, { key: 0 }, [g("strong", null, w(n.title || n.actionCode), 1), g("small", null, w(n.actionCode), 1)], 64)) : t.key === "configured" ? (x(), m(T(le), {
511
+ cell: E(({ column: e, record: n }) => [e.key === "title" ? (b(), m(d, { key: 0 }, [h("strong", null, C(n.title || n.actionCode), 1), h("small", null, C(n.actionCode), 1)], 64)) : e.key === "configured" ? (b(), p(T(i), {
458
512
  key: 1,
459
513
  checked: !!n.configured,
460
514
  disabled: L.value,
@@ -463,7 +517,7 @@ var Ee = { class: "panel-title" }, De = {
463
517
  "checked",
464
518
  "disabled",
465
519
  "onChange"
466
- ])) : (x(), m(T(e), {
520
+ ])) : (b(), p(T(t), {
467
521
  key: 2,
468
522
  value: n.dataScopePolicy,
469
523
  options: Re.value,
@@ -480,28 +534,28 @@ var Ee = { class: "panel-title" }, De = {
480
534
  _: 1
481
535
  }, 8, ["rows"])]),
482
536
  _: 1
483
- }, 8, ["title"])) : (x(), h("section", De, [y(T(c), {
537
+ }, 8, ["title"])) : (b(), m("section", De, [v(T(c), {
484
538
  class: "module-panel",
485
539
  title: "模块树",
486
540
  "refresh-title": "刷新模块目录",
487
541
  searchable: !1,
488
542
  onRefresh: Z
489
543
  }, {
490
- default: E(() => [y(T(se), {
544
+ default: E(() => [v(T(se), {
491
545
  records: Le.value,
492
546
  "selected-id": j.value,
493
- onSelect: n[0] ||= (e) => j.value = e.id
547
+ onSelect: a[0] ||= (e) => j.value = e.id
494
548
  }, null, 8, ["records", "selected-id"])]),
495
549
  _: 1
496
- }), y(T(c), {
550
+ }), v(T(c), {
497
551
  class: "action-panel",
498
552
  title: Fe.value,
499
553
  searchable: !1
500
- }, _({
501
- default: E(() => [I.value ? (x(), m(T(ne), {
554
+ }, g({
555
+ default: E(() => [I.value ? (b(), p(T(ae), {
502
556
  key: 0,
503
557
  tip: "加载模块动作"
504
- })) : j.value ? (x(), m(T(re), {
558
+ })) : j.value ? (b(), p(T(ne), {
505
559
  key: 2,
506
560
  columns: Ve,
507
561
  rows: Ue.value,
@@ -509,65 +563,65 @@ var Ee = { class: "panel-title" }, De = {
509
563
  "fill-height": "",
510
564
  "horizontal-scroll": ""
511
565
  }, {
512
- header: E(({ column: e }) => [e.key === "granted" ? (x(), h("span", Oe, [y(T(ae), {
566
+ header: E(({ column: e }) => [e.key === "granted" ? (b(), m("span", Oe, [v(T(n), {
513
567
  checked: Ye.value,
514
568
  indeterminate: Xe.value,
515
569
  disabled: L.value || !M.value.length,
516
570
  "aria-label": "全选当前模块动作授权",
517
- onChange: et
571
+ onChange: $e
518
572
  }, null, 8, [
519
573
  "checked",
520
574
  "indeterminate",
521
575
  "disabled"
522
- ]), n[5] ||= v(" 授权 ", -1)])) : (x(), h(f, { key: 1 }, [v(w(e.title), 1)], 64))]),
523
- cell: E(({ column: t, record: n }) => [t.key === "title" ? (x(), h(f, { key: 0 }, [g("strong", null, w(n.title || n.actionCode), 1), g("small", null, w(n.permissionActionCode || n.actionCode), 1)], 64)) : t.key === "granted" ? (x(), m(T(ae), {
576
+ ]), a[5] ||= _(" 授权 ", -1)])) : (b(), m(d, { key: 1 }, [_(C(e.title), 1)], 64))]),
577
+ cell: E(({ column: e, record: r }) => [e.key === "title" ? (b(), m(d, { key: 0 }, [h("strong", null, C(r.title || r.actionCode), 1), h("small", null, C(r.permissionActionCode || r.actionCode), 1)], 64)) : e.key === "granted" ? (b(), p(T(n), {
524
578
  key: 1,
525
- checked: !!n.granted,
579
+ checked: !!r.granted,
526
580
  disabled: L.value,
527
- onChange: (e) => $e(n, e)
581
+ onChange: (e) => Q(r, e)
528
582
  }, null, 8, [
529
583
  "checked",
530
584
  "disabled",
531
585
  "onChange"
532
- ])) : n.dataAuth && G.value && n.granted ? (x(), h("div", ke, [y(T(e), {
533
- value: at(n),
586
+ ])) : r.dataAuth && G.value && r.granted ? (b(), m("div", ke, [v(T(t), {
587
+ value: it(r),
534
588
  options: Re.value,
535
589
  disabled: L.value,
536
590
  "allow-clear": !1,
537
- "onUpdate:value": (e) => tt(n, e)
591
+ "onUpdate:value": (e) => et(r, e)
538
592
  }, null, 8, [
539
593
  "value",
540
594
  "options",
541
595
  "disabled",
542
596
  "onUpdate:value"
543
- ]), n.dataScopePolicy === "referenceDependency" ? (x(), h(f, { key: 0 }, [y(T(e), {
544
- value: it(n.referenceFieldId),
597
+ ]), r.dataScopePolicy === "referenceDependency" ? (b(), m(d, { key: 0 }, [v(T(t), {
598
+ value: rt(r.referenceFieldId),
545
599
  options: ze.value,
546
600
  disabled: L.value,
547
601
  placeholder: "请选择引用字段",
548
602
  "allow-clear": !1,
549
- "onUpdate:value": (e) => nt(n, e)
603
+ "onUpdate:value": (e) => tt(r, e)
550
604
  }, null, 8, [
551
605
  "value",
552
606
  "options",
553
607
  "disabled",
554
608
  "onUpdate:value"
555
- ]), n.referenceFieldId ? (x(), h("small", Ae, " 依赖目标:" + w(rt(n.referenceFieldId)?.targetModuleTitle) + " · " + w(rt(n.referenceFieldId)?.referenceActionTitle), 1)) : (x(), h("small", je, "请先选择引用字段,再开启该动作授权。"))], 64)) : pe("v-if", !0)])) : st(t, n) ? (x(), h("span", Me, "—")) : (x(), h("span", Ne, "不适用"))]),
609
+ ]), r.referenceFieldId ? (b(), m("small", Ae, " 依赖目标:" + C(nt(r.referenceFieldId)?.targetModuleTitle) + " · " + C(nt(r.referenceFieldId)?.referenceActionTitle), 1)) : (b(), m("small", je, "请先选择引用字段,再开启该动作授权。"))], 64)) : fe("v-if", !0)])) : ot(e, r) ? (b(), m("span", Me, "—")) : (b(), m("span", Ne, "不适用"))]),
556
610
  _: 1
557
- }, 8, ["rows"])) : (x(), m(T(ee), {
611
+ }, 8, ["rows"])) : (b(), p(T(le), {
558
612
  key: 1,
559
613
  title: "请选择模块"
560
614
  }))]),
561
615
  _: 2
562
616
  }, [Y.value ? void 0 : {
563
617
  name: "actions",
564
- fn: E(() => [y(T(r), {
618
+ fn: E(() => [v(T(e), {
565
619
  type: "primary",
566
620
  disabled: !X.value,
567
621
  loading: L.value,
568
- onClick: Q
622
+ onClick: $
569
623
  }, {
570
- default: E(() => [...n[4] ||= [v(" 确认 ", -1)]]),
624
+ default: E(() => [...a[4] ||= [_(" 确认 ", -1)]]),
571
625
  _: 1
572
626
  }, 8, ["disabled", "loading"])]),
573
627
  key: "0"
@@ -575,18 +629,18 @@ var Ee = { class: "panel-title" }, De = {
575
629
  _: 2
576
630
  }, [Y.value && !U.value ? {
577
631
  name: "operation",
578
- fn: E(() => [y(T(r), {
632
+ fn: E(() => [v(T(e), {
579
633
  type: "primary",
580
634
  disabled: !X.value,
581
635
  loading: L.value,
582
- onClick: Q
636
+ onClick: $
583
637
  }, {
584
- default: E(() => [...n[1] ||= [v(" 确认 ", -1)]]),
638
+ default: E(() => [...a[1] ||= [_(" 确认 ", -1)]]),
585
639
  _: 1
586
640
  }, 8, ["disabled", "loading"])]),
587
641
  key: "0"
588
642
  } : void 0]), 1040));
589
643
  }
590
- }), O = /* @__PURE__ */ s({ default: () => k }), k = /*#__PURE__*/ n(D, [["__scopeId", "data-v-3023b71d"]]);
644
+ }), L = /* @__PURE__ */ s({ default: () => R }), R = /*#__PURE__*/ r(I, [["__scopeId", "data-v-8b9dc5d9"]]);
591
645
  //#endregion
592
- export { O as n, xe as r, k as t };
646
+ export { N as a, M as i, L as n, Se as o, j as r, xe as s, R as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./RoleManagementView-D43pUCxi.js";
1
+ import { t as e } from "./RoleManagementView-0_KDrzgh.js";
2
2
  import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
3
  //#endregion
4
4
  //#region src/views/RoleDetailWorkspaceView.vue