@ximatai/muyun-web-app 0.26.14 → 0.26.15
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/{BusinessActivityLogView-BUg5WTm-.js → BusinessActivityLogView-DVzrZW1X.js} +1 -1
- package/dist/{BusinessLogListDrawer-BOTE_7aT.js → BusinessLogListDrawer-D-R3wnWr.js} +159 -159
- package/dist/{LoginAuditLogView-DBNtvmIy.js → LoginAuditLogView-BP1eaEPw.js} +1 -1
- package/dist/{ModuleActionManagementView-Bq1VO51Y.js → ModuleActionManagementView-D17iKVQv.js} +186 -168
- package/dist/{ModuleGovernanceView-B8u4_erd.js → ModuleGovernanceView-LkWCtops.js} +13353 -9009
- package/dist/{RequestErrorLogView-BrtH3ptj.js → RequestErrorLogView-LzN94-Tk.js} +1 -1
- package/dist/{RoleDetailWorkspaceView-6LW3tLA1.js → RoleDetailWorkspaceView-BXA-bzFu.js} +257 -248
- package/dist/{RuntimeLogView-s3X5CdHB.js → RuntimeLogView-DUpu2q2w.js} +39 -39
- package/dist/index.css +1 -1
- package/dist/index.js +558 -493
- package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +639 -0
- package/dist/{platform-components-Dt859Hbr.js → platform-components-Hs3DrTqE.js} +4332 -3189
- package/dist/platform-workbench-C-kE-Yqq.js +19755 -0
- package/dist/{sse-mGbuCAax.js → sse-Q1wa3p_k.js} +11 -11
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
- package/dist/types/app/useWorkbenchMenuRefresh.d.ts +4 -0
- package/dist/types/app/workbenchMenuRefresh.d.ts +14 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -3
- package/dist/types/dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +506 -26
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -2
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +562 -52
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +5 -2
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +7 -5
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/assistantBusinessScope.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +34 -0
- package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +94 -4
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +13 -1
- package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +59 -0
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +59 -0
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +33 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +9 -0
- package/dist/types/dynamic-page-runtime/relationDraftController.d.ts +23 -0
- package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +300 -13
- package/dist/types/formula/FormulaRuntime.d.ts +3 -1
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +5 -1
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEditor.vue.d.ts +17 -0
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuGovernanceSurface.vue.d.ts +6 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +6 -2
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +5 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +61 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +180 -0
- package/dist/types/platform-admin-runtime/workspaceViewSessions.d.ts +1 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +3 -7
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +6 -4
- package/dist/types/platform-components/ManagementTabs.vue.d.ts +20 -0
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +15 -9
- package/dist/types/platform-components/RecordExplorerTools.vue.d.ts +27 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordRelationTabs.vue.d.ts +1 -0
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +2 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
- package/dist/types/platform-components/index.d.ts +7 -2
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
- package/dist/types/platform-components/queryNumericValue.d.ts +3 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +22 -0
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +1 -0
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +19 -2
- package/dist/types/platform-components/recordQueryListStandardQuery.d.ts +3 -0
- package/dist/types/platform-components/recycleBinState.d.ts +17 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +1 -0
- package/dist/types/platform-workbench/ConstructionPlanCard.vue.d.ts +8 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +8 -3
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +7 -1
- package/dist/types/platform-workbench/configurationCollaboration.d.ts +23 -0
- package/dist/types/platform-workbench/constructionDelivery.d.ts +3 -0
- package/dist/types/platform-workbench/constructionFields.d.ts +5 -0
- package/dist/types/platform-workbench/constructionInitialization.d.ts +4 -0
- package/dist/types/platform-workbench/constructionPlanGuard.d.ts +21 -0
- package/dist/types/platform-workbench/constructionPlanSession.d.ts +95 -0
- package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +3 -0
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +360 -0
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +47 -0
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +19 -0
- package/dist/types/views/MetadataSourceTree.vue.d.ts +7 -3
- package/dist/types/views/ModuleRuntimeActivationStatus.vue.d.ts +11 -0
- package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +8 -8
- package/dist/types/views/PageCompositionEditor.vue.d.ts +10 -0
- package/dist/types/views/PageCompositionTree.vue.d.ts +19 -13
- package/dist/types/views/businessRuleAssistantSurface.d.ts +7 -0
- package/dist/types/views/businessRuleEditor.d.ts +22 -0
- package/dist/types/views/businessRuleGovernance.d.ts +7 -1
- package/dist/types/views/businessRuleSession.d.ts +63 -0
- package/dist/types/views/businessRuleWorkspace.d.ts +144 -0
- package/dist/types/views/configurationEditorNavigation.d.ts +2 -0
- package/dist/types/views/metadataChangeSetSubmission.d.ts +10 -0
- package/dist/types/views/metadataEditorSession.d.ts +652 -0
- package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +2 -120
- package/dist/types/views/metadataGovernanceEditor.d.ts +220 -0
- package/dist/types/views/metadataModelEditSession.d.ts +26 -1
- package/dist/types/views/metadataNaming.d.ts +7 -1
- package/dist/types/views/metadataOrchestrationState.d.ts +22 -0
- package/dist/types/views/metadataWorkspace.d.ts +1316 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleRuntimeActivation.d.ts +11 -0
- package/dist/types/views/pageCompositionAssistantSurface.d.ts +27 -0
- package/dist/types/views/pageCompositionCandidate.d.ts +47 -0
- package/dist/types/views/pageCompositionComponents.d.ts +42 -0
- package/dist/types/views/pageCompositionDraftState.d.ts +277 -8
- package/dist/types/views/pageCompositionDragPayload.d.ts +7 -1
- package/dist/types/views/pageCompositionMode.d.ts +1 -1
- package/dist/types/views/pageCompositionPlacement.d.ts +6 -1
- package/dist/types/views/pageCompositionPublication.d.ts +37 -0
- package/dist/types/views/pageCompositionSession.d.ts +1341 -0
- package/dist/types/views/pageCompositionWorkspace.d.ts +2555 -0
- package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/views/usePageCompositionComponents.d.ts +68 -0
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +4 -0
- package/dist/types/web-contracts/assistant.d.ts +29 -1
- package/dist/types/web-contracts/constructionPlan.d.ts +212 -0
- package/dist/types/web-contracts/index.d.ts +32 -0
- package/dist/types/web-contracts/operation.d.ts +33 -0
- package/dist/types/web-contracts/referenceTarget.d.ts +13 -0
- package/dist/types/web-core/assistantCapabilityCatalog.d.ts +22 -0
- package/dist/types/web-core/assistantCatalogPage.d.ts +12 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +23 -0
- package/dist/types/web-core/assistantConversationClient.d.ts +42 -0
- package/dist/types/web-core/assistantRuntime.d.ts +53 -7
- package/dist/types/web-core/assistantSurface.d.ts +79 -9
- package/dist/types/web-core/assistantTurnClient.d.ts +9 -1
- package/dist/types/web-core/constructionPlanClient.d.ts +55 -0
- package/dist/types/web-core/errors.d.ts +2 -0
- package/dist/types/web-core/http.d.ts +1 -0
- package/dist/types/web-core/index.d.ts +8 -0
- package/dist/types/web-core/module/dataExchangeClient.d.ts +53 -0
- package/dist/types/web-core/module/index.d.ts +1 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +12 -2
- package/dist/types/web-core/operationConfirmation.d.ts +28 -0
- package/dist/types/web-core/operationErrors.d.ts +9 -0
- package/dist/types/web-core/operationReceipt.d.ts +10 -0
- package/dist/types/web-core/uuid.d.ts +2 -0
- package/dist/{workspaceViews-DijY4n32.js → workspaceViews-CHsgLFwY.js} +769 -1175
- package/package.json +1 -1
- package/dist/moduleGovernanceWorkspaceView-BRgJbUjJ.js +0 -40
- package/dist/platform-workbench-DfqFnlm-.js +0 -14701
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as be } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { Fragment as
|
|
1
|
+
import { P as e, h as t, s as n, t as r } from "./platform-workbench-C-kE-Yqq.js";
|
|
2
|
+
import { $t as i, A as a, Dn as o, Ln as ee, O as te, Pn as ne, Qt as re, R as ie, S as ae, Tn as oe, Ut as se, Vt as s, X as ce, Xt as le, a as ue, an as de, b as fe, bn as pe, bt as me, dt as he, ft as ge, ht as _e, in as ve, o as ye, s as be, v as xe, xn as c } from "./platform-components-Hs3DrTqE.js";
|
|
3
|
+
import { i as Se } from "./sse-Q1wa3p_k.js";
|
|
4
|
+
import { a as Ce, c as we, i as Te, o as Ee, r as De, s as Oe, t as ke, u as Ae } from "./workspaceViews-CHsgLFwY.js";
|
|
5
|
+
import { Fragment as je, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as Me, createVNode as m, defineComponent as h, normalizeClass as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as g, ref as _, unref as v, watch as Ie, withCtx as y, withModifiers as Le } from "vue";
|
|
6
6
|
//#region src/platform-components/recordDraftNormalizer.ts
|
|
7
|
-
function
|
|
7
|
+
function Re(e, t) {
|
|
8
8
|
return {
|
|
9
9
|
...e,
|
|
10
10
|
...t
|
|
@@ -12,8 +12,8 @@ function Be(e, t) {
|
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/views/roleDetailWorkspaceSession.ts
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function ze(e, t) {
|
|
16
|
+
return De(Ae, e, {
|
|
17
17
|
...t,
|
|
18
18
|
selectedRole: { ...t.selectedRole },
|
|
19
19
|
draft: { ...t.draft },
|
|
@@ -24,15 +24,15 @@ function Ve(e, t) {
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function Be(e, t) {
|
|
28
|
+
return Te(Ae, e, t);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function Ve(e) {
|
|
31
|
+
return Ce(Ae, e);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/views/RoleGroupMemberSelector.vue?vue&type=script&setup=true&lang.ts
|
|
35
|
-
var
|
|
35
|
+
var b = { class: "role-group-member-selector" }, He = /*#__PURE__*/ o(/* @__PURE__ */ h({
|
|
36
36
|
name: "RoleGroupMemberSelector",
|
|
37
37
|
__name: "RoleGroupMemberSelector",
|
|
38
38
|
props: {
|
|
@@ -46,12 +46,12 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["update:value"],
|
|
48
48
|
setup(e, { emit: t }) {
|
|
49
|
-
let n = e, r = t, i =
|
|
50
|
-
label: `${
|
|
49
|
+
let n = e, r = t, i = l(() => te(n.value)), a = l(() => new Set(n.candidates.filter((e) => e.roleKind === "dataGrant" && e.id && i.value.includes(e.id)).map((e) => e.id))), o = l(() => n.candidates.filter((e) => e.id && e.id !== n.currentRoleId).map((e) => ({
|
|
50
|
+
label: `${ne(e)} / ${re(e.roleKind)}`,
|
|
51
51
|
value: e.id,
|
|
52
52
|
disabled: e.roleKind === "dataGrant" && a.value.size > 0 && !i.value.includes(e.id)
|
|
53
53
|
})));
|
|
54
|
-
function
|
|
54
|
+
function ee(e) {
|
|
55
55
|
if (!Array.isArray(e)) {
|
|
56
56
|
r("update:value", void 0);
|
|
57
57
|
return;
|
|
@@ -59,36 +59,36 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
59
59
|
let t = e.map((e) => String(e).trim()).filter(Boolean);
|
|
60
60
|
r("update:value", t.length > 0 ? t.join(",") : void 0);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function te(e) {
|
|
63
63
|
return Array.isArray(e) ? e.map((e) => String(e).trim()).filter(Boolean) : typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : [];
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ne(e) {
|
|
66
66
|
return String(e?.title ?? e?.id ?? "角色");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function re(e) {
|
|
69
69
|
return e === "dataGrant" ? "数据授权角色" : "标准角色";
|
|
70
70
|
}
|
|
71
|
-
return (t, n) => (
|
|
71
|
+
return (t, n) => (g(), f("label", b, [n[0] ||= p("span", { class: "role-group-member-selector-label" }, "成员角色", -1), m(v(c), {
|
|
72
72
|
mode: "multiple",
|
|
73
73
|
value: i.value,
|
|
74
|
-
options:
|
|
74
|
+
options: o.value,
|
|
75
75
|
placeholder: "请选择成员角色",
|
|
76
76
|
disabled: e.disabled,
|
|
77
77
|
"allow-clear": !0,
|
|
78
|
-
"onUpdate:value":
|
|
78
|
+
"onUpdate:value": ee
|
|
79
79
|
}, null, 8, [
|
|
80
80
|
"value",
|
|
81
81
|
"options",
|
|
82
82
|
"disabled"
|
|
83
83
|
])]));
|
|
84
84
|
}
|
|
85
|
-
}), [["__scopeId", "data-v-91d9ae10"]]),
|
|
85
|
+
}), [["__scopeId", "data-v-91d9ae10"]]), Ue = {
|
|
86
86
|
key: 1,
|
|
87
87
|
class: "role-detail-state"
|
|
88
|
-
},
|
|
88
|
+
}, We = {
|
|
89
89
|
key: 1,
|
|
90
90
|
class: "role-detail-state"
|
|
91
|
-
},
|
|
91
|
+
}, Ge = /*#__PURE__*/ o(/* @__PURE__ */ h({
|
|
92
92
|
name: "RoleManagementView",
|
|
93
93
|
__name: "RoleManagementView",
|
|
94
94
|
props: {
|
|
@@ -96,20 +96,20 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
96
96
|
scopeKind: {},
|
|
97
97
|
scopeId: {}
|
|
98
98
|
},
|
|
99
|
-
setup(
|
|
100
|
-
let
|
|
99
|
+
setup(o) {
|
|
100
|
+
let c = o, Ce = n(), Te = ne({ moduleAlias: "iam.tenant" }), De = ne({ moduleAlias: "iam.organization" }), h = ne({ moduleAlias: "iam.role" }), b = t(), Ge = _(""), x = _(null), S = _(0), C = _(), w = _(), T = _(), E = _(), D = _(!1), O = _("view"), k = _(!1), A = _(!1), j = _(!1), M = _(), Ke = _(!1), qe = _(!1), N = _(), Je = _(!1), P = _(0), F = _(Z(void 0)), Ye = _(ue(F.value)), I = _(ge(void 0)), L = _([]), R = l(() => !!(c.recordId && c.scopeKind)), z = l(() => R.value && Ce?.presentation === "drawer"), Xe = l(() => !R.value || z.value), B = _([]), V = de({
|
|
101
101
|
nodes: () => B.value,
|
|
102
102
|
loader: () => jt,
|
|
103
103
|
version: () => B.value
|
|
104
|
-
}), Ze = V.states, Qe =
|
|
105
|
-
let e =
|
|
106
|
-
if (
|
|
104
|
+
}), Ze = V.states, Qe = _([]), $e = _(!1), H = /* @__PURE__ */ new Map(), et = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Map(), nt = l(() => Kn(V.nodes.value, Ge.value)), rt = l(() => b?.value?.system === !0), it = l(() => b?.value?.system === !0), at = l(() => {
|
|
105
|
+
let e = b?.value?.tenantId;
|
|
106
|
+
if (b?.value?.system !== !0 && e) return {
|
|
107
107
|
id: e,
|
|
108
108
|
title: e,
|
|
109
109
|
alias: e,
|
|
110
110
|
enabled: !0
|
|
111
111
|
};
|
|
112
|
-
}), U =
|
|
112
|
+
}), U = l(() => Et(h, w.value)), ot = l(() => Tt(U.value, w.value)), st = l(() => [
|
|
113
113
|
{
|
|
114
114
|
key: "title",
|
|
115
115
|
title: "角色名称",
|
|
@@ -145,26 +145,26 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
145
145
|
type: "enabledStatus",
|
|
146
146
|
width: "10%"
|
|
147
147
|
}
|
|
148
|
-
]), ct =
|
|
149
|
-
|
|
150
|
-
let W =
|
|
151
|
-
let e =
|
|
152
|
-
return !!(e?.id && e.systemManaged !== !0 &&
|
|
153
|
-
}), mt =
|
|
148
|
+
]), ct = l(() => !!w.value), lt = l(() => O.value === "create" ? "新建角色" : $(E.value ?? F.value)), ut = l(() => w.value?.title ?? "角色详情"), dt = l(() => O.value !== "view" && Ye.value !== ue(F.value));
|
|
149
|
+
r("角色详情", () => dt.value, () => j.value);
|
|
150
|
+
let W = l(() => j.value || k.value), ft = l(() => k.value || !w.value ? !1 : O.value === "create" ? h.can("create") === !0 : !!E.value?.id && h.can("update") === !0 && !E.value?.systemManaged), pt = l(() => {
|
|
151
|
+
let e = E.value;
|
|
152
|
+
return !!(e?.id && e.systemManaged !== !0 && h.can(zn(e)) === !0);
|
|
153
|
+
}), mt = l(() => O.value === "view" ? E.value?.id ? [
|
|
154
154
|
{
|
|
155
155
|
key: "edit",
|
|
156
156
|
actionCode: "update",
|
|
157
157
|
title: "编辑",
|
|
158
158
|
iconName: "edit",
|
|
159
|
-
disabled:
|
|
159
|
+
disabled: j.value || E.value.systemManaged === !0
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
key: "bind",
|
|
163
|
-
actionCode: Ln(
|
|
164
|
-
title: Rn(
|
|
163
|
+
actionCode: Ln(E.value),
|
|
164
|
+
title: Rn(E.value),
|
|
165
165
|
iconName: "lock",
|
|
166
|
-
visible: Fn(
|
|
167
|
-
disabled:
|
|
166
|
+
visible: Fn(E.value),
|
|
167
|
+
disabled: j.value || E.value.systemManaged === !0
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
key: "delete",
|
|
@@ -172,48 +172,48 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
172
172
|
title: "删除",
|
|
173
173
|
iconName: "delete",
|
|
174
174
|
danger: !0,
|
|
175
|
-
disabled:
|
|
175
|
+
disabled: j.value || E.value.systemManaged === !0
|
|
176
176
|
}
|
|
177
177
|
] : [] : [{
|
|
178
178
|
key: "cancel",
|
|
179
179
|
title: "取消",
|
|
180
180
|
iconName: "close",
|
|
181
|
-
disabled:
|
|
181
|
+
disabled: j.value
|
|
182
182
|
}, {
|
|
183
183
|
key: "save",
|
|
184
|
-
actionCode:
|
|
184
|
+
actionCode: O.value === "create" ? "create" : "update",
|
|
185
185
|
title: "保存",
|
|
186
186
|
iconName: "save",
|
|
187
187
|
primary: !0,
|
|
188
|
-
loading:
|
|
188
|
+
loading: j.value,
|
|
189
189
|
disabled: !ft.value
|
|
190
|
-
}]), ht =
|
|
191
|
-
view:
|
|
192
|
-
input:
|
|
193
|
-
let e =
|
|
190
|
+
}]), ht = l(() => mt.value), gt = l(() => mt.value), _t = Ee({
|
|
191
|
+
view: Ae,
|
|
192
|
+
input: l(() => {
|
|
193
|
+
let e = E.value?.id, t = w.value, n = O.value;
|
|
194
194
|
if (e && t && (n === "view" || n === "edit")) return {
|
|
195
195
|
recordId: e,
|
|
196
196
|
scopeKind: t.kind,
|
|
197
197
|
...t.kind === "platform" ? {} : { scopeId: t.id }
|
|
198
198
|
};
|
|
199
199
|
}),
|
|
200
|
-
title:
|
|
201
|
-
eligibility:
|
|
202
|
-
hasStableIdentity: !!(
|
|
203
|
-
busy:
|
|
200
|
+
title: l(() => $(E.value)),
|
|
201
|
+
eligibility: l(() => ({
|
|
202
|
+
hasStableIdentity: !!(E.value?.id && w.value) && !k.value,
|
|
203
|
+
busy: j.value
|
|
204
204
|
})),
|
|
205
205
|
beforePromote: async (e) => {
|
|
206
|
-
let t =
|
|
207
|
-
if (t && n) return await
|
|
206
|
+
let t = E.value, n = w.value;
|
|
207
|
+
if (t && n) return await ze(e, {
|
|
208
208
|
selectedRole: t,
|
|
209
209
|
draft: F.value,
|
|
210
210
|
draftBaseline: Ye.value,
|
|
211
211
|
scope: n,
|
|
212
|
-
mode:
|
|
212
|
+
mode: O.value === "edit" ? "edit" : "view"
|
|
213
213
|
}) === "accepted";
|
|
214
214
|
},
|
|
215
215
|
onPromoted: rn
|
|
216
|
-
}), G =
|
|
216
|
+
}), G = l(() => ({
|
|
217
217
|
title: {
|
|
218
218
|
label: "角色名称",
|
|
219
219
|
required: !0,
|
|
@@ -269,7 +269,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
269
269
|
required: !0,
|
|
270
270
|
visible: !0,
|
|
271
271
|
controlType: "select",
|
|
272
|
-
options: kn(
|
|
272
|
+
options: kn(w.value?.kind ?? F.value.ownerScopeType)
|
|
273
273
|
},
|
|
274
274
|
description: {
|
|
275
275
|
label: "说明",
|
|
@@ -291,7 +291,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
291
291
|
"sharePolicy",
|
|
292
292
|
"description",
|
|
293
293
|
"enabled"
|
|
294
|
-
], bt =
|
|
294
|
+
], bt = l(() => {
|
|
295
295
|
let e = [
|
|
296
296
|
"title",
|
|
297
297
|
"assignmentType",
|
|
@@ -299,31 +299,31 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
299
299
|
];
|
|
300
300
|
return F.value.roleKind === "group" && e.push("memberRoleIds"), e.push("ownerScopeType", "ownerScopeId", "sharePolicy", "description", "enabled"), e;
|
|
301
301
|
}), xt;
|
|
302
|
-
|
|
303
|
-
if (Ct(), (!R.value || z.value) && kt(), !R.value || !
|
|
302
|
+
Fe(() => {
|
|
303
|
+
if (Ct(), (!R.value || z.value) && kt(), !R.value || !c.recordId || !c.scopeKind) return;
|
|
304
304
|
let e = hn();
|
|
305
|
-
e && !z.value && (xt =
|
|
306
|
-
}),
|
|
305
|
+
e && !z.value && (xt = Be(e, St)), mn();
|
|
306
|
+
}), Pe(() => xt?.());
|
|
307
307
|
function St(e) {
|
|
308
308
|
return !dt.value && (vn(e), !0);
|
|
309
309
|
}
|
|
310
|
-
|
|
311
|
-
R.value && e &&
|
|
312
|
-
}, { immediate: !0 }),
|
|
313
|
-
R.value || (
|
|
310
|
+
Ie(E, (e) => {
|
|
311
|
+
R.value && e && Ce?.setTitle($(e));
|
|
312
|
+
}, { immediate: !0 }), Ie(at, Vt, { immediate: !0 }), Ie(w, () => {
|
|
313
|
+
R.value || (T.value = void 0, E.value = void 0, F.value = Z(w.value), rn(), S.value += 1, wt());
|
|
314
314
|
});
|
|
315
315
|
async function Ct() {
|
|
316
316
|
try {
|
|
317
|
-
let e = await
|
|
318
|
-
I.value =
|
|
317
|
+
let e = await h.runtime.ready;
|
|
318
|
+
I.value = ge(e.uiDescriptor);
|
|
319
319
|
} catch (e) {
|
|
320
|
-
|
|
320
|
+
s(e, {
|
|
321
321
|
source: "role-management",
|
|
322
322
|
phase: "load"
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
async function wt(e =
|
|
326
|
+
async function wt(e = w.value) {
|
|
327
327
|
if (!e) {
|
|
328
328
|
L.value = [];
|
|
329
329
|
return;
|
|
@@ -355,7 +355,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
355
355
|
}, e));
|
|
356
356
|
L.value = t.records;
|
|
357
357
|
} catch (e) {
|
|
358
|
-
L.value = [],
|
|
358
|
+
L.value = [], s(e, {
|
|
359
359
|
source: "role-management",
|
|
360
360
|
phase: "load"
|
|
361
361
|
});
|
|
@@ -372,14 +372,14 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
372
372
|
}
|
|
373
373
|
function Et(e, t) {
|
|
374
374
|
if (!t) return e;
|
|
375
|
-
let n =
|
|
375
|
+
let n = Se(e.http, { "X-MuYun-Page-Selection": JSON.stringify({
|
|
376
376
|
kind: "roleScope",
|
|
377
377
|
key: t.key
|
|
378
378
|
}) });
|
|
379
379
|
return {
|
|
380
380
|
...e,
|
|
381
381
|
http: n,
|
|
382
|
-
crud:
|
|
382
|
+
crud: ee(n, { moduleAlias: e.moduleAlias })
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
385
|
function Dt(e, t) {
|
|
@@ -398,7 +398,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
function Ot(e) {
|
|
401
|
-
return e === "ownerScopeType" || e === "ownerScopeId" ||
|
|
401
|
+
return e === "ownerScopeType" || e === "ownerScopeId" || O.value === "edit" && ["assignmentType", "roleKind"].includes(e) ? !0 : E.value?.systemManaged === !0;
|
|
402
402
|
}
|
|
403
403
|
function K(e, t) {
|
|
404
404
|
let n = {
|
|
@@ -417,16 +417,16 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
417
417
|
}
|
|
418
418
|
$e.value = !0;
|
|
419
419
|
try {
|
|
420
|
-
await
|
|
421
|
-
let e = await
|
|
420
|
+
await Te.runtime.ready;
|
|
421
|
+
let e = await Te.abilities.crud().query({ page: {
|
|
422
422
|
pageNum: 1,
|
|
423
423
|
pageSize: 200
|
|
424
424
|
} });
|
|
425
425
|
H.clear(), e.records.forEach((e) => {
|
|
426
426
|
e.id && H.set(e.id, e);
|
|
427
|
-
}), B.value = e.records.map(At), !
|
|
427
|
+
}), B.value = e.records.map(At), !w.value && rt.value && Ht();
|
|
428
428
|
} catch (e) {
|
|
429
|
-
B.value = [],
|
|
429
|
+
B.value = [], s(e, {
|
|
430
430
|
source: "role-management",
|
|
431
431
|
phase: "load"
|
|
432
432
|
});
|
|
@@ -444,24 +444,24 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
444
444
|
isLeaf: !1
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
async function jt(
|
|
448
|
-
let
|
|
449
|
-
if (!
|
|
447
|
+
async function jt(t, n) {
|
|
448
|
+
let r = Rt(t.key), i = r ? H.get(r) : void 0;
|
|
449
|
+
if (!r || !i) throw Error("租户已失效");
|
|
450
450
|
try {
|
|
451
|
-
let
|
|
451
|
+
let t = e(De, {
|
|
452
452
|
scopeFieldName: "tenantId",
|
|
453
|
-
scopeValue:
|
|
453
|
+
scopeValue: r,
|
|
454
454
|
treePath: "/iam.organization/tree"
|
|
455
455
|
});
|
|
456
|
-
await
|
|
457
|
-
let
|
|
458
|
-
return
|
|
456
|
+
await t.runtime.ready;
|
|
457
|
+
let a = await t.abilities.tree().tree();
|
|
458
|
+
return n.signal.throwIfAborted(), {
|
|
459
459
|
mode: "replace",
|
|
460
|
-
nodes: [Mt(i), ...
|
|
460
|
+
nodes: [Mt(i), ...a.records.map((e) => Nt(e, r))],
|
|
461
461
|
hasMore: !1
|
|
462
462
|
};
|
|
463
463
|
} catch (e) {
|
|
464
|
-
throw
|
|
464
|
+
throw n.signal.aborted || s(e, {
|
|
465
465
|
source: "role-management",
|
|
466
466
|
phase: "load"
|
|
467
467
|
}), e;
|
|
@@ -523,10 +523,10 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
523
523
|
return e.startsWith("organization:") ? e.slice(13) : void 0;
|
|
524
524
|
}
|
|
525
525
|
function Vt(e = at.value) {
|
|
526
|
-
R.value || !e || it.value ||
|
|
526
|
+
R.value || !e || it.value || C.value || w.value || (C.value = e, Gt(e));
|
|
527
527
|
}
|
|
528
528
|
async function Ht() {
|
|
529
|
-
rt.value && await Y() && (
|
|
529
|
+
rt.value && await Y() && (C.value = void 0, w.value = {
|
|
530
530
|
kind: "platform",
|
|
531
531
|
key: "platform",
|
|
532
532
|
title: "平台角色"
|
|
@@ -542,8 +542,8 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
542
542
|
async function Wt(e) {
|
|
543
543
|
await Gt(e);
|
|
544
544
|
}
|
|
545
|
-
async function Gt(e =
|
|
546
|
-
e?.id && await Y() && (
|
|
545
|
+
async function Gt(e = C.value) {
|
|
546
|
+
e?.id && await Y() && (C.value = e, w.value = {
|
|
547
547
|
kind: "tenant",
|
|
548
548
|
id: e.id,
|
|
549
549
|
key: `tenant:${e.id}`,
|
|
@@ -551,8 +551,8 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
551
551
|
tenant: e
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
|
-
async function Kt(e, t =
|
|
555
|
-
e.id && await Y() && (
|
|
554
|
+
async function Kt(e, t = C.value) {
|
|
555
|
+
e.id && await Y() && (C.value = t, w.value = {
|
|
556
556
|
kind: "organization",
|
|
557
557
|
id: e.id,
|
|
558
558
|
key: `organization:${e.id}`,
|
|
@@ -622,10 +622,10 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function Zt(e) {
|
|
625
|
-
String(e.id ?? "") && e.roleKind !== "group" && (
|
|
625
|
+
String(e.id ?? "") && e.roleKind !== "group" && (N.value = Q(e), Je.value = !0);
|
|
626
626
|
}
|
|
627
627
|
function Qt() {
|
|
628
|
-
Je.value = !1,
|
|
628
|
+
Je.value = !1, N.value = void 0;
|
|
629
629
|
}
|
|
630
630
|
function $t(e) {
|
|
631
631
|
J() && q(e, "view");
|
|
@@ -634,11 +634,11 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
634
634
|
if (!J()) return;
|
|
635
635
|
let n = String(e.id ?? "");
|
|
636
636
|
if (n) {
|
|
637
|
-
|
|
637
|
+
Ke.value = !t, qe.value = t, M.value = Q(e);
|
|
638
638
|
try {
|
|
639
|
-
|
|
639
|
+
M.value = await U.value.crud.view(n);
|
|
640
640
|
} catch (e) {
|
|
641
|
-
|
|
641
|
+
Ke.value = !1, qe.value = !1, M.value = void 0, s(e, {
|
|
642
642
|
source: "role-management",
|
|
643
643
|
phase: "load"
|
|
644
644
|
});
|
|
@@ -646,29 +646,29 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
function tn() {
|
|
649
|
-
|
|
649
|
+
j.value || (Ke.value = !1, qe.value = !1, M.value = void 0);
|
|
650
650
|
}
|
|
651
651
|
async function nn() {
|
|
652
652
|
if (await Y()) {
|
|
653
|
-
if (!
|
|
654
|
-
|
|
653
|
+
if (!w.value) {
|
|
654
|
+
se("请先选择角色归属范围", { phase: "validation" });
|
|
655
655
|
return;
|
|
656
656
|
}
|
|
657
|
-
|
|
657
|
+
E.value = void 0, T.value = void 0, F.value = Z(w.value), X(), O.value = "create", k.value = !1, A.value = !1, P.value += 1, D.value = !0;
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
async function q(e, t) {
|
|
661
661
|
if (!await Y()) return;
|
|
662
662
|
let n = String(e.id ?? "");
|
|
663
663
|
if (!n) return;
|
|
664
|
-
|
|
665
|
-
let
|
|
666
|
-
P.value =
|
|
664
|
+
T.value = n, D.value = !0, O.value = t, E.value = void 0, F.value = Q(e), X(), k.value = !0, A.value = !1;
|
|
665
|
+
let r = P.value + 1;
|
|
666
|
+
P.value = r;
|
|
667
667
|
try {
|
|
668
668
|
let e = await U.value.crud.view(n);
|
|
669
|
-
if (!fn(n,
|
|
669
|
+
if (!fn(n, r)) return;
|
|
670
670
|
if (!_n(e)) {
|
|
671
|
-
|
|
671
|
+
A.value = !0, se("角色不属于当前归属范围", {
|
|
672
672
|
source: "role-management",
|
|
673
673
|
phase: "load"
|
|
674
674
|
});
|
|
@@ -676,24 +676,24 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
676
676
|
}
|
|
677
677
|
pn(e, t);
|
|
678
678
|
} catch (e) {
|
|
679
|
-
fn(n,
|
|
679
|
+
fn(n, r) && (A.value = !0, s(e, {
|
|
680
680
|
source: "role-management",
|
|
681
681
|
phase: "load"
|
|
682
682
|
}));
|
|
683
683
|
} finally {
|
|
684
|
-
fn(n,
|
|
684
|
+
fn(n, r) && (k.value = !1);
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
function rn() {
|
|
688
|
-
|
|
688
|
+
j.value || (P.value += 1, k.value = !1, A.value = !1, D.value = !1, O.value = "view", F.value = E.value ? Q(E.value) : Z(w.value), X(), z.value && Ce?.dismiss());
|
|
689
689
|
}
|
|
690
690
|
async function an() {
|
|
691
691
|
if (await Y()) {
|
|
692
|
-
if (!
|
|
692
|
+
if (!E.value?.id || O.value === "create") {
|
|
693
693
|
rn();
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
-
F.value = Q(
|
|
696
|
+
F.value = Q(E.value), X(), O.value = "view", k.value = !1, A.value = !1;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
function on(e) {
|
|
@@ -706,50 +706,50 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
708
|
if (J()) {
|
|
709
|
-
if (e.key === "edit" &&
|
|
710
|
-
F.value = Q(
|
|
709
|
+
if (e.key === "edit" && E.value && !E.value.systemManaged) {
|
|
710
|
+
F.value = Q(E.value), X(), O.value = "edit";
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
713
|
-
if (e.key === "bind" &&
|
|
714
|
-
en(
|
|
713
|
+
if (e.key === "bind" && E.value) {
|
|
714
|
+
en(E.value, E.value.assignmentType === "employment");
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
e.key === "delete" && ln(
|
|
717
|
+
e.key === "delete" && ln(E.value);
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
function sn() {
|
|
721
|
-
let e = String(F.value.id ??
|
|
721
|
+
let e = String(F.value.id ?? T.value ?? "");
|
|
722
722
|
if (!e) return;
|
|
723
|
-
let t =
|
|
723
|
+
let t = O.value === "create" ? "view" : O.value;
|
|
724
724
|
q({
|
|
725
725
|
...F.value,
|
|
726
726
|
id: e
|
|
727
727
|
}, t);
|
|
728
728
|
}
|
|
729
729
|
async function cn() {
|
|
730
|
-
await
|
|
731
|
-
loading:
|
|
732
|
-
mode:
|
|
730
|
+
await ye({
|
|
731
|
+
loading: j,
|
|
732
|
+
mode: O.value === "edit" ? "edit" : "create",
|
|
733
733
|
source: "role-management",
|
|
734
|
-
validateContext: () =>
|
|
734
|
+
validateContext: () => w.value ? void 0 : "请先选择角色归属范围",
|
|
735
735
|
canSave: () => ft.value,
|
|
736
736
|
deniedMessage: "当前用户无权保存角色",
|
|
737
|
-
createRecord: () => yn(F.value,
|
|
737
|
+
createRecord: () => yn(F.value, w.value),
|
|
738
738
|
validateRecord: xn,
|
|
739
|
-
save: (e, t) => t === "edit" &&
|
|
739
|
+
save: (e, t) => t === "edit" && E.value?.id ? U.value.crud.update(E.value.id, e) : U.value.crud.insert(e),
|
|
740
740
|
onSaved: ({ record: e }) => {
|
|
741
|
-
pn(e),
|
|
741
|
+
pn(e), S.value += 1, wt();
|
|
742
742
|
}
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
745
|
async function ln(e) {
|
|
746
|
-
await
|
|
747
|
-
loading:
|
|
746
|
+
await be({
|
|
747
|
+
loading: j,
|
|
748
748
|
source: "role-management",
|
|
749
749
|
record: () => e?.id ? e : void 0,
|
|
750
|
-
canExecute: (e) =>
|
|
750
|
+
canExecute: (e) => h.can("delete") === !0 && e.systemManaged !== !0,
|
|
751
751
|
deniedMessage: "当前用户无权删除角色",
|
|
752
|
-
confirm: (e) =>
|
|
752
|
+
confirm: (e) => le({
|
|
753
753
|
title: "删除角色",
|
|
754
754
|
content: `确认删除角色「${$(e)}」?`,
|
|
755
755
|
okText: "删除",
|
|
@@ -757,31 +757,31 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
757
757
|
}),
|
|
758
758
|
execute: (e) => U.value.crud.delete(String(e.id), { version: e.version }),
|
|
759
759
|
onExecuted: (e, t) => {
|
|
760
|
-
|
|
760
|
+
T.value === String(t.id) && (T.value = void 0, E.value = void 0, F.value = Z(w.value), X(), D.value = !1, O.value = "view", k.value = !1, A.value = !1, P.value += 1), S.value += 1, wt();
|
|
761
761
|
}
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
async function un(e) {
|
|
765
|
-
await
|
|
766
|
-
loading:
|
|
765
|
+
await be({
|
|
766
|
+
loading: j,
|
|
767
767
|
source: "role-management",
|
|
768
768
|
record: () => e?.id ? e : void 0,
|
|
769
|
-
canExecute: (e) =>
|
|
769
|
+
canExecute: (e) => h.can(zn(e)) === !0 && e.systemManaged !== !0,
|
|
770
770
|
deniedMessage: "当前用户无权变更角色启停状态",
|
|
771
771
|
execute: (e) => e.enabled === !1 ? U.value.crud.enable(String(e.id), { version: e.version }) : U.value.crud.disable(String(e.id), { version: e.version }),
|
|
772
772
|
onExecuted: async (e, t) => {
|
|
773
|
-
|
|
773
|
+
T.value === String(t.id) && pn(await U.value.crud.view(String(t.id))), S.value += 1, wt();
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
777
|
function J() {
|
|
778
|
-
return !
|
|
778
|
+
return !j.value;
|
|
779
779
|
}
|
|
780
780
|
async function Y() {
|
|
781
781
|
return J() && await dn();
|
|
782
782
|
}
|
|
783
783
|
async function dn() {
|
|
784
|
-
return !dt.value ||
|
|
784
|
+
return !dt.value || le({
|
|
785
785
|
title: "放弃未保存的角色修改",
|
|
786
786
|
content: "当前角色存在未保存的修改,离开后将丢失。是否继续?",
|
|
787
787
|
okText: "放弃修改",
|
|
@@ -789,16 +789,16 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
function fn(e, t) {
|
|
792
|
-
return P.value === t &&
|
|
792
|
+
return P.value === t && T.value === e;
|
|
793
793
|
}
|
|
794
794
|
function pn(e, t = "view") {
|
|
795
|
-
|
|
795
|
+
E.value = e, T.value = e.id, F.value = Q(e), X(), O.value = t === "edit" && e.systemManaged !== !0 ? "edit" : "view", D.value = !0, k.value = !1, A.value = !1, P.value += 1;
|
|
796
796
|
}
|
|
797
797
|
async function mn() {
|
|
798
798
|
let e = hn();
|
|
799
799
|
if (!e) return;
|
|
800
|
-
|
|
801
|
-
let t =
|
|
800
|
+
w.value = gn(e);
|
|
801
|
+
let t = Ve(e);
|
|
802
802
|
if (t) {
|
|
803
803
|
vn(t);
|
|
804
804
|
return;
|
|
@@ -806,11 +806,11 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
806
806
|
await q({ id: e.recordId }, "view");
|
|
807
807
|
}
|
|
808
808
|
function hn() {
|
|
809
|
-
let e =
|
|
810
|
-
if (e && t && (t === "platform" ||
|
|
809
|
+
let e = c.recordId, t = c.scopeKind;
|
|
810
|
+
if (e && t && (t === "platform" || c.scopeId)) return {
|
|
811
811
|
recordId: e,
|
|
812
812
|
scopeKind: t,
|
|
813
|
-
...t === "platform" ? {} : { scopeId:
|
|
813
|
+
...t === "platform" ? {} : { scopeId: c.scopeId }
|
|
814
814
|
};
|
|
815
815
|
}
|
|
816
816
|
function gn(e) {
|
|
@@ -833,14 +833,14 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
833
833
|
};
|
|
834
834
|
}
|
|
835
835
|
function _n(e) {
|
|
836
|
-
let t =
|
|
836
|
+
let t = w.value;
|
|
837
837
|
return !t || e.ownerScopeType !== t.kind ? !1 : t.kind === "platform" || e.ownerScopeId === t.id;
|
|
838
838
|
}
|
|
839
839
|
function vn(e) {
|
|
840
|
-
|
|
840
|
+
w.value = e.scope, E.value = e.selectedRole, T.value = e.selectedRole.id, F.value = e.draft, Ye.value = e.draftBaseline, O.value = e.mode, D.value = !0, k.value = !1, A.value = !1, P.value += 1;
|
|
841
841
|
}
|
|
842
842
|
function X() {
|
|
843
|
-
Ye.value =
|
|
843
|
+
Ye.value = ue(F.value);
|
|
844
844
|
}
|
|
845
845
|
function Z(e) {
|
|
846
846
|
return {
|
|
@@ -857,7 +857,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
857
857
|
return { ...e };
|
|
858
858
|
}
|
|
859
859
|
function yn(e, t) {
|
|
860
|
-
let n = Cn(e.roleKind), r = Dn(e.sharePolicy, t.kind), i =
|
|
860
|
+
let n = Cn(e.roleKind), r = Dn(e.sharePolicy, t.kind), i = Re(e, {
|
|
861
861
|
title: e.title?.trim(),
|
|
862
862
|
assignmentType: Sn(e.assignmentType, n),
|
|
863
863
|
roleKind: n,
|
|
@@ -883,8 +883,9 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
883
883
|
"ownerScopeType",
|
|
884
884
|
"sharePolicy"
|
|
885
885
|
]) {
|
|
886
|
-
let n =
|
|
886
|
+
let n = he(t, {
|
|
887
887
|
fields: I.value,
|
|
888
|
+
mode: O.value,
|
|
888
889
|
fallback: G.value
|
|
889
890
|
});
|
|
890
891
|
if (n.visible && n.required && !e[t]) return `请填写${n.label}`;
|
|
@@ -1016,7 +1017,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1016
1017
|
}
|
|
1017
1018
|
function Un(e, t) {
|
|
1018
1019
|
if (e === "ownerScopeType") return Gn(F.value.ownerScopeType);
|
|
1019
|
-
if (e === "ownerScopeId") return
|
|
1020
|
+
if (e === "ownerScopeId") return w.value?.title ?? String(t ?? "");
|
|
1020
1021
|
if (e === "memberRoleIds") return Wn(t);
|
|
1021
1022
|
}
|
|
1022
1023
|
function Wn(e) {
|
|
@@ -1046,34 +1047,34 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1046
1047
|
function qn(e) {
|
|
1047
1048
|
return Array.isArray(e) ? e.map((e) => String(e).trim()).filter(Boolean) : typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : [];
|
|
1048
1049
|
}
|
|
1049
|
-
return (
|
|
1050
|
+
return (e, t) => (g(), f("section", {
|
|
1050
1051
|
ref_key: "pageRoot",
|
|
1051
|
-
ref:
|
|
1052
|
-
class:
|
|
1052
|
+
ref: x,
|
|
1053
|
+
class: Ne(["role-management-page", { "role-management-page--task": R.value && !z.value }])
|
|
1053
1054
|
}, [
|
|
1054
|
-
!R.value || z.value ? (
|
|
1055
|
+
!R.value || z.value ? (g(), u(v(ie), {
|
|
1055
1056
|
key: 0,
|
|
1056
1057
|
class: "role-scope-panel",
|
|
1057
1058
|
title: "租户",
|
|
1058
1059
|
"refresh-title": "刷新租户列表",
|
|
1059
|
-
"search-keyword":
|
|
1060
|
+
"search-keyword": Ge.value,
|
|
1060
1061
|
"search-placeholder": "搜索租户名称、alias 或 ID",
|
|
1061
1062
|
searchable: it.value,
|
|
1062
1063
|
onRefresh: kt,
|
|
1063
|
-
"onUpdate:searchKeyword":
|
|
1064
|
+
"onUpdate:searchKeyword": t[2] ||= (e) => Ge.value = e
|
|
1064
1065
|
}, {
|
|
1065
|
-
default:
|
|
1066
|
+
default: y(() => [$e.value ? (g(), u(v(i), {
|
|
1066
1067
|
key: 0,
|
|
1067
1068
|
tip: "加载租户"
|
|
1068
|
-
})) : (
|
|
1069
|
+
})) : (g(), u(v(ve), {
|
|
1069
1070
|
key: 1,
|
|
1070
1071
|
"expanded-keys": Qe.value,
|
|
1071
|
-
"onUpdate:expandedKeys":
|
|
1072
|
+
"onUpdate:expandedKeys": t[0] ||= (e) => Qe.value = e,
|
|
1072
1073
|
nodes: nt.value,
|
|
1073
|
-
"selected-key":
|
|
1074
|
+
"selected-key": w.value?.kind === "tenant" ? It(w.value.id) : w.value?.kind === "organization" ? Lt(w.value.id) : void 0,
|
|
1074
1075
|
"load-strategy": "controlled",
|
|
1075
|
-
"branch-states":
|
|
1076
|
-
onLoadRequest:
|
|
1076
|
+
"branch-states": v(Ze),
|
|
1077
|
+
onLoadRequest: t[1] ||= (e) => v(V).request(e.node.key, e.reason, v(V).stateOf(e.node.key).status === "error"),
|
|
1077
1078
|
onSelect: Pt,
|
|
1078
1079
|
onDeselect: Ut
|
|
1079
1080
|
}, null, 8, [
|
|
@@ -1083,19 +1084,19 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1083
1084
|
"branch-states"
|
|
1084
1085
|
]))]),
|
|
1085
1086
|
_: 1
|
|
1086
|
-
}, 8, ["search-keyword", "searchable"])) :
|
|
1087
|
-
!R.value || z.value ? (
|
|
1087
|
+
}, 8, ["search-keyword", "searchable"])) : d("v-if", !0),
|
|
1088
|
+
!R.value || z.value ? (g(), u(v(a), {
|
|
1088
1089
|
key: 1,
|
|
1089
1090
|
class: "role-list-panel",
|
|
1090
1091
|
context: ot.value,
|
|
1091
|
-
title:
|
|
1092
|
+
title: w.value ? `角色列表 - ${w.value.title}` : "角色列表",
|
|
1092
1093
|
columns: st.value,
|
|
1093
1094
|
"standard-crud-actions": "",
|
|
1094
1095
|
"standard-crud-row-actions": "",
|
|
1095
1096
|
"extra-row-actions-of": Jt,
|
|
1096
1097
|
"row-action-state-of": Yt,
|
|
1097
|
-
"selected-key":
|
|
1098
|
-
"reload-key":
|
|
1098
|
+
"selected-key": T.value,
|
|
1099
|
+
"reload-key": S.value,
|
|
1099
1100
|
ready: ct.value,
|
|
1100
1101
|
sortable: !0,
|
|
1101
1102
|
"quick-search-placeholder": "搜索角色名称或说明",
|
|
@@ -1104,7 +1105,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1104
1105
|
onAction: qt,
|
|
1105
1106
|
onRowAction: Xt,
|
|
1106
1107
|
onRowDblclick: $t,
|
|
1107
|
-
onSelect:
|
|
1108
|
+
onSelect: t[3] ||= (e) => T.value = String(e.id ?? "")
|
|
1108
1109
|
}, null, 8, [
|
|
1109
1110
|
"context",
|
|
1110
1111
|
"title",
|
|
@@ -1112,50 +1113,50 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1112
1113
|
"selected-key",
|
|
1113
1114
|
"reload-key",
|
|
1114
1115
|
"ready"
|
|
1115
|
-
])) :
|
|
1116
|
-
Xe.value ? (
|
|
1116
|
+
])) : d("v-if", !0),
|
|
1117
|
+
Xe.value ? (g(), u(v(_e), {
|
|
1117
1118
|
key: 2,
|
|
1118
|
-
open:
|
|
1119
|
+
open: D.value,
|
|
1119
1120
|
title: lt.value,
|
|
1120
1121
|
"render-mode": "inline",
|
|
1121
1122
|
subtitle: ut.value,
|
|
1122
|
-
dismissal:
|
|
1123
|
+
dismissal: O.value === "view" ? "dismissible" : "guarded",
|
|
1123
1124
|
"before-close": dn,
|
|
1124
|
-
promotion:
|
|
1125
|
+
promotion: v(_t),
|
|
1125
1126
|
onClose: rn
|
|
1126
1127
|
}, {
|
|
1127
|
-
status:
|
|
1128
|
+
status: y(() => [O.value === "view" && E.value ? (g(), u(v(ae), {
|
|
1128
1129
|
key: 0,
|
|
1129
|
-
enabled:
|
|
1130
|
-
disabled:
|
|
1131
|
-
loading:
|
|
1130
|
+
enabled: E.value.enabled !== !1,
|
|
1131
|
+
disabled: j.value || !pt.value,
|
|
1132
|
+
loading: j.value,
|
|
1132
1133
|
"show-label": !1,
|
|
1133
|
-
onChange:
|
|
1134
|
+
onChange: t[4] ||= (e) => un(E.value)
|
|
1134
1135
|
}, null, 8, [
|
|
1135
1136
|
"enabled",
|
|
1136
1137
|
"disabled",
|
|
1137
1138
|
"loading"
|
|
1138
|
-
])) :
|
|
1139
|
-
operation:
|
|
1139
|
+
])) : d("v-if", !0)]),
|
|
1140
|
+
operation: y(() => [m(v(me), {
|
|
1140
1141
|
context: ot.value,
|
|
1141
1142
|
actions: ht.value,
|
|
1142
1143
|
onAction: on
|
|
1143
1144
|
}, null, 8, ["context", "actions"])]),
|
|
1144
|
-
default:
|
|
1145
|
+
default: y(() => [k.value ? (g(), u(v(i), {
|
|
1145
1146
|
key: 0,
|
|
1146
1147
|
class: "role-detail-state",
|
|
1147
1148
|
tip: "加载角色详情"
|
|
1148
|
-
})) :
|
|
1149
|
+
})) : A.value ? (g(), f("div", Ue, [m(v(re), {
|
|
1149
1150
|
title: "详情加载失败",
|
|
1150
1151
|
message: "无法加载角色详情,请重试"
|
|
1151
|
-
}),
|
|
1152
|
+
}), m(v(oe), {
|
|
1152
1153
|
type: "primary",
|
|
1153
1154
|
"icon-name": "reload",
|
|
1154
1155
|
onClick: sn
|
|
1155
1156
|
}, {
|
|
1156
|
-
default:
|
|
1157
|
+
default: y(() => [...t[10] ||= [Me("重试", -1)]]),
|
|
1157
1158
|
_: 1
|
|
1158
|
-
})])) :
|
|
1159
|
+
})])) : O.value === "view" || O.value === "create" || E.value ? (g(), f(je, { key: 2 }, [O.value === "view" ? (g(), u(v(ce), {
|
|
1159
1160
|
key: 0,
|
|
1160
1161
|
record: F.value,
|
|
1161
1162
|
"field-names": bt.value,
|
|
@@ -1167,16 +1168,17 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1167
1168
|
"field-names",
|
|
1168
1169
|
"fields",
|
|
1169
1170
|
"fallback"
|
|
1170
|
-
])) : (
|
|
1171
|
+
])) : (g(), f("form", {
|
|
1171
1172
|
key: 1,
|
|
1172
1173
|
class: "role-form",
|
|
1173
|
-
onSubmit:
|
|
1174
|
+
onSubmit: Le(cn, ["prevent"])
|
|
1174
1175
|
}, [
|
|
1175
|
-
|
|
1176
|
-
value:
|
|
1176
|
+
p("label", null, [t[11] ||= p("span", { class: "role-form-label" }, "当前范围", -1), m(v(pe), {
|
|
1177
|
+
value: w.value?.title ?? "-",
|
|
1177
1178
|
disabled: ""
|
|
1178
1179
|
}, null, 8, ["value"])]),
|
|
1179
|
-
|
|
1180
|
+
m(v(fe), {
|
|
1181
|
+
mode: O.value,
|
|
1180
1182
|
record: F.value,
|
|
1181
1183
|
"field-names": vt,
|
|
1182
1184
|
fields: I.value,
|
|
@@ -1185,25 +1187,27 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1185
1187
|
"disabled-of": Ot,
|
|
1186
1188
|
"onUpdate:field": K
|
|
1187
1189
|
}, null, 8, [
|
|
1190
|
+
"mode",
|
|
1188
1191
|
"record",
|
|
1189
1192
|
"fields",
|
|
1190
1193
|
"fallback",
|
|
1191
1194
|
"disabled"
|
|
1192
1195
|
]),
|
|
1193
|
-
F.value.roleKind === "group" ? (
|
|
1196
|
+
F.value.roleKind === "group" ? (g(), u(He, {
|
|
1194
1197
|
key: 0,
|
|
1195
1198
|
value: F.value.memberRoleIds,
|
|
1196
1199
|
candidates: L.value,
|
|
1197
|
-
"current-role-id":
|
|
1198
|
-
disabled: W.value ||
|
|
1199
|
-
"onUpdate:value":
|
|
1200
|
+
"current-role-id": E.value?.id,
|
|
1201
|
+
disabled: W.value || E.value?.systemManaged === !0,
|
|
1202
|
+
"onUpdate:value": t[5] ||= (e) => K("memberRoleIds", e)
|
|
1200
1203
|
}, null, 8, [
|
|
1201
1204
|
"value",
|
|
1202
1205
|
"candidates",
|
|
1203
1206
|
"current-role-id",
|
|
1204
1207
|
"disabled"
|
|
1205
|
-
])) :
|
|
1206
|
-
|
|
1208
|
+
])) : d("v-if", !0),
|
|
1209
|
+
m(v(fe), {
|
|
1210
|
+
mode: O.value,
|
|
1207
1211
|
record: F.value,
|
|
1208
1212
|
"field-names": yt,
|
|
1209
1213
|
fields: I.value,
|
|
@@ -1212,16 +1216,17 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1212
1216
|
"disabled-of": Ot,
|
|
1213
1217
|
"onUpdate:field": K
|
|
1214
1218
|
}, null, 8, [
|
|
1219
|
+
"mode",
|
|
1215
1220
|
"record",
|
|
1216
1221
|
"fields",
|
|
1217
1222
|
"fallback",
|
|
1218
1223
|
"disabled"
|
|
1219
1224
|
])
|
|
1220
|
-
], 32)),
|
|
1225
|
+
], 32)), O.value === "create" ? d("v-if", !0) : (g(), u(v(xe), {
|
|
1221
1226
|
key: 2,
|
|
1222
1227
|
record: F.value,
|
|
1223
1228
|
"show-sort-order": ""
|
|
1224
|
-
}, null, 8, ["record"]))], 64)) :
|
|
1229
|
+
}, null, 8, ["record"]))], 64)) : d("v-if", !0)]),
|
|
1225
1230
|
_: 1
|
|
1226
1231
|
}, 8, [
|
|
1227
1232
|
"open",
|
|
@@ -1229,48 +1234,48 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1229
1234
|
"subtitle",
|
|
1230
1235
|
"dismissal",
|
|
1231
1236
|
"promotion"
|
|
1232
|
-
])) : (
|
|
1237
|
+
])) : (g(), u(v(te), {
|
|
1233
1238
|
key: 3,
|
|
1234
1239
|
title: lt.value,
|
|
1235
1240
|
subtitle: ut.value
|
|
1236
1241
|
}, {
|
|
1237
|
-
status:
|
|
1242
|
+
status: y(() => [O.value === "view" && E.value ? (g(), u(v(ae), {
|
|
1238
1243
|
key: 0,
|
|
1239
|
-
enabled:
|
|
1240
|
-
disabled:
|
|
1241
|
-
loading:
|
|
1244
|
+
enabled: E.value.enabled !== !1,
|
|
1245
|
+
disabled: j.value || !pt.value,
|
|
1246
|
+
loading: j.value,
|
|
1242
1247
|
"show-label": !1,
|
|
1243
|
-
onChange:
|
|
1248
|
+
onChange: t[6] ||= (e) => un(E.value)
|
|
1244
1249
|
}, null, 8, [
|
|
1245
1250
|
"enabled",
|
|
1246
1251
|
"disabled",
|
|
1247
1252
|
"loading"
|
|
1248
|
-
])) :
|
|
1249
|
-
operation:
|
|
1250
|
-
context:
|
|
1253
|
+
])) : d("v-if", !0)]),
|
|
1254
|
+
operation: y(() => [m(v(me), {
|
|
1255
|
+
context: v(h),
|
|
1251
1256
|
actions: gt.value,
|
|
1252
|
-
"record-id":
|
|
1257
|
+
"record-id": E.value?.id,
|
|
1253
1258
|
onAction: on
|
|
1254
1259
|
}, null, 8, [
|
|
1255
1260
|
"context",
|
|
1256
1261
|
"actions",
|
|
1257
1262
|
"record-id"
|
|
1258
1263
|
])]),
|
|
1259
|
-
default:
|
|
1264
|
+
default: y(() => [k.value ? (g(), u(v(i), {
|
|
1260
1265
|
key: 0,
|
|
1261
1266
|
class: "role-detail-state",
|
|
1262
1267
|
tip: "加载角色详情"
|
|
1263
|
-
})) :
|
|
1268
|
+
})) : A.value ? (g(), f("div", We, [m(v(re), {
|
|
1264
1269
|
title: "详情加载失败",
|
|
1265
1270
|
message: "无法加载角色详情,请重试"
|
|
1266
|
-
}),
|
|
1271
|
+
}), m(v(oe), {
|
|
1267
1272
|
type: "primary",
|
|
1268
1273
|
"icon-name": "reload",
|
|
1269
1274
|
onClick: sn
|
|
1270
1275
|
}, {
|
|
1271
|
-
default:
|
|
1276
|
+
default: y(() => [...t[12] ||= [Me("重试", -1)]]),
|
|
1272
1277
|
_: 1
|
|
1273
|
-
})])) :
|
|
1278
|
+
})])) : O.value === "view" || E.value ? (g(), f(je, { key: 2 }, [O.value === "view" ? (g(), u(v(ce), {
|
|
1274
1279
|
key: 0,
|
|
1275
1280
|
record: F.value,
|
|
1276
1281
|
"field-names": bt.value,
|
|
@@ -1282,16 +1287,17 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1282
1287
|
"field-names",
|
|
1283
1288
|
"fields",
|
|
1284
1289
|
"fallback"
|
|
1285
|
-
])) : (
|
|
1290
|
+
])) : (g(), f("form", {
|
|
1286
1291
|
key: 1,
|
|
1287
1292
|
class: "role-form",
|
|
1288
|
-
onSubmit:
|
|
1293
|
+
onSubmit: Le(cn, ["prevent"])
|
|
1289
1294
|
}, [
|
|
1290
|
-
|
|
1291
|
-
value:
|
|
1295
|
+
p("label", null, [t[13] ||= p("span", { class: "role-form-label" }, "当前范围", -1), m(v(pe), {
|
|
1296
|
+
value: w.value?.title ?? "-",
|
|
1292
1297
|
disabled: ""
|
|
1293
1298
|
}, null, 8, ["value"])]),
|
|
1294
|
-
|
|
1299
|
+
m(v(fe), {
|
|
1300
|
+
mode: O.value,
|
|
1295
1301
|
record: F.value,
|
|
1296
1302
|
"field-names": vt,
|
|
1297
1303
|
fields: I.value,
|
|
@@ -1300,25 +1306,27 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1300
1306
|
"disabled-of": Ot,
|
|
1301
1307
|
"onUpdate:field": K
|
|
1302
1308
|
}, null, 8, [
|
|
1309
|
+
"mode",
|
|
1303
1310
|
"record",
|
|
1304
1311
|
"fields",
|
|
1305
1312
|
"fallback",
|
|
1306
1313
|
"disabled"
|
|
1307
1314
|
]),
|
|
1308
|
-
F.value.roleKind === "group" ? (
|
|
1315
|
+
F.value.roleKind === "group" ? (g(), u(He, {
|
|
1309
1316
|
key: 0,
|
|
1310
1317
|
value: F.value.memberRoleIds,
|
|
1311
1318
|
candidates: L.value,
|
|
1312
|
-
"current-role-id":
|
|
1313
|
-
disabled: W.value ||
|
|
1314
|
-
"onUpdate:value":
|
|
1319
|
+
"current-role-id": E.value?.id,
|
|
1320
|
+
disabled: W.value || E.value?.systemManaged === !0,
|
|
1321
|
+
"onUpdate:value": t[7] ||= (e) => K("memberRoleIds", e)
|
|
1315
1322
|
}, null, 8, [
|
|
1316
1323
|
"value",
|
|
1317
1324
|
"candidates",
|
|
1318
1325
|
"current-role-id",
|
|
1319
1326
|
"disabled"
|
|
1320
|
-
])) :
|
|
1321
|
-
|
|
1327
|
+
])) : d("v-if", !0),
|
|
1328
|
+
m(v(fe), {
|
|
1329
|
+
mode: O.value,
|
|
1322
1330
|
record: F.value,
|
|
1323
1331
|
"field-names": yt,
|
|
1324
1332
|
fields: I.value,
|
|
@@ -1327,53 +1335,54 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1327
1335
|
"disabled-of": Ot,
|
|
1328
1336
|
"onUpdate:field": K
|
|
1329
1337
|
}, null, 8, [
|
|
1338
|
+
"mode",
|
|
1330
1339
|
"record",
|
|
1331
1340
|
"fields",
|
|
1332
1341
|
"fallback",
|
|
1333
1342
|
"disabled"
|
|
1334
1343
|
])
|
|
1335
|
-
], 32)),
|
|
1344
|
+
], 32)), m(v(xe), {
|
|
1336
1345
|
record: F.value,
|
|
1337
1346
|
"show-sort-order": ""
|
|
1338
|
-
}, null, 8, ["record"])], 64)) :
|
|
1347
|
+
}, null, 8, ["record"])], 64)) : d("v-if", !0)]),
|
|
1339
1348
|
_: 1
|
|
1340
1349
|
}, 8, ["title", "subtitle"])),
|
|
1341
|
-
|
|
1342
|
-
open:
|
|
1343
|
-
context:
|
|
1344
|
-
role:
|
|
1345
|
-
container:
|
|
1350
|
+
m(we, {
|
|
1351
|
+
open: Ke.value,
|
|
1352
|
+
context: v(h),
|
|
1353
|
+
role: M.value,
|
|
1354
|
+
container: x.value,
|
|
1346
1355
|
onClose: tn,
|
|
1347
|
-
onSaved:
|
|
1356
|
+
onSaved: t[8] ||= (e) => S.value += 1
|
|
1348
1357
|
}, null, 8, [
|
|
1349
1358
|
"open",
|
|
1350
1359
|
"context",
|
|
1351
1360
|
"role",
|
|
1352
1361
|
"container"
|
|
1353
1362
|
]),
|
|
1354
|
-
|
|
1355
|
-
open:
|
|
1356
|
-
context:
|
|
1357
|
-
role:
|
|
1358
|
-
container:
|
|
1363
|
+
m(Oe, {
|
|
1364
|
+
open: qe.value,
|
|
1365
|
+
context: v(h),
|
|
1366
|
+
role: M.value,
|
|
1367
|
+
container: x.value,
|
|
1359
1368
|
onClose: tn,
|
|
1360
|
-
onSaved:
|
|
1369
|
+
onSaved: t[9] ||= (e) => S.value += 1
|
|
1361
1370
|
}, null, 8, [
|
|
1362
1371
|
"open",
|
|
1363
1372
|
"context",
|
|
1364
1373
|
"role",
|
|
1365
1374
|
"container"
|
|
1366
1375
|
]),
|
|
1367
|
-
Je.value &&
|
|
1376
|
+
Je.value && N.value?.id ? (g(), u(ke, {
|
|
1368
1377
|
key: 4,
|
|
1369
|
-
"role-id":
|
|
1370
|
-
container:
|
|
1378
|
+
"role-id": N.value.id,
|
|
1379
|
+
container: x.value,
|
|
1371
1380
|
drawer: "",
|
|
1372
1381
|
onClose: Qt
|
|
1373
|
-
}, null, 8, ["role-id", "container"])) :
|
|
1382
|
+
}, null, 8, ["role-id", "container"])) : d("v-if", !0)
|
|
1374
1383
|
], 2));
|
|
1375
1384
|
}
|
|
1376
|
-
}), [["__scopeId", "data-v-
|
|
1385
|
+
}), [["__scopeId", "data-v-22c2e36f"]]), x = /* @__PURE__ */ h({
|
|
1377
1386
|
name: "RoleDetailWorkspaceView",
|
|
1378
1387
|
__name: "RoleDetailWorkspaceView",
|
|
1379
1388
|
props: {
|
|
@@ -1382,7 +1391,7 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1382
1391
|
scopeId: {}
|
|
1383
1392
|
},
|
|
1384
1393
|
setup(e) {
|
|
1385
|
-
return (t, n) => (
|
|
1394
|
+
return (t, n) => (g(), u(Ge, {
|
|
1386
1395
|
"record-id": e.recordId,
|
|
1387
1396
|
"scope-kind": e.scopeKind,
|
|
1388
1397
|
"scope-id": e.scopeId
|
|
@@ -1394,4 +1403,4 @@ var v = { class: "role-group-member-selector" }, We = /*#__PURE__*/ o(/* @__PURE
|
|
|
1394
1403
|
}
|
|
1395
1404
|
});
|
|
1396
1405
|
//#endregion
|
|
1397
|
-
export {
|
|
1406
|
+
export { x as default };
|