@ximatai/muyun-web-app 0.26.3 → 0.26.4

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 (137) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-mtdcsqgF.js → EmployeeDetailWorkspaceView-BySbWjCV.js} +1 -1
  2. package/dist/{EmployeeManagementView-CKKvQZaC.js → EmployeeManagementView-DvmDPxzN.js} +205 -205
  3. package/dist/{MetadataOrchestrationView-CprWBocy.js → MetadataOrchestrationView-2JxJkFEC.js} +194 -194
  4. package/dist/{ModuleActionManagementView-DNuAQUPE.js → ModuleActionManagementView-DRtYMXOK.js} +122 -122
  5. package/dist/{RoleAuthorizationView-CQtSAJoJ.js → RoleAuthorizationView-CK6Vfdup.js} +52 -52
  6. package/dist/{RoleDetailWorkspaceView-Dh8DXpyS.js → RoleDetailWorkspaceView-BPZcZy-r.js} +1 -1
  7. package/dist/{RoleManagementView-BrqaFV7y.js → RoleManagementView-B7TzzVOm.js} +204 -204
  8. package/dist/{SystemUserDetailWorkspaceView-N-kvycAu.js → SystemUserDetailWorkspaceView-BtEDyU-k.js} +1 -1
  9. package/dist/SystemUserManagementView-TKqj92zG.js +761 -0
  10. package/dist/{UserDetailWorkspaceView-Iek6xwix.js → UserDetailWorkspaceView-B6fGrnQ7.js} +1 -1
  11. package/dist/UserManagementView-4IJeDSQS.js +965 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +1054 -1054
  14. package/dist/{pageRealtime-sRtDYlQP.js → pageRealtime-CJriNmzP.js} +12 -12
  15. package/dist/{platform-components-bC1gwhic.js → platform-components-CgMBopmF.js} +1107 -1377
  16. package/dist/types/app/LoginView.vue.d.ts +2 -2
  17. package/dist/types/app/appWorkbenchStartup.d.ts +1 -1
  18. package/dist/types/app/platformMessage.d.ts +1 -1
  19. package/dist/types/app/query.d.ts +1 -1
  20. package/dist/types/app/workbenchStartup.d.ts +3 -3
  21. package/dist/types/consumer/PlatformAdminOutlet.vue.d.ts +1 -1
  22. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +1 -1
  23. package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +1 -1
  24. package/dist/types/dynamic-page-runtime/actionReactions.d.ts +1 -1
  25. package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +1 -1
  26. package/dist/types/main.d.ts +1 -1
  27. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -1
  28. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -1
  29. package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +1 -1
  30. package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
  31. package/dist/types/platform-admin-runtime/currentUserContext.d.ts +1 -1
  32. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -2
  33. package/dist/types/platform-admin-runtime/pageRealtime.d.ts +1 -1
  34. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -1
  35. package/dist/types/platform-admin-runtime/realtime.d.ts +4 -4
  36. package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +1 -1
  37. package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +1 -1
  38. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -1
  39. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -1
  40. package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +1 -1
  41. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  42. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
  43. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -1
  45. package/dist/types/platform-components/RecordFormFields.vue.d.ts +1 -1
  46. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
  47. package/dist/types/platform-components/RecordMetaSection.vue.d.ts +1 -1
  48. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -1
  49. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  50. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  51. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
  52. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
  53. package/dist/types/platform-components/actionConfirmation.d.ts +1 -1
  54. package/dist/types/platform-components/index.d.ts +1 -0
  55. package/dist/types/platform-components/optionFieldOptions.d.ts +1 -1
  56. package/dist/types/platform-components/pageLayoutContext.d.ts +1 -1
  57. package/dist/types/platform-components/platformActionResultReactions.d.ts +1 -1
  58. package/dist/types/platform-components/platformErrorFeedback.d.ts +1 -1
  59. package/dist/types/platform-components/recordActionBarModel.d.ts +2 -2
  60. package/dist/types/platform-components/recordEditorSessionState.d.ts +1 -1
  61. package/dist/types/platform-components/recordExplorerItemModel.d.ts +1 -1
  62. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -2
  63. package/dist/types/platform-components/recycleBinState.d.ts +2 -2
  64. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +1 -1
  65. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -1
  66. package/dist/types/platform-components/softDeletedConflictHandler.d.ts +1 -1
  67. package/dist/types/platform-components/staticCrudManagementState.d.ts +2 -2
  68. package/dist/types/platform-components/staticFormActionFlow.d.ts +1 -1
  69. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +1 -1
  70. package/dist/types/platform-components/treeRecordModel.d.ts +1 -1
  71. package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +1 -1
  72. package/dist/types/platform-components/userSessionPresentation.d.ts +1 -1
  73. package/dist/types/platform-workbench/Workbench.vue.d.ts +1 -1
  74. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
  75. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +1 -1
  76. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +1 -1
  77. package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +1 -1
  78. package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +1 -1
  79. package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +1 -1
  80. package/dist/types/platform-workbench/menuNavigation.d.ts +1 -1
  81. package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -1
  82. package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
  83. package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -1
  84. package/dist/types/views/EmployeeDetailContent.vue.d.ts +3 -3
  85. package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +1 -1
  86. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +1 -1
  87. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +2 -2
  88. package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +1 -1
  89. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +2 -2
  90. package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +1 -1
  91. package/dist/types/views/RoleManagementView.vue.d.ts +1 -1
  92. package/dist/types/views/UserDetailContent.vue.d.ts +2 -2
  93. package/dist/types/views/applicationManagementState.d.ts +3 -3
  94. package/dist/types/views/departmentManagementState.d.ts +3 -3
  95. package/dist/types/views/dictionaryManagementState.d.ts +4 -4
  96. package/dist/types/views/employeeDetailWorkspaceSession.d.ts +1 -1
  97. package/dist/types/views/fieldSpecManagementState.d.ts +3 -3
  98. package/dist/types/views/fieldUiControlManagementState.d.ts +3 -3
  99. package/dist/types/views/menuManagementState.d.ts +7 -7
  100. package/dist/types/views/metadataOrchestrationState.d.ts +1 -1
  101. package/dist/types/views/moduleManagementState.d.ts +5 -5
  102. package/dist/types/views/organizationManagementState.d.ts +4 -4
  103. package/dist/types/views/positionManagementState.d.ts +4 -4
  104. package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
  105. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
  106. package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
  107. package/dist/types/views/roleGrantClient.d.ts +2 -2
  108. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +1 -1
  109. package/dist/types/views/tenantManagementState.d.ts +3 -3
  110. package/dist/types/views/useEmployeeEmploymentRows.d.ts +2 -2
  111. package/dist/types/views/useUserSessionRows.d.ts +3 -3
  112. package/dist/types/views/userDetailWorkspaceSession.d.ts +1 -1
  113. package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +1 -1
  114. package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +1 -1
  115. package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +1 -1
  116. package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +1 -1
  117. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -1
  118. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  119. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -1
  120. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  121. package/dist/types/vue-ui-antdv/dictionaries.d.ts +1 -1
  122. package/dist/types/vue-ui-antdv/references.d.ts +1 -1
  123. package/dist/types/vue-ui-antdv/registry.d.ts +1 -1
  124. package/dist/types/web-core/actionResult.d.ts +1 -2
  125. package/dist/types/web-core/clients.d.ts +1 -1
  126. package/dist/types/web-core/dataChanges.d.ts +1 -1
  127. package/dist/types/web-core/errors.d.ts +1 -1
  128. package/dist/types/web-core/http.d.ts +1 -1
  129. package/dist/types/web-core/mock.d.ts +1 -1
  130. package/dist/types/web-core/module/runtimeContext.d.ts +1 -1
  131. package/dist/types/web-core/module/staticModuleClient.d.ts +1 -1
  132. package/dist/types/web-core/realtime.d.ts +1 -1
  133. package/dist/{useUserSessionRows-CLM0ZvAF.js → useUserSessionRows-DHsyr2Vy.js} +2 -2
  134. package/dist/{workspaceViewSessions-WsJU3OS7.js → workspaceViewSessions-BMbyO9O4.js} +403 -410
  135. package/package.json +1 -1
  136. package/dist/SystemUserManagementView-BVS5moV5.js +0 -761
  137. package/dist/UserManagementView-BR_Jz8O-.js +0 -965
