@ximatai/muyun-web-app 0.26.3 → 0.26.5

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 (138) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-mtdcsqgF.js → EmployeeDetailWorkspaceView-rm9ujeiQ.js} +1 -1
  2. package/dist/{EmployeeManagementView-CKKvQZaC.js → EmployeeManagementView-DyYMWQ64.js} +510 -510
  3. package/dist/{MetadataOrchestrationView-CprWBocy.js → MetadataOrchestrationView-DaPNQML7.js} +175 -175
  4. package/dist/{ModuleActionManagementView-DNuAQUPE.js → ModuleActionManagementView-BFoPGqzC.js} +197 -197
  5. package/dist/{RoleAuthorizationView-CQtSAJoJ.js → RoleAuthorizationView-qQvn7M75.js} +56 -56
  6. package/dist/{RoleDetailWorkspaceView-Dh8DXpyS.js → RoleDetailWorkspaceView-C-vaKeZM.js} +1 -1
  7. package/dist/{RoleManagementView-BrqaFV7y.js → RoleManagementView-C3nxfub2.js} +490 -490
  8. package/dist/{SystemUserDetailWorkspaceView-N-kvycAu.js → SystemUserDetailWorkspaceView-FIbfff00.js} +1 -1
  9. package/dist/{SystemUserManagementView-BVS5moV5.js → SystemUserManagementView-m6vwJDxI.js} +128 -128
  10. package/dist/{UserDetailWorkspaceView-Iek6xwix.js → UserDetailWorkspaceView-M--ndn6x.js} +1 -1
  11. package/dist/{UserManagementView-BR_Jz8O-.js → UserManagementView-MSXf4fno.js} +293 -293
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +2250 -2250
  14. package/dist/{pageRealtime-sRtDYlQP.js → pageRealtime-4LXXvVW7.js} +10 -10
  15. package/dist/{platform-components-bC1gwhic.js → platform-components-_3KlZZf5.js} +1195 -1467
  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/consumer/index.d.ts +1 -2
  23. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +1 -1
  24. package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +1 -1
  25. package/dist/types/dynamic-page-runtime/actionReactions.d.ts +1 -1
  26. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
  27. package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +1 -1
  28. package/dist/types/main.d.ts +1 -1
  29. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -1
  30. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -1
  31. package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +1 -1
  32. package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
  33. package/dist/types/platform-admin-runtime/currentUserContext.d.ts +1 -1
  34. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -2
  35. package/dist/types/platform-admin-runtime/pageRealtime.d.ts +1 -1
  36. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -1
  37. package/dist/types/platform-admin-runtime/realtime.d.ts +4 -4
  38. package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +1 -1
  39. package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +1 -1
  40. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -1
  41. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -1
  42. package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +1 -1
  43. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  44. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
  45. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  46. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -1
  47. package/dist/types/platform-components/RecordFormFields.vue.d.ts +1 -1
  48. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
  49. package/dist/types/platform-components/RecordMetaSection.vue.d.ts +1 -1
  50. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +15 -1
  51. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  52. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  53. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
  54. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
  55. package/dist/types/platform-components/actionConfirmation.d.ts +1 -1
  56. package/dist/types/platform-components/index.d.ts +1 -0
  57. package/dist/types/platform-components/optionFieldOptions.d.ts +1 -1
  58. package/dist/types/platform-components/pageLayoutContext.d.ts +1 -1
  59. package/dist/types/platform-components/platformActionResultReactions.d.ts +1 -1
  60. package/dist/types/platform-components/platformErrorFeedback.d.ts +1 -1
  61. package/dist/types/platform-components/recordActionBarModel.d.ts +2 -2
  62. package/dist/types/platform-components/recordEditorSessionState.d.ts +1 -1
  63. package/dist/types/platform-components/recordExplorerItemModel.d.ts +1 -1
  64. package/dist/types/platform-components/recordFormFieldModel.d.ts +3 -3
  65. package/dist/types/platform-components/recycleBinState.d.ts +2 -2
  66. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +1 -1
  67. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -1
  68. package/dist/types/platform-components/softDeletedConflictHandler.d.ts +1 -1
  69. package/dist/types/platform-components/staticCrudManagementState.d.ts +2 -2
  70. package/dist/types/platform-components/staticFormActionFlow.d.ts +1 -1
  71. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +1 -1
  72. package/dist/types/platform-components/treeRecordModel.d.ts +1 -1
  73. package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +1 -1
  74. package/dist/types/platform-components/userSessionPresentation.d.ts +1 -1
  75. package/dist/types/platform-workbench/Workbench.vue.d.ts +1 -1
  76. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
  77. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +1 -1
  78. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +1 -1
  79. package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +1 -1
  80. package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +1 -1
  81. package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +1 -1
  82. package/dist/types/platform-workbench/menuNavigation.d.ts +1 -1
  83. package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -1
  84. package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
  85. package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -1
  86. package/dist/types/views/EmployeeDetailContent.vue.d.ts +3 -3
  87. package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +1 -1
  88. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +1 -1
  89. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +2 -2
  90. package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +1 -1
  91. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +2 -2
  92. package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +1 -1
  93. package/dist/types/views/RoleManagementView.vue.d.ts +1 -1
  94. package/dist/types/views/UserDetailContent.vue.d.ts +2 -2
  95. package/dist/types/views/applicationManagementState.d.ts +3 -3
  96. package/dist/types/views/departmentManagementState.d.ts +3 -3
  97. package/dist/types/views/dictionaryManagementState.d.ts +4 -4
  98. package/dist/types/views/employeeDetailWorkspaceSession.d.ts +1 -1
  99. package/dist/types/views/fieldSpecManagementState.d.ts +3 -3
  100. package/dist/types/views/fieldUiControlManagementState.d.ts +3 -3
  101. package/dist/types/views/menuManagementState.d.ts +7 -7
  102. package/dist/types/views/metadataOrchestrationState.d.ts +1 -1
  103. package/dist/types/views/moduleManagementState.d.ts +5 -5
  104. package/dist/types/views/organizationManagementState.d.ts +4 -4
  105. package/dist/types/views/positionManagementState.d.ts +4 -4
  106. package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
  107. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
  108. package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
  109. package/dist/types/views/roleGrantClient.d.ts +2 -2
  110. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +1 -1
  111. package/dist/types/views/tenantManagementState.d.ts +3 -3
  112. package/dist/types/views/useEmployeeEmploymentRows.d.ts +2 -2
  113. package/dist/types/views/useUserSessionRows.d.ts +3 -3
  114. package/dist/types/views/userDetailWorkspaceSession.d.ts +1 -1
  115. package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +1 -1
  116. package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +1 -1
  117. package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +1 -1
  118. package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +1 -1
  119. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -1
  120. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  121. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -1
  122. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  123. package/dist/types/vue-ui-antdv/dictionaries.d.ts +1 -1
  124. package/dist/types/vue-ui-antdv/references.d.ts +1 -1
  125. package/dist/types/vue-ui-antdv/registry.d.ts +1 -1
  126. package/dist/types/web-core/actionResult.d.ts +1 -2
  127. package/dist/types/web-core/clients.d.ts +1 -1
  128. package/dist/types/web-core/dataChanges.d.ts +1 -1
  129. package/dist/types/web-core/errors.d.ts +1 -1
  130. package/dist/types/web-core/http.d.ts +1 -1
  131. package/dist/types/web-core/mock.d.ts +1 -1
  132. package/dist/types/web-core/module/runtimeContext.d.ts +1 -1
  133. package/dist/types/web-core/module/staticModuleClient.d.ts +1 -1
  134. package/dist/types/web-core/realtime.d.ts +1 -1
  135. package/dist/{useUserSessionRows-CLM0ZvAF.js → useUserSessionRows-iAqK_cUy.js} +2 -2
  136. package/dist/workspaceViewSessions-DW0wbyQ_.js +1448 -0
  137. package/package.json +1 -1
  138. package/dist/workspaceViewSessions-WsJU3OS7.js +0 -1578
