@ximatai/muyun-web-app 0.26.11 → 0.26.12
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/ModuleActionManagementView-BHEooZ5L.js +672 -0
- package/dist/ModuleGovernanceView-DB3TWlMy.js +28521 -0
- package/dist/{RoleDetailWorkspaceView-UOm1ejGH.js → RoleDetailWorkspaceView-D6X7pAj5.js} +467 -457
- package/dist/index.css +1 -1
- package/dist/index.js +1942 -359
- package/dist/moduleGovernanceWorkspaceView-C5pqJOEJ.js +40 -0
- package/dist/platform-workbench-DJj42YQP.js +22911 -0
- package/dist/rolldown-runtime-DPVXH0ON.js +17 -0
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +0 -2
- package/dist/types/app/LoginView.vue.d.ts +1 -1
- package/dist/types/app/workbenchRouteSync.d.ts +10 -1
- package/dist/types/app/workbenchSessionTabs.d.ts +22 -0
- package/dist/types/app/workbenchStartup.d.ts +7 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -1
- package/dist/types/consumer/index.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +12 -1
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +11 -11
- package/dist/types/dynamic-page-runtime/childAggregateContext.d.ts +11 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +80 -26
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/formActionResult.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +7 -4
- package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +3 -0
- package/dist/types/formula/FormulaRuntime.d.ts +6 -0
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEntriesSection.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +16 -0
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +2 -0
- package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +24 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +15 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -3
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +54 -0
- package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +15 -3
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +11 -0
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +3 -3
- package/dist/types/platform-components/QueryGroupedSummary.vue.d.ts +21 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +41 -2
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordExplorerCreateButton.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +16 -5
- package/dist/types/platform-components/RecordFieldLabel.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +21 -2
- package/dist/types/platform-components/RecordFormGrid.vue.d.ts +24 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +23 -1
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +9 -3
- package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +15 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryEnumFilter.vue.d.ts +17 -0
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +12 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +104 -61
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +124 -0
- package/dist/types/platform-components/RecordRelationTable.vue.d.ts +62 -0
- package/dist/types/platform-components/RecordRelationValue.vue.d.ts +9 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -3
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +14 -3
- package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +22 -0
- package/dist/types/platform-components/formulaExpressionTokens.d.ts +18 -0
- package/dist/types/platform-components/index.d.ts +20 -1
- package/dist/types/platform-components/managementExplorerContext.d.ts +11 -0
- package/dist/types/platform-components/managementWorkspaceContext.d.ts +20 -0
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
- package/dist/types/platform-components/recordActionBarModel.d.ts +3 -0
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +42 -0
- package/dist/types/platform-components/selectionRefresh.d.ts +9 -0
- package/dist/types/platform-components/sortPartitionKey.d.ts +5 -0
- package/dist/types/platform-workbench/index.d.ts +2 -0
- package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +5 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +5 -1
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +5 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +5 -0
- package/dist/types/platform-workbench/workspaceViewNavigation.d.ts +9 -0
- package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +3 -0
- package/dist/types/views/BusinessRuleGovernanceSurface.vue.d.ts +10 -0
- package/dist/types/views/MetadataGovernanceSurface.vue.d.ts +8 -0
- package/dist/types/views/MetadataSourceTree.vue.d.ts +44 -0
- package/dist/types/views/ModuleBusinessPreview.vue.d.ts +7 -0
- package/dist/types/views/ModuleExperienceProfileOverview.vue.d.ts +7 -0
- package/dist/types/views/ModuleGovernanceView.vue.d.ts +9 -0
- package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +54 -0
- package/dist/types/views/PageCompositionTree.vue.d.ts +103 -0
- package/dist/types/views/PageCompositionWorkspace.vue.d.ts +7 -0
- package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +48 -0
- package/dist/types/views/businessRuleGovernance.d.ts +201 -0
- package/dist/types/views/metadataModelEditSession.d.ts +75 -0
- package/dist/types/views/metadataModelTree.d.ts +40 -0
- package/dist/types/views/metadataNaming.d.ts +7 -0
- package/dist/types/views/metadataOrchestrationState.d.ts +161 -6
- package/dist/types/views/metadataSourceTree.d.ts +10 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +9 -0
- package/dist/types/views/pageCompositionDraftState.d.ts +375 -0
- package/dist/types/views/pageCompositionDragPayload.d.ts +26 -0
- package/dist/types/views/pageCompositionMode.d.ts +86 -0
- package/dist/types/views/pageCompositionPlacement.d.ts +48 -0
- package/dist/types/views/pageCompositionTransport.d.ts +9 -0
- package/dist/types/views/usePageCompositionActionPreviewDrag.d.ts +41 -0
- package/dist/types/views/usePageCompositionPreviewDrag.d.ts +48 -0
- package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +6 -3
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +5 -2
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +5 -1
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +38 -1
- package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +62 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +63 -9
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/index.d.ts +6 -1
- package/dist/types/vue-ui-antdv/treeStructure.d.ts +18 -0
- package/dist/types/vue-ui-antdv/types.d.ts +64 -0
- package/dist/types/vue-ui-antdv/useTreeLoader.d.ts +21 -0
- package/dist/types/vue-ui-antdv/useTreeMotion.d.ts +9 -0
- package/dist/types/vue-ui-antdv/useUiTreeDrag.d.ts +32 -0
- package/dist/types/web-contracts/index.d.ts +67 -7
- package/dist/types/web-core/module/index.d.ts +1 -0
- package/dist/types/web-core/module/moduleContext.d.ts +15 -0
- package/dist/types/web-core/module/pageActionEntries.d.ts +21 -0
- package/dist/types/web-core/module/runtimeContext.d.ts +7 -3
- package/dist/types/web-core/module/staticModuleClient.d.ts +25 -2
- package/dist/workspaceViews-DI_1vYX9.js +3518 -0
- package/package.json +1 -1
- package/dist/MetadataOrchestrationView-F_Bmfn9K.js +0 -661
- package/dist/ModuleActionManagementView-Db_3Twom.js +0 -597
- package/dist/platform-components-59b4qzUL.js +0 -12489
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +0 -6
- package/dist/workspaceViews-BvV8mpML.js +0 -11149
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { $t as e, B as t, D as n, Dn as r, E as i, Et as a, F as ee, G as te, I as ne, J as re, N as o, O as ie, Rn as ae, Tn as oe, Y as se, Zt as ce, an as le, bn as ue, bt as de, en as fe, et as pe, f as me, j as he, on as ge, q as _e, vt as s, xn as c, z as ve } from "./platform-workbench-DJj42YQP.js";
|
|
2
|
+
import { a as l, c as ye, i as be, o as xe, r as Se, s as Ce, t as we, x as Te } from "./workspaceViews-DI_1vYX9.js";
|
|
3
3
|
import { Fragment as Ee, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as De, createVNode as h, defineComponent as g, normalizeClass as Oe, onBeforeUnmount as ke, onMounted as Ae, openBlock as _, ref as v, unref as y, watch as je, withCtx as b, withModifiers as Me } from "vue";
|
|
4
|
-
//#region src/
|
|
4
|
+
//#region src/platform-components/recordDraftNormalizer.ts
|
|
5
5
|
function Ne(e, t) {
|
|
6
|
-
return
|
|
6
|
+
return {
|
|
7
|
+
...e,
|
|
8
|
+
...t
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/views/roleDetailWorkspaceSession.ts
|
|
13
|
+
function Pe(e, t) {
|
|
14
|
+
return Se(Te, e, {
|
|
7
15
|
...t,
|
|
8
16
|
selectedRole: { ...t.selectedRole },
|
|
9
17
|
draft: { ...t.draft },
|
|
@@ -14,15 +22,15 @@ function Ne(e, t) {
|
|
|
14
22
|
}
|
|
15
23
|
});
|
|
16
24
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
25
|
+
function Fe(e, t) {
|
|
26
|
+
return be(Te, e, t);
|
|
19
27
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
28
|
+
function Ie(e) {
|
|
29
|
+
return l(Te, e);
|
|
22
30
|
}
|
|
23
31
|
//#endregion
|
|
24
32
|
//#region src/views/RoleGroupMemberSelector.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
-
var x = { class: "role-group-member-selector" },
|
|
33
|
+
var x = { class: "role-group-member-selector" }, Le = /*#__PURE__*/ r(/* @__PURE__ */ g({
|
|
26
34
|
name: "RoleGroupMemberSelector",
|
|
27
35
|
__name: "RoleGroupMemberSelector",
|
|
28
36
|
props: {
|
|
@@ -37,7 +45,7 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
37
45
|
emits: ["update:value"],
|
|
38
46
|
setup(e, { emit: t }) {
|
|
39
47
|
let n = e, r = t, i = u(() => ne(n.value)), a = u(() => new Set(n.candidates.filter((e) => e.roleKind === "dataGrant" && e.id && i.value.includes(e.id)).map((e) => e.id))), ee = u(() => n.candidates.filter((e) => e.id && e.id !== n.currentRoleId).map((e) => ({
|
|
40
|
-
label: `${re(e)} / ${
|
|
48
|
+
label: `${re(e)} / ${o(e.roleKind)}`,
|
|
41
49
|
value: e.id,
|
|
42
50
|
disabled: e.roleKind === "dataGrant" && a.value.size > 0 && !i.value.includes(e.id)
|
|
43
51
|
})));
|
|
@@ -55,10 +63,10 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
55
63
|
function re(e) {
|
|
56
64
|
return String(e?.title ?? e?.id ?? "角色");
|
|
57
65
|
}
|
|
58
|
-
function
|
|
66
|
+
function o(e) {
|
|
59
67
|
return e === "dataGrant" ? "数据授权角色" : "标准角色";
|
|
60
68
|
}
|
|
61
|
-
return (t, n) => (_(), p("label", x, [n[0] ||= m("span", { class: "role-group-member-selector-label" }, "成员角色", -1), h(y(
|
|
69
|
+
return (t, n) => (_(), p("label", x, [n[0] ||= m("span", { class: "role-group-member-selector-label" }, "成员角色", -1), h(y(c), {
|
|
62
70
|
mode: "multiple",
|
|
63
71
|
value: i.value,
|
|
64
72
|
options: ee.value,
|
|
@@ -72,13 +80,13 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
72
80
|
"disabled"
|
|
73
81
|
])]));
|
|
74
82
|
}
|
|
75
|
-
}), [["__scopeId", "data-v-91d9ae10"]]),
|
|
83
|
+
}), [["__scopeId", "data-v-91d9ae10"]]), Re = {
|
|
76
84
|
key: 1,
|
|
77
85
|
class: "role-detail-state"
|
|
78
|
-
},
|
|
86
|
+
}, ze = {
|
|
79
87
|
key: 1,
|
|
80
88
|
class: "role-detail-state"
|
|
81
|
-
},
|
|
89
|
+
}, Be = /*#__PURE__*/ r(/* @__PURE__ */ g({
|
|
82
90
|
name: "RoleManagementView",
|
|
83
91
|
__name: "RoleManagementView",
|
|
84
92
|
props: {
|
|
@@ -86,16 +94,20 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
86
94
|
scopeKind: {},
|
|
87
95
|
scopeId: {}
|
|
88
96
|
},
|
|
89
|
-
setup(
|
|
90
|
-
let
|
|
97
|
+
setup(r) {
|
|
98
|
+
let c = r, l = me(), be = ae({ moduleAlias: "iam.tenant" }), Se = ae({ moduleAlias: "iam.organization" }), g = ae({ moduleAlias: "iam.role" }), x = a(), Be = v(""), S = v(null), C = v(0), w = v(), T = v(), E = v(), D = v(), O = v(!1), k = v("view"), A = v(!1), j = v(!1), M = v(!1), N = v(), P = v(!1), F = v(!1), Ve = v(), He = v(!1), I = v(0), L = v(Z(void 0)), R = v(re(void 0)), z = v([]), B = u(() => !!(c.recordId && c.scopeKind)), V = u(() => B.value && l?.presentation === "drawer"), Ue = u(() => !B.value || V.value), H = v([]), U = ge({
|
|
99
|
+
nodes: () => H.value,
|
|
100
|
+
loader: () => xt,
|
|
101
|
+
version: () => H.value
|
|
102
|
+
}), We = U.states, Ge = v([]), Ke = v(!1), W = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map(), Je = /* @__PURE__ */ new Map(), Ye = u(() => In(U.nodes.value, Be.value)), Xe = u(() => x?.value?.system === !0), Ze = u(() => x?.value?.system === !0), Qe = u(() => {
|
|
91
103
|
let e = x?.value?.tenantId;
|
|
92
|
-
if (
|
|
104
|
+
if (x?.value?.system !== !0 && e) return {
|
|
93
105
|
id: e,
|
|
94
106
|
title: e,
|
|
95
107
|
alias: e,
|
|
96
108
|
enabled: !0
|
|
97
109
|
};
|
|
98
|
-
}),
|
|
110
|
+
}), $e = u(() => gt(g, T.value)), et = u(() => [
|
|
99
111
|
{
|
|
100
112
|
key: "title",
|
|
101
113
|
title: "角色名称",
|
|
@@ -105,25 +117,25 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
105
117
|
key: "assignmentType",
|
|
106
118
|
title: "授权层级",
|
|
107
119
|
width: "13%",
|
|
108
|
-
render: (e) =>
|
|
120
|
+
render: (e) => wn(e, "assignmentType", bn(e.assignmentType))
|
|
109
121
|
},
|
|
110
122
|
{
|
|
111
123
|
key: "roleKind",
|
|
112
124
|
title: "角色类型",
|
|
113
125
|
width: "13%",
|
|
114
|
-
render: (e) =>
|
|
126
|
+
render: (e) => wn(e, "roleKind", xn(e.roleKind))
|
|
115
127
|
},
|
|
116
128
|
{
|
|
117
129
|
key: "sharePolicy",
|
|
118
130
|
title: "公开策略",
|
|
119
131
|
width: "15%",
|
|
120
|
-
render: (e) =>
|
|
132
|
+
render: (e) => wn(e, "sharePolicy", Sn(e.sharePolicy))
|
|
121
133
|
},
|
|
122
134
|
{
|
|
123
135
|
key: "systemManaged",
|
|
124
136
|
title: "系统托管",
|
|
125
137
|
width: "12%",
|
|
126
|
-
render: (e) =>
|
|
138
|
+
render: (e) => Cn(e.systemManaged)
|
|
127
139
|
},
|
|
128
140
|
{
|
|
129
141
|
key: "enabled",
|
|
@@ -131,24 +143,24 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
131
143
|
type: "enabledStatus",
|
|
132
144
|
width: "10%"
|
|
133
145
|
}
|
|
134
|
-
]),
|
|
135
|
-
let e =
|
|
136
|
-
return !!(e?.id && e.systemManaged !== !0 && g.can(
|
|
137
|
-
}),
|
|
146
|
+
]), tt = u(() => !!T.value), nt = u(() => k.value === "create" ? "新建角色" : $(D.value ?? L.value)), rt = u(() => T.value?.title ?? "角色详情"), G = u(() => M.value || A.value), it = u(() => A.value || !T.value ? !1 : k.value === "create" ? g.can("create") === !0 : !!D.value?.id && g.can("update") === !0 && !D.value?.systemManaged), at = u(() => {
|
|
147
|
+
let e = D.value;
|
|
148
|
+
return !!(e?.id && e.systemManaged !== !0 && g.can(kn(e)) === !0);
|
|
149
|
+
}), ot = u(() => k.value === "view" ? D.value?.id ? [
|
|
138
150
|
{
|
|
139
151
|
key: "edit",
|
|
140
152
|
actionCode: "update",
|
|
141
153
|
title: "编辑",
|
|
142
154
|
iconName: "edit",
|
|
143
|
-
disabled:
|
|
155
|
+
disabled: M.value || D.value.systemManaged === !0
|
|
144
156
|
},
|
|
145
157
|
{
|
|
146
158
|
key: "bind",
|
|
147
|
-
actionCode:
|
|
148
|
-
title:
|
|
159
|
+
actionCode: Dn(D.value),
|
|
160
|
+
title: On(D.value),
|
|
149
161
|
iconName: "lock",
|
|
150
|
-
visible:
|
|
151
|
-
disabled:
|
|
162
|
+
visible: Tn(D.value),
|
|
163
|
+
disabled: M.value || D.value.systemManaged === !0
|
|
152
164
|
},
|
|
153
165
|
{
|
|
154
166
|
key: "delete",
|
|
@@ -156,47 +168,47 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
156
168
|
title: "删除",
|
|
157
169
|
iconName: "delete",
|
|
158
170
|
danger: !0,
|
|
159
|
-
disabled:
|
|
171
|
+
disabled: M.value || D.value.systemManaged === !0
|
|
160
172
|
}
|
|
161
173
|
] : [] : [{
|
|
162
174
|
key: "cancel",
|
|
163
175
|
title: "取消",
|
|
164
176
|
iconName: "close",
|
|
165
|
-
disabled:
|
|
177
|
+
disabled: M.value
|
|
166
178
|
}, {
|
|
167
179
|
key: "save",
|
|
168
|
-
actionCode:
|
|
180
|
+
actionCode: k.value === "create" ? "create" : "update",
|
|
169
181
|
title: "保存",
|
|
170
182
|
iconName: "save",
|
|
171
183
|
primary: !0,
|
|
172
|
-
loading:
|
|
173
|
-
disabled: !
|
|
174
|
-
}]),
|
|
175
|
-
view:
|
|
184
|
+
loading: M.value,
|
|
185
|
+
disabled: !it.value
|
|
186
|
+
}]), st = u(() => ot.value), ct = u(() => ot.value), lt = xe({
|
|
187
|
+
view: Te,
|
|
176
188
|
input: u(() => {
|
|
177
|
-
let e =
|
|
178
|
-
if (
|
|
189
|
+
let e = D.value?.id, t = T.value, n = k.value;
|
|
190
|
+
if (e && t && (n === "view" || n === "edit")) return {
|
|
179
191
|
recordId: e,
|
|
180
192
|
scopeKind: t.kind,
|
|
181
193
|
...t.kind === "platform" ? {} : { scopeId: t.id }
|
|
182
194
|
};
|
|
183
195
|
}),
|
|
184
|
-
title: u(() => $(
|
|
196
|
+
title: u(() => $(D.value)),
|
|
185
197
|
eligibility: u(() => ({
|
|
186
|
-
hasStableIdentity: !!(
|
|
187
|
-
busy:
|
|
198
|
+
hasStableIdentity: !!(D.value?.id && T.value) && !A.value,
|
|
199
|
+
busy: M.value
|
|
188
200
|
})),
|
|
189
201
|
beforePromote: async (e) => {
|
|
190
|
-
let t =
|
|
191
|
-
if (
|
|
202
|
+
let t = D.value, n = T.value;
|
|
203
|
+
if (t && n) return await Pe(e, {
|
|
192
204
|
selectedRole: t,
|
|
193
|
-
draft:
|
|
205
|
+
draft: L.value,
|
|
194
206
|
scope: n,
|
|
195
|
-
mode:
|
|
207
|
+
mode: k.value === "edit" ? "edit" : "view"
|
|
196
208
|
}) === "accepted";
|
|
197
209
|
},
|
|
198
|
-
onPromoted:
|
|
199
|
-
}),
|
|
210
|
+
onPromoted: qt
|
|
211
|
+
}), K = u(() => ({
|
|
200
212
|
title: {
|
|
201
213
|
label: "角色名称",
|
|
202
214
|
required: !0,
|
|
@@ -208,18 +220,18 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
208
220
|
required: !0,
|
|
209
221
|
visible: !0,
|
|
210
222
|
controlType: "select",
|
|
211
|
-
options:
|
|
223
|
+
options: mn(L.value.roleKind)
|
|
212
224
|
},
|
|
213
225
|
roleKind: {
|
|
214
226
|
label: "角色类型",
|
|
215
227
|
required: !0,
|
|
216
228
|
visible: !0,
|
|
217
229
|
controlType: "select",
|
|
218
|
-
options:
|
|
230
|
+
options: hn(L.value.assignmentType)
|
|
219
231
|
},
|
|
220
232
|
memberRoleIds: {
|
|
221
233
|
label: "成员角色",
|
|
222
|
-
visible:
|
|
234
|
+
visible: L.value.roleKind === "group"
|
|
223
235
|
},
|
|
224
236
|
ownerScopeType: {
|
|
225
237
|
label: "归属范围",
|
|
@@ -252,7 +264,7 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
252
264
|
required: !0,
|
|
253
265
|
visible: !0,
|
|
254
266
|
controlType: "select",
|
|
255
|
-
options:
|
|
267
|
+
options: yn(T.value?.kind ?? L.value.ownerScopeType)
|
|
256
268
|
},
|
|
257
269
|
description: {
|
|
258
270
|
label: "说明",
|
|
@@ -269,55 +281,56 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
269
281
|
visible: !0,
|
|
270
282
|
placeholder: "请输入排序号"
|
|
271
283
|
}
|
|
272
|
-
})),
|
|
284
|
+
})), ut = [
|
|
273
285
|
"title",
|
|
274
286
|
"assignmentType",
|
|
275
287
|
"roleKind"
|
|
276
|
-
],
|
|
288
|
+
], dt = [
|
|
277
289
|
"ownerScopeType",
|
|
278
290
|
"ownerScopeId",
|
|
279
291
|
"sharePolicy",
|
|
280
292
|
"description",
|
|
281
293
|
"enabled",
|
|
282
294
|
"sortOrder"
|
|
283
|
-
],
|
|
295
|
+
], ft = u(() => {
|
|
284
296
|
let e = [
|
|
285
297
|
"title",
|
|
286
298
|
"assignmentType",
|
|
287
299
|
"roleKind"
|
|
288
300
|
];
|
|
289
|
-
return
|
|
290
|
-
}),
|
|
301
|
+
return L.value.roleKind === "group" && e.push("memberRoleIds"), e.push("ownerScopeType", "ownerScopeId", "sharePolicy", "description", "enabled", "sortOrder"), e;
|
|
302
|
+
}), pt;
|
|
291
303
|
Ae(() => {
|
|
292
|
-
if (
|
|
293
|
-
let e =
|
|
294
|
-
e && !
|
|
295
|
-
}), ke(() =>
|
|
296
|
-
function
|
|
297
|
-
return
|
|
298
|
-
}
|
|
299
|
-
je(
|
|
300
|
-
|
|
301
|
-
}, { immediate: !0 }), je(
|
|
302
|
-
|
|
304
|
+
if (ht(), (!B.value || V.value) && yt(), !B.value || !c.recordId || !c.scopeKind) return;
|
|
305
|
+
let e = rn();
|
|
306
|
+
e && !V.value && (pt = Fe(e, mt)), nn();
|
|
307
|
+
}), ke(() => pt?.());
|
|
308
|
+
function mt(e) {
|
|
309
|
+
return k.value !== "edit" && (sn(e), !0);
|
|
310
|
+
}
|
|
311
|
+
je(D, (e) => {
|
|
312
|
+
B.value && e && l?.setTitle($(e));
|
|
313
|
+
}, { immediate: !0 }), je(Qe, jt, { immediate: !0 }), je(T, () => {
|
|
314
|
+
B.value || (E.value = void 0, D.value = void 0, L.value = Z(T.value), qt(), C.value += 1, q());
|
|
303
315
|
});
|
|
304
|
-
async function
|
|
316
|
+
async function ht() {
|
|
305
317
|
try {
|
|
306
|
-
|
|
318
|
+
let e = await g.runtime.ready;
|
|
319
|
+
R.value = re(e.uiDescriptor);
|
|
307
320
|
} catch (e) {
|
|
308
|
-
|
|
321
|
+
s(e, {
|
|
309
322
|
source: "role-management",
|
|
310
323
|
phase: "load"
|
|
311
324
|
});
|
|
312
325
|
}
|
|
313
326
|
}
|
|
314
|
-
async function
|
|
327
|
+
async function q(e = T.value) {
|
|
315
328
|
if (!e) {
|
|
316
|
-
|
|
329
|
+
z.value = [];
|
|
317
330
|
return;
|
|
318
331
|
}
|
|
319
332
|
try {
|
|
320
|
-
|
|
333
|
+
let t = await g.crud.query(_t({
|
|
321
334
|
page: {
|
|
322
335
|
pageNum: 0,
|
|
323
336
|
pageSize: 500
|
|
@@ -340,24 +353,25 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
340
353
|
}
|
|
341
354
|
],
|
|
342
355
|
sorts: [{ field: "sortOrder" }, { field: "title" }]
|
|
343
|
-
}, e))
|
|
356
|
+
}, e));
|
|
357
|
+
z.value = t.records;
|
|
344
358
|
} catch (e) {
|
|
345
|
-
|
|
359
|
+
z.value = [], s(e, {
|
|
346
360
|
source: "role-management",
|
|
347
361
|
phase: "load"
|
|
348
362
|
});
|
|
349
363
|
}
|
|
350
364
|
}
|
|
351
|
-
function
|
|
365
|
+
function gt(e, t) {
|
|
352
366
|
return {
|
|
353
367
|
...e,
|
|
354
368
|
crud: {
|
|
355
369
|
...e.crud,
|
|
356
|
-
query: (n) => t ? e.crud.query(
|
|
370
|
+
query: (n) => t ? e.crud.query(_t(n, t)) : e.crud.query(n)
|
|
357
371
|
}
|
|
358
372
|
};
|
|
359
373
|
}
|
|
360
|
-
function
|
|
374
|
+
function _t(e, t) {
|
|
361
375
|
let n = [...e?.conditions ?? [], {
|
|
362
376
|
fieldName: "ownerScopeType",
|
|
363
377
|
operator: "EQ",
|
|
@@ -372,191 +386,184 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
372
386
|
conditions: n
|
|
373
387
|
};
|
|
374
388
|
}
|
|
375
|
-
function
|
|
376
|
-
return e === "ownerScopeType" || e === "ownerScopeId" ||
|
|
389
|
+
function vt(e) {
|
|
390
|
+
return e === "ownerScopeType" || e === "ownerScopeId" || k.value === "edit" && ["assignmentType", "roleKind"].includes(e) ? !0 : D.value?.systemManaged === !0;
|
|
377
391
|
}
|
|
378
392
|
function J(e, t) {
|
|
379
393
|
let n = {
|
|
380
|
-
...
|
|
394
|
+
...L.value,
|
|
381
395
|
[e]: t
|
|
382
396
|
};
|
|
383
|
-
e === "roleKind" && (t === "group" || t === "dataGrant") && (n.assignmentType = "employment"), e === "roleKind" && t !== "group" && (n.memberRoleIds = void 0), e === "assignmentType" && t === "account" &&
|
|
397
|
+
e === "roleKind" && (t === "group" || t === "dataGrant") && (n.assignmentType = "employment"), e === "roleKind" && t !== "group" && (n.memberRoleIds = void 0), e === "assignmentType" && t === "account" && pn(n.roleKind) && (n.roleKind = "standard", n.memberRoleIds = void 0), L.value = n;
|
|
384
398
|
}
|
|
385
|
-
async function
|
|
386
|
-
if (!
|
|
387
|
-
if (!
|
|
388
|
-
let e =
|
|
399
|
+
async function yt() {
|
|
400
|
+
if (!B.value || V.value) {
|
|
401
|
+
if (!Ze.value) {
|
|
402
|
+
let e = Qe.value;
|
|
389
403
|
if (!e?.id) return;
|
|
390
|
-
|
|
404
|
+
W.set(e.id, e), H.value = [bt(e)], jt(e);
|
|
391
405
|
return;
|
|
392
406
|
}
|
|
393
|
-
|
|
407
|
+
Ke.value = !0;
|
|
394
408
|
try {
|
|
395
|
-
await
|
|
396
|
-
let e = await
|
|
409
|
+
await be.runtime.ready;
|
|
410
|
+
let e = await be.abilities.crud().query({ page: {
|
|
397
411
|
pageNum: 1,
|
|
398
412
|
pageSize: 200
|
|
399
413
|
} });
|
|
400
|
-
|
|
401
|
-
e.id &&
|
|
402
|
-
}),
|
|
414
|
+
W.clear(), e.records.forEach((e) => {
|
|
415
|
+
e.id && W.set(e.id, e);
|
|
416
|
+
}), H.value = e.records.map(bt), !T.value && Xe.value && Mt();
|
|
403
417
|
} catch (e) {
|
|
404
|
-
|
|
418
|
+
H.value = [], s(e, {
|
|
405
419
|
source: "role-management",
|
|
406
420
|
phase: "load"
|
|
407
421
|
});
|
|
408
422
|
} finally {
|
|
409
|
-
|
|
423
|
+
Ke.value = !1;
|
|
410
424
|
}
|
|
411
425
|
}
|
|
412
426
|
}
|
|
413
|
-
function
|
|
427
|
+
function bt(e) {
|
|
414
428
|
return {
|
|
415
|
-
key:
|
|
416
|
-
title:
|
|
429
|
+
key: Tt(e.id),
|
|
430
|
+
title: jn(e),
|
|
417
431
|
secondary: e.alias ?? e.id,
|
|
418
432
|
muted: e.enabled === !1,
|
|
419
433
|
isLeaf: !1
|
|
420
434
|
};
|
|
421
435
|
}
|
|
422
|
-
async function
|
|
423
|
-
let
|
|
424
|
-
if (!
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
let r = ce(Ce, {
|
|
436
|
+
async function xt(e, t) {
|
|
437
|
+
let n = Ot(e.key), r = n ? W.get(n) : void 0;
|
|
438
|
+
if (!n || !r) throw Error("租户已失效");
|
|
439
|
+
try {
|
|
440
|
+
let e = ie(Se, {
|
|
428
441
|
scopeFieldName: "tenantId",
|
|
429
|
-
scopeValue:
|
|
442
|
+
scopeValue: n,
|
|
430
443
|
treePath: "/iam.organization/tree"
|
|
431
444
|
});
|
|
432
|
-
await
|
|
433
|
-
let i = await
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
445
|
+
await e.runtime.ready;
|
|
446
|
+
let i = await e.abilities.tree().tree();
|
|
447
|
+
return t.signal.throwIfAborted(), {
|
|
448
|
+
mode: "replace",
|
|
449
|
+
nodes: [St(r), ...i.records.map((e) => Ct(e, n))],
|
|
450
|
+
hasMore: !1
|
|
451
|
+
};
|
|
438
452
|
} catch (e) {
|
|
439
|
-
throw
|
|
453
|
+
throw t.signal.aborted || s(e, {
|
|
440
454
|
source: "role-management",
|
|
441
455
|
phase: "load"
|
|
442
456
|
}), e;
|
|
443
457
|
}
|
|
444
458
|
}
|
|
445
|
-
function
|
|
459
|
+
function St(e) {
|
|
446
460
|
return {
|
|
447
|
-
key:
|
|
448
|
-
title:
|
|
461
|
+
key: Et(e.id),
|
|
462
|
+
title: jn(e),
|
|
449
463
|
secondary: "租户本级角色",
|
|
450
464
|
isLeaf: !0
|
|
451
465
|
};
|
|
452
466
|
}
|
|
453
|
-
function
|
|
467
|
+
function Ct(e, t) {
|
|
454
468
|
let n = e.record;
|
|
455
|
-
return n.id && (
|
|
456
|
-
key:
|
|
457
|
-
title:
|
|
469
|
+
return n.id && (qe.set(n.id, n), Je.set(n.id, t)), {
|
|
470
|
+
key: Dt(n.id),
|
|
471
|
+
title: Mn(n),
|
|
458
472
|
secondary: n.code ?? n.id,
|
|
459
473
|
muted: n.enabled === !1,
|
|
460
474
|
isLeaf: e.children.length === 0,
|
|
461
|
-
children: e.children.map((e) =>
|
|
475
|
+
children: e.children.map((e) => Ct(e, t))
|
|
462
476
|
};
|
|
463
477
|
}
|
|
464
|
-
function
|
|
465
|
-
let t =
|
|
478
|
+
function wt(e) {
|
|
479
|
+
let t = Ot(e.key);
|
|
466
480
|
if (t) {
|
|
467
|
-
let e =
|
|
468
|
-
e &&
|
|
481
|
+
let e = W.get(t);
|
|
482
|
+
e && Pt(e);
|
|
469
483
|
return;
|
|
470
484
|
}
|
|
471
|
-
let n =
|
|
485
|
+
let n = kt(e.key);
|
|
472
486
|
if (n) {
|
|
473
|
-
let e =
|
|
474
|
-
e &&
|
|
487
|
+
let e = W.get(n);
|
|
488
|
+
e && Pt(e);
|
|
475
489
|
return;
|
|
476
490
|
}
|
|
477
|
-
let r =
|
|
491
|
+
let r = At(e.key);
|
|
478
492
|
if (!r) return;
|
|
479
|
-
let i =
|
|
480
|
-
i && a && (
|
|
481
|
-
}
|
|
482
|
-
function St(e, t) {
|
|
483
|
-
let n = (r) => r.map((r) => r.key === e ? t : r.children ? {
|
|
484
|
-
...r,
|
|
485
|
-
children: n(r.children)
|
|
486
|
-
} : r);
|
|
487
|
-
W.value = n(W.value);
|
|
493
|
+
let i = qe.get(r), a = Je.get(r);
|
|
494
|
+
i && a && (w.value = W.get(a), It(i));
|
|
488
495
|
}
|
|
489
|
-
function
|
|
496
|
+
function Tt(e) {
|
|
490
497
|
return `tenant:${e ?? ""}`;
|
|
491
498
|
}
|
|
492
|
-
function
|
|
499
|
+
function Et(e) {
|
|
493
500
|
return `tenant-root:${e ?? ""}`;
|
|
494
501
|
}
|
|
495
|
-
function
|
|
502
|
+
function Dt(e) {
|
|
496
503
|
return `organization:${e ?? ""}`;
|
|
497
504
|
}
|
|
498
|
-
function
|
|
505
|
+
function Ot(e) {
|
|
499
506
|
return e.startsWith("tenant:") ? e.slice(7) : void 0;
|
|
500
507
|
}
|
|
501
|
-
function
|
|
508
|
+
function kt(e) {
|
|
502
509
|
return e.startsWith("tenant-root:") ? e.slice(12) : void 0;
|
|
503
510
|
}
|
|
504
|
-
function
|
|
511
|
+
function At(e) {
|
|
505
512
|
return e.startsWith("organization:") ? e.slice(13) : void 0;
|
|
506
513
|
}
|
|
507
|
-
function
|
|
508
|
-
!e ||
|
|
514
|
+
function jt(e = Qe.value) {
|
|
515
|
+
!e || Ze.value || w.value || T.value || (w.value = e, Ft(e));
|
|
509
516
|
}
|
|
510
|
-
function
|
|
511
|
-
|
|
517
|
+
function Mt() {
|
|
518
|
+
X() && Xe.value && (w.value = void 0, T.value = {
|
|
512
519
|
kind: "platform",
|
|
513
520
|
key: "platform",
|
|
514
521
|
title: "平台角色"
|
|
515
522
|
});
|
|
516
523
|
}
|
|
517
|
-
function
|
|
524
|
+
function Nt() {
|
|
518
525
|
if (X()) {
|
|
519
|
-
if (!
|
|
520
|
-
|
|
526
|
+
if (!Xe.value) {
|
|
527
|
+
Ft();
|
|
521
528
|
return;
|
|
522
529
|
}
|
|
523
|
-
|
|
530
|
+
Mt();
|
|
524
531
|
}
|
|
525
532
|
}
|
|
526
|
-
function
|
|
527
|
-
X() && (
|
|
533
|
+
function Pt(e) {
|
|
534
|
+
X() && (w.value = e, Ft(e));
|
|
528
535
|
}
|
|
529
|
-
function
|
|
530
|
-
|
|
536
|
+
function Ft(e = w.value) {
|
|
537
|
+
e?.id && X() && (T.value = {
|
|
531
538
|
kind: "tenant",
|
|
532
539
|
id: e.id,
|
|
533
540
|
key: `tenant:${e.id}`,
|
|
534
|
-
title: `${
|
|
541
|
+
title: `${jn(e)} / 租户本级`,
|
|
535
542
|
tenant: e
|
|
536
543
|
});
|
|
537
544
|
}
|
|
538
|
-
function
|
|
539
|
-
|
|
545
|
+
function It(e) {
|
|
546
|
+
e.id && X() && (T.value = {
|
|
540
547
|
kind: "organization",
|
|
541
548
|
id: e.id,
|
|
542
549
|
key: `organization:${e.id}`,
|
|
543
|
-
title:
|
|
544
|
-
tenant:
|
|
550
|
+
title: Mn(e),
|
|
551
|
+
tenant: w.value,
|
|
545
552
|
organization: e
|
|
546
553
|
});
|
|
547
554
|
}
|
|
548
|
-
function
|
|
549
|
-
e.key === "create" &&
|
|
555
|
+
function Lt(e) {
|
|
556
|
+
e.key === "create" && Kt();
|
|
550
557
|
}
|
|
551
|
-
function
|
|
558
|
+
function Rt(e) {
|
|
552
559
|
return [
|
|
553
560
|
{
|
|
554
561
|
key: "bind",
|
|
555
|
-
actionCode:
|
|
562
|
+
actionCode: Dn(e),
|
|
556
563
|
title: "绑定",
|
|
557
564
|
after: "edit",
|
|
558
565
|
pinned: !0,
|
|
559
|
-
visible:
|
|
566
|
+
visible: Tn(e)
|
|
560
567
|
},
|
|
561
568
|
{
|
|
562
569
|
key: "authorize",
|
|
@@ -564,23 +571,23 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
564
571
|
title: "授权",
|
|
565
572
|
after: "bind",
|
|
566
573
|
pinned: !0,
|
|
567
|
-
visible:
|
|
574
|
+
visible: En(e)
|
|
568
575
|
},
|
|
569
576
|
{
|
|
570
577
|
key: "toggle",
|
|
571
|
-
actionCode:
|
|
572
|
-
title:
|
|
578
|
+
actionCode: kn(e),
|
|
579
|
+
title: An(e),
|
|
573
580
|
iconName: "power",
|
|
574
581
|
before: "delete"
|
|
575
582
|
}
|
|
576
583
|
];
|
|
577
584
|
}
|
|
578
|
-
function
|
|
585
|
+
function zt(e, t) {
|
|
579
586
|
if (e.systemManaged !== !0) return;
|
|
580
587
|
let n = t.key ?? t.actionCode;
|
|
581
588
|
return n === "edit" || n === "update" || n === "bind" || n === "authorize" || n === "toggle" || n === "delete" ? { disabled: !0 } : void 0;
|
|
582
589
|
}
|
|
583
|
-
function
|
|
590
|
+
function Bt(e, t) {
|
|
584
591
|
if (X()) {
|
|
585
592
|
if (e.key === "view") {
|
|
586
593
|
Y(t, "view");
|
|
@@ -591,149 +598,149 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
591
598
|
return;
|
|
592
599
|
}
|
|
593
600
|
if (e.key === "bind") {
|
|
594
|
-
|
|
601
|
+
Wt(t, t.assignmentType === "employment");
|
|
595
602
|
return;
|
|
596
603
|
}
|
|
597
604
|
if (e.key === "authorize") {
|
|
598
|
-
|
|
605
|
+
Vt(t);
|
|
599
606
|
return;
|
|
600
607
|
}
|
|
601
608
|
if (e.key === "toggle") {
|
|
602
|
-
|
|
609
|
+
$t(t);
|
|
603
610
|
return;
|
|
604
611
|
}
|
|
605
|
-
e.key === "delete" &&
|
|
612
|
+
e.key === "delete" && Qt(t);
|
|
606
613
|
}
|
|
607
614
|
}
|
|
608
|
-
function
|
|
609
|
-
|
|
615
|
+
function Vt(e) {
|
|
616
|
+
String(e.id ?? "") && e.roleKind !== "group" && (Ve.value = Q(e), He.value = !0);
|
|
610
617
|
}
|
|
611
|
-
function
|
|
612
|
-
|
|
618
|
+
function Ht() {
|
|
619
|
+
He.value = !1, Ve.value = void 0;
|
|
613
620
|
}
|
|
614
|
-
function
|
|
621
|
+
function Ut(e) {
|
|
615
622
|
X() && Y(e, "view");
|
|
616
623
|
}
|
|
617
|
-
async function
|
|
624
|
+
async function Wt(e, t = !1) {
|
|
618
625
|
if (!X()) return;
|
|
619
626
|
let n = String(e.id ?? "");
|
|
620
627
|
if (n) {
|
|
621
|
-
|
|
628
|
+
P.value = !t, F.value = t, N.value = Q(e);
|
|
622
629
|
try {
|
|
623
|
-
|
|
630
|
+
N.value = await g.crud.view(n);
|
|
624
631
|
} catch (e) {
|
|
625
|
-
|
|
632
|
+
P.value = !1, F.value = !1, N.value = void 0, s(e, {
|
|
626
633
|
source: "role-management",
|
|
627
634
|
phase: "load"
|
|
628
635
|
});
|
|
629
636
|
}
|
|
630
637
|
}
|
|
631
638
|
}
|
|
632
|
-
function
|
|
633
|
-
|
|
639
|
+
function Gt() {
|
|
640
|
+
M.value || (P.value = !1, F.value = !1, N.value = void 0);
|
|
634
641
|
}
|
|
635
|
-
function
|
|
642
|
+
function Kt() {
|
|
636
643
|
if (X()) {
|
|
637
|
-
if (!
|
|
638
|
-
|
|
644
|
+
if (!T.value) {
|
|
645
|
+
de("请先选择角色归属范围", { phase: "validation" });
|
|
639
646
|
return;
|
|
640
647
|
}
|
|
641
|
-
|
|
648
|
+
D.value = void 0, E.value = void 0, L.value = Z(T.value), k.value = "create", A.value = !1, j.value = !1, I.value += 1, O.value = !0;
|
|
642
649
|
}
|
|
643
650
|
}
|
|
644
651
|
async function Y(e, t) {
|
|
645
652
|
if (!X()) return;
|
|
646
653
|
let n = String(e.id ?? "");
|
|
647
654
|
if (!n) return;
|
|
648
|
-
|
|
649
|
-
let r =
|
|
650
|
-
|
|
655
|
+
E.value = n, O.value = !0, k.value = t, D.value = void 0, L.value = Q(e), A.value = !0, j.value = !1;
|
|
656
|
+
let r = I.value + 1;
|
|
657
|
+
I.value = r;
|
|
651
658
|
try {
|
|
652
659
|
let e = await g.crud.view(n);
|
|
653
|
-
if (!
|
|
654
|
-
if (!
|
|
655
|
-
|
|
660
|
+
if (!en(n, r)) return;
|
|
661
|
+
if (!on(e)) {
|
|
662
|
+
j.value = !0, de("角色不属于当前归属范围", {
|
|
656
663
|
source: "role-management",
|
|
657
664
|
phase: "load"
|
|
658
665
|
});
|
|
659
666
|
return;
|
|
660
667
|
}
|
|
661
|
-
|
|
668
|
+
tn(e, t);
|
|
662
669
|
} catch (e) {
|
|
663
|
-
|
|
670
|
+
en(n, r) && (j.value = !0, s(e, {
|
|
664
671
|
source: "role-management",
|
|
665
672
|
phase: "load"
|
|
666
673
|
}));
|
|
667
674
|
} finally {
|
|
668
|
-
|
|
675
|
+
en(n, r) && (A.value = !1);
|
|
669
676
|
}
|
|
670
677
|
}
|
|
671
|
-
function
|
|
672
|
-
|
|
678
|
+
function qt() {
|
|
679
|
+
M.value || (I.value += 1, A.value = !1, j.value = !1, O.value = !1, k.value = "view", L.value = D.value ? Q(D.value) : Z(T.value), V.value && l?.dismiss());
|
|
673
680
|
}
|
|
674
|
-
function
|
|
675
|
-
if (!
|
|
676
|
-
if (!
|
|
677
|
-
|
|
681
|
+
function Jt() {
|
|
682
|
+
if (!M.value) {
|
|
683
|
+
if (!D.value?.id || k.value === "create") {
|
|
684
|
+
qt();
|
|
678
685
|
return;
|
|
679
686
|
}
|
|
680
|
-
|
|
687
|
+
L.value = Q(D.value), k.value = "view", A.value = !1, j.value = !1;
|
|
681
688
|
}
|
|
682
689
|
}
|
|
683
|
-
function
|
|
690
|
+
function Yt(e) {
|
|
684
691
|
if (e.key === "cancel") {
|
|
685
|
-
|
|
692
|
+
Jt();
|
|
686
693
|
return;
|
|
687
694
|
}
|
|
688
695
|
if (e.key === "save") {
|
|
689
|
-
|
|
696
|
+
Zt();
|
|
690
697
|
return;
|
|
691
698
|
}
|
|
692
699
|
if (X()) {
|
|
693
|
-
if (e.key === "edit" &&
|
|
694
|
-
|
|
700
|
+
if (e.key === "edit" && D.value && !D.value.systemManaged) {
|
|
701
|
+
L.value = Q(D.value), k.value = "edit";
|
|
695
702
|
return;
|
|
696
703
|
}
|
|
697
|
-
if (e.key === "bind" &&
|
|
698
|
-
|
|
704
|
+
if (e.key === "bind" && D.value) {
|
|
705
|
+
Wt(D.value, D.value.assignmentType === "employment");
|
|
699
706
|
return;
|
|
700
707
|
}
|
|
701
|
-
e.key === "delete" &&
|
|
708
|
+
e.key === "delete" && Qt(D.value);
|
|
702
709
|
}
|
|
703
710
|
}
|
|
704
|
-
function
|
|
705
|
-
let e = String(
|
|
711
|
+
function Xt() {
|
|
712
|
+
let e = String(L.value.id ?? E.value ?? "");
|
|
706
713
|
if (!e) return;
|
|
707
|
-
let t =
|
|
714
|
+
let t = k.value === "create" ? "view" : k.value;
|
|
708
715
|
Y({
|
|
709
|
-
...
|
|
716
|
+
...L.value,
|
|
710
717
|
id: e
|
|
711
718
|
}, t);
|
|
712
719
|
}
|
|
713
|
-
async function
|
|
714
|
-
await
|
|
715
|
-
loading:
|
|
716
|
-
mode:
|
|
720
|
+
async function Zt() {
|
|
721
|
+
await i({
|
|
722
|
+
loading: M,
|
|
723
|
+
mode: k.value === "edit" ? "edit" : "create",
|
|
717
724
|
source: "role-management",
|
|
718
|
-
validateContext: () =>
|
|
719
|
-
canSave: () =>
|
|
725
|
+
validateContext: () => T.value ? void 0 : "请先选择角色归属范围",
|
|
726
|
+
canSave: () => it.value,
|
|
720
727
|
deniedMessage: "当前用户无权保存角色",
|
|
721
|
-
createRecord: () =>
|
|
722
|
-
validateRecord:
|
|
723
|
-
save: (e, t) => t === "edit" &&
|
|
728
|
+
createRecord: () => cn(L.value, T.value),
|
|
729
|
+
validateRecord: un,
|
|
730
|
+
save: (e, t) => t === "edit" && D.value?.id ? g.crud.update(D.value.id, e) : g.crud.insert(e),
|
|
724
731
|
onSaved: ({ record: e }) => {
|
|
725
|
-
|
|
732
|
+
tn(e), C.value += 1, q();
|
|
726
733
|
}
|
|
727
734
|
});
|
|
728
735
|
}
|
|
729
|
-
async function
|
|
730
|
-
await
|
|
731
|
-
loading:
|
|
736
|
+
async function Qt(e) {
|
|
737
|
+
await n({
|
|
738
|
+
loading: M,
|
|
732
739
|
source: "role-management",
|
|
733
740
|
record: () => e?.id ? e : void 0,
|
|
734
741
|
canExecute: (e) => g.can("delete") === !0 && e.systemManaged !== !0,
|
|
735
742
|
deniedMessage: "当前用户无权删除角色",
|
|
736
|
-
confirm: (e) =>
|
|
743
|
+
confirm: (e) => ce({
|
|
737
744
|
title: "删除角色",
|
|
738
745
|
content: `确认删除角色「${$(e)}」?`,
|
|
739
746
|
okText: "删除",
|
|
@@ -741,52 +748,52 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
741
748
|
}),
|
|
742
749
|
execute: (e) => g.crud.delete(String(e.id), { version: e.version }),
|
|
743
750
|
onExecuted: (e, t) => {
|
|
744
|
-
|
|
751
|
+
E.value === String(t.id) && (E.value = void 0, D.value = void 0, L.value = Z(T.value), O.value = !1, k.value = "view", A.value = !1, j.value = !1, I.value += 1), C.value += 1, q();
|
|
745
752
|
}
|
|
746
753
|
});
|
|
747
754
|
}
|
|
748
|
-
async function
|
|
749
|
-
await
|
|
750
|
-
loading:
|
|
755
|
+
async function $t(e) {
|
|
756
|
+
await n({
|
|
757
|
+
loading: M,
|
|
751
758
|
source: "role-management",
|
|
752
759
|
record: () => e?.id ? e : void 0,
|
|
753
|
-
canExecute: (e) => g.can(
|
|
760
|
+
canExecute: (e) => g.can(kn(e)) === !0 && e.systemManaged !== !0,
|
|
754
761
|
deniedMessage: "当前用户无权变更角色启停状态",
|
|
755
762
|
execute: (e) => e.enabled === !1 ? g.crud.enable(String(e.id), { version: e.version }) : g.crud.disable(String(e.id), { version: e.version }),
|
|
756
763
|
onExecuted: async (e, t) => {
|
|
757
|
-
|
|
764
|
+
E.value === String(t.id) && tn(await g.crud.view(String(t.id))), C.value += 1, q();
|
|
758
765
|
}
|
|
759
766
|
});
|
|
760
767
|
}
|
|
761
768
|
function X() {
|
|
762
|
-
return !
|
|
769
|
+
return !M.value;
|
|
763
770
|
}
|
|
764
|
-
function
|
|
765
|
-
return
|
|
771
|
+
function en(e, t) {
|
|
772
|
+
return I.value === t && E.value === e;
|
|
766
773
|
}
|
|
767
|
-
function
|
|
768
|
-
|
|
774
|
+
function tn(e, t = "view") {
|
|
775
|
+
D.value = e, E.value = e.id, L.value = Q(e), k.value = t === "edit" && e.systemManaged !== !0 ? "edit" : "view", O.value = !0, A.value = !1, j.value = !1, I.value += 1;
|
|
769
776
|
}
|
|
770
|
-
async function
|
|
771
|
-
let e =
|
|
777
|
+
async function nn() {
|
|
778
|
+
let e = rn();
|
|
772
779
|
if (!e) return;
|
|
773
|
-
|
|
774
|
-
let t =
|
|
780
|
+
T.value = an(e);
|
|
781
|
+
let t = Ie(e);
|
|
775
782
|
if (t) {
|
|
776
|
-
|
|
783
|
+
sn(t);
|
|
777
784
|
return;
|
|
778
785
|
}
|
|
779
786
|
await Y({ id: e.recordId }, "view");
|
|
780
787
|
}
|
|
781
|
-
function
|
|
782
|
-
let e =
|
|
783
|
-
if (
|
|
788
|
+
function rn() {
|
|
789
|
+
let e = c.recordId, t = c.scopeKind;
|
|
790
|
+
if (e && t && (t === "platform" || c.scopeId)) return {
|
|
784
791
|
recordId: e,
|
|
785
792
|
scopeKind: t,
|
|
786
|
-
...t === "platform" ? {} : { scopeId:
|
|
793
|
+
...t === "platform" ? {} : { scopeId: c.scopeId }
|
|
787
794
|
};
|
|
788
795
|
}
|
|
789
|
-
function
|
|
796
|
+
function an(e) {
|
|
790
797
|
if (e.scopeKind === "platform") return {
|
|
791
798
|
kind: "platform",
|
|
792
799
|
key: "platform",
|
|
@@ -805,21 +812,21 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
805
812
|
} } : {}
|
|
806
813
|
};
|
|
807
814
|
}
|
|
808
|
-
function
|
|
809
|
-
let t =
|
|
815
|
+
function on(e) {
|
|
816
|
+
let t = T.value;
|
|
810
817
|
return !t || e.ownerScopeType !== t.kind ? !1 : t.kind === "platform" || e.ownerScopeId === t.id;
|
|
811
818
|
}
|
|
812
|
-
function
|
|
813
|
-
|
|
819
|
+
function sn(e) {
|
|
820
|
+
T.value = e.scope, D.value = e.selectedRole, E.value = e.selectedRole.id, L.value = e.draft, k.value = e.mode, O.value = !0, A.value = !1, j.value = !1, I.value += 1;
|
|
814
821
|
}
|
|
815
822
|
function Z(e) {
|
|
816
823
|
return {
|
|
817
|
-
tenantId:
|
|
824
|
+
tenantId: ln(e),
|
|
818
825
|
ownerScopeType: e?.kind,
|
|
819
826
|
ownerScopeId: e?.kind === "platform" ? void 0 : e?.id,
|
|
820
827
|
assignmentType: "employment",
|
|
821
828
|
roleKind: "standard",
|
|
822
|
-
sharePolicy:
|
|
829
|
+
sharePolicy: _n(),
|
|
823
830
|
enabled: !0,
|
|
824
831
|
sortOrder: 100
|
|
825
832
|
};
|
|
@@ -827,27 +834,27 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
827
834
|
function Q(e) {
|
|
828
835
|
return { ...e };
|
|
829
836
|
}
|
|
830
|
-
function
|
|
831
|
-
let n =
|
|
837
|
+
function cn(e, t) {
|
|
838
|
+
let n = fn(e.roleKind), r = gn(e.sharePolicy, t.kind), i = Ne(e, {
|
|
832
839
|
title: e.title?.trim(),
|
|
833
|
-
assignmentType:
|
|
840
|
+
assignmentType: dn(e.assignmentType, n),
|
|
834
841
|
roleKind: n,
|
|
835
842
|
memberRoleIds: e.memberRoleIds?.trim() || void 0,
|
|
836
|
-
tenantId:
|
|
843
|
+
tenantId: ln(t),
|
|
837
844
|
ownerScopeType: t.kind,
|
|
838
845
|
ownerScopeId: t.kind === "platform" ? void 0 : t.id,
|
|
839
846
|
ownerScopeKey: void 0,
|
|
840
847
|
sharePolicy: r,
|
|
841
848
|
description: e.description?.trim() || void 0,
|
|
842
849
|
enabled: e.enabled !== !1,
|
|
843
|
-
sortOrder:
|
|
850
|
+
sortOrder: vn(e.sortOrder)
|
|
844
851
|
});
|
|
845
852
|
return n !== "group" && (i.memberRoleIds = void 0), i;
|
|
846
853
|
}
|
|
847
|
-
function
|
|
854
|
+
function ln(e) {
|
|
848
855
|
return e?.kind === "platform" ? void 0 : e?.tenant?.id ?? e?.id;
|
|
849
856
|
}
|
|
850
|
-
function
|
|
857
|
+
function un(e) {
|
|
851
858
|
for (let t of [
|
|
852
859
|
"title",
|
|
853
860
|
"assignmentType",
|
|
@@ -855,26 +862,26 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
855
862
|
"ownerScopeType",
|
|
856
863
|
"sharePolicy"
|
|
857
864
|
]) {
|
|
858
|
-
let n =
|
|
859
|
-
fields:
|
|
860
|
-
fallback:
|
|
865
|
+
let n = _e(t, {
|
|
866
|
+
fields: R.value,
|
|
867
|
+
fallback: K.value
|
|
861
868
|
});
|
|
862
869
|
if (n.visible && n.required && !e[t]) return `请填写${n.label}`;
|
|
863
870
|
}
|
|
864
871
|
if (e.ownerScopeType !== "platform" && !e.ownerScopeId) return "请选择归属对象";
|
|
865
|
-
if (!
|
|
872
|
+
if (!yn(e.ownerScopeType).some((t) => t.value === e.sharePolicy)) return "请选择当前归属范围可用的公开策略";
|
|
866
873
|
}
|
|
867
|
-
function
|
|
874
|
+
function dn(e, t) {
|
|
868
875
|
return t === "group" || t === "dataGrant" ? "employment" : e === "account" ? "account" : "employment";
|
|
869
876
|
}
|
|
870
|
-
function
|
|
877
|
+
function fn(e) {
|
|
871
878
|
return e === "group" || e === "dataGrant" || e === "system" ? e : "standard";
|
|
872
879
|
}
|
|
873
|
-
function
|
|
880
|
+
function pn(e) {
|
|
874
881
|
return e === "group" || e === "dataGrant";
|
|
875
882
|
}
|
|
876
|
-
function
|
|
877
|
-
return
|
|
883
|
+
function mn(e) {
|
|
884
|
+
return pn(e) ? [{
|
|
878
885
|
label: "任职角色",
|
|
879
886
|
value: "employment"
|
|
880
887
|
}] : [{
|
|
@@ -885,7 +892,7 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
885
892
|
value: "employment"
|
|
886
893
|
}];
|
|
887
894
|
}
|
|
888
|
-
function
|
|
895
|
+
function hn(e) {
|
|
889
896
|
let t = [{
|
|
890
897
|
label: "标准角色",
|
|
891
898
|
value: "standard"
|
|
@@ -906,18 +913,18 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
906
913
|
t[1]
|
|
907
914
|
];
|
|
908
915
|
}
|
|
909
|
-
function
|
|
910
|
-
return
|
|
916
|
+
function gn(e, t) {
|
|
917
|
+
return yn(t).map((e) => e.value).includes(e ?? "") ? e : _n();
|
|
911
918
|
}
|
|
912
|
-
function
|
|
919
|
+
function _n() {
|
|
913
920
|
return "private";
|
|
914
921
|
}
|
|
915
|
-
function
|
|
922
|
+
function vn(e) {
|
|
916
923
|
if (typeof e == "number") return Number.isFinite(e) ? e : 100;
|
|
917
924
|
let t = Number(String(e ?? "").trim());
|
|
918
925
|
return Number.isFinite(t) ? t : 100;
|
|
919
926
|
}
|
|
920
|
-
function
|
|
927
|
+
function yn(e) {
|
|
921
928
|
return e === "platform" ? [{
|
|
922
929
|
label: "私有",
|
|
923
930
|
value: "private"
|
|
@@ -938,10 +945,10 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
938
945
|
value: "tenant"
|
|
939
946
|
}];
|
|
940
947
|
}
|
|
941
|
-
function
|
|
948
|
+
function bn(e) {
|
|
942
949
|
return e === "account" ? "账号角色" : "任职角色";
|
|
943
950
|
}
|
|
944
|
-
function
|
|
951
|
+
function xn(e) {
|
|
945
952
|
return {
|
|
946
953
|
standard: "标准角色",
|
|
947
954
|
group: "角色组",
|
|
@@ -949,7 +956,7 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
949
956
|
system: "系统角色"
|
|
950
957
|
}[e ?? "standard"];
|
|
951
958
|
}
|
|
952
|
-
function
|
|
959
|
+
function Sn(e) {
|
|
953
960
|
return {
|
|
954
961
|
private: "私有",
|
|
955
962
|
ownerAndChildren: "本级及下级",
|
|
@@ -957,59 +964,59 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
957
964
|
platform: "全局公开"
|
|
958
965
|
}[e ?? "private"];
|
|
959
966
|
}
|
|
960
|
-
function
|
|
967
|
+
function Cn(e) {
|
|
961
968
|
return e === !0 ? "是" : "否";
|
|
962
969
|
}
|
|
963
|
-
function
|
|
970
|
+
function wn(e, t, n) {
|
|
964
971
|
let r = e[`${t}Title`];
|
|
965
972
|
return typeof r == "string" && r.trim() ? r : n;
|
|
966
973
|
}
|
|
967
|
-
function
|
|
974
|
+
function Tn(e) {
|
|
968
975
|
return !!e?.id && (e?.assignmentType === "account" || e?.assignmentType === "employment");
|
|
969
976
|
}
|
|
970
|
-
function
|
|
977
|
+
function En(e) {
|
|
971
978
|
return !!e?.id && e?.roleKind !== "group";
|
|
972
979
|
}
|
|
973
|
-
function
|
|
980
|
+
function Dn(e) {
|
|
974
981
|
return e?.assignmentType === "employment" ? "employmentRoleGrants" : "accountRoleGrants";
|
|
975
982
|
}
|
|
976
|
-
function
|
|
983
|
+
function On(e) {
|
|
977
984
|
return e?.assignmentType === "employment" ? "绑定任职" : "绑定用户";
|
|
978
985
|
}
|
|
979
|
-
function
|
|
986
|
+
function kn(e) {
|
|
980
987
|
return e?.enabled === !1 ? "enable" : "disable";
|
|
981
988
|
}
|
|
982
|
-
function
|
|
989
|
+
function An(e) {
|
|
983
990
|
return e?.enabled === !1 ? "启用" : "停用";
|
|
984
991
|
}
|
|
985
992
|
function $(e) {
|
|
986
993
|
return String(e?.title ?? e?.id ?? "角色");
|
|
987
994
|
}
|
|
988
|
-
function
|
|
995
|
+
function jn(e) {
|
|
989
996
|
return String(e?.title ?? e?.alias ?? e?.id ?? "未命名租户");
|
|
990
997
|
}
|
|
991
|
-
function
|
|
998
|
+
function Mn(e) {
|
|
992
999
|
return String(e?.title ?? e?.code ?? e?.id ?? "未命名机构");
|
|
993
1000
|
}
|
|
994
|
-
function
|
|
995
|
-
if (e === "ownerScopeType") return
|
|
996
|
-
if (e === "ownerScopeId") return
|
|
997
|
-
if (e === "memberRoleIds") return
|
|
1001
|
+
function Nn(e, t) {
|
|
1002
|
+
if (e === "ownerScopeType") return Fn(L.value.ownerScopeType);
|
|
1003
|
+
if (e === "ownerScopeId") return T.value?.title ?? String(t ?? "");
|
|
1004
|
+
if (e === "memberRoleIds") return Pn(t);
|
|
998
1005
|
}
|
|
999
|
-
function
|
|
1000
|
-
let t =
|
|
1006
|
+
function Pn(e) {
|
|
1007
|
+
let t = Ln(e);
|
|
1001
1008
|
return t.length === 0 ? "-" : t.map((e) => {
|
|
1002
|
-
let t =
|
|
1009
|
+
let t = z.value.find((t) => t.id === e);
|
|
1003
1010
|
return t ? $(t) : e;
|
|
1004
1011
|
}).join(",");
|
|
1005
1012
|
}
|
|
1006
|
-
function
|
|
1013
|
+
function Fn(e) {
|
|
1007
1014
|
return e === "platform" ? "平台" : e === "organization" ? "机构" : "租户";
|
|
1008
1015
|
}
|
|
1009
|
-
function
|
|
1016
|
+
function In(e, t) {
|
|
1010
1017
|
let n = t.trim().toLowerCase();
|
|
1011
1018
|
return n ? e.flatMap((e) => {
|
|
1012
|
-
let r = e.children ?
|
|
1019
|
+
let r = e.children ? In(e.children, t) : void 0;
|
|
1013
1020
|
return [
|
|
1014
1021
|
e.title,
|
|
1015
1022
|
e.secondary,
|
|
@@ -1020,64 +1027,67 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1020
1027
|
}] : [];
|
|
1021
1028
|
}) : e;
|
|
1022
1029
|
}
|
|
1023
|
-
function
|
|
1030
|
+
function Ln(e) {
|
|
1024
1031
|
return Array.isArray(e) ? e.map((e) => String(e).trim()).filter(Boolean) : typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : [];
|
|
1025
1032
|
}
|
|
1026
|
-
return (
|
|
1033
|
+
return (n, r) => (_(), p("section", {
|
|
1027
1034
|
ref_key: "pageRoot",
|
|
1028
|
-
ref:
|
|
1029
|
-
class: Oe(["role-management-page", { "role-management-page--task":
|
|
1035
|
+
ref: S,
|
|
1036
|
+
class: Oe(["role-management-page", { "role-management-page--task": B.value && !V.value }])
|
|
1030
1037
|
}, [
|
|
1031
|
-
!
|
|
1038
|
+
!B.value || V.value ? (_(), d(y(ne), {
|
|
1032
1039
|
key: 0,
|
|
1033
1040
|
class: "role-scope-panel",
|
|
1034
1041
|
title: "租户",
|
|
1035
1042
|
"refresh-title": "刷新租户列表",
|
|
1036
|
-
"search-keyword":
|
|
1043
|
+
"search-keyword": Be.value,
|
|
1037
1044
|
"search-placeholder": "搜索租户名称、alias 或 ID",
|
|
1038
|
-
searchable:
|
|
1039
|
-
onRefresh:
|
|
1040
|
-
"onUpdate:searchKeyword":
|
|
1045
|
+
searchable: Ze.value,
|
|
1046
|
+
onRefresh: yt,
|
|
1047
|
+
"onUpdate:searchKeyword": r[2] ||= (e) => Be.value = e
|
|
1041
1048
|
}, {
|
|
1042
|
-
default: b(() => [
|
|
1049
|
+
default: b(() => [Ke.value ? (_(), d(y(fe), {
|
|
1043
1050
|
key: 0,
|
|
1044
1051
|
tip: "加载租户"
|
|
1045
|
-
})) : (_(), d(y(
|
|
1052
|
+
})) : (_(), d(y(le), {
|
|
1046
1053
|
key: 1,
|
|
1047
|
-
"expanded-keys":
|
|
1048
|
-
"onUpdate:expandedKeys":
|
|
1049
|
-
nodes:
|
|
1050
|
-
"selected-key":
|
|
1051
|
-
"load-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
+
"expanded-keys": Ge.value,
|
|
1055
|
+
"onUpdate:expandedKeys": r[0] ||= (e) => Ge.value = e,
|
|
1056
|
+
nodes: Ye.value,
|
|
1057
|
+
"selected-key": T.value?.kind === "tenant" ? Et(T.value.id) : T.value?.kind === "organization" ? Dt(T.value.id) : void 0,
|
|
1058
|
+
"load-strategy": "controlled",
|
|
1059
|
+
"branch-states": y(We),
|
|
1060
|
+
onLoadRequest: r[1] ||= (e) => y(U).request(e.node.key, e.reason, y(U).stateOf(e.node.key).status === "error"),
|
|
1061
|
+
onSelect: wt,
|
|
1062
|
+
onDeselect: Nt
|
|
1054
1063
|
}, null, 8, [
|
|
1055
1064
|
"expanded-keys",
|
|
1056
1065
|
"nodes",
|
|
1057
|
-
"selected-key"
|
|
1066
|
+
"selected-key",
|
|
1067
|
+
"branch-states"
|
|
1058
1068
|
]))]),
|
|
1059
1069
|
_: 1
|
|
1060
1070
|
}, 8, ["search-keyword", "searchable"])) : f("v-if", !0),
|
|
1061
|
-
!
|
|
1071
|
+
!B.value || V.value ? (_(), d(y(t), {
|
|
1062
1072
|
key: 1,
|
|
1063
1073
|
class: "role-list-panel",
|
|
1064
|
-
context:
|
|
1065
|
-
title:
|
|
1066
|
-
columns:
|
|
1074
|
+
context: $e.value,
|
|
1075
|
+
title: T.value ? `角色列表 - ${T.value.title}` : "角色列表",
|
|
1076
|
+
columns: et.value,
|
|
1067
1077
|
"standard-crud-actions": "",
|
|
1068
1078
|
"standard-crud-row-actions": "",
|
|
1069
|
-
"extra-row-actions-of":
|
|
1070
|
-
"row-action-state-of":
|
|
1071
|
-
"selected-key":
|
|
1072
|
-
"reload-key":
|
|
1073
|
-
ready:
|
|
1079
|
+
"extra-row-actions-of": Rt,
|
|
1080
|
+
"row-action-state-of": zt,
|
|
1081
|
+
"selected-key": E.value,
|
|
1082
|
+
"reload-key": C.value,
|
|
1083
|
+
ready: tt.value,
|
|
1074
1084
|
"quick-search-placeholder": "搜索角色名称或说明",
|
|
1075
1085
|
"empty-description": "当前范围暂无角色",
|
|
1076
1086
|
"waiting-description": "请选择角色归属范围",
|
|
1077
|
-
onAction:
|
|
1078
|
-
onRowAction:
|
|
1079
|
-
onRowDblclick:
|
|
1080
|
-
onSelect:
|
|
1087
|
+
onAction: Lt,
|
|
1088
|
+
onRowAction: Bt,
|
|
1089
|
+
onRowDblclick: Ut,
|
|
1090
|
+
onSelect: r[3] ||= (e) => E.value = String(e.id ?? "")
|
|
1081
1091
|
}, null, 8, [
|
|
1082
1092
|
"context",
|
|
1083
1093
|
"title",
|
|
@@ -1086,54 +1096,54 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1086
1096
|
"reload-key",
|
|
1087
1097
|
"ready"
|
|
1088
1098
|
])) : f("v-if", !0),
|
|
1089
|
-
|
|
1099
|
+
Ue.value ? (_(), d(y(se), {
|
|
1090
1100
|
key: 2,
|
|
1091
|
-
open:
|
|
1092
|
-
title:
|
|
1101
|
+
open: O.value,
|
|
1102
|
+
title: nt.value,
|
|
1093
1103
|
"render-mode": "inline",
|
|
1094
|
-
subtitle:
|
|
1095
|
-
"close-on-outside":
|
|
1096
|
-
promotion: y(
|
|
1097
|
-
onClose:
|
|
1104
|
+
subtitle: rt.value,
|
|
1105
|
+
"close-on-outside": k.value === "view",
|
|
1106
|
+
promotion: y(lt),
|
|
1107
|
+
onClose: qt
|
|
1098
1108
|
}, {
|
|
1099
|
-
status: b(() => [
|
|
1109
|
+
status: b(() => [k.value === "view" && D.value ? (_(), d(y(ee), {
|
|
1100
1110
|
key: 0,
|
|
1101
|
-
enabled:
|
|
1102
|
-
disabled:
|
|
1103
|
-
loading:
|
|
1111
|
+
enabled: D.value.enabled !== !1,
|
|
1112
|
+
disabled: M.value || !at.value,
|
|
1113
|
+
loading: M.value,
|
|
1104
1114
|
"show-label": !1,
|
|
1105
|
-
onChange:
|
|
1115
|
+
onChange: r[4] ||= (e) => $t(D.value)
|
|
1106
1116
|
}, null, 8, [
|
|
1107
1117
|
"enabled",
|
|
1108
1118
|
"disabled",
|
|
1109
1119
|
"loading"
|
|
1110
1120
|
])) : f("v-if", !0)]),
|
|
1111
|
-
operation: b(() => [h(y(
|
|
1112
|
-
context:
|
|
1113
|
-
actions:
|
|
1114
|
-
onAction:
|
|
1121
|
+
operation: b(() => [h(y(pe), {
|
|
1122
|
+
context: $e.value,
|
|
1123
|
+
actions: st.value,
|
|
1124
|
+
onAction: Yt
|
|
1115
1125
|
}, null, 8, ["context", "actions"])]),
|
|
1116
|
-
default: b(() => [
|
|
1126
|
+
default: b(() => [A.value ? (_(), d(y(fe), {
|
|
1117
1127
|
key: 0,
|
|
1118
1128
|
class: "role-detail-state",
|
|
1119
1129
|
tip: "加载角色详情"
|
|
1120
|
-
})) :
|
|
1130
|
+
})) : j.value ? (_(), p("div", Re, [h(y(e), {
|
|
1121
1131
|
title: "详情加载失败",
|
|
1122
1132
|
message: "无法加载角色详情,请重试"
|
|
1123
|
-
}), h(y(
|
|
1133
|
+
}), h(y(oe), {
|
|
1124
1134
|
type: "primary",
|
|
1125
1135
|
"icon-name": "reload",
|
|
1126
|
-
onClick:
|
|
1136
|
+
onClick: Xt
|
|
1127
1137
|
}, {
|
|
1128
|
-
default: b(() => [...
|
|
1138
|
+
default: b(() => [...r[10] ||= [De("重试", -1)]]),
|
|
1129
1139
|
_: 1
|
|
1130
|
-
})])) :
|
|
1140
|
+
})])) : k.value === "view" || k.value === "create" || D.value ? (_(), p(Ee, { key: 2 }, [k.value === "view" ? (_(), d(y(te), {
|
|
1131
1141
|
key: 0,
|
|
1132
|
-
record:
|
|
1133
|
-
"field-names":
|
|
1134
|
-
fields:
|
|
1135
|
-
fallback:
|
|
1136
|
-
"display-of":
|
|
1142
|
+
record: L.value,
|
|
1143
|
+
"field-names": ft.value,
|
|
1144
|
+
fields: R.value,
|
|
1145
|
+
fallback: K.value,
|
|
1146
|
+
"display-of": Nn
|
|
1137
1147
|
}, null, 8, [
|
|
1138
1148
|
"record",
|
|
1139
1149
|
"field-names",
|
|
@@ -1142,19 +1152,19 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1142
1152
|
])) : (_(), p("form", {
|
|
1143
1153
|
key: 1,
|
|
1144
1154
|
class: "role-form",
|
|
1145
|
-
onSubmit: Me(
|
|
1155
|
+
onSubmit: Me(Zt, ["prevent"])
|
|
1146
1156
|
}, [
|
|
1147
|
-
m("label", null, [
|
|
1148
|
-
value:
|
|
1157
|
+
m("label", null, [r[11] ||= m("span", { class: "role-form-label" }, "当前范围", -1), h(y(ue), {
|
|
1158
|
+
value: T.value?.title ?? "-",
|
|
1149
1159
|
disabled: ""
|
|
1150
1160
|
}, null, 8, ["value"])]),
|
|
1151
|
-
h(y(
|
|
1152
|
-
record:
|
|
1153
|
-
"field-names":
|
|
1154
|
-
fields:
|
|
1155
|
-
fallback:
|
|
1156
|
-
disabled:
|
|
1157
|
-
"disabled-of":
|
|
1161
|
+
h(y(o), {
|
|
1162
|
+
record: L.value,
|
|
1163
|
+
"field-names": ut,
|
|
1164
|
+
fields: R.value,
|
|
1165
|
+
fallback: K.value,
|
|
1166
|
+
disabled: G.value,
|
|
1167
|
+
"disabled-of": vt,
|
|
1158
1168
|
"onUpdate:field": J
|
|
1159
1169
|
}, null, 8, [
|
|
1160
1170
|
"record",
|
|
@@ -1162,26 +1172,26 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1162
1172
|
"fallback",
|
|
1163
1173
|
"disabled"
|
|
1164
1174
|
]),
|
|
1165
|
-
|
|
1175
|
+
L.value.roleKind === "group" ? (_(), d(Le, {
|
|
1166
1176
|
key: 0,
|
|
1167
|
-
value:
|
|
1168
|
-
candidates:
|
|
1169
|
-
"current-role-id":
|
|
1170
|
-
disabled:
|
|
1171
|
-
"onUpdate:value":
|
|
1177
|
+
value: L.value.memberRoleIds,
|
|
1178
|
+
candidates: z.value,
|
|
1179
|
+
"current-role-id": D.value?.id,
|
|
1180
|
+
disabled: G.value || D.value?.systemManaged === !0,
|
|
1181
|
+
"onUpdate:value": r[5] ||= (e) => J("memberRoleIds", e)
|
|
1172
1182
|
}, null, 8, [
|
|
1173
1183
|
"value",
|
|
1174
1184
|
"candidates",
|
|
1175
1185
|
"current-role-id",
|
|
1176
1186
|
"disabled"
|
|
1177
1187
|
])) : f("v-if", !0),
|
|
1178
|
-
h(y(
|
|
1179
|
-
record:
|
|
1180
|
-
"field-names":
|
|
1181
|
-
fields:
|
|
1182
|
-
fallback:
|
|
1183
|
-
disabled:
|
|
1184
|
-
"disabled-of":
|
|
1188
|
+
h(y(o), {
|
|
1189
|
+
record: L.value,
|
|
1190
|
+
"field-names": dt,
|
|
1191
|
+
fields: R.value,
|
|
1192
|
+
fallback: K.value,
|
|
1193
|
+
disabled: G.value,
|
|
1194
|
+
"disabled-of": vt,
|
|
1185
1195
|
"onUpdate:field": J
|
|
1186
1196
|
}, null, 8, [
|
|
1187
1197
|
"record",
|
|
@@ -1189,9 +1199,9 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1189
1199
|
"fallback",
|
|
1190
1200
|
"disabled"
|
|
1191
1201
|
])
|
|
1192
|
-
], 32)),
|
|
1202
|
+
], 32)), k.value === "create" ? f("v-if", !0) : (_(), d(y(he), {
|
|
1193
1203
|
key: 2,
|
|
1194
|
-
record:
|
|
1204
|
+
record: L.value,
|
|
1195
1205
|
"show-sort-order": ""
|
|
1196
1206
|
}, null, 8, ["record"]))], 64)) : f("v-if", !0)]),
|
|
1197
1207
|
_: 1
|
|
@@ -1201,54 +1211,54 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1201
1211
|
"subtitle",
|
|
1202
1212
|
"close-on-outside",
|
|
1203
1213
|
"promotion"
|
|
1204
|
-
])) : (_(), d(y(
|
|
1214
|
+
])) : (_(), d(y(ve), {
|
|
1205
1215
|
key: 3,
|
|
1206
|
-
title:
|
|
1207
|
-
subtitle:
|
|
1216
|
+
title: nt.value,
|
|
1217
|
+
subtitle: rt.value
|
|
1208
1218
|
}, {
|
|
1209
|
-
status: b(() => [
|
|
1219
|
+
status: b(() => [k.value === "view" && D.value ? (_(), d(y(ee), {
|
|
1210
1220
|
key: 0,
|
|
1211
|
-
enabled:
|
|
1212
|
-
disabled:
|
|
1213
|
-
loading:
|
|
1221
|
+
enabled: D.value.enabled !== !1,
|
|
1222
|
+
disabled: M.value || !at.value,
|
|
1223
|
+
loading: M.value,
|
|
1214
1224
|
"show-label": !1,
|
|
1215
|
-
onChange:
|
|
1225
|
+
onChange: r[6] ||= (e) => $t(D.value)
|
|
1216
1226
|
}, null, 8, [
|
|
1217
1227
|
"enabled",
|
|
1218
1228
|
"disabled",
|
|
1219
1229
|
"loading"
|
|
1220
1230
|
])) : f("v-if", !0)]),
|
|
1221
|
-
operation: b(() => [h(y(
|
|
1231
|
+
operation: b(() => [h(y(pe), {
|
|
1222
1232
|
context: y(g),
|
|
1223
|
-
actions:
|
|
1224
|
-
"record-id":
|
|
1225
|
-
onAction:
|
|
1233
|
+
actions: ct.value,
|
|
1234
|
+
"record-id": D.value?.id,
|
|
1235
|
+
onAction: Yt
|
|
1226
1236
|
}, null, 8, [
|
|
1227
1237
|
"context",
|
|
1228
1238
|
"actions",
|
|
1229
1239
|
"record-id"
|
|
1230
1240
|
])]),
|
|
1231
|
-
default: b(() => [
|
|
1241
|
+
default: b(() => [A.value ? (_(), d(y(fe), {
|
|
1232
1242
|
key: 0,
|
|
1233
1243
|
class: "role-detail-state",
|
|
1234
1244
|
tip: "加载角色详情"
|
|
1235
|
-
})) :
|
|
1245
|
+
})) : j.value ? (_(), p("div", ze, [h(y(e), {
|
|
1236
1246
|
title: "详情加载失败",
|
|
1237
1247
|
message: "无法加载角色详情,请重试"
|
|
1238
|
-
}), h(y(
|
|
1248
|
+
}), h(y(oe), {
|
|
1239
1249
|
type: "primary",
|
|
1240
1250
|
"icon-name": "reload",
|
|
1241
|
-
onClick:
|
|
1251
|
+
onClick: Xt
|
|
1242
1252
|
}, {
|
|
1243
|
-
default: b(() => [...
|
|
1253
|
+
default: b(() => [...r[12] ||= [De("重试", -1)]]),
|
|
1244
1254
|
_: 1
|
|
1245
|
-
})])) :
|
|
1255
|
+
})])) : k.value === "view" || D.value ? (_(), p(Ee, { key: 2 }, [k.value === "view" ? (_(), d(y(te), {
|
|
1246
1256
|
key: 0,
|
|
1247
|
-
record:
|
|
1248
|
-
"field-names":
|
|
1249
|
-
fields:
|
|
1250
|
-
fallback:
|
|
1251
|
-
"display-of":
|
|
1257
|
+
record: L.value,
|
|
1258
|
+
"field-names": ft.value,
|
|
1259
|
+
fields: R.value,
|
|
1260
|
+
fallback: K.value,
|
|
1261
|
+
"display-of": Nn
|
|
1252
1262
|
}, null, 8, [
|
|
1253
1263
|
"record",
|
|
1254
1264
|
"field-names",
|
|
@@ -1257,19 +1267,19 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1257
1267
|
])) : (_(), p("form", {
|
|
1258
1268
|
key: 1,
|
|
1259
1269
|
class: "role-form",
|
|
1260
|
-
onSubmit: Me(
|
|
1270
|
+
onSubmit: Me(Zt, ["prevent"])
|
|
1261
1271
|
}, [
|
|
1262
|
-
m("label", null, [
|
|
1263
|
-
value:
|
|
1272
|
+
m("label", null, [r[13] ||= m("span", { class: "role-form-label" }, "当前范围", -1), h(y(ue), {
|
|
1273
|
+
value: T.value?.title ?? "-",
|
|
1264
1274
|
disabled: ""
|
|
1265
1275
|
}, null, 8, ["value"])]),
|
|
1266
|
-
h(y(
|
|
1267
|
-
record:
|
|
1268
|
-
"field-names":
|
|
1269
|
-
fields:
|
|
1270
|
-
fallback:
|
|
1271
|
-
disabled:
|
|
1272
|
-
"disabled-of":
|
|
1276
|
+
h(y(o), {
|
|
1277
|
+
record: L.value,
|
|
1278
|
+
"field-names": ut,
|
|
1279
|
+
fields: R.value,
|
|
1280
|
+
fallback: K.value,
|
|
1281
|
+
disabled: G.value,
|
|
1282
|
+
"disabled-of": vt,
|
|
1273
1283
|
"onUpdate:field": J
|
|
1274
1284
|
}, null, 8, [
|
|
1275
1285
|
"record",
|
|
@@ -1277,26 +1287,26 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1277
1287
|
"fallback",
|
|
1278
1288
|
"disabled"
|
|
1279
1289
|
]),
|
|
1280
|
-
|
|
1290
|
+
L.value.roleKind === "group" ? (_(), d(Le, {
|
|
1281
1291
|
key: 0,
|
|
1282
|
-
value:
|
|
1283
|
-
candidates:
|
|
1284
|
-
"current-role-id":
|
|
1285
|
-
disabled:
|
|
1286
|
-
"onUpdate:value":
|
|
1292
|
+
value: L.value.memberRoleIds,
|
|
1293
|
+
candidates: z.value,
|
|
1294
|
+
"current-role-id": D.value?.id,
|
|
1295
|
+
disabled: G.value || D.value?.systemManaged === !0,
|
|
1296
|
+
"onUpdate:value": r[7] ||= (e) => J("memberRoleIds", e)
|
|
1287
1297
|
}, null, 8, [
|
|
1288
1298
|
"value",
|
|
1289
1299
|
"candidates",
|
|
1290
1300
|
"current-role-id",
|
|
1291
1301
|
"disabled"
|
|
1292
1302
|
])) : f("v-if", !0),
|
|
1293
|
-
h(y(
|
|
1294
|
-
record:
|
|
1295
|
-
"field-names":
|
|
1296
|
-
fields:
|
|
1297
|
-
fallback:
|
|
1298
|
-
disabled:
|
|
1299
|
-
"disabled-of":
|
|
1303
|
+
h(y(o), {
|
|
1304
|
+
record: L.value,
|
|
1305
|
+
"field-names": dt,
|
|
1306
|
+
fields: R.value,
|
|
1307
|
+
fallback: K.value,
|
|
1308
|
+
disabled: G.value,
|
|
1309
|
+
"disabled-of": vt,
|
|
1300
1310
|
"onUpdate:field": J
|
|
1301
1311
|
}, null, 8, [
|
|
1302
1312
|
"record",
|
|
@@ -1304,48 +1314,48 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1304
1314
|
"fallback",
|
|
1305
1315
|
"disabled"
|
|
1306
1316
|
])
|
|
1307
|
-
], 32)), h(y(
|
|
1308
|
-
record:
|
|
1317
|
+
], 32)), h(y(he), {
|
|
1318
|
+
record: L.value,
|
|
1309
1319
|
"show-sort-order": ""
|
|
1310
1320
|
}, null, 8, ["record"])], 64)) : f("v-if", !0)]),
|
|
1311
1321
|
_: 1
|
|
1312
1322
|
}, 8, ["title", "subtitle"])),
|
|
1313
|
-
h(
|
|
1314
|
-
open:
|
|
1323
|
+
h(ye, {
|
|
1324
|
+
open: P.value,
|
|
1315
1325
|
context: y(g),
|
|
1316
|
-
role:
|
|
1317
|
-
container:
|
|
1318
|
-
onClose:
|
|
1319
|
-
onSaved:
|
|
1326
|
+
role: N.value,
|
|
1327
|
+
container: S.value,
|
|
1328
|
+
onClose: Gt,
|
|
1329
|
+
onSaved: r[8] ||= (e) => C.value += 1
|
|
1320
1330
|
}, null, 8, [
|
|
1321
1331
|
"open",
|
|
1322
1332
|
"context",
|
|
1323
1333
|
"role",
|
|
1324
1334
|
"container"
|
|
1325
1335
|
]),
|
|
1326
|
-
h(
|
|
1327
|
-
open:
|
|
1336
|
+
h(Ce, {
|
|
1337
|
+
open: F.value,
|
|
1328
1338
|
context: y(g),
|
|
1329
|
-
role:
|
|
1330
|
-
container:
|
|
1331
|
-
onClose:
|
|
1332
|
-
onSaved:
|
|
1339
|
+
role: N.value,
|
|
1340
|
+
container: S.value,
|
|
1341
|
+
onClose: Gt,
|
|
1342
|
+
onSaved: r[9] ||= (e) => C.value += 1
|
|
1333
1343
|
}, null, 8, [
|
|
1334
1344
|
"open",
|
|
1335
1345
|
"context",
|
|
1336
1346
|
"role",
|
|
1337
1347
|
"container"
|
|
1338
1348
|
]),
|
|
1339
|
-
|
|
1349
|
+
He.value && Ve.value?.id ? (_(), d(we, {
|
|
1340
1350
|
key: 4,
|
|
1341
|
-
"role-id":
|
|
1342
|
-
container:
|
|
1351
|
+
"role-id": Ve.value.id,
|
|
1352
|
+
container: S.value,
|
|
1343
1353
|
drawer: "",
|
|
1344
|
-
onClose:
|
|
1354
|
+
onClose: Ht
|
|
1345
1355
|
}, null, 8, ["role-id", "container"])) : f("v-if", !0)
|
|
1346
1356
|
], 2));
|
|
1347
1357
|
}
|
|
1348
|
-
}), [["__scopeId", "data-v-
|
|
1358
|
+
}), [["__scopeId", "data-v-83076c10"]]), S = /* @__PURE__ */ g({
|
|
1349
1359
|
name: "RoleDetailWorkspaceView",
|
|
1350
1360
|
__name: "RoleDetailWorkspaceView",
|
|
1351
1361
|
props: {
|
|
@@ -1354,7 +1364,7 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1354
1364
|
scopeId: {}
|
|
1355
1365
|
},
|
|
1356
1366
|
setup(e) {
|
|
1357
|
-
return (t, n) => (_(), d(
|
|
1367
|
+
return (t, n) => (_(), d(Be, {
|
|
1358
1368
|
"record-id": e.recordId,
|
|
1359
1369
|
"scope-kind": e.scopeKind,
|
|
1360
1370
|
"scope-id": e.scopeId
|
|
@@ -1366,4 +1376,4 @@ var x = { class: "role-group-member-selector" }, Ie = /*#__PURE__*/ l(/* @__PURE
|
|
|
1366
1376
|
}
|
|
1367
1377
|
});
|
|
1368
1378
|
//#endregion
|
|
1369
|
-
export {
|
|
1379
|
+
export { S as default };
|