@hkyhy/marsun-components-core 0.1.138 → 0.1.140

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 (30) hide show
  1. package/README.md +1 -0
  2. package/dist/components/Iam/client.d.ts +3 -0
  3. package/dist/components/Iam/index.d.ts +1 -1
  4. package/dist/components/Iam/pages/IamUsersPage.d.ts +15 -1
  5. package/dist/components/Iam/pages/IamUsersPage.js +171 -162
  6. package/dist/components/Iam/pages/IamUsersPage.js.map +1 -1
  7. package/dist/components/Table/Table.d.ts +2 -2
  8. package/dist/components/Table/Table.js +75 -72
  9. package/dist/components/Table/Table.js.map +1 -1
  10. package/dist/components/Table/columnConfigUtils.d.ts +8 -0
  11. package/dist/components/Table/columnConfigUtils.js +130 -113
  12. package/dist/components/Table/columnConfigUtils.js.map +1 -1
  13. package/dist/components/Table/index.d.ts +1 -1
  14. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.d.ts +2 -0
  15. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js +97 -83
  16. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js.map +1 -1
  17. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.d.ts +2 -0
  18. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js +111 -106
  19. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js.map +1 -1
  20. package/dist/components/Tools/ActionTracking/CreateAction/types.d.ts +4 -0
  21. package/dist/components/Tools/Inbox/InboxBell/InboxBell.js +168 -155
  22. package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -1
  23. package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js +60 -46
  24. package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js.map +1 -1
  25. package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js +68 -60
  26. package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js.map +1 -1
  27. package/dist/index.js +478 -477
  28. package/dist/marsun-components-core.css +1 -1
  29. package/dist/styles/global.css +1 -1
  30. package/package.json +1 -1
package/README.md CHANGED
@@ -136,6 +136,7 @@ node scripts/version-check.mjs --apply # → 0.1.99
136
136
 
137
137
  也可在 Actions 中手动运行 **Publish npm**,填写已有 tag 重新发布。
138
138
 
139
+ - 2026-10-29:`v0.1.140` — Table:列配置重排/增量列后归位 `fixed` 列,避免操作列 sticky 失效
139
140
  - 2026-10-23:`v0.1.138` — CreateActionForm:`allocatorDisabled` / `defaultAssigneeUserId`(Related S3-1523)
140
141
  - 2026-10-22:`v0.1.137` — InboxBell:`action_assigned_ack` 恒「查看任务」(禁「去执行」);Related S3-1721
141
142
  - 2026-10-21:`v0.1.136` — MessageCenter 推送规则级别改为业务 DI `levelOptions`(禁写死 L1/L2/L3;S3 可注入 L2+)
@@ -39,4 +39,7 @@ export type IamClient = {
39
39
  listUserSharedGroups: (userId: string) => Promise<IamSharedGroup[]>;
40
40
  setUserAppRoleCodes: (userId: string, roleCodes: string[]) => Promise<void>;
41
41
  setUserSharedGroups: (userId: string, groupIds: string[]) => Promise<void>;
42
+ /** 可选:个人 App 数据范围(S3);Assets 可不实现 */
43
+ getUserAppDataScope?: (userId: string) => Promise<string | null>;
44
+ setUserAppDataScope?: (userId: string, dataScope: string | null) => Promise<void>;
42
45
  };
@@ -4,7 +4,7 @@ export { buildDraftEffectivePermissions, type DraftEpPerm, } from './utils/draft
4
4
  export { roleDisplayName, roleSelectOption } from './utils/roleDisplay';
5
5
  export { MULTI_TAG_SHOW_LENGTH, multiTagSelectProps } from './utils/multiTagSelect';
6
6
  export { catalogToItems } from './utils/catalogToItems';
7
- export { default as IamUsersPage, type IamUsersPageProps } from './pages/IamUsersPage';
7
+ export { default as IamUsersPage, type IamUsersPageProps, type IamPersonalDataScopeConfig, } from './pages/IamUsersPage';
8
8
  export { IamRolesPage, IamRolePermissionsPage, displayRoleDescription, type IamRolesPageProps, type IamRolePermissionsPageProps, } from './pages/IamRolesPage';