@@ -1,4 +1,4 @@
1
- import { t as e } from "./SystemUserManagementView-BVS5moV5.js";
1
+ import { t as e } from "./SystemUserManagementView-m6vwJDxI.js";
2
2
  import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
3
  //#endregion
4
4
  //#region src/views/SystemUserDetailWorkspaceView.vue
@@ -1,21 +1,21 @@
1
- import { C as e, Dt as t, Et as n, G as r, K as i, L as a, Pt as o, S as s, X as c, Yt as l, Z as u, a as d, cn as ee, cr as te, d as ne, en as re, i as ie, tn as ae, tt as oe, x as se, y as ce, z as le } from "./platform-components-bC1gwhic.js";
2
- import { d as f, g as ue, i as de, n as p, r as m, t as h } from "./workspaceViewSessions-WsJU3OS7.js";
3
- import { i as fe, n as pe } from "./pageRealtime-sRtDYlQP.js";
4
- import { t as me } from "./useUserSessionRows-CLM0ZvAF.js";
5
- import { Fragment as he, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, onBeforeUnmount as ge, onMounted as _e, openBlock as w, ref as T, resolveComponent as ve, unref as E, watch as ye, withCtx as D, withModifiers as be } from "vue";
1
+ import { A as e, D as t, E as n, K as r, N as i, S as ee, Sn as te, St as a, X as o, _ as s, c as ne, g as re, ht as ie, i as c, k as ae, m as oe, mt as se, q as l, r as ce, ut as u, v as le, w as ue } from "./platform-components-_3KlZZf5.js";
2
+ import { d, g as de, i as fe, n as f, r as p, t as m } from "./workspaceViewSessions-DW0wbyQ_.js";
3
+ import { i as pe, n as me } from "./pageRealtime-4LXXvVW7.js";
4
+ import { t as he } from "./useUserSessionRows-iAqK_cUy.js";
5
+ import { Fragment as ge, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, onBeforeUnmount as _e, onMounted as ve, openBlock as C, ref as w, resolveComponent as T, unref as E, watch as ye, withCtx as D, withModifiers as be } from "vue";
6
6
  //#region src/views/systemUserDetailWorkspaceSession.ts
