@ximatai/muyun-web-app 0.26.8 → 0.26.9

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