@ximatai/muyun-web-app 0.26.4 → 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-BySbWjCV.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
  2. package/dist/{EmployeeManagementView-DvmDPxzN.js → EmployeeManagementView-BfGb_ssB.js} +336 -336
  3. package/dist/MetadataOrchestrationView-BLxigKBh.js +655 -0
  4. package/dist/{ModuleActionManagementView-DRtYMXOK.js → ModuleActionManagementView-ByJzNkQs.js} +102 -102
  5. package/dist/{RoleAuthorizationView-CK6Vfdup.js → RoleAuthorizationView-DJSWY3fu.js} +62 -62
  6. package/dist/{RoleDetailWorkspaceView-BPZcZy-r.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
  7. package/dist/{RoleManagementView-B7TzzVOm.js → RoleManagementView-D0e9nLwW.js} +295 -295
  8. package/dist/{SystemUserDetailWorkspaceView-BtEDyU-k.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
  9. package/dist/{SystemUserManagementView-TKqj92zG.js → SystemUserManagementView-DNKRvmDk.js} +198 -198
  10. package/dist/{UserDetailWorkspaceView-B6fGrnQ7.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
  11. package/dist/{UserManagementView-4IJeDSQS.js → UserManagementView-aY2AeeWK.js} +287 -287
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +2384 -2410
  14. package/dist/pageRealtime-Be2xkeKK.js +225 -0
  15. package/dist/{platform-components-CgMBopmF.js → platform-components-DuAohqJO.js} +2732 -1546
  16. package/dist/types/app/workbenchRouteSync.d.ts +13 -0
  17. package/dist/types/consumer/index.d.ts +10 -2
  18. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
  19. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
  20. package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
  21. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +126 -0
  22. package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
  23. package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
  24. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
  25. package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
  26. package/dist/types/platform-admin-runtime/index.d.ts +3 -0
  27. package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
  28. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
  29. package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
  30. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
  31. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  32. package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
  33. package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
  34. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +51 -0
  35. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
  36. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
  37. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +19 -0
  38. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
  39. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
  40. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +15 -0
  41. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
  42. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
  43. package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
  44. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  45. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
  46. package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
  47. package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
  48. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
  49. package/dist/types/platform-components/fileReferenceTransfer.d.ts +17 -0
  50. package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
  51. package/dist/types/platform-components/index.d.ts +14 -1
  52. package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
  53. package/dist/types/platform-components/platformFileSize.d.ts +10 -0
  54. package/dist/types/platform-components/recordActionBarModel.d.ts +6 -1
  55. package/dist/types/platform-components/recordFormFieldModel.d.ts +21 -3
  56. package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
  57. package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +21 -0
  58. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +15 -1
  59. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
  60. package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
  61. package/dist/types/platform-workbench/index.d.ts +7 -0
  62. package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
  63. package/dist/types/platform-workbench/workbenchLayout.d.ts +1 -0
  64. package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
  65. package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
  66. package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
  67. package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
  68. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
  69. package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
  70. package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
  71. package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
  72. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
  73. package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
  74. package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
  75. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  76. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
  77. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  78. package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
  79. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
  80. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  81. package/dist/types/vue-ui-antdv/index.d.ts +3 -0
  82. package/dist/types/vue-ui-antdv/types.d.ts +3 -9
  83. package/dist/types/web-contracts/index.d.ts +111 -1
  84. package/dist/types/web-core/clients.d.ts +6 -1
  85. package/dist/types/web-core/http.d.ts +12 -1
  86. package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
  87. package/dist/{useUserSessionRows-DHsyr2Vy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
  88. package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
  89. package/package.json +1 -1
  90. package/dist/MetadataOrchestrationView-2JxJkFEC.js +0 -655
  91. package/dist/pageRealtime-CJriNmzP.js +0 -140
  92. package/dist/workspaceViewSessions-BMbyO9O4.js +0 -1571
@@ -1,6 +1,6 @@
1
- import { $ as e, $t as t, Bt as n, C as r, Dt as i, Et as a, G as o, It as s, Jt as c, K as l, L as ee, Lt as te, M as u, Pt as ne, Qt as d, R as re, S as f, Vt as ie, W as ae, Wn as oe, X as p, Z as se, _t as ce, a as m, d as le, et as ue, f as de, i as fe, it as pe, m as me, on as h, or as he, rt as ge, tt as g, u as _e, v as ve, w as ye, y as be } from "./platform-components-CgMBopmF.js";
2
- import { g as xe, i as Se, n as Ce, p as we, r as Te, t as _ } from "./workspaceViewSessions-BMbyO9O4.js";
3
- import { a as Ee, i as De, r as Oe } from "./pageRealtime-CJriNmzP.js";
1
+ import { $ as e, A as t, C as n, Et as r, F as i, Fn as a, I as o, J as s, L as ee, M as te, N as ne, Nt as c, O as re, P as l, R as ie, S as u, T as ae, Tt as d, _ as f, at as oe, b as se, c as ce, ct as le, d as ue, ft as p, i as de, l as fe, m as pe, p as me, pt as he, r as ge, s as _e, st as m, tt as ve, v as h, vn as ye, xt as g, y as be } from "./platform-components-DuAohqJO.js";
2
+ import { i as xe, n as Se, r as Ce, t as _, u as we, x as Te } from "./workspaceViewSessions-C3GP1UGp.js";
3
+ import { a as Ee, i as De, r as Oe } from "./pageRealtime-Be2xkeKK.js";
4
4
  import { Fragment as ke, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, defineComponent as T, normalizeClass as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as E, ref as D, renderList as Ne, toDisplayString as O, unref as k, watch as Pe, withCtx as A, withModifiers as j } from "vue";
5
5
  //#region src/views/employeeDetailStateModel.ts
6
6
  function Fe(e) {
@@ -33,7 +33,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
33
33
  }, B = {
34
34
  key: 3,
35
35
  class: "employment-empty"
36
- }, Ve = /*#__PURE__*/ t(/* @__PURE__ */ T({
36
+ }, Ve = /*#__PURE__*/ r(/* @__PURE__ */ T({
37
37
  name: "EmployeeEmploymentDrawer",
38
38
  __name: "EmployeeEmploymentDrawer",
39
39
  props: {
@@ -41,8 +41,8 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
41
41
  employee: {}
42
42
  },
43
43
  emits: ["close", "saved"],
44
- setup(e, { emit: t }) {
45
- let r = e, o = t, c = h({ moduleAlias: "iam.employee" }), l = h({ moduleAlias: "iam.organization" }), ee = h({ moduleAlias: "iam.department" }), re = h({ moduleAlias: "iam.position" }), f = D([]), ae = D(!1), oe = D(!1), p = D(!1), se = D(!1), m = D(he()), le = [
44
+ setup(t, { emit: n }) {
45
+ let r = t, a = n, o = c({ moduleAlias: "iam.employee" }), ee = c({ moduleAlias: "iam.organization" }), te = c({ moduleAlias: "iam.department" }), ne = c({ moduleAlias: "iam.position" }), re = D([]), l = D(!1), ie = D(!1), u = D(!1), ae = D(!1), f = D(me()), ce = [
46
46
  {
47
47
  key: "position",
48
48
  title: "岗位",
@@ -63,19 +63,19 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
63
63
  title: "主岗位",
64
64
  width: 80
65
65
  }
66
- ], de = v(() => `任职管理 - ${ge(r.employee)}`), fe = v(() => f.value), pe = v(() => _e(ee, {
66
+ ], ue = v(() => `任职管理 - ${ge(r.employee)}`), de = v(() => re.value), fe = v(() => _e(te, {
67
67
  scopeFieldName: "organizationId",
68
- scopeValue: m.value.organizationId,
68
+ scopeValue: f.value.organizationId,
69
69
  treePath: "/iam.department/tree",
70
70
  sortPath: "/iam.department/sort"
71
- })), me = v(() => {
71
+ })), pe = v(() => {
72
72
  let e = r.employee;
73
- return !!(e?.organizationId && e?.departmentId && e.organizationId === m.value.organizationId && e.departmentId === m.value.departmentId);
73
+ return !!(e?.organizationId && e?.departmentId && e.organizationId === f.value.organizationId && e.departmentId === f.value.departmentId);
74
74
  });
75
75
  Pe(() => [r.open, r.employee?.id], ([e]) => {
76
- e ? g() : ve();
76
+ e ? h() : ye();
77
77
  }, { immediate: !0 });
78
- function he() {
78
+ function me() {
79
79
  return {
80
80
  primaryPosition: !1,
81
81
  enabled: !0
@@ -84,71 +84,71 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
84
84
  function ge(e) {
85
85
  return String(e?.title ?? e?.employeeNo ?? e?.id ?? "职员");
86
86
  }
87
- async function g() {
88
- let e = r.employee?.id;
89
- if (e) {
90
- ae.value = !0, oe.value = !1;
87
+ async function h() {
88
+ let t = r.employee?.id;
89
+ if (t) {
90
+ l.value = !0, ie.value = !1;
91
91
  try {
92
- f.value = (await c.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/employment-view` })).records;
93
- } catch (e) {
94
- oe.value = !0, a(e, {
92
+ re.value = (await o.http.request({ path: `/iam.employee/${encodeURIComponent(t)}/employment-view` })).records;
93
+ } catch (t) {
94
+ ie.value = !0, e(t, {
95
95
  source: "employee-employment",
96
96
  phase: "load"
97
97
  });
98
98
  } finally {
99
- ae.value = !1;
99
+ l.value = !1;
100
100
  }
101
101
  }
102
102
  }
103
- function ve() {
104
- se.value = !1, m.value = he();
103
+ function ye() {
104
+ ae.value = !1, f.value = me();
105
105
  }
106
- function be() {
107
- m.value = {
106
+ function g() {
107
+ f.value = {
108
108
  organizationId: r.employee?.organizationId,
109
109
  departmentId: r.employee?.departmentId,
110
110
  primaryPosition: !1,
111
111
  enabled: !0
112
- }, se.value = !0;
112
+ }, ae.value = !0;
113
113
  }
114
114
  function xe(e) {
115
- m.value = { ...e }, se.value = !0;
115
+ f.value = { ...e }, ae.value = !0;
116
116
  }
117
117
  function Se(e) {
118
- let t = e !== m.value.organizationId;
119
- m.value = {
120
- ...m.value,
118
+ let t = e !== f.value.organizationId;
119
+ f.value = {
120
+ ...f.value,
121
121
  organizationId: e,
122
- departmentId: t ? void 0 : m.value.departmentId,
123
- primaryPosition: t ? !1 : m.value.primaryPosition
122
+ departmentId: t ? void 0 : f.value.departmentId,
123
+ primaryPosition: t ? !1 : f.value.primaryPosition
124
124
  };
125
125
  }
126
126
  function Ce(e) {
127
- let t = !!(m.value.primaryPosition && r.employee?.organizationId === m.value.organizationId && r.employee?.departmentId === e);
128
- m.value = {
129
- ...m.value,
127
+ let t = !!(f.value.primaryPosition && r.employee?.organizationId === f.value.organizationId && r.employee?.departmentId === e);
128
+ f.value = {
129
+ ...f.value,
130
130
  departmentId: e,
131
131
  primaryPosition: t
132
132
  };
133
133
  }
134
- function we(e) {
135
- if (e && !me.value) {
136
- i("主岗必须与职员主机构、主部门一致", {
134
+ function _(e) {
135
+ if (e && !pe.value) {
136
+ ve("主岗必须与职员主机构、主部门一致", {
137
137
  source: "employee-employment",
138
138
  phase: "validation"
139
139
  });
140
140
  return;
141
141
  }
142
- m.value = {
143
- ...m.value,
142
+ f.value = {
143
+ ...f.value,
144
144
  primaryPosition: e
145
145
  };
146
146
  }
147
- function Te(e, t) {
147
+ function we(e, t) {
148
148
  let n = t;
149
149
  return e.key === "position" ? n.positionTitle ?? n.positionId : e.key === "organization" ? n.organizationTitle ?? n.organizationId : e.key === "department" ? n.departmentTitle ?? n.departmentId : e.key === "primaryPosition" ? n.primaryPosition ? "是" : "否" : "";
150
150
  }
151
- function _(e) {
151
+ function Te(e) {
152
152
  return e.enabled === !1;
153
153
  }
154
154
  function Ee(e) {
@@ -172,99 +172,99 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
172
172
  (t === "primary" || t === "enable" || t === "disable" || t === "delete") && ke(e, t);
173
173
  }
174
174
  async function Oe() {
175
- let e = r.employee?.id;
176
- if (!e || !m.value.organizationId || !m.value.departmentId || !m.value.positionId) {
177
- i("请选择机构、部门和岗位", {
175
+ let t = r.employee?.id;
176
+ if (!t || !f.value.organizationId || !f.value.departmentId || !f.value.positionId) {
177
+ ve("请选择机构、部门和岗位", {
178
178
  source: "employee-employment",
179
179
  phase: "validation"
180
180
  });
181
181
  return;
182
182
  }
183
- p.value = !0;
183
+ u.value = !0;
184
184
  try {
185
- let t = m.value.id;
186
- await c.http.request({
185
+ let e = f.value.id;
186
+ await o.http.request({
187
187
  method: "POST",
188
- path: t ? `/iam.employee/${encodeURIComponent(e)}/positions/${encodeURIComponent(t)}/update` : `/iam.employee/${encodeURIComponent(e)}/positions`,
188
+ path: e ? `/iam.employee/${encodeURIComponent(t)}/positions/${encodeURIComponent(e)}/update` : `/iam.employee/${encodeURIComponent(t)}/positions`,
189
189
  body: {
190
- ...m.value,
191
- employeeId: e
190
+ ...f.value,
191
+ employeeId: t
192
192
  }
193
- }), ve(), await g(), o("saved", e), await ce({
193
+ }), ye(), await h(), a("saved", t), await s({
194
194
  success: !0,
195
195
  message: "任职已保存"
196
196
  }, {
197
197
  source: "employee-employment",
198
198
  phase: "action"
199
199
  });
200
- } catch (e) {
201
- a(e, {
200
+ } catch (t) {
201
+ e(t, {
202
202
  source: "employee-employment",
203
203
  phase: "action"
204
204
  });
205
205
  } finally {
206
- p.value = !1;
206
+ u.value = !1;
207
207
  }
208
208
  }
209
- async function ke(e, t) {
210
- let n = r.employee?.id;
211
- if (n && !(t === "delete" && !await ne({
209
+ async function ke(t, n) {
210
+ let i = r.employee?.id;
211
+ if (i && !(n === "delete" && !await oe({
212
212
  title: "删除任职",
213
213
  content: "确认删除该任职?",
214
214
  okText: "删除",
215
215
  danger: !0
216
216
  }))) {
217
- p.value = !0;
217
+ u.value = !0;
218
218
  try {
219
- await c.http.request({
219
+ await o.http.request({
220
220
  method: "POST",
221
- path: `/iam.employee/${encodeURIComponent(n)}/positions/${encodeURIComponent(e.id)}/${t}`
222
- }), await g(), o("saved", n);
223
- } catch (e) {
224
- a(e, {
221
+ path: `/iam.employee/${encodeURIComponent(i)}/positions/${encodeURIComponent(t.id)}/${n}`
222
+ }), await h(), a("saved", i);
223
+ } catch (t) {
224
+ e(t, {
225
225
  source: "employee-employment",
226
226
  phase: "action"
227
227
  });
228
228
  } finally {
229
- p.value = !1;
229
+ u.value = !1;
230
230
  }
231
231
  }
232
232
  }
233
- return (t, r) => (E(), y(k(ue), {
234
- open: e.open,
235
- title: de.value,
236
- onClose: r[4] ||= (e) => o("close")
233
+ return (e, n) => (E(), y(k(i), {
234
+ open: t.open,
235
+ title: ue.value,
236
+ onClose: n[4] ||= (e) => a("close")
237
237
  }, {
238
238
  operation: A(() => [w(k(d), {
239
239
  type: "text",
240
240
  "icon-name": "reload",
241
- disabled: ae.value || p.value,
242
- onClick: g
241
+ disabled: l.value || u.value,
242
+ onClick: h
243
243
  }, {
244
- default: A(() => [...r[5] ||= [C(" 刷新 ", -1)]]),
244
+ default: A(() => [...n[5] ||= [C(" 刷新 ", -1)]]),
245
245
  _: 1
246
246
  }, 8, ["disabled"])]),
247
247
  default: A(() => [S("div", N, [
248
- S("div", P, [r[7] ||= S("div", null, [S("strong", null, "任职信息"), S("span", null, "角色授权按具体任职生效")], -1), w(k(d), {
248
+ S("div", P, [n[7] ||= S("div", null, [S("strong", null, "任职信息"), S("span", null, "角色授权按具体任职生效")], -1), w(k(d), {
249
249
  type: "primary",
250
250
  "icon-name": "plus",
251
- disabled: p.value,
252
- onClick: be
251
+ disabled: u.value,
252
+ onClick: g
253
253
  }, {
254
- default: A(() => [...r[6] ||= [C("新增任职", -1)]]),
254
+ default: A(() => [...n[6] ||= [C("新增任职", -1)]]),
255
255
  _: 1
256
256
  }, 8, ["disabled"])]),
257
- se.value ? (E(), x("form", {
257
+ ae.value ? (E(), x("form", {
258
258
  key: 0,
259
259
  class: "employment-editor",
260
260
  onSubmit: j(Oe, ["prevent"])
261
261
  }, [
262
- S("label", null, [r[8] ||= S("span", null, "机构", -1), w(k(ye), {
263
- value: m.value.organizationId,
264
- context: k(l),
262
+ S("label", null, [n[8] ||= S("span", null, "机构", -1), w(k(be), {
263
+ value: f.value.organizationId,
264
+ context: k(ee),
265
265
  placeholder: "请选择机构",
266
- constraints: [k(u)()],
267
- disabled: p.value,
266
+ constraints: [k(se)()],
267
+ disabled: u.value,
268
268
  "onUpdate:value": Se
269
269
  }, null, 8, [
270
270
  "value",
@@ -272,12 +272,12 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
272
272
  "constraints",
273
273
  "disabled"
274
274
  ])]),
275
- S("label", null, [r[9] ||= S("span", null, "部门", -1), w(k(ye), {
276
- value: m.value.departmentId,
277
- context: pe.value,
275
+ S("label", null, [n[9] ||= S("span", null, "部门", -1), w(k(be), {
276
+ value: f.value.departmentId,
277
+ context: fe.value,
278
278
  placeholder: "请选择部门",
279
- constraints: [k(u)()],
280
- disabled: p.value || !m.value.organizationId,
279
+ constraints: [k(se)()],
280
+ disabled: u.value || !f.value.organizationId,
281
281
  "onUpdate:value": Ce
282
282
  }, null, 8, [
283
283
  "value",
@@ -285,14 +285,14 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
285
285
  "constraints",
286
286
  "disabled"
287
287
  ])]),
288
- S("label", null, [r[10] ||= S("span", null, "岗位", -1), w(k(ye), {
289
- value: m.value.positionId,
290
- context: k(re),
288
+ S("label", null, [n[10] ||= S("span", null, "岗位", -1), w(k(be), {
289
+ value: f.value.positionId,
290
+ context: k(ne),
291
291
  mode: "list",
292
292
  placeholder: "请选择岗位",
293
- constraints: [k(u)()],
294
- disabled: p.value,
295
- "onUpdate:value": r[0] ||= (e) => m.value.positionId = e ? String(e) : void 0
293
+ constraints: [k(se)()],
294
+ disabled: u.value,
295
+ "onUpdate:value": n[0] ||= (e) => f.value.positionId = e ? String(e) : void 0
296
296
  }, null, 8, [
297
297
  "value",
298
298
  "context",
@@ -300,69 +300,69 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
300
300
  "disabled"
301
301
  ])]),
302
302
  S("label", F, [
303
- r[12] ||= S("span", null, "主岗位", -1),
303
+ n[12] ||= S("span", null, "主岗位", -1),
304
304
  S("span", null, [S("input", {
305
305
  type: "checkbox",
306
- checked: m.value.primaryPosition === !0,
307
- disabled: p.value || !me.value,
308
- onChange: r[1] ||= (e) => we(e.target.checked)
309
- }, null, 40, I), r[11] ||= C(" 设为主岗 ", -1)]),
310
- me.value ? b("v-if", !0) : (E(), x("small", L, "主岗必须与职员主机构、主部门一致"))
306
+ checked: f.value.primaryPosition === !0,
307
+ disabled: u.value || !pe.value,
308
+ onChange: n[1] ||= (e) => _(e.target.checked)
309
+ }, null, 40, I), n[11] ||= C(" 设为主岗 ", -1)]),
310
+ pe.value ? b("v-if", !0) : (E(), x("small", L, "主岗必须与职员主机构、主部门一致"))
311
311
  ]),
312
312
  S("div", R, [w(k(d), {
313
- disabled: p.value,
314
- onClick: ve
313
+ disabled: u.value,
314
+ onClick: ye
315
315
  }, {
316
- default: A(() => [...r[13] ||= [C("取消", -1)]]),
316
+ default: A(() => [...n[13] ||= [C("取消", -1)]]),
317
317
  _: 1
318
318
  }, 8, ["disabled"]), w(k(d), {
319
319
  type: "primary",
320
320
  "html-type": "submit",
321
- loading: p.value
321
+ loading: u.value
322
322
  }, {
323
- default: A(() => [...r[14] ||= [C("保存任职", -1)]]),
323
+ default: A(() => [...n[14] ||= [C("保存任职", -1)]]),
324
324
  _: 1
325
325
  }, 8, ["loading"])])
326
326
  ], 32)) : b("v-if", !0),
327
- ae.value ? (E(), y(k(te), {
327
+ l.value ? (E(), y(k(le), {
328
328
  key: 1,
329
329
  class: "employment-state",
330
330
  tip: "加载任职"
331
- })) : oe.value ? (E(), x("div", z, [w(k(s), {
331
+ })) : ie.value ? (E(), x("div", z, [w(k(m), {
332
332
  title: "任职信息加载失败",
333
333
  message: "无法加载任职信息,请重试"
334
334
  }), w(k(d), {
335
335
  type: "primary",
336
336
  "icon-name": "reload",
337
- onClick: g
337
+ onClick: h
338
338
  }, {
339
- default: A(() => [...r[15] ||= [C("重试", -1)]]),
339
+ default: A(() => [...n[15] ||= [C("重试", -1)]]),
340
340
  _: 1
341
- })])) : f.value.length === 0 ? (E(), x("p", B, "暂无任职信息")) : (E(), y(k(ie), {
341
+ })])) : re.value.length === 0 ? (E(), x("p", B, "暂无任职信息")) : (E(), y(k(he), {
342
342
  key: 4,
343
343
  class: "employment-table",
344
- columns: le,
345
- rows: fe.value,
344
+ columns: ce,
345
+ rows: de.value,
346
346
  "row-key": "id",
347
347
  pagination: !1,
348
348
  "horizontal-scroll": "",
349
349
  "show-action-column": "",
350
350
  "action-column-width": "92",
351
- "row-muted": _
351
+ "row-muted": Te
352
352
  }, {
353
- cell: A(({ column: e, record: t }) => [C(O(Te(e, t)), 1)]),
353
+ cell: A(({ column: e, record: t }) => [C(O(we(e, t)), 1)]),
354
354
  rowActions: A(({ record: e }) => [S("div", {
355
355
  class: "employment-table-row-actions",
356
- onClick: r[2] ||= j(() => {}, ["stop"]),
357
- onDblclick: r[3] ||= j(() => {}, ["stop"])
356
+ onClick: n[2] ||= j(() => {}, ["stop"]),
357
+ onDblclick: n[3] ||= j(() => {}, ["stop"])
358
358
  }, [w(k(d), {
359
359
  type: "text",
360
- disabled: p.value,
360
+ disabled: u.value,
361
361
  onClick: (t) => xe(e)
362
362
  }, {
363
- default: A(() => [...r[16] ||= [C(" 编辑 ", -1)]]),
363
+ default: A(() => [...n[16] ||= [C(" 编辑 ", -1)]]),
364
364
  _: 1
365
- }, 8, ["disabled", "onClick"]), w(k(n), {
365
+ }, 8, ["disabled", "onClick"]), w(k(p), {
366
366
  items: Ee(e),
367
367
  trigger: "hover",
368
368
  onSelect: (t) => De(e, t)
@@ -372,7 +372,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
372
372
  "icon-name": "down",
373
373
  title: "更多",
374
374
  "aria-label": "更多",
375
- disabled: p.value
375
+ disabled: u.value
376
376
  }, null, 8, ["disabled"])]),
377
377
  _: 1
378
378
  }, 8, ["items", "onSelect"])], 32)]),
@@ -397,7 +397,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
397
397
  }, K = { class: "employee-account-status" }, q = { key: 0 }, We = { class: "employee-form-label" }, Ge = {
398
398
  key: 0,
399
399
  "aria-hidden": "true"
400
- }, Ke = /*#__PURE__*/ t(/* @__PURE__ */ T({
400
+ }, Ke = /*#__PURE__*/ r(/* @__PURE__ */ T({
401
401
  name: "EmployeeDetailContent",
402
402
  __name: "EmployeeDetailContent",
403
403
  props: {
@@ -444,29 +444,29 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
444
444
  "removeAccount",
445
445
  "updateAccountProvisionField"
446
446
  ],
447
- setup(t, { emit: n }) {
448
- let i = t, a = n;
449
- return (t, n) => i.loading ? (E(), y(k(te), {
447
+ setup(e, { emit: n }) {
448
+ let r = e, i = n;
449
+ return (e, n) => r.loading ? (E(), y(k(le), {
450
450
  key: 0,
451
451
  class: "employee-detail-state",
452
452
  tip: "加载职员详情"
453
- })) : i.loadFailed ? (E(), x("div", V, [w(k(s), {
453
+ })) : r.loadFailed ? (E(), x("div", V, [w(k(m), {
454
454
  title: "详情加载失败",
455
455
  message: "无法加载职员详情,请重试"
456
456
  }), w(k(d), {
457
457
  type: "primary",
458
458
  "icon-name": "reload",
459
- onClick: n[0] ||= (e) => a("retry")
459
+ onClick: n[0] ||= (e) => i("retry")
460
460
  }, {
461
461
  default: A(() => [...n[12] ||= [C("重试", -1)]]),
462
462
  _: 1
463
- })])) : i.showContent ? (E(), x(ke, { key: 2 }, [i.mode === "view" ? (E(), x(ke, { key: 0 }, [
464
- w(k(l), {
465
- record: i.draft,
466
- fields: i.fields,
467
- fallback: i.fallback,
468
- "picker-configs": i.pickerConfigs,
469
- "display-of": i.displayOf
463
+ })])) : r.showContent ? (E(), x(ke, { key: 2 }, [r.mode === "view" ? (E(), x(ke, { key: 0 }, [
464
+ w(k(t), {
465
+ record: r.draft,
466
+ fields: r.fields,
467
+ fallback: r.fallback,
468
+ "picker-configs": r.pickerConfigs,
469
+ "display-of": r.displayOf
470
470
  }, null, 8, [
471
471
  "record",
472
472
  "fields",
@@ -474,49 +474,49 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
474
474
  "picker-configs",
475
475
  "display-of"
476
476
  ]),
477
- S("section", H, [S("div", He, [n[14] ||= S("strong", null, "登录账号", -1), !i.account && !i.showAccountProvisionForm ? (E(), y(k(d), {
477
+ S("section", H, [S("div", He, [n[14] ||= S("strong", null, "登录账号", -1), !r.account && !r.showAccountProvisionForm ? (E(), y(k(d), {
478
478
  key: 0,
479
479
  type: "primary",
480
480
  "icon-name": "plus",
481
- disabled: !i.canManageAccounts,
482
- onClick: n[1] ||= (e) => a("startAccountProvision")
481
+ disabled: !r.canManageAccounts,
482
+ onClick: n[1] ||= (e) => i("startAccountProvision")
483
483
  }, {
484
484
  default: A(() => [...n[13] ||= [C(" 设置账号 ", -1)]]),
485
485
  _: 1
486
- }, 8, ["disabled"])) : b("v-if", !0)]), i.loadingAccounts ? (E(), y(k(te), {
486
+ }, 8, ["disabled"])) : b("v-if", !0)]), r.loadingAccounts ? (E(), y(k(le), {
487
487
  key: 0,
488
488
  class: "employee-account-state",
489
489
  tip: "加载账号绑定"
490
- })) : i.accountsLoadFailed ? (E(), x("div", Ue, [w(k(s), {
490
+ })) : r.accountsLoadFailed ? (E(), x("div", Ue, [w(k(m), {
491
491
  title: "账号绑定加载失败",
492
492
  message: "无法加载职员账号绑定,请重试"
493
493
  }), w(k(d), {
494
494
  "icon-name": "reload",
495
- onClick: n[2] ||= (e) => a("retryAccounts")
495
+ onClick: n[2] ||= (e) => i("retryAccounts")
496
496
  }, {
497
497
  default: A(() => [...n[15] ||= [C("重试", -1)]]),
498
498
  _: 1
499
- })])) : i.showAccountProvisionForm ? (E(), x("form", {
499
+ })])) : r.showAccountProvisionForm ? (E(), x("form", {
500
500
  key: 2,
501
501
  class: "employee-account-form",
502
- onSubmit: n[6] ||= j((e) => a("provisionAccount"), ["prevent"])
502
+ onSubmit: n[6] ||= j((e) => i("provisionAccount"), ["prevent"])
503
503
  }, [
504
- S("label", null, [n[16] ||= S("span", null, "账号", -1), w(k(c), {
505
- value: i.accountProvisionDraft.username,
504
+ S("label", null, [n[16] ||= S("span", null, "账号", -1), w(k(g), {
505
+ value: r.accountProvisionDraft.username,
506
506
  placeholder: "请输入登录账号",
507
- disabled: i.savingAccount,
508
- "onUpdate:value": n[3] ||= (e) => a("updateAccountProvisionField", "username", e)
507
+ disabled: r.savingAccount,
508
+ "onUpdate:value": n[3] ||= (e) => i("updateAccountProvisionField", "username", e)
509
509
  }, null, 8, ["value", "disabled"])]),
510
- S("label", null, [n[17] ||= S("span", null, "初始密码", -1), w(k(c), {
511
- value: i.accountProvisionDraft.password,
510
+ S("label", null, [n[17] ||= S("span", null, "初始密码", -1), w(k(g), {
511
+ value: r.accountProvisionDraft.password,
512
512
  type: "password",
513
513
  placeholder: "请输入初始密码",
514
- disabled: i.savingAccount,
515
- "onUpdate:value": n[4] ||= (e) => a("updateAccountProvisionField", "password", e)
514
+ disabled: r.savingAccount,
515
+ "onUpdate:value": n[4] ||= (e) => i("updateAccountProvisionField", "password", e)
516
516
  }, null, 8, ["value", "disabled"])]),
517
517
  S("div", U, [w(k(d), {
518
- disabled: i.savingAccount,
519
- onClick: n[5] ||= (e) => a("cancelAccountProvision")
518
+ disabled: r.savingAccount,
519
+ onClick: n[5] ||= (e) => i("cancelAccountProvision")
520
520
  }, {
521
521
  default: A(() => [...n[18] ||= [C("取消", -1)]]),
522
522
  _: 1
@@ -524,48 +524,48 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
524
524
  type: "primary",
525
525
  "html-type": "submit",
526
526
  "icon-name": "plus",
527
- loading: i.savingAccount,
528
- disabled: !i.canManageAccounts
527
+ loading: r.savingAccount,
528
+ disabled: !r.canManageAccounts
529
529
  }, {
530
530
  default: A(() => [...n[19] ||= [C(" 创建账号并绑定 ", -1)]]),
531
531
  _: 1
532
532
  }, 8, ["loading", "disabled"])])
533
- ], 32)) : i.account ? (E(), x("div", G, [
534
- S("div", null, [S("strong", null, O(i.accountUserTitle), 1), S("span", null, O(i.accountUserDescription), 1)]),
535
- S("span", K, O(i.accountStatusTitle), 1),
533
+ ], 32)) : r.account ? (E(), x("div", G, [
534
+ S("div", null, [S("strong", null, O(r.accountUserTitle), 1), S("span", null, O(r.accountUserDescription), 1)]),
535
+ S("span", K, O(r.accountStatusTitle), 1),
536
536
  w(k(d), {
537
537
  danger: "",
538
538
  "icon-name": "delete",
539
- disabled: i.savingAccount || !i.canManageAccounts,
540
- onClick: n[7] ||= (e) => a("removeAccount")
539
+ disabled: r.savingAccount || !r.canManageAccounts,
540
+ onClick: n[7] ||= (e) => i("removeAccount")
541
541
  }, {
542
542
  default: A(() => [...n[21] ||= [C(" 移除账户 ", -1)]]),
543
543
  _: 1
544
544
  }, 8, ["disabled"])
545
545
  ])) : (E(), x("div", W, [...n[20] ||= [S("span", null, "未设置登录账号", -1), S("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
546
546
  w(k(f), {
547
- record: i.draft,
547
+ record: r.draft,
548
548
  "show-sort-order": ""
549
549
  }, null, 8, ["record"])
550
- ], 64)) : (E(), x(ke, { key: 1 }, [i.externallyChanged ? (E(), y(k(e), {
550
+ ], 64)) : (E(), x(ke, { key: 1 }, [r.externallyChanged ? (E(), y(k(l), {
551
551
  key: 0,
552
- onReload: n[8] ||= (e) => a("reloadExternal"),
553
- onDismiss: n[9] ||= (e) => a("dismissExternal")
552
+ onReload: n[8] ||= (e) => i("reloadExternal"),
553
+ onDismiss: n[9] ||= (e) => i("dismissExternal")
554
554
  })) : b("v-if", !0), S("form", {
555
555
  class: "employee-form",
556
- onSubmit: n[11] ||= j((e) => a("save"), ["prevent"])
557
- }, [i.visibleOf("organizationId") ? (E(), x("label", q, [S("span", We, [C(O(i.labelOf("organizationId")) + " ", 1), i.requiredOf("organizationId") ? (E(), x("strong", Ge, "*")) : b("v-if", !0)]), w(k(c), {
558
- value: i.selectedOrganization?.title ?? i.selectedOrganization?.id ?? "-",
556
+ onSubmit: n[11] ||= j((e) => i("save"), ["prevent"])
557
+ }, [r.visibleOf("organizationId") ? (E(), x("label", q, [S("span", We, [C(O(r.labelOf("organizationId")) + " ", 1), r.requiredOf("organizationId") ? (E(), x("strong", Ge, "*")) : b("v-if", !0)]), w(k(g), {
558
+ value: r.selectedOrganization?.title ?? r.selectedOrganization?.id ?? "-",
559
559
  disabled: ""
560
- }, null, 8, ["value"])])) : b("v-if", !0), w(k(r), {
561
- record: i.draft,
562
- fields: i.fields,
560
+ }, null, 8, ["value"])])) : b("v-if", !0), w(k(h), {
561
+ record: r.draft,
562
+ fields: r.fields,
563
563
  "exclude-field-names": ["organizationId"],
564
- fallback: i.fallback,
565
- "picker-configs": i.pickerConfigs,
566
- disabled: i.formDisabled,
567
- "option-context": i.optionContext,
568
- "onUpdate:field": n[10] ||= (e, t) => a("updateField", e, t)
564
+ fallback: r.fallback,
565
+ "picker-configs": r.pickerConfigs,
566
+ disabled: r.formDisabled,
567
+ "option-context": r.optionContext,
568
+ "onUpdate:field": n[10] ||= (e, t) => i("updateField", e, t)
569
569
  }, null, 8, [
570
570
  "record",
571
571
  "fields",
@@ -591,47 +591,47 @@ function qe(e, t) {
591
591
  });
592
592
  }
593
593
  function Je(e, t) {
594
- return Ce(we, e, t);
594
+ return Se(we, e, t);
595
595
  }
596
596
  function Ye(e) {
597
- return Te(we, e);
597
+ return Ce(we, e);
598
598
  }
599
599
  //#endregion
600
600
  //#region src/views/useEmployeeEmploymentRows.ts
601
- function Xe(e) {
602
- let t = D([]), n = D({});
603
- async function r(t) {
604
- if (!(!t || e.context.can("employeePositions", t) === !1)) {
605
- s(t, {
606
- ...o(t),
601
+ function Xe(t) {
602
+ let n = D([]), r = D({});
603
+ async function i(n) {
604
+ if (!(!n || t.context.can("employeePositions", n) === !1)) {
605
+ s(n, {
606
+ ...o(n),
607
607
  loading: !0,
608
608
  error: void 0
609
609
  });
610
610
  try {
611
- s(t, {
612
- records: (await e.context.http.request({ path: e.pathOf?.(t) ?? `/iam.employee/${encodeURIComponent(t)}/employment-view` })).records,
611
+ s(n, {
612
+ records: (await t.context.http.request({ path: t.pathOf?.(n) ?? `/iam.employee/${encodeURIComponent(n)}/employment-view` })).records,
613
613
  loading: !1,
614
614
  error: void 0
615
615
  });
616
- } catch (n) {
617
- let r = a(n, {
618
- source: `${e.source}-employment-rows`,
616
+ } catch (r) {
617
+ let i = e(r, {
618
+ source: `${t.source}-employment-rows`,
619
619
  phase: "load"
620
620
  });
621
- s(t, {
622
- ...o(t),
621
+ s(n, {
622
+ ...o(n),
623
623
  loading: !1,
624
- error: r.message
624
+ error: i.message
625
625
  });
626
626
  }
627
627
  }
628
628
  }
629
- function i(e, n) {
630
- let i = String(e.id ?? "");
631
- i && (t.value = n ? Array.from(new Set([...t.value, i])) : t.value.filter((e) => e !== i), n && o(i).records.length === 0 && r(i));
629
+ function a(e, t) {
630
+ let r = String(e.id ?? "");
631
+ r && (n.value = t ? Array.from(new Set([...n.value, r])) : n.value.filter((e) => e !== r), t && o(r).records.length === 0 && i(r));
632
632
  }
633
633
  function o(e) {
634
- return e ? n.value[e] ?? {
634
+ return e ? r.value[e] ?? {
635
635
  records: [],
636
636
  loading: !1
637
637
  } : {
@@ -640,20 +640,20 @@ function Xe(e) {
640
640
  };
641
641
  }
642
642
  function s(e, t) {
643
- n.value = {
644
- ...n.value,
643
+ r.value = {
644
+ ...r.value,
645
645
  [e]: t
646
646
  };
647
647
  }
648
- function c() {
649
- t.value = [], n.value = {};
648
+ function ee() {
649
+ n.value = [], r.value = {};
650
650
  }
651
651
  return {
652
- expandedEmployeeKeys: t,
652
+ expandedEmployeeKeys: n,
653
653
  employmentRowState: o,
654
- handleEmployeeRowExpand: i,
655
- loadEmployeeEmploymentRows: r,
656
- resetEmployeeEmploymentRows: c
654
+ handleEmployeeRowExpand: a,
655
+ loadEmployeeEmploymentRows: i,
656
+ resetEmployeeEmploymentRows: ee
657
657
  };
658
658
  }
659
659
  //#endregion
@@ -661,25 +661,25 @@ function Xe(e) {
661
661
  var Ze = { key: 0 }, Qe = {
662
662
  key: 1,
663
663
  class: "employee-row-employment-list"
664
- }, $e = /*#__PURE__*/ t(/* @__PURE__ */ T({
664
+ }, $e = /*#__PURE__*/ r(/* @__PURE__ */ T({
665
665
  name: "EmployeeManagementView",
666
666
  __name: "EmployeeManagementView",
667
667
  props: {
668
668
  recordId: {},
669
669
  mode: {}
670
670
  },
671
- setup(e) {
672
- let t = e, n = [
671
+ setup(t) {
672
+ let r = t, l = [
673
673
  "departmentId",
674
674
  "employeeNo",
675
675
  "title"
676
- ], r = xe(), s = h({ moduleAlias: "iam.organization" }), c = h({ moduleAlias: "iam.department" }), l = h({ moduleAlias: "iam.employee" }), te = h({ moduleAlias: "iam.user" }), u = D(se(void 0)), f = v(() => !!t.recordId), ie = v(() => f.value && r?.presentation === "drawer"), ye = v(() => !f.value || ie.value), Ce = D(""), Te = D(0), _ = D(0), T = D(), j = D(), M = D(), N = D(!1), P = D("view"), F = D(!1), I = D(!1), L = D(!1), R = D(0), z = D(Qt(void 0)), B = D(), V = D(), H = D(), He = D(!1), Ue = D(), U = D(!1), W = D(!1), G = D(!1), K = D(!1), q = D($t(void 0)), We = ve({
677
- context: () => l,
676
+ ], f = Te(), se = c({ moduleAlias: "iam.organization" }), le = c({ moduleAlias: "iam.department" }), p = c({ moduleAlias: "iam.employee" }), he = c({ moduleAlias: "iam.user" }), m = D(ne(void 0)), h = v(() => !!r.recordId), g = v(() => h.value && f?.presentation === "drawer"), be = v(() => !h.value || g.value), Se = D(""), Ce = D(0), _ = D(0), T = D(), j = D(), M = D(), N = D(!1), P = D("view"), F = D(!1), I = D(!1), L = D(!1), R = D(0), z = D(Qt(void 0)), B = D(), V = D(), H = D(), He = D(!1), Ue = D(), U = D(!1), W = D(!1), G = D(!1), K = D(!1), q = D($t(void 0)), We = me({
677
+ context: () => p,
678
678
  listReloadKey: _,
679
679
  canChange: X,
680
680
  resetSelection: Ft
681
681
  }), { expandedEmployeeKeys: Ge, employmentRowState: $e, handleEmployeeRowExpand: et, loadEmployeeEmploymentRows: tt, resetEmployeeEmploymentRows: nt } = Xe({
682
- context: l,
682
+ context: p,
683
683
  source: "employee-management",
684
684
  pathOf: (e) => We.active.value ? `/iam.employee/recycle-bin/${encodeURIComponent(e)}/employment-view` : `/iam.employee/${encodeURIComponent(e)}/employment-view`
685
685
  }), J = De({
@@ -705,14 +705,14 @@ var Ze = { key: 0 }, Qe = {
705
705
  rt.enqueue(n.length > 0 ? n : "__collection__");
706
706
  }
707
707
  });
708
- let it = v(() => l), Y = v(() => T.value?.id), at = v(() => _e(c, {
708
+ let it = v(() => p), Y = v(() => T.value?.id), at = v(() => _e(le, {
709
709
  scopeFieldName: "organizationId",
710
710
  scopeValue: Y.value,
711
711
  treePath: "/iam.department/tree",
712
712
  sortPath: "/iam.department/sort"
713
713
  })), ot = v(() => ({ departmentId: {
714
714
  context: at.value,
715
- reloadKey: Te.value,
715
+ reloadKey: Ce.value,
716
716
  placeholder: "请选择部门",
717
717
  titleOf: (e) => wn(e)
718
718
  } })), st = v(() => {
@@ -731,7 +731,7 @@ var Ze = { key: 0 }, Qe = {
731
731
  loadingDetail: F.value,
732
732
  loadFailed: I.value,
733
733
  selectedEmployeeId: M.value?.id
734
- })), ft = v(() => F.value ? !1 : P.value === "create" ? !!Y.value && l.can("create") === !0 : !!M.value?.id && l.can("update") === !0), pt = v(() => F.value || !M.value?.id ? !1 : l.can(hn(M.value)) === !0), mt = v(() => !M.value?.id || F.value || L.value ? !1 : l.can("employeeAccounts", M.value.id) !== !1), ht = v(() => P.value === "view" ? M.value?.id ? [{
734
+ })), ft = v(() => F.value ? !1 : P.value === "create" ? !!Y.value && p.can("create") === !0 : !!M.value?.id && p.can("update") === !0), pt = v(() => F.value || !M.value?.id ? !1 : p.can(hn(M.value)) === !0), mt = v(() => !M.value?.id || F.value || L.value ? !1 : p.can("employeeAccounts", M.value.id) !== !1), ht = v(() => P.value === "view" ? M.value?.id ? [{
735
735
  key: "edit",
736
736
  actionCode: "update",
737
737
  title: "编辑",
@@ -776,7 +776,7 @@ var Ze = { key: 0 }, Qe = {
776
776
  primary: !0,
777
777
  loading: L.value,
778
778
  disabled: !ft.value
779
- }] : []), vt = Se({
779
+ }] : []), vt = xe({
780
780
  view: we,
781
781
  input: v(() => {
782
782
  let e = M.value?.id, t = P.value;
@@ -804,36 +804,36 @@ var Ze = { key: 0 }, Qe = {
804
804
  onPromoted: Wt
805
805
  });
806
806
  Pe(M, (e) => {
807
- !f.value || !e || r?.setTitle(pn(e));
807
+ !h.value || !e || f?.setTitle(pn(e));
808
808
  }, { immediate: !0 });
809
809
  let yt;
810
810
  Me(() => {
811
- if (xt(), !t.recordId) return;
812
- let e = { recordId: t.recordId };
813
- ie.value || (yt = Je(e, bt));
814
- let n = Ye(e);
815
- if (n) {
816
- an(n);
811
+ if (xt(), !r.recordId) return;
812
+ let e = { recordId: r.recordId };
813
+ g.value || (yt = Je(e, bt));
814
+ let t = Ye(e);
815
+ if (t) {
816
+ an(t);
817
817
  return;
818
818
  }
819
- Z({ id: t.recordId }, t.mode ?? "view");
819
+ Z({ id: r.recordId }, r.mode ?? "view");
820
820
  }), je(() => yt?.());
821
821
  function bt(e) {
822
822
  return P.value !== "view" || K.value ? !1 : (an(e), !0);
823
823
  }
824
824
  async function xt() {
825
825
  try {
826
- u.value = se((await l.runtime.ready).uiDescriptor);
827
- } catch (e) {
828
- a(e, {
826
+ m.value = ne((await p.runtime.ready).uiDescriptor);
827
+ } catch (t) {
828
+ e(t, {
829
829
  source: "employee-management",
830
830
  phase: "load"
831
831
  });
832
832
  }
833
833
  }
834
834
  function St(e) {
835
- return p(e, {
836
- fields: u.value,
835
+ return te(e, {
836
+ fields: m.value,
837
837
  fallback: En
838
838
  });
839
839
  }
@@ -875,7 +875,7 @@ var Ze = { key: 0 }, Qe = {
875
875
  X() && (T.value = e, j.value = void 0, M.value = void 0, J.clearExternalChanged(), F.value = !1, I.value = !1, B.value = void 0, $(), nt(), Wt());
876
876
  }
877
877
  function jt() {
878
- Te.value += 1;
878
+ Ce.value += 1;
879
879
  }
880
880
  function Mt(e) {
881
881
  if (!X()) return;
@@ -917,15 +917,15 @@ var Ze = { key: 0 }, Qe = {
917
917
  actionCode: "employeePositions",
918
918
  title: "任职",
919
919
  after: "edit",
920
- visible: !!e.id && l.can("employeePositions", String(e.id)) !== !1
920
+ visible: !!e.id && p.can("employeePositions", String(e.id)) !== !1
921
921
  }];
922
922
  }
923
- async function zt(e) {
924
- let t = String(e.id ?? "");
925
- if (t) try {
926
- Ue.value = await l.crud.view(t), He.value = !0;
927
- } catch (e) {
928
- a(e, {
923
+ async function zt(t) {
924
+ let n = String(t.id ?? "");
925
+ if (n) try {
926
+ Ue.value = await p.crud.view(n), He.value = !0;
927
+ } catch (t) {
928
+ e(t, {
929
929
  source: "employee-management",
930
930
  phase: "load"
931
931
  });
@@ -943,14 +943,14 @@ var Ze = { key: 0 }, Qe = {
943
943
  function Ut() {
944
944
  if (X()) {
945
945
  if (!Y.value) {
946
- i("请先选择机构", { phase: "validation" });
946
+ ve("请先选择机构", { phase: "validation" });
947
947
  return;
948
948
  }
949
949
  z.value = Qt(Y.value), M.value = void 0, j.value = void 0, J.clearExternalChanged(), P.value = "create", F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !0;
950
950
  }
951
951
  }
952
952
  function Wt() {
953
- L.value || (R.value += 1, F.value = !1, I.value = !1, N.value = !1, P.value = "view", B.value = void 0, J.clearExternalChanged(), $(), z.value = M.value ? en(M.value) : Qt(Y.value), ie.value && r?.dismiss());
953
+ L.value || (R.value += 1, F.value = !1, I.value = !1, N.value = !1, P.value = "view", B.value = void 0, J.clearExternalChanged(), $(), z.value = M.value ? en(M.value) : Qt(Y.value), g.value && f?.dismiss());
954
954
  }
955
955
  function Gt() {
956
956
  if (!L.value) {
@@ -964,37 +964,37 @@ var Ze = { key: 0 }, Qe = {
964
964
  z.value = en(M.value), J.clearExternalChanged(), P.value = "view", F.value = !1, I.value = !1;
965
965
  }
966
966
  }
967
- async function Z(e, t) {
967
+ async function Z(t, n) {
968
968
  if (!X()) return;
969
- let n = String(e.id ?? "");
970
- if (!n) return;
971
- j.value = n, J.clearExternalChanged(), N.value = !0, P.value = t, M.value = void 0, z.value = en(e), B.value = void 0, $(), F.value = !0, I.value = !1;
972
- let r = R.value + 1;
973
- R.value = r;
974
- let o = () => Ie({
969
+ let r = String(t.id ?? "");
970
+ if (!r) return;
971
+ j.value = r, J.clearExternalChanged(), N.value = !0, P.value = n, M.value = void 0, z.value = en(t), B.value = void 0, $(), F.value = !0, I.value = !1;
972
+ let i = R.value + 1;
973
+ R.value = i;
974
+ let a = () => Ie({
975
975
  activeRequestSeq: R.value,
976
- requestSeq: r,
976
+ requestSeq: i,
977
977
  selectedEmployeeKey: j.value,
978
- recordId: n
978
+ recordId: r
979
979
  });
980
980
  try {
981
- let e = await l.crud.view(n);
982
- if (!o()) return;
981
+ let e = await p.crud.view(r);
982
+ if (!a()) return;
983
983
  if (!e?.id) {
984
- I.value = !0, i("未找到指定职员", {
984
+ I.value = !0, ve("未找到指定职员", {
985
985
  source: "employee-management",
986
986
  phase: "load"
987
987
  });
988
988
  return;
989
989
  }
990
- M.value = e, z.value = en(e), I.value = !1, await sn(e, r), await on(e, r), cn(e, r);
991
- } catch (e) {
992
- o() && (I.value = !0, a(e, {
990
+ M.value = e, z.value = en(e), I.value = !1, await sn(e, i), await on(e, i), cn(e, i);
991
+ } catch (t) {
992
+ a() && (I.value = !0, e(t, {
993
993
  source: "employee-management",
994
994
  phase: "load"
995
995
  }));
996
996
  } finally {
997
- o() && (F.value = !1);
997
+ a() && (F.value = !1);
998
998
  }
999
999
  }
1000
1000
  function Kt(e) {
@@ -1033,7 +1033,7 @@ var Ze = { key: 0 }, Qe = {
1033
1033
  }, "edit"));
1034
1034
  }
1035
1035
  async function Yt() {
1036
- await fe({
1036
+ await ge({
1037
1037
  loading: L,
1038
1038
  mode: P.value === "edit" ? "edit" : "create",
1039
1039
  source: "employee-management",
@@ -1042,12 +1042,12 @@ var Ze = { key: 0 }, Qe = {
1042
1042
  deniedMessage: "当前用户无权保存职员",
1043
1043
  createRecord: () => tn(z.value, Y.value ?? ""),
1044
1044
  validateRecord: nn,
1045
- save: (e, t) => t === "edit" && M.value?.id ? l.crud.update(M.value.id, e) : l.crud.insert(e),
1046
- actionErrorHandlers: [me({
1045
+ save: (e, t) => t === "edit" && M.value?.id ? p.crud.update(M.value.id, e) : p.crud.insert(e),
1046
+ actionErrorHandlers: [ue({
1047
1047
  resourceLabel: "职员",
1048
1048
  onNavigateToRecycleBin: () => Pt("recycleBin")
1049
1049
  }), {
1050
- code: he.conflictVersion,
1050
+ code: a.conflictVersion,
1051
1051
  handle: (e, { mode: t, record: n }) => t === "edit" && J.markExternalRecordChanged(n.id)
1052
1052
  }],
1053
1053
  onSaved: ({ record: e }) => {
@@ -1057,33 +1057,33 @@ var Ze = { key: 0 }, Qe = {
1057
1057
  });
1058
1058
  }
1059
1059
  async function Xt() {
1060
- await m({
1060
+ await de({
1061
1061
  loading: L,
1062
1062
  source: "employee-management",
1063
1063
  record: () => M.value && M.value.id ? M.value : void 0,
1064
1064
  canExecute: () => pt.value,
1065
1065
  deniedMessage: "当前用户无权变更职员启停状态",
1066
- execute: (e) => e.enabled === !1 ? l.crud.enable(e.id, { version: e.version }) : l.crud.disable(e.id, { version: e.version }),
1066
+ execute: (e) => e.enabled === !1 ? p.crud.enable(e.id, { version: e.version }) : p.crud.disable(e.id, { version: e.version }),
1067
1067
  onExecuted: async (e, t) => {
1068
- let n = await l.crud.view(t.id);
1068
+ let n = await p.crud.view(t.id);
1069
1069
  await on(n, rn(n)), _.value += 1;
1070
1070
  }
1071
1071
  });
1072
1072
  }
1073
1073
  async function Zt(e) {
1074
- await m({
1074
+ await de({
1075
1075
  loading: L,
1076
1076
  source: "employee-management",
1077
1077
  record: () => e?.id ? e : void 0,
1078
- canExecute: () => l.can("delete") === !0,
1078
+ canExecute: () => p.can("delete") === !0,
1079
1079
  deniedMessage: "当前用户无权删除职员",
1080
- confirm: (e) => ne({
1080
+ confirm: (e) => oe({
1081
1081
  title: "删除职员",
1082
1082
  content: `确认删除职员「${fn(e)}」?`,
1083
1083
  okText: "删除",
1084
1084
  danger: !0
1085
1085
  }),
1086
- execute: (e) => l.crud.delete(String(e.id), { version: e.version }),
1086
+ execute: (e) => p.crud.delete(String(e.id), { version: e.version }),
1087
1087
  onExecuted: (e, t) => {
1088
1088
  let n = String(t.id);
1089
1089
  j.value === n && (j.value = void 0, M.value = void 0, z.value = Qt(Y.value), J.clearExternalChanged(), F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !1, P.value = "view"), _.value += 1;
@@ -1108,7 +1108,7 @@ var Ze = { key: 0 }, Qe = {
1108
1108
  return { ...e };
1109
1109
  }
1110
1110
  function tn(e, t) {
1111
- return le(e, {
1111
+ return ce(e, {
1112
1112
  organizationId: t,
1113
1113
  departmentId: e.departmentId?.trim(),
1114
1114
  employeeNo: e.employeeNo?.trim(),
@@ -1120,7 +1120,7 @@ var Ze = { key: 0 }, Qe = {
1120
1120
  });
1121
1121
  }
1122
1122
  function nn(e) {
1123
- return Be(n.map((t) => {
1123
+ return Be(l.map((t) => {
1124
1124
  let n = St(t);
1125
1125
  return {
1126
1126
  fieldName: t,
@@ -1147,77 +1147,77 @@ var Ze = { key: 0 }, Qe = {
1147
1147
  recordId: e ?? ""
1148
1148
  });
1149
1149
  }
1150
- async function on(e, t = R.value) {
1150
+ async function on(t, n = R.value) {
1151
1151
  B.value = void 0;
1152
- let n = e.id, r = e.departmentId;
1153
- if (r) try {
1154
- let e = await c.crud.view(r);
1155
- Q(n, t) && (B.value = e);
1156
- } catch (e) {
1157
- Q(n, t) && a(e, {
1152
+ let r = t.id, i = t.departmentId;
1153
+ if (i) try {
1154
+ let e = await le.crud.view(i);
1155
+ Q(r, n) && (B.value = e);
1156
+ } catch (t) {
1157
+ Q(r, n) && e(t, {
1158
1158
  source: "employee-management",
1159
1159
  phase: "load"
1160
1160
  });
1161
1161
  }
1162
1162
  }
1163
- async function sn(e, t = R.value) {
1164
- let n = e.id, r = e.organizationId;
1165
- if (r) try {
1166
- let e = await s.crud.view(r);
1167
- Q(n, t) && (T.value = e);
1168
- } catch (e) {
1169
- Q(n, t) && a(e, {
1163
+ async function sn(t, n = R.value) {
1164
+ let r = t.id, i = t.organizationId;
1165
+ if (i) try {
1166
+ let e = await se.crud.view(i);
1167
+ Q(r, n) && (T.value = e);
1168
+ } catch (t) {
1169
+ Q(r, n) && e(t, {
1170
1170
  source: "employee-management",
1171
1171
  phase: "load"
1172
1172
  });
1173
1173
  }
1174
1174
  }
1175
- async function cn(e = M.value ?? z.value, t = R.value) {
1176
- let n = e.id;
1177
- if (!n) {
1175
+ async function cn(t = M.value ?? z.value, n = R.value) {
1176
+ let r = t.id;
1177
+ if (!r) {
1178
1178
  $();
1179
1179
  return;
1180
1180
  }
1181
1181
  U.value = !0, G.value = !1;
1182
1182
  try {
1183
- let e = await l.http.request({ path: `/iam.employee/${encodeURIComponent(n)}/account` });
1184
- if (!Q(n, t)) return;
1185
- V.value = e, await ln(e, n, t);
1186
- } catch (e) {
1187
- Q(n, t) && (G.value = !0, a(e, {
1183
+ let e = await p.http.request({ path: `/iam.employee/${encodeURIComponent(r)}/account` });
1184
+ if (!Q(r, n)) return;
1185
+ V.value = e, await ln(e, r, n);
1186
+ } catch (t) {
1187
+ Q(r, n) && (G.value = !0, e(t, {
1188
1188
  source: "employee-management",
1189
1189
  phase: "load"
1190
1190
  }));
1191
1191
  } finally {
1192
- Q(n, t) && (U.value = !1);
1192
+ Q(r, n) && (U.value = !1);
1193
1193
  }
1194
1194
  }
1195
- async function ln(e, t, n) {
1196
- let r = e?.userId;
1197
- if (!r) {
1198
- Q(t, n) && (H.value = void 0);
1195
+ async function ln(t, n, r) {
1196
+ let i = t?.userId;
1197
+ if (!i) {
1198
+ Q(n, r) && (H.value = void 0);
1199
1199
  return;
1200
1200
  }
1201
- let i;
1201
+ let a;
1202
1202
  try {
1203
- i = await te.crud.view(r);
1204
- } catch (e) {
1205
- a(e, {
1203
+ a = await he.crud.view(i);
1204
+ } catch (t) {
1205
+ e(t, {
1206
1206
  source: "employee-management",
1207
1207
  phase: "load"
1208
- }), i = {
1209
- id: r,
1210
- username: r
1208
+ }), a = {
1209
+ id: i,
1210
+ username: i
1211
1211
  };
1212
1212
  }
1213
- Q(t, n) && (H.value = i);
1213
+ Q(n, r) && (H.value = a);
1214
1214
  }
1215
1215
  async function un() {
1216
- let e = M.value, t = Sn(q.value);
1217
- if (!e?.id || !mt.value) return;
1218
- let n = Cn(t);
1219
- if (n) {
1220
- i(n, {
1216
+ let t = M.value, n = Sn(q.value);
1217
+ if (!t?.id || !mt.value) return;
1218
+ let r = Cn(n);
1219
+ if (r) {
1220
+ ve(r, {
1221
1221
  source: "employee-management",
1222
1222
  phase: "validation"
1223
1223
  });
@@ -1225,17 +1225,17 @@ var Ze = { key: 0 }, Qe = {
1225
1225
  }
1226
1226
  W.value = !0;
1227
1227
  try {
1228
- let n = await l.http.request({
1228
+ let e = await p.http.request({
1229
1229
  method: "POST",
1230
- path: `/iam.employee/${encodeURIComponent(e.id)}/account/provision`,
1231
- body: t
1232
- }), r = oe(n);
1233
- V.value = r.binding, H.value = r.user, K.value = !1, q.value = $t(e), await ce(n, {
1230
+ path: `/iam.employee/${encodeURIComponent(t.id)}/account/provision`,
1231
+ body: n
1232
+ }), r = ye(e);
1233
+ V.value = r.binding, H.value = r.user, K.value = !1, q.value = $t(t), await s(e, {
1234
1234
  source: "employee-management",
1235
1235
  phase: "action"
1236
1236
  });
1237
- } catch (e) {
1238
- a(e, {
1237
+ } catch (t) {
1238
+ e(t, {
1239
1239
  source: "employee-management",
1240
1240
  phase: "action"
1241
1241
  });
@@ -1244,8 +1244,8 @@ var Ze = { key: 0 }, Qe = {
1244
1244
  }
1245
1245
  }
1246
1246
  async function dn() {
1247
- let e = M.value;
1248
- if (!(!e?.id || !V.value?.id || !mt.value) && await ne({
1247
+ let t = M.value;
1248
+ if (!(!t?.id || !V.value?.id || !mt.value) && await oe({
1249
1249
  title: "移除账户",
1250
1250
  content: `确认移除账户「${gn()}」?该用户账号会同步删除。`,
1251
1251
  okText: "移除",
@@ -1253,16 +1253,16 @@ var Ze = { key: 0 }, Qe = {
1253
1253
  })) {
1254
1254
  W.value = !0;
1255
1255
  try {
1256
- let t = await l.http.request({
1256
+ let e = await p.http.request({
1257
1257
  method: "POST",
1258
- path: `/iam.employee/${encodeURIComponent(e.id)}/account/delete`
1258
+ path: `/iam.employee/${encodeURIComponent(t.id)}/account/delete`
1259
1259
  });
1260
- await cn(e, R.value), await ce(t, {
1260
+ await cn(t, R.value), await s(e, {
1261
1261
  source: "employee-management",
1262
1262
  phase: "action"
1263
1263
  });
1264
- } catch (e) {
1265
- a(e, {
1264
+ } catch (t) {
1265
+ e(t, {
1266
1266
  source: "employee-management",
1267
1267
  phase: "action"
1268
1268
  });
@@ -1386,26 +1386,26 @@ var Ze = { key: 0 }, Qe = {
1386
1386
  controlType: "enabledStatus"
1387
1387
  }
1388
1388
  };
1389
- return (e, t) => !f.value || ie.value ? (E(), y(k(pe), {
1389
+ return (e, t) => !h.value || g.value ? (E(), y(k(ie), {
1390
1390
  key: 0,
1391
1391
  class: "employee-management-page"
1392
1392
  }, {
1393
1393
  default: A(() => [
1394
- w(k(ge), null, {
1395
- default: A(() => [w(k(re), {
1394
+ w(k(ee), null, {
1395
+ default: A(() => [w(k(n), {
1396
1396
  class: "employee-scope-panel",
1397
1397
  title: "机构树",
1398
1398
  "refresh-title": "刷新机构树",
1399
- "search-keyword": Ce.value,
1399
+ "search-keyword": Se.value,
1400
1400
  "search-placeholder": "搜索机构名称、编码或 ID",
1401
1401
  onRefresh: jt,
1402
- "onUpdate:searchKeyword": t[0] ||= (e) => Ce.value = e
1402
+ "onUpdate:searchKeyword": t[0] ||= (e) => Se.value = e
1403
1403
  }, {
1404
- default: A(() => [w(k(de), {
1405
- context: k(s),
1404
+ default: A(() => [w(k(fe), {
1405
+ context: k(se),
1406
1406
  "selected-id": T.value?.id,
1407
- "reload-key": Te.value,
1408
- keyword: Ce.value,
1407
+ "reload-key": Ce.value,
1408
+ keyword: Se.value,
1409
1409
  "search-mode": "none",
1410
1410
  "search-trigger": "external",
1411
1411
  "empty-description": "暂无机构",
@@ -1425,7 +1425,7 @@ var Ze = { key: 0 }, Qe = {
1425
1425
  }, 8, ["search-keyword"])]),
1426
1426
  _: 1
1427
1427
  }),
1428
- w(k(be), {
1428
+ w(k(pe), {
1429
1429
  class: "employee-list-panel",
1430
1430
  context: it.value,
1431
1431
  title: k(We).active.value ? "职员回收站" : "职员列表",
@@ -1493,7 +1493,7 @@ var Ze = { key: 0 }, Qe = {
1493
1493
  "external-query-values",
1494
1494
  "onRowExpand"
1495
1495
  ]),
1496
- ye.value ? (E(), y(k(ue), {
1496
+ be.value ? (E(), y(k(i), {
1497
1497
  key: 0,
1498
1498
  open: N.value,
1499
1499
  title: ct.value,
@@ -1502,7 +1502,7 @@ var Ze = { key: 0 }, Qe = {
1502
1502
  promotion: k(vt),
1503
1503
  onClose: Wt
1504
1504
  }, {
1505
- status: A(() => [P.value === "view" && M.value ? (E(), y(k(ee), {
1505
+ status: A(() => [P.value === "view" && M.value ? (E(), y(k(u), {
1506
1506
  key: 0,
1507
1507
  enabled: M.value.enabled !== !1,
1508
1508
  disabled: L.value || !pt.value,
@@ -1514,7 +1514,7 @@ var Ze = { key: 0 }, Qe = {
1514
1514
  "disabled",
1515
1515
  "loading"
1516
1516
  ])) : b("v-if", !0)]),
1517
- operation: A(() => [w(k(g), {
1517
+ operation: A(() => [w(k(o), {
1518
1518
  context: it.value,
1519
1519
  actions: gt.value,
1520
1520
  onAction: Kt
@@ -1529,7 +1529,7 @@ var Ze = { key: 0 }, Qe = {
1529
1529
  "load-failed": I.value,
1530
1530
  "form-disabled": ut.value,
1531
1531
  "show-content": dt.value,
1532
- fields: u.value,
1532
+ fields: m.value,
1533
1533
  fallback: En,
1534
1534
  "picker-configs": ot.value,
1535
1535
  "display-of": Ot,
@@ -1548,7 +1548,7 @@ var Ze = { key: 0 }, Qe = {
1548
1548
  "account-user-title": gn(),
1549
1549
  "account-user-description": _n(),
1550
1550
  "account-status-title": vn(),
1551
- "option-context": k(l),
1551
+ "option-context": k(p),
1552
1552
  onRetry: qt,
1553
1553
  onSave: Yt,
1554
1554
  onReloadExternal: Jt,
@@ -1603,12 +1603,12 @@ var Ze = { key: 0 }, Qe = {
1603
1603
  }, null, 8, ["open", "employee"])
1604
1604
  ]),
1605
1605
  _: 1
1606
- })) : (E(), y(k(o), {
1606
+ })) : (E(), y(k(re), {
1607
1607
  key: 1,
1608
1608
  title: ct.value,
1609
1609
  subtitle: lt.value
1610
1610
  }, {
1611
- status: A(() => [P.value === "view" && M.value ? (E(), y(k(ee), {
1611
+ status: A(() => [P.value === "view" && M.value ? (E(), y(k(u), {
1612
1612
  key: 0,
1613
1613
  enabled: M.value.enabled !== !1,
1614
1614
  disabled: L.value || !pt.value,
@@ -1620,8 +1620,8 @@ var Ze = { key: 0 }, Qe = {
1620
1620
  "disabled",
1621
1621
  "loading"
1622
1622
  ])) : b("v-if", !0)]),
1623
- operation: A(() => [w(k(g), {
1624
- context: k(l),
1623
+ operation: A(() => [w(k(o), {
1624
+ context: k(p),
1625
1625
  actions: _t.value,
1626
1626
  "record-id": M.value?.id,
1627
1627
  onAction: Kt
@@ -1640,7 +1640,7 @@ var Ze = { key: 0 }, Qe = {
1640
1640
  "load-failed": I.value,
1641
1641
  "form-disabled": ut.value,
1642
1642
  "show-content": dt.value,
1643
- fields: u.value,
1643
+ fields: m.value,
1644
1644
  fallback: En,
1645
1645
  "picker-configs": ot.value,
1646
1646
  "display-of": Ot,
@@ -1659,7 +1659,7 @@ var Ze = { key: 0 }, Qe = {
1659
1659
  "account-user-title": gn(),
1660
1660
  "account-user-description": _n(),
1661
1661
  "account-status-title": vn(),
1662
- "option-context": k(l),
1662
+ "option-context": k(p),
1663
1663
  onRetry: qt,
1664
1664
  onSave: Yt,
1665
1665
  onReloadExternal: Jt,