7
7
  function xe(e, t) {
8
- return h(f, e, {
8
+ return m(d, e, {
9
9
  ...t,
10
10
  selectedUser: { ...t.selectedUser },
11
11
  draft: { ...t.draft }
12
12
  });
13
13
  }
14
14
  function Se(e, t) {
15
- return p(f, e, t);
15
+ return f(d, e, t);
16
16
  }
17
17
  function Ce(e) {
18
- return m(f, e);
18
+ return p(d, e);
19
19
  }
20
20
  //#endregion
21
21
  //#region src/views/SystemUserManagementView.vue?vue&type=script&setup=true&lang.ts
@@ -28,23 +28,23 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
28
28
  }, Ae = {
29
29
  key: 0,
30
30
  class: "system-user-password-reset-result"
31
- }, je = { key: 0 }, Me = { key: 1 }, O = /*#__PURE__*/ ae(/* @__PURE__ */ C({
31
+ }, je = { key: 0 }, Me = { key: 1 }, O = /*#__PURE__*/ ie(/* @__PURE__ */ S({
32
32
  name: "SystemUserManagementView",
33
33
  __name: "SystemUserManagementView",
34
34
  props: {
35
35
  recordId: {},
36
36
  mode: {}
37
37
  },
38
- setup(ae) {
39
- let p = ae, m = ee({ moduleAlias: "iam.user" }), h = ue(), C = T(), O = T(), k = T(!1), A = T("view"), j = T(!1), M = T(!1), N = T(!1), P = T(0), F = T(0), I = T(Z()), L = T(""), R = T(), z = T(u(void 0)), B = g(() => !!p.recordId), V = g(() => B.value && h?.presentation === "drawer"), Ne = g(() => !B.value || V.value), { expandedUserKeys: Pe, handleUserListLoaded: Fe, handleUserRowExpand: Ie, handleUserSessionBusinessEvent: Le, loadUserSessions: H, userOnlineStatusTitle: Re, userSessionState: U } = me({
40
- context: m,
38
+ setup(ie) {
39
+ let f = ie, p = a({ moduleAlias: "iam.user" }), m = de(), S = w(), O = w(), k = w(!1), A = w("view"), j = w(!1), M = w(!1), N = w(!1), P = w(0), F = w(0), I = w(Z()), L = w(""), R = w(), z = w(e(void 0)), B = h(() => !!f.recordId), V = h(() => B.value && m?.presentation === "drawer"), Ne = h(() => !B.value || V.value), { expandedUserKeys: Pe, handleUserListLoaded: Fe, handleUserRowExpand: Ie, handleUserSessionBusinessEvent: Le, loadUserSessions: H, userOnlineStatusTitle: Re, userSessionState: U } = he({
40
+ context: p,
41
41
  source: "system-user-management"
42
- }), W = fe({
42
+ }), W = pe({
43
43
  moduleAlias: "iam.user",
44
44
  recordId: () => O.value?.id,
45
45
  editing: () => A.value === "edit",
46
46
  saving: () => N.value
47
- }), G = g(() => Ze(m)), ze = g(() => [
47
+ }), G = h(() => Ze(p)), ze = h(() => [
48
48
  {
49
49
  key: "username",
50
50
  title: "账号",
@@ -73,15 +73,15 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
73
73
  type: "enabledStatus",
74
74
  width: "14%"
75
75
  }
76
- ]), Be = g(() => $(O.value ?? I.value)), Ve = g(() => A.value === "resetPassword" ? "修改密码" : "系统账号"), K = g(() => N.value || j.value), He = g(() => {
76
+ ]), Be = h(() => $(O.value ?? I.value)), Ve = h(() => A.value === "resetPassword" ? "修改密码" : "系统账号"), K = h(() => N.value || j.value), He = h(() => {
77
77
  if (j.value) return !1;
78
- if (A.value === "edit") return !!O.value?.id && m.can("update") === !0;
78
+ if (A.value === "edit") return !!O.value?.id && p.can("update") === !0;
79
79
  if (A.value === "resetPassword") {
80
80
  let e = O.value?.id;
81
- return !!e && m.can("changePassword", e) === !0;
81
+ return !!e && p.can("changePassword", e) === !0;
82
82
  }
83
83
  return !1;
84
- }), Ue = g(() => !O.value?.id || j.value ? !1 : m.can(St(O.value)) === !0), We = g(() => A.value === "view" ? O.value?.id ? [
84
+ }), Ue = h(() => !O.value?.id || j.value ? !1 : p.can(St(O.value)) === !0), We = h(() => A.value === "view" ? O.value?.id ? [
85
85
  {
86
86
  key: "edit",
87
87
  actionCode: "update",
@@ -116,14 +116,14 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
116
116
  primary: !0,
117
117
  loading: N.value,
118
118
  disabled: !He.value
119
- }]), Ge = g(() => We.value), Ke = de({
120
- view: f,
121
- input: g(() => {
119
+ }]), Ge = h(() => We.value), Ke = fe({
120
+ view: d,
121
+ input: h(() => {
122
122
  let e = O.value?.id;
123
123
  return e && (A.value === "view" || A.value === "edit") ? { recordId: e } : void 0;
124
124
  }),
125
- title: g(() => $(O.value)),
126
- eligibility: g(() => ({
125
+ title: h(() => $(O.value)),
126
+ eligibility: h(() => ({
127
127
  hasStableIdentity: !!O.value?.id && !j.value,
128
128
  busy: N.value
129
129
  })),
@@ -140,9 +140,9 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
140
140
  onPromoted: nt
141
141
  });
142
142
  ye(O, (e) => {
143
- !B.value || !e || h?.setTitle($(e));
143
+ !B.value || !e || m?.setTitle($(e));
144
144
  }, { immediate: !0 });
145
- let q = g(() => ({
145
+ let q = h(() => ({
146
146
  username: {
147
147
  label: "账号",
148
148
  required: !0,
@@ -154,28 +154,28 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
154
154
  visible: !0,
155
155
  controlType: "enabledStatus"
156
156
  }
157
- })), qe = g(() => ["username", "enabled"]), Je;
158
- _e(() => {
159
- if (Xe(), p.recordId) {
160
- let e = { recordId: p.recordId };
157
+ })), qe = h(() => ["username", "enabled"]), Je;
158
+ ve(() => {
159
+ if (Xe(), f.recordId) {
160
+ let e = { recordId: f.recordId };
161
161
  V.value || (Je = Se(e, Ye));
162
162
  let t = Ce(e);
163
163
  if (t) {
164
164
  ht(t);
165
165
  return;
166
166
  }
167
- J({ id: p.recordId }, p.mode ?? "view");
167
+ J({ id: f.recordId }, f.mode ?? "view");
168
168
  }
169
- }), ge(() => Je?.());
169
+ }), _e(() => Je?.());
170
170
  function Ye(e) {
171
171
  return A.value === "view" ? (ht(e), !0) : !1;
172
172
  }
173
- pe(Le);
173
+ me(Le);
174
174
  async function Xe() {
175
175
  try {
176
- z.value = u((await m.runtime.ready).uiDescriptor);
176
+ z.value = e((await p.runtime.ready).uiDescriptor);
177
177
  } catch (e) {
178
- n(e, {
178
+ r(e, {
179
179
  source: "system-user-management",
180
180
  phase: "load"
181
181
  });
@@ -224,18 +224,18 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
224
224
  function tt(e) {
225
225
  Y() && J(e, "view");
226
226
  }
227
- async function J(e, r) {
227
+ async function J(e, t) {
228
228
  if (!Y()) return;
229
- let i = String(e.id ?? "");
230
- if (!i) return;
231
- C.value = i, W.clearExternalChanged(), k.value = !0, A.value = r, O.value = void 0, I.value = Q(e), L.value = "", R.value = void 0, j.value = !0, M.value = !1;
232
- let a = P.value + 1;
233
- P.value = a;
229
+ let n = String(e.id ?? "");
230
+ if (!n) return;
231
+ S.value = n, W.clearExternalChanged(), k.value = !0, A.value = t, O.value = void 0, I.value = Q(e), L.value = "", R.value = void 0, j.value = !0, M.value = !1;
232
+ let i = P.value + 1;
233
+ P.value = i;
234
234
  try {
235
- let e = await m.crud.view(i);
236
- if (!mt(i, a)) return;
235
+ let e = await p.crud.view(n);
236
+ if (!mt(n, i)) return;
237
237
  if (!e?.id) {
238
- M.value = !0, t("未找到指定系统账号", {
238
+ M.value = !0, l("未找到指定系统账号", {
239
239
  source: "system-user-management",
240
240
  phase: "load"
241
241
  });
@@ -245,24 +245,24 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
245
245
  rt();
246
246
  return;
247
247
  }
248
- X(e, r);
248
+ X(e, t);
249
249
  } catch (e) {
250
- mt(i, a) && (M.value = !0, n(e, {
250
+ mt(n, i) && (M.value = !0, r(e, {
251
251
  source: "system-user-management",
252
252
  phase: "load"
253
253
  }));
254
254
  } finally {
255
- mt(i, a) && (j.value = !1);
255
+ mt(n, i) && (j.value = !1);
256
256
  }
257
257
  }
258
258
  function nt() {
259
- N.value || (P.value += 1, j.value = !1, M.value = !1, k.value = !1, A.value = "view", L.value = "", R.value = void 0, W.clearExternalChanged(), I.value = O.value ? Q(O.value) : Z(), V.value && h?.dismiss());
259
+ N.value || (P.value += 1, j.value = !1, M.value = !1, k.value = !1, A.value = "view", L.value = "", R.value = void 0, W.clearExternalChanged(), I.value = O.value ? Q(O.value) : Z(), V.value && m?.dismiss());
260
260
  }
261
261
  function rt() {
262
- P.value += 1, j.value = !1, M.value = !1, k.value = !1, O.value = void 0, C.value = void 0, I.value = Z(), t("指定账号不属于系统账号管理范围", {
262
+ P.value += 1, j.value = !1, M.value = !1, k.value = !1, O.value = void 0, S.value = void 0, I.value = Z(), l("指定账号不属于系统账号管理范围", {
263
263
  source: "system-user-management",
264
264
  phase: "validation"
265
- }), B.value && h?.dismiss();
265
+ }), B.value && m?.dismiss();
266
266
  }
267
267
  function it() {
268
268
  if (!N.value) {
@@ -295,14 +295,14 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
295
295
  }
296
296
  }
297
297
  function ot() {
298
- let e = String(I.value.id ?? C.value ?? "");
298
+ let e = String(I.value.id ?? S.value ?? "");
299
299
  e && J({
300
300
  ...I.value,
301
301
  id: e
302
302
  }, A.value);
303
303
  }
304
304
  function st() {
305
- let e = String(W.externalChangedRecordId.value ?? I.value.id ?? C.value ?? "");
305
+ let e = String(W.externalChangedRecordId.value ?? I.value.id ?? S.value ?? "");
306
306
  e && (W.clearExternalChanged(), J({
307
307
  ...I.value,
308
308
  id: e
@@ -313,7 +313,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
313
313
  await lt();
314
314
  return;
315
315
  }
316
- await ie({
316
+ await ce({
317
317
  loading: N,
318
318
  mode: "edit",
319
319
  source: "system-user-management",
@@ -321,7 +321,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
321
321
  deniedMessage: "当前用户无权保存系统账号",
322
322
  createRecord: () => vt(I.value),
323
323
  validateRecord: yt,
324
- save: (e) => m.crud.update(O.value.id, e),
324
+ save: (e) => p.crud.update(O.value.id, e),
325
325
  actionErrorHandlers: [{
326
326
  code: te.conflictVersion,
327
327
  handle: (e, { mode: t, record: n }) => t === "edit" && W.markExternalRecordChanged(n.id)
@@ -333,50 +333,50 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
333
333
  }
334
334
  async function lt() {
335
335
  if (!L.value.trim()) {
336
- t("请填写新密码", {
336
+ l("请填写新密码", {
337
337
  source: "system-user-management",
338
338
  phase: "validation"
339
339
  });
340
340
  return;
341
341
  }
342
- await d({
342
+ await c({
343
343
  loading: N,
344
344
  source: "system-user-management",
345
345
  record: () => O.value?.id ? O.value : void 0,
346
346
  canExecute: () => He.value,
347
347
  deniedMessage: "当前用户无权重置系统账号密码",
348
- execute: (e) => m.http.request({
348
+ execute: (e) => p.http.request({
349
349
  method: "POST",
350
350
  path: `/iam.user/changePassword/${encodeURIComponent(e.id)}`,
351
351
  body: { password: L.value }
352
352
  }),
353
353
  onExecuted: async (e, t) => {
354
- X(await m.crud.view(t.id)), F.value += 1;
354
+ X(await p.crud.view(t.id)), F.value += 1;
355
355
  }
356
356
  });
357
357
  }
358
358
  async function ut() {
359
- await d({
359
+ await c({
360
360
  loading: N,
361
361
  source: "system-user-management",
362
362
  record: () => O.value?.id ? O.value : void 0,
363
- canExecute: (e) => m.can("resetPassword", e.id) === !0,
363
+ canExecute: (e) => p.can("resetPassword", e.id) === !0,
364
364
  deniedMessage: "当前用户无权重置系统账号密码",
365
- execute: (e) => m.http.request({
365
+ execute: (e) => p.http.request({
366
366
  method: "POST",
367
367
  path: `/iam.user/resetPassword/${encodeURIComponent(e.id)}`
368
368
  }),
369
369
  onExecuted: async (e, t) => {
370
- X(await m.crud.view(t.id)), R.value = e, F.value += 1;
370
+ X(await p.crud.view(t.id)), R.value = e, F.value += 1;
371
371
  }
372
372
  });
373
373
  }
374
374
  async function dt(e, t) {
375
- await d({
375
+ await c({
376
376
  loading: N,
377
377
  source: "system-user-management",
378
378
  record: () => e?.id ? e : void 0,
379
- canExecute: (e) => m.can("revokeSession", e.id) === !0 && !t.current,
379
+ canExecute: (e) => p.can("revokeSession", e.id) === !0 && !t.current,
380
380
  deniedMessage: "当前用户无权下线该登录会话",
381
381
  confirm: (e) => o({
382
382
  title: "下线登录会话",
@@ -384,7 +384,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
384
384
  okText: "下线",
385
385
  danger: !0
386
386
  }),
387
- execute: (e) => m.http.request({
387
+ execute: (e) => p.http.request({
388
388
  method: "POST",
389
389
  path: `/iam.user/${encodeURIComponent(e.id)}/sessions/${encodeURIComponent(t.id)}/revoke`
390
390
  }),
@@ -394,30 +394,30 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
394
394
  });
395
395
  }
396
396
  async function ft(e) {
397
- let n = gt(String(e.id ?? "")).map((e) => e.id);
398
- if (n.length === 0) {
399
- t("当前没有可下线的登录会话", {
397
+ let t = gt(String(e.id ?? "")).map((e) => e.id);
398
+ if (t.length === 0) {
399
+ l("当前没有可下线的登录会话", {
400
400
  source: "system-user-management",
401
401
  phase: "validation"
402
402
  });
403
403
  return;
404
404
  }
405
- await d({
405
+ await c({
406
406
  loading: N,
407
407
  source: "system-user-management",
408
408
  record: () => e?.id ? e : void 0,
409
- canExecute: (e) => m.can("revokeSessions", e.id) === !0,
409
+ canExecute: (e) => p.can("revokeSessions", e.id) === !0,
410
410
  deniedMessage: "当前用户无权批量下线登录会话",
411
411
  confirm: (e) => o({
412
412
  title: "批量下线登录会话",
413
- content: `确认下线系统账号「${$(e)}」的 ${n.length} 个登录会话?`,
413
+ content: `确认下线系统账号「${$(e)}」的 ${t.length} 个登录会话?`,
414
414
  okText: "全部下线",
415
415
  danger: !0
416
416
  }),
417
- execute: (e) => m.http.request({
417
+ execute: (e) => p.http.request({
418
418
  method: "POST",
419
419
  path: `/iam.user/${encodeURIComponent(e.id)}/sessions/revoke`,
420
- body: { sessionIds: n }
420
+ body: { sessionIds: t }
421
421
  }),
422
422
  onExecuted: (e, t) => {
423
423
  H(t.id), F.value += 1;
@@ -425,15 +425,15 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
425
425
  });
426
426
  }
427
427
  async function pt() {
428
- await d({
428
+ await c({
429
429
  loading: N,
430
430
  source: "system-user-management",
431
431
  record: () => O.value?.id ? O.value : void 0,
432
432
  canExecute: () => Ue.value,
433
433
  deniedMessage: "当前用户无权变更系统账号启停状态",
434
- execute: (e) => e.enabled === !1 ? m.crud.enable(e.id, { version: e.version }) : m.crud.disable(e.id, { version: e.version }),
434
+ execute: (e) => e.enabled === !1 ? p.crud.enable(e.id, { version: e.version }) : p.crud.disable(e.id, { version: e.version }),
435
435
  onExecuted: async (e, t) => {
436
- X(await m.crud.view(t.id)), F.value += 1;
436
+ X(await p.crud.view(t.id)), F.value += 1;
437
437
  }
438
438
  });
439
439
  }
@@ -441,19 +441,19 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
441
441
  return !N.value;
442
442
  }
443
443
  function mt(e, t) {
444
- return P.value === t && C.value === e;
444
+ return P.value === t && S.value === e;
445
445
  }
446
446
  function X(e, t = "view") {
447
- O.value = e, C.value = e.id, I.value = Q(e), L.value = "", A.value = t === "edit" ? "edit" : "view", W.clearExternalChanged(), k.value = !0, j.value = !1, M.value = !1, P.value += 1;
447
+ O.value = e, S.value = e.id, I.value = Q(e), L.value = "", A.value = t === "edit" ? "edit" : "view", W.clearExternalChanged(), k.value = !0, j.value = !1, M.value = !1, P.value += 1;
448
448
  }
449
449
  function ht(e) {
450
- C.value = e.selectedUser.id, O.value = { ...e.selectedUser }, I.value = Q(e.draft), A.value = e.mode, L.value = e.password, R.value = e.resetPasswordResult, k.value = !0, j.value = !1, M.value = !1;
450
+ S.value = e.selectedUser.id, O.value = { ...e.selectedUser }, I.value = Q(e.draft), A.value = e.mode, L.value = e.password, R.value = e.resetPasswordResult, k.value = !0, j.value = !1, M.value = !1;
451
451
  }
452
452
  function gt(e) {
453
- return !e || m.can("revokeSession", e) !== !0 ? [] : U(e).records.filter((e) => !e.current);
453
+ return !e || p.can("revokeSession", e) !== !0 ? [] : U(e).records.filter((e) => !e.current);
454
454
  }
455
455
  function _t(e, t) {
456
- return !!e && !t.current && m.can("revokeSession", e) === !0;
456
+ return !!e && !t.current && p.can("revokeSession", e) === !0;
457
457
  }
458
458
  function Z() {
459
459
  return { enabled: !0 };
@@ -473,7 +473,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
473
473
  });
474
474
  }
475
475
  function yt(e) {
476
- let t = c("username", {
476
+ let t = ae("username", {
477
477
  fields: z.value,
478
478
  fallback: q.value
479
479
  });
@@ -495,9 +495,9 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
495
495
  function $(e) {
496
496
  return String(e?.username ?? e?.id ?? "系统账号");
497
497
  }
498
- return (t, n) => {
499
- let o = ve("UiSpin"), c = ve("UiError"), u = ve("DateTimeText");
500
- return w(), y("section", we, [!B.value || V.value ? (w(), _(E(ce), {
498
+ return (e, r) => {
499
+ let te = T("UiSpin"), a = T("UiError"), o = T("DateTimeText");
500
+ return C(), v("section", we, [!B.value || V.value ? (C(), g(E(oe), {
501
501
  key: 0,
502
502
  class: "system-user-list-panel",
503
503
  context: G.value,
@@ -505,7 +505,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
505
505
  columns: ze.value,
506
506
  "cell-renderers": { onlineStatus: E(Re) },
507
507
  "row-actions-of": $e,
508
- "selected-key": C.value,
508
+ "selected-key": S.value,
509
509
  "expanded-row-keys": E(Pe),
510
510
  "reload-key": F.value,
511
511
  ready: !0,
@@ -515,9 +515,9 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
515
515
  onRowDblclick: tt,
516
516
  onRowExpand: E(Ie),
517
517
  onLoaded: E(Fe),
518
- onSelect: n[0] ||= (e) => C.value = String(e.id ?? "")
518
+ onSelect: r[0] ||= (e) => S.value = String(e.id ?? "")
519
519
  }, {
520
- expandedRow: D(({ record: e }) => [S(E(le), {
520
+ expandedRow: D(({ record: e }) => [x(E(ue), {
521
521
  sessions: E(U)(String(e.id ?? "")).records,
522
522
  loading: E(U)(String(e.id ?? "")).loading,
523
523
  error: E(U)(String(e.id ?? "")).error,
@@ -548,7 +548,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
548
548
  "reload-key",
549
549
  "onRowExpand",
550
550
  "onLoaded"
551
- ])) : v("v-if", !0), Ne.value ? (w(), _(E(se), {
551
+ ])) : _("v-if", !0), Ne.value ? (C(), g(E(re), {
552
552
  key: 1,
553
553
  open: k.value,
554
554
  title: Be.value,
@@ -566,7 +566,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
566
566
  onReloadExternalChange: st,
567
567
  onDismissExternalChange: E(W).clearExternalChanged
568
568
  }, {
569
- status: D(() => [A.value === "view" && O.value ? (w(), _(E(a), {
569
+ status: D(() => [A.value === "view" && O.value ? (C(), g(E(ee), {
570
570
  key: 0,
571
571
  enabled: O.value.enabled !== !1,
572
572
  disabled: N.value || !Ue.value,
@@ -577,8 +577,8 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
577
577
  "enabled",
578
578
  "disabled",
579
579
  "loading"
580
- ])) : v("v-if", !0)]),
581
- operation: D(() => [S(E(oe), {
580
+ ])) : _("v-if", !0)]),
581
+ operation: D(() => [x(E(i), {
582
582
  context: G.value,
583
583
  actions: Ge.value,
584
584
  "record-id": O.value?.id,
@@ -588,23 +588,23 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
588
588
  "actions",
589
589
  "record-id"
590
590
  ])]),
591
- loading: D(() => [S(o, {
591
+ loading: D(() => [x(te, {
592
592
  class: "system-user-detail-state",
593
593
  tip: "加载系统账号详情"
594
594
  })]),
595
- error: D(() => [b("div", Te, [S(c, {
595
+ error: D(() => [y("div", Te, [x(a, {
596
596
  title: "详情加载失败",
597
597
  message: "无法加载系统账号详情,请重试"
598
- }), S(E(re), {
598
+ }), x(E(se), {
599
599
  type: "primary",
600
600
  "icon-name": "reload",
601
601
  onClick: ot
602
602
  }, {
603
- default: D(() => [...n[3] ||= [x("重试", -1)]]),
603
+ default: D(() => [...r[3] ||= [b("重试", -1)]]),
604
604
  _: 1
605
605
  })])]),
606
606
  view: D(() => [
607
- S(E(i), {
607
+ x(E(t), {
608
608
  record: I.value,
609
609
  fields: z.value,
610
610
  fallback: q.value
@@ -613,27 +613,27 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
613
613
  "fields",
614
614
  "fallback"
615
615
  ]),
616
- A.value === "view" && R.value?.temporaryPassword ? (w(), y("div", Ee, [
617
- n[5] ||= b("span", null, "临时密码", -1),
618
- S(E(l), {
616
+ A.value === "view" && R.value?.temporaryPassword ? (C(), v("div", Ee, [
617
+ r[5] ||= y("span", null, "临时密码", -1),
618
+ x(E(u), {
619
619
  value: R.value.temporaryPassword,
620
620
  disabled: ""
621
621
  }, null, 8, ["value"]),
622
- R.value.expiresAt ? (w(), y("small", De, [n[4] ||= x(" 有效期至 ", -1), S(u, { value: R.value.expiresAt }, null, 8, ["value"])])) : v("v-if", !0)
623
- ])) : v("v-if", !0),
624
- S(E(s), { record: I.value }, null, 8, ["record"])
622
+ R.value.expiresAt ? (C(), v("small", De, [r[4] ||= b(" 有效期至 ", -1), x(o, { value: R.value.expiresAt }, null, 8, ["value"])])) : _("v-if", !0)
623
+ ])) : _("v-if", !0),
624
+ x(E(s), { record: I.value }, null, 8, ["record"])
625
625
  ]),
626
- form: D(() => [b("form", {
626
+ form: D(() => [y("form", {
627
627
  class: "system-user-form",
628
628
  onSubmit: be(ct, ["prevent"])
629
- }, [A.value === "resetPassword" ? (w(), y("label", Oe, [n[6] ||= b("span", { class: "system-user-form-label" }, "新密码", -1), S(E(l), {
629
+ }, [A.value === "resetPassword" ? (C(), v("label", Oe, [r[6] ||= y("span", { class: "system-user-form-label" }, "新密码", -1), x(E(u), {
630
630
  value: L.value,
631
631
  type: "password",
632
632
  disabled: K.value,
633
633
  placeholder: "请输入密码",
634
634
  "allow-clear": "",
635
- "onUpdate:value": n[1] ||= (e) => L.value = e
636
- }, null, 8, ["value", "disabled"])])) : (w(), _(E(e), {
635
+ "onUpdate:value": r[1] ||= (e) => L.value = e
636
+ }, null, 8, ["value", "disabled"])])) : (C(), g(E(le), {
637
637
  key: 0,
638
638
  record: I.value,
639
639
  "field-names": qe.value,
@@ -648,7 +648,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
648
648
  "fields",
649
649
  "fallback",
650
650
  "disabled"
651
- ]))], 32), A.value === "resetPassword" ? v("v-if", !0) : (w(), _(E(s), {
651
+ ]))], 32), A.value === "resetPassword" ? _("v-if", !0) : (C(), g(E(s), {
652
652
  key: 0,
653
653
  record: I.value
654
654
  }, null, 8, ["record"]))]),
@@ -663,12 +663,12 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
663
663
  "externally-changed",
664
664
  "promotion",
665
665
  "onDismissExternalChange"
666
- ])) : (w(), _(E(r), {
666
+ ])) : (C(), g(E(n), {
667
667
  key: 2,
668
668
  title: Be.value,
669
669
  subtitle: Ve.value
670
670
  }, {
671
- status: D(() => [A.value === "view" && O.value ? (w(), _(E(a), {
671
+ status: D(() => [A.value === "view" && O.value ? (C(), g(E(ee), {
672
672
  key: 0,
673
673
  enabled: O.value.enabled !== !1,
674
674
  disabled: N.value || !Ue.value,
@@ -679,8 +679,8 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
679
679
  "enabled",
680
680
  "disabled",
681
681
  "loading"
682
- ])) : v("v-if", !0)]),
683
- operation: D(() => [S(E(oe), {
682
+ ])) : _("v-if", !0)]),
683
+ operation: D(() => [x(E(i), {
684
684
  context: G.value,
685
685
  actions: Ge.value,
686
686
  "record-id": O.value?.id,
@@ -690,22 +690,22 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
690
690
  "actions",
691
691
  "record-id"
692
692
  ])]),
693
- default: D(() => [j.value ? (w(), _(o, {
693
+ default: D(() => [j.value ? (C(), g(te, {
694
694
  key: 0,
695
695
  class: "system-user-detail-state",
696
696
  tip: "加载系统账号详情"
697
- })) : M.value ? (w(), y("div", ke, [S(c, {
697
+ })) : M.value ? (C(), v("div", ke, [x(a, {
698
698
  title: "详情加载失败",
699
699
  message: "无法加载系统账号详情,请重试"
700
- }), S(E(re), {
700
+ }), x(E(se), {
701
701
  type: "primary",
702
702
  "icon-name": "reload",
703
703
  onClick: ot
704
704
  }, {
705
- default: D(() => [...n[7] ||= [x("重试", -1)]]),
705
+ default: D(() => [...r[7] ||= [b("重试", -1)]]),
706
706
  _: 1
707
- })])) : A.value === "view" ? (w(), y(he, { key: 2 }, [
708
- S(E(i), {
707
+ })])) : A.value === "view" ? (C(), v(ge, { key: 2 }, [
708
+ x(E(t), {
709
709
  record: I.value,
710
710
  fields: z.value,
711
711
  fallback: q.value
@@ -714,26 +714,26 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
714
714
  "fields",
715
715
  "fallback"
716
716
  ]),
717
- R.value?.temporaryPassword ? (w(), y("div", Ae, [
718
- n[9] ||= b("span", null, "临时密码", -1),
719
- S(E(l), {
717
+ R.value?.temporaryPassword ? (C(), v("div", Ae, [
718
+ r[9] ||= y("span", null, "临时密码", -1),
719
+ x(E(u), {
720
720
  value: R.value.temporaryPassword,
721
721
  disabled: ""
722
722
  }, null, 8, ["value"]),
723
- R.value.expiresAt ? (w(), y("small", je, [n[8] ||= x(" 有效期至 ", -1), S(u, { value: R.value.expiresAt }, null, 8, ["value"])])) : v("v-if", !0)
724
- ])) : v("v-if", !0),
725
- S(E(s), { record: I.value }, null, 8, ["record"])
726
- ], 64)) : (w(), y(he, { key: 3 }, [b("form", {
723
+ R.value.expiresAt ? (C(), v("small", je, [r[8] ||= b(" 有效期至 ", -1), x(o, { value: R.value.expiresAt }, null, 8, ["value"])])) : _("v-if", !0)
724
+ ])) : _("v-if", !0),
725
+ x(E(s), { record: I.value }, null, 8, ["record"])
726
+ ], 64)) : (C(), v(ge, { key: 3 }, [y("form", {
727
727
  class: "system-user-form",
728
728
  onSubmit: be(ct, ["prevent"])
729
- }, [A.value === "resetPassword" ? (w(), y("label", Me, [n[10] ||= b("span", { class: "system-user-form-label" }, "新密码", -1), S(E(l), {
729
+ }, [A.value === "resetPassword" ? (C(), v("label", Me, [r[10] ||= y("span", { class: "system-user-form-label" }, "新密码", -1), x(E(u), {
730
730
  value: L.value,
731
731
  type: "password",
732
732
  disabled: K.value,
733
733
  placeholder: "请输入密码",
734
734
  "allow-clear": "",
735
- "onUpdate:value": n[2] ||= (e) => L.value = e
736
- }, null, 8, ["value", "disabled"])])) : (w(), _(E(e), {
735
+ "onUpdate:value": r[2] ||= (e) => L.value = e
736
+ }, null, 8, ["value", "disabled"])])) : (C(), g(E(le), {
737
737
  key: 0,
738
738
  record: I.value,
739
739
  "field-names": qe.value,
@@ -748,7 +748,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
748
748
  "fields",
749
749
  "fallback",
750
750
  "disabled"
751
- ]))], 32), A.value === "resetPassword" ? v("v-if", !0) : (w(), _(E(s), {
751
+ ]))], 32), A.value === "resetPassword" ? _("v-if", !0) : (C(), g(E(s), {
752
752
  key: 0,
753
753
  record: I.value
754
754
  }, null, 8, ["record"]))], 64))]),
@@ -1,4 +1,4 @@
1
- import { t as e } from "./UserManagementView-BR_Jz8O-.js";
1
+ import { t as e } from "./UserManagementView-MSXf4fno.js";
2
2
  import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
3
  //#endregion
4
4
  //#region src/views/UserDetailWorkspaceView.vue