9
9
  export { default as IamOrgPage, type IamOrgPageProps } from './pages/IamOrgPage';
10
10
  export { default as IamSharedGroupsPage, type IamSharedGroupsPageProps, } from './pages/IamSharedGroupsPage';
@@ -1,10 +1,24 @@
1
1
  import { PermissionBindCatalog } from '../../PermissionBindPanel';
2
2
  import { IamClient } from '../client';
3
+ export type IamPersonalDataScopeConfig = {
4
+ /** value 用 '' 表示未设置(提交转 null) */
5
+ options: {
6
+ value: string;
7
+ label: string;
8
+ }[];
9
+ /** 选未设置时展示 */
10
+ unsetHint?: string;
11
+ };
3
12
  export type IamUsersPageProps = {
4
13
  client: IamClient;
5
14
  catalog: PermissionBindCatalog;
6
15
  systemEntryCodes: readonly string[];
7
16
  tableName?: string;
8
17
  title?: string;
18
+ /**
19
+ * 个人数据范围(S3):传入后启用可编辑 Select,并调用 client.get/setUserAppDataScope。
20
+ * Assets 不传则保持只读「全公司」占位。
21
+ */
22
+ personalDataScope?: IamPersonalDataScopeConfig;
9
23
  };
10
- export default function IamUsersPage({ client, catalog, systemEntryCodes, tableName, title, }: IamUsersPageProps): import("react").JSX.Element;
24
+ export default function IamUsersPage({ client, catalog, systemEntryCodes, tableName, title, personalDataScope, }: IamUsersPageProps): import("react").JSX.Element;
@@ -1,153 +1,156 @@
1
- import { jsxs as b, jsx as t } from "react/jsx-runtime";
2
- import { message as y, Space as L, Button as V, Typography as z } from "antd";
3
- import { useState as n, useMemo as d, useCallback as D, useEffect as de } from "react";
4
- import { catalogToItems as H } from "../utils/catalogToItems.js";
5
- import { buildDraftEffectivePermissions as ce } from "../utils/draftEffectivePermissions.js";
6
- import { multiTagSelectProps as $, MULTI_TAG_SHOW_LENGTH as pe } from "../utils/multiTagSelect.js";
7
- import { roleSelectOption as ue, roleDisplayName as fe } from "../utils/roleDisplay.js";
8
- import ye from "../../ReactFilter/getFilterValue.js";
1
+ import { jsxs as P, jsx as s } from "react/jsx-runtime";
2
+ import { message as h, Space as j, Button as Y, Alert as ye, Typography as D } from "antd";
3
+ import { useState as n, useMemo as c, useCallback as K, useEffect as he } from "react";
4
+ import { catalogToItems as W } from "../utils/catalogToItems.js";
5
+ import { buildDraftEffectivePermissions as Ce } from "../utils/draftEffectivePermissions.js";
6
+ import { multiTagSelectProps as q, MULTI_TAG_SHOW_LENGTH as we } from "../utils/multiTagSelect.js";
7
+ import { roleSelectOption as Se, roleDisplayName as Ie } from "../utils/roleDisplay.js";
8
+ import ve from "../../ReactFilter/getFilterValue.js";
9
9
  import "../../ReactFilter/entry.js";
