@ximatai/muyun-web-app 0.26.5 → 0.26.6

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 (92) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-rm9ujeiQ.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
  2. package/dist/{EmployeeManagementView-DyYMWQ64.js → EmployeeManagementView-BfGb_ssB.js} +573 -573
  3. package/dist/{MetadataOrchestrationView-DaPNQML7.js → MetadataOrchestrationView-BLxigKBh.js} +198 -198
  4. package/dist/ModuleActionManagementView-ByJzNkQs.js +597 -0
  5. package/dist/{RoleAuthorizationView-qQvn7M75.js → RoleAuthorizationView-DJSWY3fu.js} +76 -76
  6. package/dist/{RoleDetailWorkspaceView-C-vaKeZM.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
  7. package/dist/{RoleManagementView-C3nxfub2.js → RoleManagementView-D0e9nLwW.js} +504 -504
  8. package/dist/{SystemUserDetailWorkspaceView-FIbfff00.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
  9. package/dist/{SystemUserManagementView-m6vwJDxI.js → SystemUserManagementView-DNKRvmDk.js} +251 -251
  10. package/dist/{UserDetailWorkspaceView-M--ndn6x.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
  11. package/dist/UserManagementView-aY2AeeWK.js +965 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +2187 -2213
  14. package/dist/pageRealtime-Be2xkeKK.js +225 -0
  15. package/dist/{platform-components-_3KlZZf5.js → platform-components-DuAohqJO.js} +2716 -1528
  16. package/dist/types/app/workbenchRouteSync.d.ts +13 -0
  17. package/dist/types/consumer/index.d.ts +10 -1
  18. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
  19. package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
  20. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +126 -0
  21. package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
  22. package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
  23. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
  24. package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
  25. package/dist/types/platform-admin-runtime/index.d.ts +3 -0
  26. package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
  27. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
  28. package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
  29. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
  30. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  31. package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
  32. package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
  33. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +51 -0
  34. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
  35. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
  36. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +19 -0
  37. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
  38. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
  39. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -0
  40. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
  41. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
  42. package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
  43. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
  45. package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
  46. package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
  47. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
  48. package/dist/types/platform-components/fileReferenceTransfer.d.ts +17 -0
  49. package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
  50. package/dist/types/platform-components/index.d.ts +14 -1
  51. package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
  52. package/dist/types/platform-components/platformFileSize.d.ts +10 -0
  53. package/dist/types/platform-components/recordActionBarModel.d.ts +6 -1
  54. package/dist/types/platform-components/recordFormFieldModel.d.ts +21 -3
  55. package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
  56. package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +21 -0
  57. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +15 -1
  58. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
  59. package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
  60. package/dist/types/platform-workbench/index.d.ts +7 -0
  61. package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
  62. package/dist/types/platform-workbench/workbenchLayout.d.ts +1 -0
  63. package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
  64. package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
  65. package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
  66. package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
  67. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
  68. package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
  69. package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
  70. package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
  71. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
  72. package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
  73. package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
  74. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  75. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
  76. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  77. package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
  78. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
  79. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  80. package/dist/types/vue-ui-antdv/index.d.ts +3 -0
  81. package/dist/types/vue-ui-antdv/types.d.ts +3 -9
  82. package/dist/types/web-contracts/index.d.ts +111 -1
  83. package/dist/types/web-core/clients.d.ts +6 -1
  84. package/dist/types/web-core/http.d.ts +12 -1
  85. package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
  86. package/dist/{useUserSessionRows-iAqK_cUy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
  87. package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
  88. package/package.json +1 -1
  89. package/dist/ModuleActionManagementView-BFoPGqzC.js +0 -597
  90. package/dist/UserManagementView-MSXf4fno.js +0 -965
  91. package/dist/pageRealtime-4LXXvVW7.js +0 -140
  92. package/dist/workspaceViewSessions-DW0wbyQ_.js +0 -1448
@@ -1,6 +1,6 @@
1
- import { $ as e, C as t, E as n, En as r, K as i, M as ee, Q as te, St as ne, V as re, X as ie, dt as a, f as ae, ft as o, ht as s, it as oe, mt as c, q as se, rt as ce, st as le } from "./platform-components-_3KlZZf5.js";
2
- import { g as ue, i as de, n as fe, r as l, t as u, u as d } from "./workspaceViewSessions-DW0wbyQ_.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 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";
1
+ import { $ as e, C as t, Ct as n, Et as r, F as i, J as a, Nt as ee, O as te, St as o, Tt as s, at as ne, ct as re, f as ie, mt as ae, pt as oe, st as se, tt as ce, vt as le, zn as c } from "./platform-components-DuAohqJO.js";
2
+ import { i as ue, n as l, r as u, s as d, t as f, x as de } from "./workspaceViewSessions-C3GP1UGp.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 {
@@ -104,7 +104,7 @@ function be(e) {
104
104
  }
105
105
  //#endregion
106
106
  //#region src/platform-admin-runtime/WorkspaceViewDrawer.vue
107
- var xe = /* @__PURE__ */ b({
107
+ var xe = /* @__PURE__ */ x({
108
108
  name: "WorkspaceViewDrawer",
109
109
  __name: "WorkspaceViewDrawer",
110
110
  props: {
@@ -116,15 +116,15 @@ var xe = /* @__PURE__ */ b({
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(ee), {
119
+ let n = e, r = t, a = m(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
120
+ return (t, n) => (S(), h(E(i), {
121
121
  open: e.open,
122
122
  title: e.title,
123
123
  subtitle: e.subtitle,
124
- width: i.value,
124
+ width: a.value,
125
125
  promotion: e.promotion,
126
126
  onClose: n[0] ||= (e) => r("close")
127
- }, _({
127
+ }, v({
128
128
  default: D(() => [w(t.$slots, "default")]),
129
129
  _: 2
130
130
  }, [t.$slots.operation ? {
@@ -143,13 +143,13 @@ var xe = /* @__PURE__ */ b({
143
143
  //#endregion
144
144
  //#region src/views/roleAuthorizationWorkspaceSession.ts
145
145
  function Se(e, t) {
146
- return u(d, e, t);
146
+ return f(d, e, t);
147
147
  }
148
148
  function Ce(e, t) {
149
- return fe(d, e, t);
149
+ return l(d, e, t);
150
150
  }
151
151
  function we(e) {
152
- return l(d, e);
152
+ return u(d, e);
153
153
  }
154
154
  //#endregion
155
155
  //#region src/views/RoleAuthorizationView.vue?vue&type=script&setup=true&lang.ts
@@ -165,7 +165,7 @@ var Te = { class: "panel-title" }, Ee = {
165
165
  }, ke = { key: 0 }, Ae = { key: 1 }, je = { key: 3 }, Me = {
166
166
  key: 4,
167
167
  class: "not-applicable"
168
- }, O = /*@__PURE__*/ b({
168
+ }, O = /*@__PURE__*/ x({
169
169
  name: "RoleAuthorizationView",
170
170
  __name: "RoleAuthorizationView",
171
171
  props: {
@@ -173,19 +173,19 @@ var Te = { class: "panel-title" }, Ee = {
173
173
  drawer: { type: Boolean }
174
174
  },
175
175
  emits: ["close"],
176
- setup(r, { emit: ee }) {
177
- let s = r, fe = ee, l = ne({ moduleAlias: "iam.role" }), u = be(l.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) => ({
176
+ setup(r, { emit: i }) {
177
+ let c = r, l = i, u = ee({ moduleAlias: "iam.role" }), f = be(u.http), x = c.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", w = de(), 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 = 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,21 +219,21 @@ 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(() => s.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(() => c.drawer === !0 || !!O && w?.presentation === "drawer"), X = m(() => !!O), We = m(() => Y.value ? xe : X.value ? te : "div"), Ge = m(() => Y.value ? {
223
223
  open: !0,
224
224
  title: J.value,
225
225
  profile: d.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({
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
232
  view: d,
233
233
  input: () => O,
234
234
  title: J,
235
235
  eligibility: () => ({
236
- hasStableIdentity: !!(b && A.value),
236
+ hasStableIdentity: !!(x && A.value),
237
237
  busy: R.value
238
238
  }),
239
239
  beforePromote: (e) => Se(e, {
@@ -249,34 +249,34 @@ var Te = { class: "panel-title" }, Ee = {
249
249
  }))
250
250
  }).then((e) => e === "accepted"),
251
251
  onPromoted: dt,
252
- onPromotionRejected: () => se("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
252
+ onPromotionRejected: () => ce("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
253
253
  source: "role-authorization",
254
254
  phase: "validation"
255
255
  })
256
256
  });
257
- x(() => {
257
+ _e(() => {
258
258
  O && !Y.value && (Ne = Ce(O, ft)), Q();
259
259
  }), ye(J, (e) => {
260
260
  X.value && w?.setTitle(e);
261
- }, { immediate: !0 }), ye(M, () => void Ze()), x(() => window.addEventListener("beforeunload", mt)), _e(() => {
261
+ }, { immediate: !0 }), ye(M, () => void Ze()), _e(() => window.addEventListener("beforeunload", mt)), ge(() => {
262
262
  Ne?.(), window.removeEventListener("beforeunload", mt);
263
263
  });
264
264
  async function Q() {
265
- if (!b) {
265
+ if (!x) {
266
266
  z.value = "缺少角色标识,无法打开授权页。";
267
267
  return;
268
268
  }
269
269
  I.value = !0, z.value = void 0;
270
270
  try {
271
- if (A.value = await l.crud.view(b), 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(b), u.dataScopePolicyCatalog(b)]);
273
+ let [e, t] = await Promise.all([f.dataGrantActionMatrix(x), f.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(b)).records, M.value = k?.selectedModuleAlias ?? j.value[0]?.moduleAlias;
278
- } catch (e) {
279
- z.value = "授权信息加载失败,请重试。", i(e, {
277
+ j.value = (await f.authorizationModules(x)).records, M.value = k?.selectedModuleAlias ?? j.value[0]?.moduleAlias;
278
+ } catch (t) {
279
+ z.value = "授权信息加载失败,请重试。", e(t, {
280
280
  source: "role-authorization",
281
281
  phase: "load"
282
282
  });
@@ -285,14 +285,14 @@ var Te = { class: "panel-title" }, Ee = {
285
285
  }
286
286
  }
287
287
  async function Ze() {
288
- let e = M.value;
289
- if (!(!e || G.value || W.value)) {
288
+ let t = M.value;
289
+ if (!(!t || G.value || W.value)) {
290
290
  L.value = !0;
291
291
  try {
292
- let [t, n] = await Promise.all([u.permissionMatrix(b, [e]), u.dataScopePolicyCatalog(b, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = k?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
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
- } catch (e) {
295
- i(e, {
292
+ let [e, n] = await Promise.all([f.permissionMatrix(x, [t]), f.dataScopePolicyCatalog(x, t)]), r = (e.modules[0]?.actions ?? []).map(st), i = k?.actionDrafts?.find((e) => e.moduleAlias === t)?.actions;
293
+ N.value = V.get(t) ?? i ?? r, V.has(t) || (V.set(t, N.value), H.set(t, k?.actionSnapshots?.find((e) => e.moduleAlias === t)?.snapshot ?? JSON.stringify(r))), U.value += 1, F.value = n;
294
+ } catch (t) {
295
+ e(t, {
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 re(await u.replaceDataGrantActions(b, P.value.actions.map((e) => ({
346
+ await a(await f.replaceDataGrantActions(x, P.value.actions.map((e) => ({
347
347
  actionCode: e.actionCode,
348
348
  dataScopePolicy: e.dataScopePolicy,
349
349
  enabled: e.configured
@@ -352,8 +352,8 @@ var Te = { class: "panel-title" }, Ee = {
352
352
  phase: "action",
353
353
  fallbackMessage: "数据权限模板已保存"
354
354
  }), B.value = JSON.stringify(P.value.actions);
355
- } catch (e) {
356
- i(e, {
355
+ } catch (t) {
356
+ e(t, {
357
357
  source: "role-authorization",
358
358
  phase: "action"
359
359
  });
@@ -363,11 +363,11 @@ var Te = { class: "panel-title" }, Ee = {
363
363
  }
364
364
  }
365
365
  async function lt() {
366
- let e = [...V.entries()].filter(([e, t]) => H.get(e) !== JSON.stringify(t));
367
- if (e.length) {
366
+ let t = [...V.entries()].filter(([e, t]) => H.get(e) !== JSON.stringify(t));
367
+ if (t.length) {
368
368
  R.value = !0;
369
369
  try {
370
- await re(await u.replacePermissionMatrix(b, e.flatMap(([e, t]) => t.map((t) => ({
370
+ await a(await f.replacePermissionMatrix(x, t.flatMap(([e, t]) => t.map((t) => ({
371
371
  moduleAlias: e,
372
372
  actionCode: t.actionCode,
373
373
  granted: !!t.granted,
@@ -378,9 +378,9 @@ var Te = { class: "panel-title" }, Ee = {
378
378
  source: "role-authorization",
379
379
  phase: "action",
380
380
  fallbackMessage: "角色授权已保存"
381
- }), e.forEach(([e, t]) => H.set(e, JSON.stringify(t))), U.value += 1;
382
- } catch (e) {
383
- i(e, {
381
+ }), t.forEach(([e, t]) => H.set(e, JSON.stringify(t))), U.value += 1;
382
+ } catch (t) {
383
+ e(t, {
384
384
  source: "role-authorization",
385
385
  phase: "action"
386
386
  });
@@ -397,7 +397,7 @@ var Te = { class: "panel-title" }, Ee = {
397
397
  await lt();
398
398
  }
399
399
  async function ut() {
400
- Z.value && !await ie({
400
+ Z.value && !await ne({
401
401
  title: "放弃未确认的授权配置",
402
402
  content: "当前修改尚未确认,关闭后将丢失这些修改。",
403
403
  okText: "放弃修改",
@@ -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 (s.drawer === !0) {
415
- fe("close");
414
+ if (c.drawer === !0) {
415
+ l("close");
416
416
  return;
417
417
  }
418
418
  w?.dismiss();
@@ -420,41 +420,41 @@ var Te = { class: "panel-title" }, Ee = {
420
420
  function mt(e) {
421
421
  Z.value && (e.preventDefault(), e.returnValue = "");
422
422
  }
423
- return (n, r) => (S(), m(ve(We.value), ge(me(Ge.value)), _({
424
- default: D(() => [g("section", { class: he(["role-authorization-page", { "role-authorization-page--drawer": Y.value }]) }, [I.value ? (S(), m(E(e), {
423
+ return (e, r) => (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(re), {
425
425
  key: 0,
426
426
  tip: "加载授权信息"
427
- })) : z.value ? (S(), m(E(te), {
427
+ })) : z.value ? (S(), h(E(se), {
428
428
  key: 1,
429
429
  title: "授权页加载失败",
430
430
  message: z.value
431
- }, null, 8, ["message"])) : W.value ? (S(), m(E(oe), {
431
+ }, null, 8, ["message"])) : W.value ? (S(), h(E(ae), {
432
432
  key: 2,
433
433
  title: "角色组不独立授权",
434
434
  description: "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。"
435
- })) : G.value && P.value ? (S(), m(E(t), {
435
+ })) : G.value && P.value ? (S(), h(E(t), {
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(() => [g("header", Te, [r[3] ||= g("div", null, [g("h3", null, "标准动作的数据范围模板"), g("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), X.value ? pe("v-if", !0) : (S(), m(E(c), {
442
+ default: D(() => [_("header", Te, [r[3] ||= _("div", null, [_("h3", null, "标准动作的数据范围模板"), _("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), X.value ? fe("v-if", !0) : (S(), h(E(s), {
443
443
  key: 0,
444
444
  type: "primary",
445
445
  disabled: !Z.value,
446
446
  loading: R.value,
447
447
  onClick: $
448
448
  }, {
449
- default: D(() => [...r[2] ||= [v(" 确认 ", -1)]]),
449
+ default: D(() => [...r[2] ||= [y(" 确认 ", -1)]]),
450
450
  _: 1
451
- }, 8, ["disabled", "loading"]))]), y(E(ce), {
451
+ }, 8, ["disabled", "loading"]))]), b(E(oe), {
452
452
  columns: Ve,
453
453
  rows: Ue.value,
454
454
  "row-key": "actionCode",
455
455
  "horizontal-scroll": ""
456
456
  }, {
457
- cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), h(f, { key: 0 }, [g("strong", null, T(t.title || t.actionCode), 1), g("small", null, T(t.actionCode), 1)], 64)) : e.key === "configured" ? (S(), m(E(le), {
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(le), {
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(a), {
466
+ ])) : (S(), h(E(o), {
467
467
  key: 2,
468
468
  value: t.dataScopePolicy,
469
469
  options: Le.value,
@@ -480,28 +480,28 @@ var Te = { class: "panel-title" }, Ee = {
480
480
  _: 1
481
481
  }, 8, ["rows"])]),
482
482
  _: 1
483
- }, 8, ["title"])) : (S(), h("section", Ee, [y(E(t), {
483
+ }, 8, ["title"])) : (S(), g("section", Ee, [b(E(t), {
484
484
  class: "module-panel",
485
485
  title: "模块树",
486
486
  "refresh-title": "刷新模块目录",
487
487
  searchable: !1,
488
488
  onRefresh: Q
489
489
  }, {
490
- default: D(() => [y(E(ae), {
490
+ default: D(() => [b(E(ie), {
491
491
  records: Ie.value,
492
492
  "selected-id": M.value,
493
493
  onSelect: r[0] ||= (e) => M.value = e.id
494
494
  }, null, 8, ["records", "selected-id"])]),
495
495
  _: 1
496
- }), y(E(t), {
496
+ }), b(E(t), {
497
497
  class: "action-panel",
498
498
  title: Pe.value,
499
499
  searchable: !1
500
- }, _({
501
- default: D(() => [L.value ? (S(), m(E(e), {
500
+ }, v({
501
+ default: D(() => [L.value ? (S(), h(E(re), {
502
502
  key: 0,
503
503
  tip: "加载模块动作"
504
- })) : M.value ? (S(), m(E(ce), {
504
+ })) : M.value ? (S(), h(E(oe), {
505
505
  key: 2,
506
506
  columns: Be,
507
507
  rows: He.value,
@@ -509,7 +509,7 @@ var Te = { class: "panel-title" }, Ee = {
509
509
  "fill-height": "",
510
510
  "horizontal-scroll": ""
511
511
  }, {
512
- header: D(({ column: e }) => [e.key === "granted" ? (S(), h("span", De, [y(E(o), {
512
+ header: D(({ column: e }) => [e.key === "granted" ? (S(), g("span", De, [b(E(n), {
513
513
  checked: Je.value,
514
514
  indeterminate: Ye.value,
515
515
  disabled: R.value || !N.value.length,
@@ -519,8 +519,8 @@ var Te = { class: "panel-title" }, Ee = {
519
519
  "checked",
520
520
  "indeterminate",
521
521
  "disabled"
522
- ]), r[5] ||= v(" 授权 ", -1)])) : (S(), h(f, { key: 1 }, [v(T(e.title), 1)], 64))]),
523
- cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), h(f, { key: 0 }, [g("strong", null, T(t.title || t.actionCode), 1), g("small", null, T(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (S(), m(E(o), {
522
+ ]), r[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(n), {
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(), h("div", Oe, [y(E(a), {
532
+ ])) : t.dataAuth && K.value && t.granted ? (S(), g("div", Oe, [b(E(o), {
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(), h(f, { key: 0 }, [y(E(a), {
543
+ ]), t.dataScopePolicy === "referenceDependency" ? (S(), g(p, { key: 0 }, [b(E(o), {
544
544
  value: rt(t.referenceFieldId),
545
545
  options: Re.value,
546
546
  disabled: R.value,
@@ -552,22 +552,22 @@ var Te = { class: "panel-title" }, Ee = {
552
552
  "options",
553
553
  "disabled",
554
554
  "onUpdate:value"
555
- ]), t.referenceFieldId ? (S(), h("small", ke, " 依赖目标:" + T(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + T(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (S(), h("small", Ae, "请先选择引用字段,再开启该动作授权。"))], 64)) : pe("v-if", !0)])) : ot(e, t) ? (S(), h("span", je, "—")) : (S(), h("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(oe), {
557
+ }, 8, ["rows"])) : (S(), h(E(ae), {
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(() => [y(E(c), {
564
+ fn: D(() => [b(E(s), {
565
565
  type: "primary",
566
566
  disabled: !Z.value,
567
567
  loading: R.value,
568
568
  onClick: $
569
569
  }, {
570
- default: D(() => [...r[4] ||= [v(" 确认 ", -1)]]),
570
+ default: D(() => [...r[4] ||= [y(" 确认 ", -1)]]),
571
571
  _: 1
572
572
  }, 8, ["disabled", "loading"])]),
573
573
  key: "0"
@@ -575,18 +575,18 @@ var Te = { class: "panel-title" }, Ee = {
575
575
  _: 2
576
576
  }, [X.value && !W.value ? {
577
577
  name: "operation",
578
- fn: D(() => [y(E(c), {
578
+ fn: D(() => [b(E(s), {
579
579
  type: "primary",
580
580
  disabled: !Z.value,
581
581
  loading: R.value,
582
582
  onClick: $
583
583
  }, {
584
- default: D(() => [...r[1] ||= [v(" 确认 ", -1)]]),
584
+ default: D(() => [...r[1] ||= [y(" 确认 ", -1)]]),
585
585
  _: 1
586
586
  }, 8, ["disabled", "loading"])]),
587
587
  key: "0"
588
588
  } : void 0]), 1040));
589
589
  }
590
- }), k = /* @__PURE__ */ r({ default: () => A }), A = /*#__PURE__*/ s(O, [["__scopeId", "data-v-3023b71d"]]);
590
+ }), k = /* @__PURE__ */ c({ default: () => A }), A = /*#__PURE__*/ r(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-C3nxfub2.js";
1
+ import { t as e } from "./RoleManagementView-D0e9nLwW.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