@@ -1,6 +1,6 @@
1
- import { Dt as e, Et as t, G as n, Gt as r, Ht as i, It as ee, Lt as te, Pt as ne, R as a, Vt as re, Xt as o, Zt as ie, _ as ae, _t as oe, cn as se, en as s, et as ce, fr as le, tn as c } from "./platform-components-bC1gwhic.js";
2
- import { g as ue, i as de, n as fe, r as l, t as u, u as d } from "./workspaceViewSessions-WsJU3OS7.js";
3
- import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, defineComponent as x, guardReactiveProps as pe, normalizeClass as me, normalizeProps as he, onBeforeUnmount as ge, onMounted as _e, 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";
1
+ import { $t as e, Dt as t, Et as n, G as r, Gt as i, Ht as a, It as ee, Lt as te, Pt as ne, Qt as o, R as s, Vt as re, Xt as ie, Yt as c, _ as ae, _t as oe, et as se, on as ce, ur as l } from "./platform-components-CgMBopmF.js";
2
+ import { g as le, i as ue, n as de, r as u, t as d, u as f } from "./workspaceViewSessions-BMbyO9O4.js";
3
+ import { Fragment as p, computed as m, createBlock as h, createCommentVNode as fe, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, defineComponent as x, guardReactiveProps as pe, normalizeClass as me, normalizeProps as he, onBeforeUnmount as ge, onMounted as _e, 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";
4
4
  //#region src/views/roleGrantClient.ts
5
5
  function be(e) {
6
6
  return {
@@ -116,8 +116,8 @@ var xe = /* @__PURE__ */ x({
116
116
  },
117
117
  emits: ["close"],
118
118
  setup(e, { emit: t }) {
119
- let n = e, r = t, i = p(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
120
- return (t, n) => (S(), m(E(ce), {
119
+ let n = e, r = t, i = m(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
120
+ return (t, n) => (S(), h(E(se), {
121
121
  open: e.open,
122
122
  title: e.title,
123
123
  subtitle: e.subtitle,
@@ -143,13 +143,13 @@ var xe = /* @__PURE__ */ x({
143
143
  //#endregion
144
144
  //#region src/views/roleAuthorizationWorkspaceSession.ts
145
145
  function Se(e, t) {
146
- return u(d, e, t);
146
+ return d(f, e, t);
147
147
  }
148
148
  function Ce(e, t) {
149
- return fe(d, e, t);
149
+ return de(f, e, t);
150
150
  }
151
151
  function we(e) {
152
- return l(d, e);
152
+ return u(f, e);
153
153
  }
154
154
  //#endregion
155
155
  //#region src/views/RoleAuthorizationView.vue?vue&type=script&setup=true&lang.ts
@@ -173,19 +173,19 @@ var Te = { class: "panel-title" }, Ee = {
173
173
  drawer: { type: Boolean }
174
174
  },
175
175
  emits: ["close"],
176
- setup(ce, { emit: le }) {
177
- let c = ce, fe = le, l = se({ moduleAlias: "iam.role" }), u = be(l.http), x = c.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", w = ue(), O = c.roleId ? { roleId: c.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 ?? x ?? "角色"), 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) => ({
176
+ setup(e, { emit: se }) {
177
+ let l = e, de = se, u = ce({ moduleAlias: "iam.role" }), d = be(u.http), x = l.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", w = le(), O = l.roleId ? { roleId: l.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 = m(() => A.value?.roleKind === "group"), G = m(() => A.value?.roleKind === "dataGrant"), K = m(() => A.value?.assignmentType === "employment"), q = m(() => A.value?.title ?? x ?? "角色"), J = m(() => `授权:${q.value}`), Pe = m(() => Fe.value ? `动作授权 - ${Fe.value.title}` : `动作授权 - ${q.value}`), Fe = m(() => j.value.find((e) => e.moduleAlias === M.value)), Ie = m(() => j.value.map((e) => ({
178
178
  id: e.moduleAlias,
179
179
  parentId: e.parentId,
180
180
  title: e.title,
181
181
  secondary: e.applicationAlias
182
- }))), Le = p(() => (F.value?.options ?? []).map((e) => ({
182
+ }))), Le = m(() => (F.value?.options ?? []).map((e) => ({
183
183
  value: e.code,
184
184
  label: e.title
185
- }))), Re = p(() => (F.value?.referenceDependencies ?? []).map((e) => ({
185
+ }))), Re = m(() => (F.value?.referenceDependencies ?? []).map((e) => ({
186
186
  value: e.referenceFieldId,
187
187
  label: `${e.title} → ${e.targetModuleTitle}`
188
- }))), ze = p(() => new Map((F.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), Be = [
188
+ }))), ze = m(() => new Map((F.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), Be = [
189
189
  {
190
190
  key: "title",
191
191
  title: "动作",
@@ -219,17 +219,17 @@ var Te = { class: "panel-title" }, Ee = {
219
219
  title: "数据范围",
220
220
  width: 160
221
221
  }
222
- ], He = p(() => N.value), Ue = p(() => P.value?.actions ?? []), Y = p(() => c.drawer === !0 || !!O && w?.presentation === "drawer"), X = p(() => !!O), We = p(() => Y.value ? xe : X.value ? n : "div"), Ge = p(() => Y.value ? {
222
+ ], He = m(() => N.value), Ue = m(() => P.value?.actions ?? []), Y = m(() => l.drawer === !0 || !!O && w?.presentation === "drawer"), X = m(() => !!O), We = m(() => Y.value ? xe : X.value ? r : "div"), Ge = m(() => Y.value ? {
223
223
  open: !0,
224
224
  title: J.value,
225
- profile: d.drawerProfile,
225
+ profile: f.drawerProfile,
226
226
  promotion: Xe.value,
227
227
  onClose: ut
228
- } : X.value ? { title: J.value } : {}), Ke = p(() => {
228
+ } : X.value ? { title: J.value } : {}), Ke = m(() => {
229
229
  let e = P.value;
230
230
  return !e || B.value === void 0 ? !1 : JSON.stringify(e.actions) !== B.value;
231
- }), 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({
232
- view: d,
231
+ }), qe = m(() => U.value >= 0 && [...V.entries()].some(([e, t]) => H.get(e) !== JSON.stringify(t))), Z = m(() => Ke.value || qe.value), Je = m(() => N.value.length > 0 && N.value.every((e) => e.granted)), Ye = m(() => N.value.some((e) => e.granted) && !Je.value), Xe = ue({
232
+ view: f,
233
233
  input: () => O,
234
234
  title: J,
235
235
  eligibility: () => ({
@@ -249,7 +249,7 @@ var Te = { class: "panel-title" }, Ee = {
249
249
  }))
250
250
  }).then((e) => e === "accepted"),
251
251
  onPromoted: dt,
252
- onPromotionRejected: () => e("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
252
+ onPromotionRejected: () => t("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
253
253
  source: "role-authorization",
254
254
  phase: "validation"
255
255
  })
@@ -268,15 +268,15 @@ var Te = { class: "panel-title" }, Ee = {
268
268
  }
269
269
  I.value = !0, z.value = void 0;
270
270
  try {
271
- if (A.value = await l.crud.view(x), A.value.roleKind === "group") return;
271
+ if (A.value = await u.crud.view(x), A.value.roleKind === "group") return;
272
272
  if (A.value.roleKind === "dataGrant") {
273
- let [e, t] = await Promise.all([u.dataGrantActionMatrix(x), u.dataScopePolicyCatalog(x)]);
273
+ let [e, t] = await Promise.all([d.dataGrantActionMatrix(x), d.dataScopePolicyCatalog(x)]);
274
274
  P.value = k?.dataGrantMatrix ?? e, F.value = t, B.value = JSON.stringify(e.actions);
275
275
  return;
276
276
  }
277
- j.value = (await u.authorizationModules(x)).records, M.value = k?.selectedModuleAlias ?? j.value[0]?.moduleAlias;
277
+ j.value = (await d.authorizationModules(x)).records, M.value = k?.selectedModuleAlias ?? j.value[0]?.moduleAlias;
278
278
  } catch (e) {
279
- z.value = "授权信息加载失败,请重试。", t(e, {
279
+ z.value = "授权信息加载失败,请重试。", n(e, {
280
280
  source: "role-authorization",
281
281
  phase: "load"
282
282
  });
@@ -289,10 +289,10 @@ var Te = { class: "panel-title" }, Ee = {
289
289
  if (!(!e || G.value || W.value)) {
290
290
  L.value = !0;
291
291
  try {
292
- let [t, n] = await Promise.all([u.permissionMatrix(x, [e]), u.dataScopePolicyCatalog(x, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = k?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
292
+ let [t, n] = await Promise.all([d.permissionMatrix(x, [e]), d.dataScopePolicyCatalog(x, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = k?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
293
293
  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
294
  } catch (e) {
295
- t(e, {
295
+ n(e, {
296
296
  source: "role-authorization",
297
297
  phase: "load"
298
298
  });
@@ -343,7 +343,7 @@ var Te = { class: "panel-title" }, Ee = {
343
343
  if (P.value) {
344
344
  R.value = !0;
345
345
  try {
346
- await oe(await u.replaceDataGrantActions(x, P.value.actions.map((e) => ({
346
+ await oe(await d.replaceDataGrantActions(x, P.value.actions.map((e) => ({
347
347
  actionCode: e.actionCode,
348
348
  dataScopePolicy: e.dataScopePolicy,
349
349
  enabled: e.configured
@@ -353,7 +353,7 @@ var Te = { class: "panel-title" }, Ee = {
353
353
  fallbackMessage: "数据权限模板已保存"
354
354
  }), B.value = JSON.stringify(P.value.actions);
355
355
  } catch (e) {
356
- t(e, {
356
+ n(e, {
357
357
  source: "role-authorization",
358
358
  phase: "action"
359
359
  });
@@ -367,7 +367,7 @@ var Te = { class: "panel-title" }, Ee = {
367
367
  if (e.length) {
368
368
  R.value = !0;
369
369
  try {
370
- await oe(await u.replacePermissionMatrix(x, e.flatMap(([e, t]) => t.map((t) => ({
370
+ await oe(await d.replacePermissionMatrix(x, e.flatMap(([e, t]) => t.map((t) => ({
371
371
  moduleAlias: e,
372
372
  actionCode: t.actionCode,
373
373
  granted: !!t.granted,
@@ -380,7 +380,7 @@ var Te = { class: "panel-title" }, Ee = {
380
380
  fallbackMessage: "角色授权已保存"
381
381
  }), e.forEach(([e, t]) => H.set(e, JSON.stringify(t))), U.value += 1;
382
382
  } catch (e) {
383
- t(e, {
383
+ n(e, {
384
384
  source: "role-authorization",
385
385
  phase: "action"
386
386
  });
@@ -411,8 +411,8 @@ var Te = { class: "panel-title" }, Ee = {
411
411
  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
412
  }
413
413
  function pt() {
414
- if (c.drawer === !0) {
415
- fe("close");
414
+ if (l.drawer === !0) {
415
+ de("close");
416
416
  return;
417
417
  }
418
418
  w?.dismiss();
@@ -420,26 +420,26 @@ var Te = { class: "panel-title" }, Ee = {
420
420
  function mt(e) {
421
421
  Z.value && (e.preventDefault(), e.returnValue = "");
422
422
  }
423
- return (e, t) => (S(), m(ve(We.value), he(pe(Ge.value)), v({
424
- default: D(() => [_("section", { class: me(["role-authorization-page", { "role-authorization-page--drawer": Y.value }]) }, [I.value ? (S(), m(E(te), {
423
+ return (e, t) => (S(), h(ve(We.value), he(pe(Ge.value)), v({
424
+ default: D(() => [_("section", { class: me(["role-authorization-page", { "role-authorization-page--drawer": Y.value }]) }, [I.value ? (S(), h(E(te), {
425
425
  key: 0,
426
426
  tip: "加载授权信息"
427
- })) : z.value ? (S(), m(E(ee), {
427
+ })) : z.value ? (S(), h(E(ee), {
428
428
  key: 1,
429
429
  title: "授权页加载失败",
430
430
  message: z.value
431
- }, null, 8, ["message"])) : W.value ? (S(), m(E(i), {
431
+ }, null, 8, ["message"])) : W.value ? (S(), h(E(a), {
432
432
  key: 2,
433
433
  title: "角色组不独立授权",
434
434
  description: "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。"
435
- })) : G.value && P.value ? (S(), m(E(a), {
435
+ })) : G.value && P.value ? (S(), h(E(s), {
436
436
  key: 3,
437
437
  class: "data-grant-content",
438
438
  title: X.value ? "数据权限模板" : `数据权限模板 - ${q.value}`,
439
439
  searchable: !1,
440
440
  onRefresh: Q
441
441
  }, {
442
- default: D(() => [_("header", Te, [t[3] ||= _("div", null, [_("h3", null, "标准动作的数据范围模板"), _("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), X.value ? h("v-if", !0) : (S(), m(E(s), {
442
+ default: D(() => [_("header", Te, [t[3] ||= _("div", null, [_("h3", null, "标准动作的数据范围模板"), _("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), X.value ? fe("v-if", !0) : (S(), h(E(o), {
443
443
  key: 0,
444
444
  type: "primary",
445
445
  disabled: !Z.value,
@@ -454,7 +454,7 @@ var Te = { class: "panel-title" }, Ee = {
454
454
  "row-key": "actionCode",
455
455
  "horizontal-scroll": ""
456
456
  }, {
457
- cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), g(f, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.actionCode), 1)], 64)) : e.key === "configured" ? (S(), m(E(r), {
457
+ cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), g(p, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.actionCode), 1)], 64)) : e.key === "configured" ? (S(), h(E(i), {
458
458
  key: 1,
459
459
  checked: !!t.configured,
460
460
  disabled: R.value,
@@ -463,7 +463,7 @@ var Te = { class: "panel-title" }, Ee = {
463
463
  "checked",
464
464
  "disabled",
465
465
  "onChange"
466
- ])) : (S(), m(E(o), {
466
+ ])) : (S(), h(E(c), {
467
467
  key: 2,
468
468
  value: t.dataScopePolicy,
469
469
  options: Le.value,
@@ -480,7 +480,7 @@ var Te = { class: "panel-title" }, Ee = {
480
480
  _: 1
481
481
  }, 8, ["rows"])]),
482
482
  _: 1
483
- }, 8, ["title"])) : (S(), g("section", Ee, [b(E(a), {
483
+ }, 8, ["title"])) : (S(), g("section", Ee, [b(E(s), {
484
484
  class: "module-panel",
485
485
  title: "模块树",
486
486
  "refresh-title": "刷新模块目录",
@@ -493,15 +493,15 @@ var Te = { class: "panel-title" }, Ee = {
493
493
  onSelect: t[0] ||= (e) => M.value = e.id
494
494
  }, null, 8, ["records", "selected-id"])]),
495
495
  _: 1
496
- }), b(E(a), {
496
+ }), b(E(s), {
497
497
  class: "action-panel",
498
498
  title: Pe.value,
499
499
  searchable: !1
500
500
  }, v({
501
- default: D(() => [L.value ? (S(), m(E(te), {
501
+ default: D(() => [L.value ? (S(), h(E(te), {
502
502
  key: 0,
503
503
  tip: "加载模块动作"
504
- })) : M.value ? (S(), m(E(re), {
504
+ })) : M.value ? (S(), h(E(re), {
505
505
  key: 2,
506
506
  columns: Be,
507
507
  rows: He.value,
@@ -519,8 +519,8 @@ var Te = { class: "panel-title" }, Ee = {
519
519
  "checked",
520
520
  "indeterminate",
521
521
  "disabled"
522
- ]), t[5] ||= y(" 授权 ", -1)])) : (S(), g(f, { key: 1 }, [y(T(e.title), 1)], 64))]),
523
- cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), g(f, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (S(), m(E(ie), {
522
+ ]), t[5] ||= y(" 授权 ", -1)])) : (S(), g(p, { key: 1 }, [y(T(e.title), 1)], 64))]),
523
+ cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), g(p, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (S(), h(E(ie), {
524
524
  key: 1,
525
525
  checked: !!t.granted,
526
526
  disabled: R.value,
@@ -529,7 +529,7 @@ var Te = { class: "panel-title" }, Ee = {
529
529
  "checked",
530
530
  "disabled",
531
531
  "onChange"
532
- ])) : t.dataAuth && K.value && t.granted ? (S(), g("div", Oe, [b(E(o), {
532
+ ])) : t.dataAuth && K.value && t.granted ? (S(), g("div", Oe, [b(E(c), {
533
533
  value: it(t),
534
534
  options: Le.value,
535
535
  disabled: R.value,
@@ -540,7 +540,7 @@ var Te = { class: "panel-title" }, Ee = {
540
540
  "options",
541
541
  "disabled",
542
542
  "onUpdate:value"
543
- ]), t.dataScopePolicy === "referenceDependency" ? (S(), g(f, { key: 0 }, [b(E(o), {
543
+ ]), t.dataScopePolicy === "referenceDependency" ? (S(), g(p, { key: 0 }, [b(E(c), {
544
544
  value: rt(t.referenceFieldId),
545
545
  options: Re.value,
546
546
  disabled: R.value,
@@ -552,16 +552,16 @@ var Te = { class: "panel-title" }, Ee = {
552
552
  "options",
553
553
  "disabled",
554
554
  "onUpdate:value"
555
- ]), t.referenceFieldId ? (S(), g("small", ke, " 依赖目标:" + T(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + T(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (S(), g("small", Ae, "请先选择引用字段,再开启该动作授权。"))], 64)) : h("v-if", !0)])) : ot(e, t) ? (S(), g("span", je, "—")) : (S(), g("span", Me, "不适用"))]),
555
+ ]), t.referenceFieldId ? (S(), g("small", ke, " 依赖目标:" + T(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + T(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (S(), g("small", Ae, "请先选择引用字段,再开启该动作授权。"))], 64)) : fe("v-if", !0)])) : ot(e, t) ? (S(), g("span", je, "—")) : (S(), g("span", Me, "不适用"))]),
556
556
  _: 1
557
- }, 8, ["rows"])) : (S(), m(E(i), {
557
+ }, 8, ["rows"])) : (S(), h(E(a), {
558
558
  key: 1,
559
559
  title: "请选择模块"
560
560
  }))]),
561
561
  _: 2
562
562
  }, [X.value ? void 0 : {
563
563
  name: "actions",
564
- fn: D(() => [b(E(s), {
564
+ fn: D(() => [b(E(o), {
565
565
  type: "primary",
566
566
  disabled: !Z.value,
567
567
  loading: R.value,
@@ -575,7 +575,7 @@ var Te = { class: "panel-title" }, Ee = {
575
575
  _: 2
576
576
  }, [X.value && !W.value ? {
577
577
  name: "operation",
578
- fn: D(() => [b(E(s), {
578
+ fn: D(() => [b(E(o), {
579
579
  type: "primary",
580
580
  disabled: !Z.value,
581
581
  loading: R.value,
@@ -587,6 +587,6 @@ var Te = { class: "panel-title" }, Ee = {
587
587
  key: "0"
588
588
  } : void 0]), 1040));
589
589
  }
590
- }), k = /* @__PURE__ */ le({ default: () => A }), A = /*#__PURE__*/ c(O, [["__scopeId", "data-v-3023b71d"]]);
590
+ }), k = /* @__PURE__ */ l({ default: () => A }), A = /*#__PURE__*/ e(O, [["__scopeId", "data-v-3023b71d"]]);
591
591
  //#endregion
592
592
  export { k as n, be as r, A as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./RoleManagementView-BrqaFV7y.js";
1
+ import { t as e } from "./RoleManagementView-B7TzzVOm.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