10
- import ge from "../../Layout/ModulePageShell/index.js";
11
- import he from "../../ReactFilter/Filter.js";
12
- import { InputFilterItem as Ce } from "../../ReactFilter/fields/index.js";
13
- import we from "../../Table/Table.js";
14
- import Se from "../../Modal/Modal/index.js";
15
- import Ie from "../../Descriptions/CommonDescriptions.js";
16
- import { FormModal as ve, FormInfo as be, Select as R } from "../../Form/kneFormInfo.js";
17
- import Ee from "../../Form/FormDataSync.js";
18
- import Pe from "../../PermissionBindPanel/PermissionBindPanel.js";
19
- import Te from "../../Tag/Tags/index.js";
20
- import { SEMANTIC_COLORS as ke } from "../../Tag/SemanticTag.js";
21
- const Fe = he, Oe = 420;
22
- function Re(l) {
23
- var g, h;
24
- const c = (g = l.roles) != null && g.length ? /* @__PURE__ */ t(
25
- Te,
10
+ import be from "../../Layout/ModulePageShell/index.js";
11
+ import Ee from "../../ReactFilter/Filter.js";
12
+ import { InputFilterItem as Pe } from "../../ReactFilter/fields/index.js";
13
+ import Ae from "../../Table/Table.js";
14
+ import Te from "../../Modal/Modal/index.js";
15
+ import Ue from "../../Descriptions/CommonDescriptions.js";
16
+ import { FormModal as ke, FormInfo as Fe, Select as x } from "../../Form/kneFormInfo.js";
17
+ import Oe from "../../Form/FormDataSync.js";
18
+ import Re from "../../PermissionBindPanel/PermissionBindPanel.js";
19
+ import xe from "../../Tag/Tags/index.js";
20
+ import { SEMANTIC_COLORS as Ne } from "../../Tag/SemanticTag.js";
21
+ const Be = Ee, Me = 420;
22
+ function _e(r) {
23
+ var C, w;
24
+ const p = (C = r.roles) != null && C.length ? /* @__PURE__ */ s(
25
+ xe,
26
26
  {
27
- tags: l.roles.map((u) => fe(u)),
28
- showLength: pe,
29
- color: ke.INFO,
27
+ tags: r.roles.map((f) => Ie(f)),
28
+ showLength: we,
29
+ color: Ne.INFO,
30
30
  empty: "—"
31
31
  }
32
32
  ) : "—";
33
33
  return [
34
- { label: "工号", value: l.employeeId || "—" },
35
- { label: "姓名", value: l.displayName || "—" },
36
- { label: "邮箱", value: l.email || "—" },
34
+ { label: "工号", value: r.employeeId || "—" },
35
+ { label: "姓名", value: r.displayName || "—" },
36
+ { label: "邮箱", value: r.email || "—" },
37
37
  {
38
38
  label: "组织",
39
- value: ((h = l.orgs) == null ? void 0 : h.map((u) => u.name).filter(Boolean).join("、")) || "—",
39
+ value: ((w = r.orgs) == null ? void 0 : w.map((f) => f.name).filter(Boolean).join("、")) || "—",
40
40
  span: 2
41
41
  },
42
- { label: "角色", value: c, span: 2 }
42
+ { label: "角色", value: p, span: 2 }
43
43
  ];
44
44
  }
45
- function Qe({
46
- client: l,
47
- catalog: c,
48
- systemEntryCodes: g,
49
- tableName: h = "iam_users",
50
- title: u = "用户管理"
45
+ function so({
46
+ client: r,
47
+ catalog: p,
48
+ systemEntryCodes: C,
49
+ tableName: w = "iam_users",
50
+ title: f = "用户管理",
51
+ personalDataScope: d
51
52
  }) {
52
- const [j, x] = n(!1), [Y, K] = n([]), [W, q] = n(0), [E, N] = n(1), [P, J] = n([]), A = d(() => {
53
- const e = ye(P);
53
+ var $;
54
+ const [J, N] = n(!1), [Q, X] = n([]), [Z, ee] = n(0), [A, B] = n(1), [T, oe] = n([]), M = c(() => {
55
+ const e = ve(T);
54
56
  return String(e.keyword ?? "");
55
- }, [P]), [f, T] = n(null), [Q, M] = n(!1), [i, k] = n(null), [C, X] = n([]), [w, Z] = n([]), [S, U] = n([]), [I, B] = n([]), [ee, oe] = n(0), _ = d(() => {
57
+ }, [T]), [y, U] = n(null), [re, _] = n(!1), [i, k] = n(null), [S, te] = n([]), [I, se] = n([]), [v, G] = n([]), [b, L] = n([]), [F, V] = n(""), [le, ae] = n(0), g = !!(($ = d == null ? void 0 : d.options) != null && $.length && r.getUserAppDataScope && r.setUserAppDataScope), z = c(() => {
56
58
  const e = {};
57
- for (const r of H(c))
58
- e[r.code] = r.name;
59
+ for (const t of W(p))
60
+ e[t.code] = t.name;
59
61
  return e;
60
- }, [c]), v = d(
61
- () => ce({
62
- roleCodes: S,
63
- groupIds: I,
64
- roles: C,
65
- groups: w,
66
- nameByCode: _
62
+ }, [p]), E = c(
63
+ () => Ce({
64
+ roleCodes: v,
65
+ groupIds: b,
66
+ roles: S,
67
+ groups: I,
68
+ nameByCode: z
67
69
  }),
68
- [S, I, C, w, _]
69
- ), G = d(() => {
70
- const e = v.filter((o) => o.layer !== "RESOURCE").map((o) => ({
70
+ [v, b, S, I, z]
71
+ ), H = c(() => {
72
+ const e = E.filter((o) => o.layer !== "RESOURCE").map((o) => ({
71
73
  id: o.code,
72
74
  code: o.code,
73
75
  name: o.name || o.code,
74
76
  layer: o.layer
75
- })), r = new Map(e.map((o) => [o.code, o])), a = H(c).map((o) => {
76
- const m = r.get(o.code);
77
+ })), t = new Map(e.map((o) => [o.code, o])), a = W(p).map((o) => {
78
+ const m = t.get(o.code);
77
79
  return m ? { ...o, name: m.name || o.name, layer: m.layer || o.layer } : o;
78
- }), s = new Set(a.map((o) => o.code));
79
- return [...a, ...e.filter((o) => !s.has(o.code))];
80
- }, [v, c]), re = d(
81
- () => v.filter((e) => e.layer !== "RESOURCE").map((e) => e.code),
82
- [v]
83
- ), te = d(() => C.map((e) => ue(e)), [C]), le = d(
84
- () => w.map((e) => ({
80
+ }), l = new Set(a.map((o) => o.code));
81
+ return [...a, ...e.filter((o) => !l.has(o.code))];
82
+ }, [E, p]), ne = c(
83
+ () => E.filter((e) => e.layer !== "RESOURCE").map((e) => e.code),
84
+ [E]
85
+ ), ie = c(() => S.map((e) => Se(e)), [S]), de = c(
86
+ () => I.map((e) => ({
85
87
  value: e.id,
86
88
  label: e.name || e.code,
87
89
  title: e.code ? `编码:${e.code}` : e.name
88
90
  })),
89
- [w]
90
- ), F = D(async () => {
91
- x(!0);
91
+ [I]
92
+ ), O = K(async () => {
93
+ N(!0);
92
94
  try {
93
- const e = await l.listUsers({ page: E, pageSize: 20, keyword: A || void 0 });
94
- K(e.pageData), q(e.total);
95
+ const e = await r.listUsers({ page: A, pageSize: 20, keyword: M || void 0 });
96
+ X(e.pageData), ee(e.total);
95
97
  } catch (e) {
96
- y.error(e instanceof Error ? e.message : "加载失败");
98
+ h.error(e instanceof Error ? e.message : "加载失败");
97
99
  } finally {
98
- x(!1);
100
+ N(!1);
99
101
  }
100
- }, [l, E, A]);
101
- de(() => {
102
- F();
103
- }, [F]);
104
- const se = async (e) => {
105
- var r, a;
106
- T(e), M(!0);
102
+ }, [r, A, M]);
103
+ he(() => {
104
+ O();
105
+ }, [O]);
106
+ const me = async (e) => {
107
+ var t, a;
108
+ U(e), _(!0);
107
109
  try {
108
- const s = await l.getUser(e.id);
109
- T({
110
+ const l = await r.getUser(e.id);
111
+ U({
110
112
  ...e,
111
- ...s,
112
- orgs: (r = s.orgs) != null && r.length ? s.orgs : e.orgs,
113
- roles: (a = s.roles) != null && a.length ? s.roles : e.roles
113
+ ...l,
114
+ orgs: (t = l.orgs) != null && t.length ? l.orgs : e.orgs,
115
+ roles: (a = l.roles) != null && a.length ? l.roles : e.roles
114
116
  });
115
- } catch (s) {
116
- y.error(s instanceof Error ? s.message : "加载用户详情失败");
117
+ } catch (l) {
118
+ h.error(l instanceof Error ? l.message : "加载用户详情失败");
117
119
  } finally {
118
- M(!1);
120
+ _(!1);
119
121
  }
120
- }, ae = async (e) => {
121
- var r;
122
+ }, ce = async (e) => {
123
+ var t;
122
124
  k(e);
123
125
  try {
124
- const [a, s, o, m] = await Promise.all([
125
- l.listRoles(),
126
- l.listSharedGroups(),
127
- l.listUserSharedGroups(e.id),
128
- l.getUser(e.id)
126
+ const [a, l, o, m, R] = await Promise.all([
127
+ r.listRoles(),
128
+ r.listSharedGroups(),
129
+ r.listUserSharedGroups(e.id),
130
+ r.getUser(e.id),
131
+ g && r.getUserAppDataScope ? r.getUserAppDataScope(e.id) : Promise.resolve(null)
129
132
  ]);
130
- X(a), Z(s), B(o.map((p) => p.id));
131
- const O = ((r = m.roles) == null ? void 0 : r.filter((p) => a.some((me) => me.code === p.code)).map((p) => p.code)) || [];
132
- U(O), oe((p) => p + 1);
133
+ te(a), se(l), L(o.map((u) => u.id));
134
+ const ge = ((t = m.roles) == null ? void 0 : t.filter((u) => a.some((fe) => fe.code === u.code)).map((u) => u.code)) || [];
135
+ G(ge), V(R || ""), ae((u) => u + 1);
133
136
  } catch (a) {
134
- y.error(a instanceof Error ? a.message : "加载权限失败");
137
+ h.error(a instanceof Error ? a.message : "加载权限失败");
135
138
  }
136
- }, ne = D((e) => {
137
- Array.isArray(e.groupIds) && B(e.groupIds.map(String)), Array.isArray(e.roleCodes) && U(e.roleCodes.map(String));
138
- }, []), ie = d(() => f ? Re(f) : [], [f]);
139
- return /* @__PURE__ */ b(ge, { title: u, fillHeight: !1, children: [
140
- /* @__PURE__ */ t("div", { style: { marginBottom: 12 }, children: /* @__PURE__ */ t(
141
- Fe,
139
+ }, pe = K((e) => {
140
+ Array.isArray(e.groupIds) && L(e.groupIds.map(String)), Array.isArray(e.roleCodes) && G(e.roleCodes.map(String)), typeof e.dataScope == "string" && V(e.dataScope);
141
+ }, []), ue = c(() => y ? _e(y) : [], [y]);
142
+ return /* @__PURE__ */ P(be, { title: f, fillHeight: !1, children: [
143
+ /* @__PURE__ */ s("div", { style: { marginBottom: 12 }, children: /* @__PURE__ */ s(
144
+ Be,
142
145
  {
143
- value: P,
146
+ value: T,
144
147
  onChange: (e) => {
145
- J(e), N(1);
148
+ oe(e), B(1);
146
149
  },
147
150
  list: [
148
151
  [
149
152
  {
150
- type: Ce,
153
+ type: Pe,
151
154
  props: {
152
155
  name: "keyword",
153
156
  label: "工号/姓名",
@@ -158,18 +161,18 @@ function Qe({
158
161
  ]
159
162
  }
160
163
  ) }),
161
- /* @__PURE__ */ t(
162
- we,
164
+ /* @__PURE__ */ s(
165
+ Ae,
163
166
  {
164
167
  rowKey: "id",
165
- loading: j,
166
- dataSource: Y,
167
- tableName: h,
168
+ loading: J,
169
+ dataSource: Q,
170
+ tableName: w,
168
171
  pagination: {
169
- current: E,
170
- total: W,
172
+ current: A,
173
+ total: Z,
171
174
  pageSize: 20,
172
- onChange: N
175
+ onChange: B
173
176
  },
174
177
  columns: [
175
178
  { title: "工号", dataIndex: "employeeId" },
@@ -178,45 +181,45 @@ function Qe({
178
181
  {
179
182
  title: "组织",
180
183
  key: "org",
181
- render: (e, r) => {
182
- var a, s, o, m;
183
- return ((s = (a = r.orgs) == null ? void 0 : a.find((O) => O.isPrimary)) == null ? void 0 : s.name) || ((m = (o = r.orgs) == null ? void 0 : o[0]) == null ? void 0 : m.name) || "—";
184
+ render: (e, t) => {
185
+ var a, l, o, m;
186
+ return ((l = (a = t.orgs) == null ? void 0 : a.find((R) => R.isPrimary)) == null ? void 0 : l.name) || ((m = (o = t.orgs) == null ? void 0 : o[0]) == null ? void 0 : m.name) || "—";
184
187
  }
185
188
  },
186
189
  {
187
190
  title: "操作",
188
191
  key: "ops",
189
- render: (e, r) => /* @__PURE__ */ b(L, { children: [
190
- /* @__PURE__ */ t(V, { type: "link", size: "small", onClick: () => void se(r), children: "查看" }),
191
- /* @__PURE__ */ t(V, { type: "link", size: "small", onClick: () => void ae(r), children: "权限管理" })
192
+ render: (e, t) => /* @__PURE__ */ P(j, { children: [
193
+ /* @__PURE__ */ s(Y, { type: "link", size: "small", onClick: () => void me(t), children: "查看" }),
194
+ /* @__PURE__ */ s(Y, { type: "link", size: "small", onClick: () => void ce(t), children: "权限管理" })
192
195
  ] })
193
196
  }
194
197
  ]
195
198
  }
196
199
  ),
197
- /* @__PURE__ */ t(
198
- Se,
200
+ /* @__PURE__ */ s(
201
+ Te,
199
202
  {
200
- open: !!f,
203
+ open: !!y,
201
204
  title: "查看用户",
202
- onCancel: () => T(null),
205
+ onCancel: () => U(null),
203
206
  footer: null,
204
207
  size: "M",
205
208
  scrollable: !0,
206
- children: f ? /* @__PURE__ */ t(
207
- Ie,
209
+ children: y ? /* @__PURE__ */ s(
210
+ Ue,
208
211
  {
209
- content: ie,
212
+ content: ue,
210
213
  column: 1,
211
214
  bordered: !0,
212
215
  size: "small",
213
- title: Q ? "加载中…" : void 0
216
+ title: re ? "加载中…" : void 0
214
217
  }
215
218
  ) : null
216
219
  }
217
220
  ),
218
- /* @__PURE__ */ t(
219
- ve,
221
+ /* @__PURE__ */ s(
222
+ ke,
220
223
  {
221
224
  open: !!i,
222
225
  title: `权限管理 · ${(i == null ? void 0 : i.displayName) || ""}`,
@@ -226,89 +229,95 @@ function Qe({
226
229
  cancelText: "取消",
227
230
  formProps: {
228
231
  data: {
229
- dataScope: "COMPANY",
230
- groupIds: I,
231
- roleCodes: S
232
+ dataScope: g ? F : "COMPANY",
233
+ groupIds: b,
234
+ roleCodes: v
232
235
  },
233
236
  onSubmit: async (e) => {
234
237
  if (i)
235
238
  try {
236
- await l.setUserAppRoleCodes(i.id, e.roleCodes ?? S), await l.setUserSharedGroups(i.id, e.groupIds ?? I), y.success("已保存"), k(null), F();
237
- } catch (r) {
238
- throw y.error(r instanceof Error ? r.message : "保存失败"), r;
239
+ if (g && r.setUserAppDataScope) {
240
+ const t = String(e.dataScope ?? F ?? "").trim();
241
+ await r.setUserAppDataScope(i.id, t || null);
242
+ }
243
+ await r.setUserAppRoleCodes(i.id, e.roleCodes ?? v), await r.setUserSharedGroups(i.id, e.groupIds ?? b), h.success("已保存"), k(null), O();
244
+ } catch (t) {
245
+ throw h.error(t instanceof Error ? t.message : "保存失败"), t;
239
246
  }
240
247
  }
241
248
  },
242
- children: /* @__PURE__ */ b(L, { direction: "vertical", style: { width: "100%" }, size: "middle", children: [
243
- /* @__PURE__ */ t(
244
- be,
249
+ children: /* @__PURE__ */ P(j, { direction: "vertical", style: { width: "100%" }, size: "middle", children: [
250
+ g && !F && (d != null && d.unsetHint) ? /* @__PURE__ */ s(ye, { type: "warning", showIcon: !0, message: d.unsetHint }) : null,
251
+ /* @__PURE__ */ s(
252
+ Fe,
245
253
  {
246
254
  column: 2,
247
255
  gap: 16,
248
256
  list: [
249
- /* @__PURE__ */ t(
250
- R,
257
+ /* @__PURE__ */ s(
258
+ x,
251
259
  {
252
260
  name: "dataScope",
253
- label: "数据权限",
254
- disabled: !0,
255
- options: [{ value: "COMPANY", label: "全公司" }]
261
+ label: "数据范围",
262
+ disabled: !g,
263
+ options: g ? d.options : [{ value: "COMPANY", label: "全公司" }],
264
+ placeholder: "请选择个人数据范围"
256
265
  },
257
266
  "dataScope"
258
267
  ),
259
- /* @__PURE__ */ t(
260
- R,
268
+ /* @__PURE__ */ s(
269
+ x,
261
270
  {
262
271
  name: "groupIds",
263
272
  label: "共享组",
264
273
  mode: "multiple",
265
274
  allowClear: !0,
266
- options: le,
275
+ options: de,
267
276
  placeholder: "请选择共享组(可选)",
268
- ...$
277
+ ...q
269
278
  },
270
279
  "groupIds"
271
280
  ),
272
- /* @__PURE__ */ t(
273
- R,
281
+ /* @__PURE__ */ s(
282
+ x,
274
283
  {
275
284
  name: "roleCodes",
276
285
  label: "用户角色",
277
286
  mode: "multiple",
278
287
  allowClear: !0,
279
- options: te,
288
+ options: ie,
280
289
  placeholder: "请选择本应用角色(可选)",
281
- ...$
290
+ ...q
282
291
  },
283
292
  "roleCodes"
284
293
  )
285
294
  ]
286
295
  }
287
296
  ),
288
- /* @__PURE__ */ t(Ee, { onChange: ne }),
289
- /* @__PURE__ */ b("div", { children: [
290
- /* @__PURE__ */ t(z.Text, { strong: !0, children: "权限点(只读预览)" }),
291
- G.length === 0 ? /* @__PURE__ */ t(z.Text, { type: "secondary", style: { display: "block", marginTop: 8 }, children: "暂无权限点" }) : /* @__PURE__ */ t("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ t(
292
- Pe,
297
+ /* @__PURE__ */ s(Oe, { onChange: pe }),
298
+ /* @__PURE__ */ P("div", { children: [
299
+ /* @__PURE__ */ s(D.Text, { strong: !0, children: "权限点(只读预览)" }),
300
+ H.length === 0 ? /* @__PURE__ */ s(D.Text, { type: "secondary", style: { display: "block", marginTop: 8 }, children: "暂无权限点" }) : /* @__PURE__ */ s("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ s(
301
+ Re,
293
302
  {
294
- catalog: c,
295
- permissions: G,
296
- value: re,
303
+ catalog: p,
304
+ permissions: H,
305
+ value: ne,
297
306
  onChange: () => {
298
307
  },
299
- systemEntryCodes: [...g],
308
+ systemEntryCodes: [...C],
300
309
  readOnly: !0,
301
- height: Oe
310
+ height: Me
302
311
  }
303
312
  ) })
304
313
  ] })
305
314
  ] })
306
315
  },
307
- `iam-perm-${(i == null ? void 0 : i.id) || "x"}-${ee}`
316
+ `iam-perm-${(i == null ? void 0 : i.id) || "x"}-${le}`
308
317
  )
309
318
  ] });
310
319
  }
311
320
  export {
312
- Qe as default
321
+ so as default
313
322
  };
314
323
  //# sourceMappingURL=IamUsersPage.js.map