@hkyhy/marsun-components-core 0.1.138 → 0.1.139
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.
- package/dist/components/Iam/client.d.ts +3 -0
- package/dist/components/Iam/index.d.ts +1 -1
- package/dist/components/Iam/pages/IamUsersPage.d.ts +15 -1
- package/dist/components/Iam/pages/IamUsersPage.js +171 -162
- package/dist/components/Iam/pages/IamUsersPage.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.d.ts +2 -0
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js +97 -83
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.d.ts +2 -0
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js +111 -106
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/types.d.ts +4 -0
- package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js +60 -46
- package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
2
|
-
import { message as
|
|
3
|
-
import { useState as n, useMemo as
|
|
4
|
-
import { catalogToItems as
|
|
5
|
-
import { buildDraftEffectivePermissions as
|
|
6
|
-
import { multiTagSelectProps as
|
|
7
|
-
import { roleSelectOption as
|
|
8
|
-
import
|
|
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
|
|
11
|
-
import
|
|
12
|
-
import { InputFilterItem as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { FormModal as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { SEMANTIC_COLORS as
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
const
|
|
25
|
-
|
|
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:
|
|
28
|
-
showLength:
|
|
29
|
-
color:
|
|
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:
|
|
35
|
-
{ label: "姓名", value:
|
|
36
|
-
{ label: "邮箱", value:
|
|
34
|
+
{ label: "工号", value: r.employeeId || "—" },
|
|
35
|
+
{ label: "姓名", value: r.displayName || "—" },
|
|
36
|
+
{ label: "邮箱", value: r.email || "—" },
|
|
37
37
|
{
|
|
38
38
|
label: "组织",
|
|
39
|
-
value: ((
|
|
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:
|
|
42
|
+
{ label: "角色", value: p, span: 2 }
|
|
43
43
|
];
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
client:
|
|
47
|
-
catalog:
|
|
48
|
-
systemEntryCodes:
|
|
49
|
-
tableName:
|
|
50
|
-
title:
|
|
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
|
-
|
|
53
|
-
|
|
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
|
-
}, [
|
|
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
|
|
58
|
-
e[
|
|
59
|
+
for (const t of W(p))
|
|
60
|
+
e[t.code] = t.name;
|
|
59
61
|
return e;
|
|
60
|
-
}, [
|
|
61
|
-
() =>
|
|
62
|
-
roleCodes:
|
|
63
|
-
groupIds:
|
|
64
|
-
roles:
|
|
65
|
-
groups:
|
|
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
|
-
[
|
|
69
|
-
),
|
|
70
|
-
const e =
|
|
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
|
-
})),
|
|
76
|
-
const m =
|
|
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
|
-
}),
|
|
79
|
-
return [...a, ...e.filter((o) => !
|
|
80
|
-
}, [
|
|
81
|
-
() =>
|
|
82
|
-
[
|
|
83
|
-
),
|
|
84
|
-
() =>
|
|
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
|
-
[
|
|
90
|
-
),
|
|
91
|
-
|
|
91
|
+
[I]
|
|
92
|
+
), O = K(async () => {
|
|
93
|
+
N(!0);
|
|
92
94
|
try {
|
|
93
|
-
const e = await
|
|
94
|
-
|
|
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
|
-
|
|
98
|
+
h.error(e instanceof Error ? e.message : "加载失败");
|
|
97
99
|
} finally {
|
|
98
|
-
|
|
100
|
+
N(!1);
|
|
99
101
|
}
|
|
100
|
-
}, [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}, [
|
|
104
|
-
const
|
|
105
|
-
var
|
|
106
|
-
|
|
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
|
|
109
|
-
|
|
110
|
+
const l = await r.getUser(e.id);
|
|
111
|
+
U({
|
|
110
112
|
...e,
|
|
111
|
-
...
|
|
112
|
-
orgs: (
|
|
113
|
-
roles: (a =
|
|
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 (
|
|
116
|
-
|
|
117
|
+
} catch (l) {
|
|
118
|
+
h.error(l instanceof Error ? l.message : "加载用户详情失败");
|
|
117
119
|
} finally {
|
|
118
|
-
|
|
120
|
+
_(!1);
|
|
119
121
|
}
|
|
120
|
-
},
|
|
121
|
-
var
|
|
122
|
+
}, ce = async (e) => {
|
|
123
|
+
var t;
|
|
122
124
|
k(e);
|
|
123
125
|
try {
|
|
124
|
-
const [a,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
131
|
-
const
|
|
132
|
-
|
|
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
|
-
|
|
137
|
+
h.error(a instanceof Error ? a.message : "加载权限失败");
|
|
135
138
|
}
|
|
136
|
-
},
|
|
137
|
-
Array.isArray(e.groupIds) &&
|
|
138
|
-
}, []),
|
|
139
|
-
return /* @__PURE__ */
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
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:
|
|
146
|
+
value: T,
|
|
144
147
|
onChange: (e) => {
|
|
145
|
-
|
|
148
|
+
oe(e), B(1);
|
|
146
149
|
},
|
|
147
150
|
list: [
|
|
148
151
|
[
|
|
149
152
|
{
|
|
150
|
-
type:
|
|
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__ */
|
|
162
|
-
|
|
164
|
+
/* @__PURE__ */ s(
|
|
165
|
+
Ae,
|
|
163
166
|
{
|
|
164
167
|
rowKey: "id",
|
|
165
|
-
loading:
|
|
166
|
-
dataSource:
|
|
167
|
-
tableName:
|
|
168
|
+
loading: J,
|
|
169
|
+
dataSource: Q,
|
|
170
|
+
tableName: w,
|
|
168
171
|
pagination: {
|
|
169
|
-
current:
|
|
170
|
-
total:
|
|
172
|
+
current: A,
|
|
173
|
+
total: Z,
|
|
171
174
|
pageSize: 20,
|
|
172
|
-
onChange:
|
|
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,
|
|
182
|
-
var a,
|
|
183
|
-
return ((
|
|
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,
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
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__ */
|
|
198
|
-
|
|
200
|
+
/* @__PURE__ */ s(
|
|
201
|
+
Te,
|
|
199
202
|
{
|
|
200
|
-
open: !!
|
|
203
|
+
open: !!y,
|
|
201
204
|
title: "查看用户",
|
|
202
|
-
onCancel: () =>
|
|
205
|
+
onCancel: () => U(null),
|
|
203
206
|
footer: null,
|
|
204
207
|
size: "M",
|
|
205
208
|
scrollable: !0,
|
|
206
|
-
children:
|
|
207
|
-
|
|
209
|
+
children: y ? /* @__PURE__ */ s(
|
|
210
|
+
Ue,
|
|
208
211
|
{
|
|
209
|
-
content:
|
|
212
|
+
content: ue,
|
|
210
213
|
column: 1,
|
|
211
214
|
bordered: !0,
|
|
212
215
|
size: "small",
|
|
213
|
-
title:
|
|
216
|
+
title: re ? "加载中…" : void 0
|
|
214
217
|
}
|
|
215
218
|
) : null
|
|
216
219
|
}
|
|
217
220
|
),
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
|
|
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:
|
|
231
|
-
roleCodes:
|
|
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
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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__ */
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
|
|
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__ */
|
|
250
|
-
|
|
257
|
+
/* @__PURE__ */ s(
|
|
258
|
+
x,
|
|
251
259
|
{
|
|
252
260
|
name: "dataScope",
|
|
253
|
-
label: "
|
|
254
|
-
disabled: !
|
|
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__ */
|
|
260
|
-
|
|
268
|
+
/* @__PURE__ */ s(
|
|
269
|
+
x,
|
|
261
270
|
{
|
|
262
271
|
name: "groupIds",
|
|
263
272
|
label: "共享组",
|
|
264
273
|
mode: "multiple",
|
|
265
274
|
allowClear: !0,
|
|
266
|
-
options:
|
|
275
|
+
options: de,
|
|
267
276
|
placeholder: "请选择共享组(可选)",
|
|
268
|
-
|
|
277
|
+
...q
|
|
269
278
|
},
|
|
270
279
|
"groupIds"
|
|
271
280
|
),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
|
|
281
|
+
/* @__PURE__ */ s(
|
|
282
|
+
x,
|
|
274
283
|
{
|
|
275
284
|
name: "roleCodes",
|
|
276
285
|
label: "用户角色",
|
|
277
286
|
mode: "multiple",
|
|
278
287
|
allowClear: !0,
|
|
279
|
-
options:
|
|
288
|
+
options: ie,
|
|
280
289
|
placeholder: "请选择本应用角色(可选)",
|
|
281
|
-
|
|
290
|
+
...q
|
|
282
291
|
},
|
|
283
292
|
"roleCodes"
|
|
284
293
|
)
|
|
285
294
|
]
|
|
286
295
|
}
|
|
287
296
|
),
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
|
|
292
|
-
|
|
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:
|
|
295
|
-
permissions:
|
|
296
|
-
value:
|
|
303
|
+
catalog: p,
|
|
304
|
+
permissions: H,
|
|
305
|
+
value: ne,
|
|
297
306
|
onChange: () => {
|
|
298
307
|
},
|
|
299
|
-
systemEntryCodes: [...
|
|
308
|
+
systemEntryCodes: [...C],
|
|
300
309
|
readOnly: !0,
|
|
301
|
-
height:
|
|
310
|
+
height: Me
|
|
302
311
|
}
|
|
303
312
|
) })
|
|
304
313
|
] })
|
|
305
314
|
] })
|
|
306
315
|
},
|
|
307
|
-
`iam-perm-${(i == null ? void 0 : i.id) || "x"}-${
|
|
316
|
+
`iam-perm-${(i == null ? void 0 : i.id) || "x"}-${le}`
|
|
308
317
|
)
|
|
309
318
|
] });
|
|
310
319
|
}
|
|
311
320
|
export {
|
|
312
|
-
|
|
321
|
+
so as default
|
|
313
322
|
};
|
|
314
323
|
//# sourceMappingURL=IamUsersPage.js.map
|