@ximatai/muyun-web-app 0.26.8 → 0.26.10
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/{MetadataOrchestrationView-DKYVGMzy.js → MetadataOrchestrationView-BhtVwJII.js} +210 -204
- package/dist/{ModuleActionManagementView-DiVzuPdu.js → ModuleActionManagementView-DpZS-xAD.js} +74 -74
- package/dist/{RoleAuthorizationView-C0s4Bog7.js → RoleAuthorizationView-8lilhtMB.js} +193 -139
- package/dist/{RoleDetailWorkspaceView-dqHxKVfd.js → RoleDetailWorkspaceView-CFha6JHn.js} +1 -1
- package/dist/{RoleManagementView-D43pUCxi.js → RoleManagementView-0_KDrzgh.js} +572 -550
- package/dist/index.css +1 -1
- package/dist/index.js +536 -4427
- package/dist/{platform-components-CFU_zR7-.js → platform-components-oRIsIoxu.js} +5154 -3608
- package/dist/types/App.vue.d.ts +1 -0
- package/dist/types/app/StaticRoutePageHost.vue.d.ts +13 -0
- package/dist/types/app/loginTenant.d.ts +1 -1
- package/dist/types/app/menuRouteCompiler.d.ts +45 -0
- package/dist/types/app/menuRouteRuntime.d.ts +24 -0
- package/dist/types/app/pageRouteContext.d.ts +24 -0
- package/dist/types/app/routeDiagnosticsStore.d.ts +10 -0
- package/dist/types/app/router.d.ts +15 -0
- package/dist/types/app/staticRouteDefinitions.d.ts +25 -0
- package/dist/types/app/workbenchRouteSync.d.ts +1 -1
- package/dist/types/app/workbenchStartup.d.ts +3 -3
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
- package/dist/types/consumer/index.d.ts +5 -3
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +3 -10
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +4 -3
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +42 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +15 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +28 -0
- package/dist/types/dynamic-page-runtime/ModulePageFormContributionRenderer.vue.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +20 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +44 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +20 -1
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +17 -5
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +31 -0
- package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +30 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +48 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +28 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1378 -0
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +23 -0
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +5 -12
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/listPageSizePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/moduleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +215 -9
- package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/navigatorVisibility.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +10 -2
- package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +12 -3
- package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +9 -0
- package/dist/types/formula/FormulaRuntime.d.ts +29 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -0
- package/dist/types/{views/SystemUserManagementView.vue.d.ts → platform-admin-runtime/employee/EmployeeAccountDrawer.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/employeeModulePageEnhancement.d.ts +3 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -0
- package/dist/types/platform-admin-runtime/passwordPolicyPageEnhancement.d.ts +6 -0
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -6
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +15 -0
- package/dist/types/{views/EmployeeManagementView.vue.d.ts → platform-admin-runtime/tenant/TenantApplicationConfigurationDrawer.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/tenant/TenantApplicationsDetailSection.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/tenantModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserOnlineStatusCell.vue.d.ts +8 -0
- package/dist/types/platform-admin-runtime/user/UserPasswordDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserSessionListExpansion.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +23 -0
- package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +11 -0
- package/dist/types/platform-admin-runtime/userModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -2
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +13 -0
- package/dist/types/{views/SystemUserDetailWorkspaceView.vue.d.ts → platform-components/DrawerTitleActions.vue.d.ts} +2 -2
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +7 -0
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +5 -2
- package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +17 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +8 -3
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +11 -3
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +14 -6
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +3 -0
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +29 -1
- package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordListExpansionSurface.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +12 -2
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +12 -2
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +39 -5
- package/dist/types/{views/EmployeeEmploymentDrawer.vue.d.ts → platform-components/RecordRelationTabs.vue.d.ts} +7 -7
- package/dist/types/platform-components/RecordSelectionCheckbox.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +12 -4
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +8 -2
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +2 -0
- package/dist/types/platform-components/drawerTitleActions.d.ts +11 -0
- package/dist/types/platform-components/index.d.ts +11 -5
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +3 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +82 -5
- package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -0
- package/dist/types/platform-components/recordPickerModel.d.ts +6 -2
- package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
- package/dist/types/platform-workbench/index.d.ts +3 -2
- package/dist/types/platform-workbench/legacyPageHostTypeCompatibility.d.ts +6 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +24 -2
- package/dist/types/platform-workbench/pageCacheKey.d.ts +2 -0
- package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +14 -1
- package/dist/types/views/PasswordPolicyPreview.vue.d.ts +7 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +2 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/{EmployeeDetailWorkspaceView.vue.d.ts → UserDetailRouteView.vue.d.ts} +3 -1
- package/dist/types/views/UserManagementView.vue.d.ts +1 -6
- package/dist/types/views/userDetailStateModel.d.ts +1 -3
- package/dist/types/views/userManagementRouteState.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +3 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -1
- package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +18 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/index.d.ts +4 -2
- package/dist/types/web-contracts/index.d.ts +375 -14
- package/dist/types/web-core/businessNotifications.d.ts +3 -2
- package/dist/types/web-core/http.d.ts +6 -0
- package/dist/types/web-core/index.d.ts +1 -0
- package/dist/types/web-core/module/abilities.d.ts +7 -7
- package/dist/types/web-core/module/index.d.ts +1 -1
- package/dist/types/web-core/module/moduleContext.d.ts +6 -3
- package/dist/types/web-core/module/runtimeContext.d.ts +2 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +42 -10
- package/dist/types/web-core/realtime.d.ts +8 -0
- package/dist/types/web-core/referenceResolveClient.d.ts +11 -0
- package/dist/workspaceViews-D-RiJ64o.js +9078 -0
- package/package.json +1 -1
- package/dist/EmployeeDetailWorkspaceView-DswEDSxH.js +0 -14
- package/dist/EmployeeManagementView-C9STtw08.js +0 -1777
- package/dist/SystemUserDetailWorkspaceView-CQ9WeLrR.js +0 -17
- package/dist/SystemUserManagementView-D75_ylYk.js +0 -758
- package/dist/UserDetailWorkspaceView-BCST01d2.js +0 -17
- package/dist/UserManagementView-CcdvDo_y.js +0 -964
- package/dist/pageRealtime-EAiGWKEo.js +0 -227
- package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
- package/dist/types/views/EmployeeDetailContent.vue.d.ts +0 -64
- package/dist/types/views/UserDetailWorkspaceView.vue.d.ts +0 -7
- package/dist/types/views/dictionaryManagementState.d.ts +0 -215
- package/dist/types/views/employeeDetailStateModel.d.ts +0 -39
- package/dist/types/views/employeeDetailWorkspaceSession.d.ts +0 -16
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +0 -4
- package/dist/types/views/fieldUiControlManagementState.d.ts +0 -76
- package/dist/types/views/menuManagementState.d.ts +0 -178
- package/dist/types/views/moduleManagementState.d.ts +0 -76
- package/dist/types/views/positionManagementState.d.ts +0 -218
- package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
- package/dist/types/views/tenantManagementState.d.ts +0 -74
- package/dist/types/views/useEmployeeEmploymentRows.d.ts +0 -20
- package/dist/types/views/userDetailWorkspaceSession.d.ts +0 -14
- package/dist/types/views/userDetailWorkspaceView.d.ts +0 -4
- package/dist/useUserSessionRows-DCpUZCzN.js +0 -128
- package/dist/workspaceViewSessions-Dj1LjdG1.js +0 -4984
- /package/dist/types/views/{DictionaryManagementView.vue.d.ts → DynamicModuleRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{FieldUiControlManagementView.vue.d.ts → ExternalRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{MenuManagementView.vue.d.ts → ModuleOpenApiRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{ModuleManagementView.vue.d.ts → OpenApiCatalogRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{PasswordManagementView.vue.d.ts → RouteDiagnosticsView.vue.d.ts} +0 -0
- /package/dist/types/views/{PositionManagementView.vue.d.ts → UserManagementListView.vue.d.ts} +0 -0
- /package/dist/types/views/{TenantManagementView.vue.d.ts → WorkspaceRouteView.vue.d.ts} +0 -0
|
@@ -1,8 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Fragment as
|
|
4
|
-
//#
|
|
1
|
+
import { It as e, Mt as t, Nt as n, Rt as r, St as i, T as a, V as ee, Wt as te, _t as ne, at as o, dr as s, ft as re, it as ie, pt as ae, st as oe, u as se, ut as ce, v as c, vt as le } from "./platform-components-oRIsIoxu.js";
|
|
2
|
+
import { A as ue, N as de, v as l, w as u } from "./workspaceViews-D-RiJ64o.js";
|
|
3
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as fe, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as pe, normalizeClass as me, normalizeProps as he, onBeforeUnmount as ge, onMounted as _e, openBlock as b, ref as x, renderSlot as S, resolveDynamicComponent as ve, toDisplayString as C, toValue as w, unref as T, watch as ye, withCtx as E } from "vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/platform-admin-runtime/WorkspaceViewDrawer.vue
|
|
6
|
+
var be = /* @__PURE__ */ y({
|
|
7
|
+
name: "WorkspaceViewDrawer",
|
|
8
|
+
__name: "WorkspaceViewDrawer",
|
|
9
|
+
props: {
|
|
10
|
+
open: { type: Boolean },
|
|
11
|
+
title: {},
|
|
12
|
+
container: {},
|
|
13
|
+
subtitle: { default: void 0 },
|
|
14
|
+
profile: { default: "detail" },
|
|
15
|
+
promotion: { default: void 0 }
|
|
16
|
+
},
|
|
17
|
+
emits: ["close"],
|
|
18
|
+
setup(e, { emit: t }) {
|
|
19
|
+
let n = e, r = t, i = f(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
|
|
20
|
+
return (t, n) => (b(), p(T(ee), {
|
|
21
|
+
open: e.open,
|
|
22
|
+
title: e.title,
|
|
23
|
+
"render-mode": e.container ? "inline" : "portal",
|
|
24
|
+
subtitle: e.subtitle,
|
|
25
|
+
width: i.value,
|
|
26
|
+
promotion: e.promotion,
|
|
27
|
+
onClose: n[0] ||= (e) => r("close")
|
|
28
|
+
}, g({
|
|
29
|
+
default: E(() => [S(t.$slots, "default")]),
|
|
30
|
+
_: 2
|
|
31
|
+
}, [t.$slots.operation ? {
|
|
32
|
+
name: "operation",
|
|
33
|
+
fn: E(() => [S(t.$slots, "operation")]),
|
|
34
|
+
key: "0"
|
|
35
|
+
} : void 0]), 1032, [
|
|
36
|
+
"open",
|
|
37
|
+
"title",
|
|
38
|
+
"render-mode",
|
|
39
|
+
"subtitle",
|
|
40
|
+
"width",
|
|
41
|
+
"promotion"
|
|
42
|
+
]));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/platform-admin-runtime/useWorkspaceViewPromotion.ts
|
|
47
|
+
function D(e) {
|
|
48
|
+
return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
|
|
49
|
+
}
|
|
5
50
|
function xe(e) {
|
|
51
|
+
let t = de();
|
|
52
|
+
return f(() => {
|
|
53
|
+
let n = w(e.input);
|
|
54
|
+
if (!(!n || !D(w(e.eligibility)) || !t)) return {
|
|
55
|
+
title: "固定为页签",
|
|
56
|
+
promote: async () => {
|
|
57
|
+
if (await e.beforePromote?.(n) === !1) {
|
|
58
|
+
e.onPromotionRejected?.();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
let r = t.openPage(u(e.view, n, "tab", w(e.title)));
|
|
62
|
+
e.onPromoted?.(r);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/views/roleGrantClient.ts
|
|
69
|
+
function Se(e) {
|
|
6
70
|
return {
|
|
7
71
|
accountRoleGrants(t) {
|
|
8
72
|
return e.request({ path: `/iam.role/${encodeURIComponent(t)}/account-grants` });
|
|
@@ -103,53 +167,41 @@ function xe(e) {
|
|
|
103
167
|
};
|
|
104
168
|
}
|
|
105
169
|
//#endregion
|
|
106
|
-
//#region src/platform-admin-runtime/
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
name: "operation",
|
|
132
|
-
fn: E(() => [C(n.$slots, "operation")]),
|
|
133
|
-
key: "0"
|
|
134
|
-
} : void 0]), 1032, [
|
|
135
|
-
"open",
|
|
136
|
-
"title",
|
|
137
|
-
"subtitle",
|
|
138
|
-
"width",
|
|
139
|
-
"promotion"
|
|
140
|
-
]));
|
|
141
|
-
}
|
|
142
|
-
});
|
|
170
|
+
//#region src/platform-admin-runtime/workspaceViewSessions.ts
|
|
171
|
+
var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map();
|
|
172
|
+
function A(e, t) {
|
|
173
|
+
return `${e.type}:${P(t)}`;
|
|
174
|
+
}
|
|
175
|
+
async function j(e, t, n) {
|
|
176
|
+
let r = A(e, t), i = k.get(r), a = i && [...i].at(-1);
|
|
177
|
+
return a ? await a(F(n)) ? "accepted" : "rejected" : (O.set(r, F(n)), "accepted");
|
|
178
|
+
}
|
|
179
|
+
function M(e, t, n) {
|
|
180
|
+
let r = A(e, t), i = k.get(r) ?? /* @__PURE__ */ new Set();
|
|
181
|
+
return i.add(n), k.set(r, i), () => {
|
|
182
|
+
i.delete(n), i.size === 0 && k.delete(r);
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
function N(e, t) {
|
|
186
|
+
let n = A(e, t), r = O.get(n);
|
|
187
|
+
return O.delete(n), r;
|
|
188
|
+
}
|
|
189
|
+
function P(e) {
|
|
190
|
+
return Array.isArray(e) ? `[${e.map(P).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${P(t)}`).join(",")}}` : JSON.stringify(e);
|
|
191
|
+
}
|
|
192
|
+
function F(e) {
|
|
193
|
+
return JSON.parse(JSON.stringify(e));
|
|
194
|
+
}
|
|
143
195
|
//#endregion
|
|
144
196
|
//#region src/views/roleAuthorizationWorkspaceSession.ts
|
|
145
197
|
function Ce(e, t) {
|
|
146
|
-
return
|
|
198
|
+
return j(l, e, t);
|
|
147
199
|
}
|
|
148
200
|
function we(e, t) {
|
|
149
|
-
return
|
|
201
|
+
return M(l, e, t);
|
|
150
202
|
}
|
|
151
203
|
function Te(e) {
|
|
152
|
-
return l
|
|
204
|
+
return N(l, e);
|
|
153
205
|
}
|
|
154
206
|
//#endregion
|
|
155
207
|
//#region src/views/RoleAuthorizationView.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -165,27 +217,28 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
165
217
|
}, Ae = { key: 0 }, je = { key: 1 }, Me = { key: 3 }, Ne = {
|
|
166
218
|
key: 4,
|
|
167
219
|
class: "not-applicable"
|
|
168
|
-
},
|
|
220
|
+
}, I = /*@__PURE__*/ y({
|
|
169
221
|
name: "RoleAuthorizationView",
|
|
170
222
|
__name: "RoleAuthorizationView",
|
|
171
223
|
props: {
|
|
172
224
|
roleId: {},
|
|
225
|
+
container: {},
|
|
173
226
|
drawer: { type: Boolean }
|
|
174
227
|
},
|
|
175
228
|
emits: ["close"],
|
|
176
|
-
setup(
|
|
177
|
-
let s =
|
|
229
|
+
setup(r, { emit: ee }) {
|
|
230
|
+
let s = r, de = ee, u = te({ moduleAlias: "iam.role" }), y = Se(u.http), S = s.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", w = ue(), D = s.roleId ? { roleId: s.roleId } : void 0, O = D ? Te(D) : void 0, k = x(), A = x([]), j = x(), M = x([]), N = x(), P = x(), F = x(!1), I = x(!1), L = x(!1), R = x(), z = x(), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = x(0), Pe, U = f(() => k.value?.roleKind === "group"), W = f(() => k.value?.roleKind === "dataGrant"), G = f(() => k.value?.assignmentType === "employment"), K = f(() => k.value?.title ?? S ?? "角色"), q = f(() => `授权:${K.value}`), Fe = f(() => Ie.value ? `动作授权 - ${Ie.value.title}` : `动作授权 - ${K.value}`), Ie = f(() => A.value.find((e) => e.moduleAlias === j.value)), Le = f(() => A.value.map((e) => ({
|
|
178
231
|
id: e.moduleAlias,
|
|
179
232
|
parentId: e.parentId,
|
|
180
233
|
title: e.title,
|
|
181
234
|
secondary: e.applicationAlias
|
|
182
|
-
}))), Re =
|
|
235
|
+
}))), Re = f(() => (P.value?.options ?? []).map((e) => ({
|
|
183
236
|
value: e.code,
|
|
184
237
|
label: e.title
|
|
185
|
-
}))), ze =
|
|
238
|
+
}))), ze = f(() => (P.value?.referenceDependencies ?? []).map((e) => ({
|
|
186
239
|
value: e.referenceFieldId,
|
|
187
240
|
label: `${e.title} → ${e.targetModuleTitle}`
|
|
188
|
-
}))), Be =
|
|
241
|
+
}))), Be = f(() => new Map((P.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), Ve = [
|
|
189
242
|
{
|
|
190
243
|
key: "title",
|
|
191
244
|
title: "动作",
|
|
@@ -219,21 +272,22 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
219
272
|
title: "数据范围",
|
|
220
273
|
width: 160
|
|
221
274
|
}
|
|
222
|
-
], Ue =
|
|
275
|
+
], Ue = f(() => M.value), We = f(() => N.value?.actions ?? []), J = f(() => s.drawer === !0 || !!D && w?.presentation === "drawer"), Y = f(() => !!D), Ge = f(() => J.value ? be : Y.value ? a : "div"), Ke = f(() => J.value ? {
|
|
223
276
|
open: !0,
|
|
224
277
|
title: q.value,
|
|
225
|
-
|
|
278
|
+
container: s.container ?? null,
|
|
279
|
+
profile: l.drawerProfile,
|
|
226
280
|
promotion: Ze.value,
|
|
227
|
-
onClose:
|
|
228
|
-
} : Y.value ? { title: q.value } : {}), qe =
|
|
281
|
+
onClose: ut
|
|
282
|
+
} : Y.value ? { title: q.value } : {}), qe = f(() => {
|
|
229
283
|
let e = N.value;
|
|
230
284
|
return !e || z.value === void 0 ? !1 : JSON.stringify(e.actions) !== z.value;
|
|
231
|
-
}), Je =
|
|
232
|
-
view:
|
|
285
|
+
}), Je = f(() => H.value >= 0 && [...B.entries()].some(([e, t]) => V.get(e) !== JSON.stringify(t))), X = f(() => qe.value || Je.value), Ye = f(() => M.value.length > 0 && M.value.every((e) => e.granted)), Xe = f(() => M.value.some((e) => e.granted) && !Ye.value), Ze = xe({
|
|
286
|
+
view: l,
|
|
233
287
|
input: () => D,
|
|
234
288
|
title: q,
|
|
235
289
|
eligibility: () => ({
|
|
236
|
-
hasStableIdentity: !!(
|
|
290
|
+
hasStableIdentity: !!(S && k.value),
|
|
237
291
|
busy: L.value
|
|
238
292
|
}),
|
|
239
293
|
beforePromote: (e) => Ce(e, {
|
|
@@ -248,33 +302,33 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
248
302
|
snapshot: t
|
|
249
303
|
}))
|
|
250
304
|
}).then((e) => e === "accepted"),
|
|
251
|
-
onPromoted:
|
|
252
|
-
onPromotionRejected: () =>
|
|
305
|
+
onPromoted: dt,
|
|
306
|
+
onPromotionRejected: () => oe("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
|
|
253
307
|
source: "role-authorization",
|
|
254
308
|
phase: "validation"
|
|
255
309
|
})
|
|
256
310
|
});
|
|
257
|
-
|
|
258
|
-
D && !J.value && (Pe = we(D,
|
|
259
|
-
}),
|
|
260
|
-
Y.value &&
|
|
261
|
-
}, { immediate: !0 }),
|
|
262
|
-
Pe?.(), window.removeEventListener("beforeunload",
|
|
311
|
+
_e(() => {
|
|
312
|
+
D && !J.value && (Pe = we(D, ft)), Z();
|
|
313
|
+
}), ye(q, (e) => {
|
|
314
|
+
Y.value && w?.setTitle(e);
|
|
315
|
+
}, { immediate: !0 }), ye(j, () => void Qe()), _e(() => window.addEventListener("beforeunload", mt)), ge(() => {
|
|
316
|
+
Pe?.(), window.removeEventListener("beforeunload", mt);
|
|
263
317
|
});
|
|
264
318
|
async function Z() {
|
|
265
|
-
if (!
|
|
319
|
+
if (!S) {
|
|
266
320
|
R.value = "缺少角色标识,无法打开授权页。";
|
|
267
321
|
return;
|
|
268
322
|
}
|
|
269
323
|
F.value = !0, R.value = void 0;
|
|
270
324
|
try {
|
|
271
|
-
if (k.value = await
|
|
325
|
+
if (k.value = await u.crud.view(S), k.value.roleKind === "group") return;
|
|
272
326
|
if (k.value.roleKind === "dataGrant") {
|
|
273
|
-
let [e, t] = await Promise.all([
|
|
327
|
+
let [e, t] = await Promise.all([y.dataGrantActionMatrix(S), y.dataScopePolicyCatalog(S)]);
|
|
274
328
|
N.value = O?.dataGrantMatrix ?? e, P.value = t, z.value = JSON.stringify(e.actions);
|
|
275
329
|
return;
|
|
276
330
|
}
|
|
277
|
-
A.value = (await
|
|
331
|
+
A.value = (await y.authorizationModules(S)).records, j.value = O?.selectedModuleAlias ?? A.value[0]?.moduleAlias;
|
|
278
332
|
} catch (e) {
|
|
279
333
|
R.value = "授权信息加载失败,请重试。", o(e, {
|
|
280
334
|
source: "role-authorization",
|
|
@@ -289,7 +343,7 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
289
343
|
if (!(!e || W.value || U.value)) {
|
|
290
344
|
I.value = !0;
|
|
291
345
|
try {
|
|
292
|
-
let [t, n] = await Promise.all([
|
|
346
|
+
let [t, n] = await Promise.all([y.permissionMatrix(S, [e]), y.dataScopePolicyCatalog(S, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = O?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
|
|
293
347
|
M.value = B.get(e) ?? i ?? r, B.has(e) || (B.set(e, M.value), V.set(e, O?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), H.value += 1, P.value = n;
|
|
294
348
|
} catch (e) {
|
|
295
349
|
o(e, {
|
|
@@ -301,49 +355,49 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
301
355
|
}
|
|
302
356
|
}
|
|
303
357
|
}
|
|
304
|
-
function
|
|
358
|
+
function Q(e, t) {
|
|
305
359
|
t && e.dataAuth && G.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, H.value += 1;
|
|
306
360
|
}
|
|
307
|
-
function
|
|
308
|
-
M.value.forEach((t) =>
|
|
361
|
+
function $e(e) {
|
|
362
|
+
M.value.forEach((t) => Q(t, e));
|
|
309
363
|
}
|
|
310
|
-
function
|
|
364
|
+
function et(e, t) {
|
|
311
365
|
if (e.dataScopePolicy = String(t || "none"), e.dataScopePolicy === "referenceDependency") {
|
|
312
366
|
e.referenceFieldId = void 0, e.referenceActionCode = void 0, H.value += 1;
|
|
313
367
|
return;
|
|
314
368
|
}
|
|
315
369
|
e.referenceFieldId = void 0, e.referenceActionCode = void 0, H.value += 1;
|
|
316
370
|
}
|
|
317
|
-
function
|
|
371
|
+
function tt(e, t) {
|
|
318
372
|
let n = Be.value.get(String(t || ""));
|
|
319
373
|
e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, H.value += 1;
|
|
320
374
|
}
|
|
321
|
-
function
|
|
375
|
+
function nt(e) {
|
|
322
376
|
return Be.value.get(String(e || ""));
|
|
323
377
|
}
|
|
324
|
-
function
|
|
378
|
+
function rt(e) {
|
|
325
379
|
return typeof e == "string" || typeof e == "number" ? e : void 0;
|
|
326
380
|
}
|
|
327
|
-
function
|
|
381
|
+
function it(e) {
|
|
328
382
|
return e.dataScopePolicy ?? "inheritDataGrant";
|
|
329
383
|
}
|
|
330
|
-
function
|
|
384
|
+
function at(e) {
|
|
331
385
|
return !!e.dataAuth && G.value;
|
|
332
386
|
}
|
|
333
|
-
function
|
|
334
|
-
return e.key === "dataScopePolicy" &&
|
|
387
|
+
function ot(e, t) {
|
|
388
|
+
return e.key === "dataScopePolicy" && at(t);
|
|
335
389
|
}
|
|
336
|
-
function
|
|
390
|
+
function st(e) {
|
|
337
391
|
return G.value && e.dataAuth && e.dataScopePolicy === "none" ? {
|
|
338
392
|
...e,
|
|
339
393
|
dataScopePolicy: "inheritDataGrant"
|
|
340
394
|
} : e;
|
|
341
395
|
}
|
|
342
|
-
async function
|
|
396
|
+
async function ct() {
|
|
343
397
|
if (N.value) {
|
|
344
398
|
L.value = !0;
|
|
345
399
|
try {
|
|
346
|
-
await
|
|
400
|
+
await ie(await y.replaceDataGrantActions(S, N.value.actions.map((e) => ({
|
|
347
401
|
actionCode: e.actionCode,
|
|
348
402
|
dataScopePolicy: e.dataScopePolicy,
|
|
349
403
|
enabled: e.configured
|
|
@@ -362,12 +416,12 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
362
416
|
}
|
|
363
417
|
}
|
|
364
418
|
}
|
|
365
|
-
async function
|
|
419
|
+
async function lt() {
|
|
366
420
|
let e = [...B.entries()].filter(([e, t]) => V.get(e) !== JSON.stringify(t));
|
|
367
421
|
if (e.length) {
|
|
368
422
|
L.value = !0;
|
|
369
423
|
try {
|
|
370
|
-
await
|
|
424
|
+
await ie(await y.replacePermissionMatrix(S, e.flatMap(([e, t]) => t.map((t) => ({
|
|
371
425
|
moduleAlias: e,
|
|
372
426
|
actionCode: t.actionCode,
|
|
373
427
|
granted: !!t.granted,
|
|
@@ -389,72 +443,72 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
389
443
|
}
|
|
390
444
|
}
|
|
391
445
|
}
|
|
392
|
-
async function
|
|
446
|
+
async function $() {
|
|
393
447
|
if (W.value) {
|
|
394
|
-
await
|
|
448
|
+
await ct();
|
|
395
449
|
return;
|
|
396
450
|
}
|
|
397
|
-
await
|
|
451
|
+
await lt();
|
|
398
452
|
}
|
|
399
|
-
async function
|
|
400
|
-
X.value && !await
|
|
453
|
+
async function ut() {
|
|
454
|
+
X.value && !await ce({
|
|
401
455
|
title: "放弃未确认的授权配置",
|
|
402
456
|
content: "当前修改尚未确认,关闭后将丢失这些修改。",
|
|
403
457
|
okText: "放弃修改",
|
|
404
458
|
danger: !0
|
|
405
|
-
}) ||
|
|
459
|
+
}) || pt();
|
|
406
460
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
461
|
+
function dt() {
|
|
462
|
+
pt();
|
|
409
463
|
}
|
|
410
|
-
function
|
|
464
|
+
function ft(e) {
|
|
411
465
|
return X.value ? !1 : (j.value = e.selectedModuleAlias, N.value = e.dataGrantMatrix, B.clear(), V.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => B.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => V.set(e, t)), H.value += 1, !0);
|
|
412
466
|
}
|
|
413
|
-
function
|
|
467
|
+
function pt() {
|
|
414
468
|
if (s.drawer === !0) {
|
|
415
|
-
|
|
469
|
+
de("close");
|
|
416
470
|
return;
|
|
417
471
|
}
|
|
418
|
-
|
|
472
|
+
w?.dismiss();
|
|
419
473
|
}
|
|
420
|
-
function
|
|
474
|
+
function mt(e) {
|
|
421
475
|
X.value && (e.preventDefault(), e.returnValue = "");
|
|
422
476
|
}
|
|
423
|
-
return (
|
|
424
|
-
default: E(() => [
|
|
477
|
+
return (r, a) => (b(), p(ve(Ge.value), he(pe(Ke.value)), g({
|
|
478
|
+
default: E(() => [h("section", { class: me(["role-authorization-page", { "role-authorization-page--drawer": J.value }]) }, [F.value ? (b(), p(T(ae), {
|
|
425
479
|
key: 0,
|
|
426
480
|
tip: "加载授权信息"
|
|
427
|
-
})) : R.value ? (
|
|
481
|
+
})) : R.value ? (b(), p(T(re), {
|
|
428
482
|
key: 1,
|
|
429
483
|
title: "授权页加载失败",
|
|
430
484
|
message: R.value
|
|
431
|
-
}, null, 8, ["message"])) : U.value ? (
|
|
485
|
+
}, null, 8, ["message"])) : U.value ? (b(), p(T(le), {
|
|
432
486
|
key: 2,
|
|
433
487
|
title: "角色组不独立授权",
|
|
434
488
|
description: "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。"
|
|
435
|
-
})) : W.value && N.value ? (
|
|
489
|
+
})) : W.value && N.value ? (b(), p(T(c), {
|
|
436
490
|
key: 3,
|
|
437
491
|
class: "data-grant-content",
|
|
438
492
|
title: Y.value ? "数据权限模板" : `数据权限模板 - ${K.value}`,
|
|
439
493
|
searchable: !1,
|
|
440
494
|
onRefresh: Z
|
|
441
495
|
}, {
|
|
442
|
-
default: E(() => [
|
|
496
|
+
default: E(() => [h("header", Ee, [a[3] ||= h("div", null, [h("h3", null, "标准动作的数据范围模板"), h("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), Y.value ? fe("v-if", !0) : (b(), p(T(e), {
|
|
443
497
|
key: 0,
|
|
444
498
|
type: "primary",
|
|
445
499
|
disabled: !X.value,
|
|
446
500
|
loading: L.value,
|
|
447
|
-
onClick:
|
|
501
|
+
onClick: $
|
|
448
502
|
}, {
|
|
449
|
-
default: E(() => [...
|
|
503
|
+
default: E(() => [...a[2] ||= [_(" 确认 ", -1)]]),
|
|
450
504
|
_: 1
|
|
451
|
-
}, 8, ["disabled", "loading"]))]),
|
|
505
|
+
}, 8, ["disabled", "loading"]))]), v(T(ne), {
|
|
452
506
|
columns: He,
|
|
453
507
|
rows: We.value,
|
|
454
508
|
"row-key": "actionCode",
|
|
455
509
|
"horizontal-scroll": ""
|
|
456
510
|
}, {
|
|
457
|
-
cell: E(({ column:
|
|
511
|
+
cell: E(({ column: e, record: n }) => [e.key === "title" ? (b(), m(d, { key: 0 }, [h("strong", null, C(n.title || n.actionCode), 1), h("small", null, C(n.actionCode), 1)], 64)) : e.key === "configured" ? (b(), p(T(i), {
|
|
458
512
|
key: 1,
|
|
459
513
|
checked: !!n.configured,
|
|
460
514
|
disabled: L.value,
|
|
@@ -463,7 +517,7 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
463
517
|
"checked",
|
|
464
518
|
"disabled",
|
|
465
519
|
"onChange"
|
|
466
|
-
])) : (
|
|
520
|
+
])) : (b(), p(T(t), {
|
|
467
521
|
key: 2,
|
|
468
522
|
value: n.dataScopePolicy,
|
|
469
523
|
options: Re.value,
|
|
@@ -480,28 +534,28 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
480
534
|
_: 1
|
|
481
535
|
}, 8, ["rows"])]),
|
|
482
536
|
_: 1
|
|
483
|
-
}, 8, ["title"])) : (
|
|
537
|
+
}, 8, ["title"])) : (b(), m("section", De, [v(T(c), {
|
|
484
538
|
class: "module-panel",
|
|
485
539
|
title: "模块树",
|
|
486
540
|
"refresh-title": "刷新模块目录",
|
|
487
541
|
searchable: !1,
|
|
488
542
|
onRefresh: Z
|
|
489
543
|
}, {
|
|
490
|
-
default: E(() => [
|
|
544
|
+
default: E(() => [v(T(se), {
|
|
491
545
|
records: Le.value,
|
|
492
546
|
"selected-id": j.value,
|
|
493
|
-
onSelect:
|
|
547
|
+
onSelect: a[0] ||= (e) => j.value = e.id
|
|
494
548
|
}, null, 8, ["records", "selected-id"])]),
|
|
495
549
|
_: 1
|
|
496
|
-
}),
|
|
550
|
+
}), v(T(c), {
|
|
497
551
|
class: "action-panel",
|
|
498
552
|
title: Fe.value,
|
|
499
553
|
searchable: !1
|
|
500
|
-
},
|
|
501
|
-
default: E(() => [I.value ? (
|
|
554
|
+
}, g({
|
|
555
|
+
default: E(() => [I.value ? (b(), p(T(ae), {
|
|
502
556
|
key: 0,
|
|
503
557
|
tip: "加载模块动作"
|
|
504
|
-
})) : j.value ? (
|
|
558
|
+
})) : j.value ? (b(), p(T(ne), {
|
|
505
559
|
key: 2,
|
|
506
560
|
columns: Ve,
|
|
507
561
|
rows: Ue.value,
|
|
@@ -509,65 +563,65 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
509
563
|
"fill-height": "",
|
|
510
564
|
"horizontal-scroll": ""
|
|
511
565
|
}, {
|
|
512
|
-
header: E(({ column: e }) => [e.key === "granted" ? (
|
|
566
|
+
header: E(({ column: e }) => [e.key === "granted" ? (b(), m("span", Oe, [v(T(n), {
|
|
513
567
|
checked: Ye.value,
|
|
514
568
|
indeterminate: Xe.value,
|
|
515
569
|
disabled: L.value || !M.value.length,
|
|
516
570
|
"aria-label": "全选当前模块动作授权",
|
|
517
|
-
onChange:
|
|
571
|
+
onChange: $e
|
|
518
572
|
}, null, 8, [
|
|
519
573
|
"checked",
|
|
520
574
|
"indeterminate",
|
|
521
575
|
"disabled"
|
|
522
|
-
]),
|
|
523
|
-
cell: E(({ column:
|
|
576
|
+
]), a[5] ||= _(" 授权 ", -1)])) : (b(), m(d, { key: 1 }, [_(C(e.title), 1)], 64))]),
|
|
577
|
+
cell: E(({ column: e, record: r }) => [e.key === "title" ? (b(), m(d, { key: 0 }, [h("strong", null, C(r.title || r.actionCode), 1), h("small", null, C(r.permissionActionCode || r.actionCode), 1)], 64)) : e.key === "granted" ? (b(), p(T(n), {
|
|
524
578
|
key: 1,
|
|
525
|
-
checked: !!
|
|
579
|
+
checked: !!r.granted,
|
|
526
580
|
disabled: L.value,
|
|
527
|
-
onChange: (e) =>
|
|
581
|
+
onChange: (e) => Q(r, e)
|
|
528
582
|
}, null, 8, [
|
|
529
583
|
"checked",
|
|
530
584
|
"disabled",
|
|
531
585
|
"onChange"
|
|
532
|
-
])) :
|
|
533
|
-
value:
|
|
586
|
+
])) : r.dataAuth && G.value && r.granted ? (b(), m("div", ke, [v(T(t), {
|
|
587
|
+
value: it(r),
|
|
534
588
|
options: Re.value,
|
|
535
589
|
disabled: L.value,
|
|
536
590
|
"allow-clear": !1,
|
|
537
|
-
"onUpdate:value": (e) =>
|
|
591
|
+
"onUpdate:value": (e) => et(r, e)
|
|
538
592
|
}, null, 8, [
|
|
539
593
|
"value",
|
|
540
594
|
"options",
|
|
541
595
|
"disabled",
|
|
542
596
|
"onUpdate:value"
|
|
543
|
-
]),
|
|
544
|
-
value:
|
|
597
|
+
]), r.dataScopePolicy === "referenceDependency" ? (b(), m(d, { key: 0 }, [v(T(t), {
|
|
598
|
+
value: rt(r.referenceFieldId),
|
|
545
599
|
options: ze.value,
|
|
546
600
|
disabled: L.value,
|
|
547
601
|
placeholder: "请选择引用字段",
|
|
548
602
|
"allow-clear": !1,
|
|
549
|
-
"onUpdate:value": (e) =>
|
|
603
|
+
"onUpdate:value": (e) => tt(r, e)
|
|
550
604
|
}, null, 8, [
|
|
551
605
|
"value",
|
|
552
606
|
"options",
|
|
553
607
|
"disabled",
|
|
554
608
|
"onUpdate:value"
|
|
555
|
-
]),
|
|
609
|
+
]), r.referenceFieldId ? (b(), m("small", Ae, " 依赖目标:" + C(nt(r.referenceFieldId)?.targetModuleTitle) + " · " + C(nt(r.referenceFieldId)?.referenceActionTitle), 1)) : (b(), m("small", je, "请先选择引用字段,再开启该动作授权。"))], 64)) : fe("v-if", !0)])) : ot(e, r) ? (b(), m("span", Me, "—")) : (b(), m("span", Ne, "不适用"))]),
|
|
556
610
|
_: 1
|
|
557
|
-
}, 8, ["rows"])) : (
|
|
611
|
+
}, 8, ["rows"])) : (b(), p(T(le), {
|
|
558
612
|
key: 1,
|
|
559
613
|
title: "请选择模块"
|
|
560
614
|
}))]),
|
|
561
615
|
_: 2
|
|
562
616
|
}, [Y.value ? void 0 : {
|
|
563
617
|
name: "actions",
|
|
564
|
-
fn: E(() => [
|
|
618
|
+
fn: E(() => [v(T(e), {
|
|
565
619
|
type: "primary",
|
|
566
620
|
disabled: !X.value,
|
|
567
621
|
loading: L.value,
|
|
568
|
-
onClick:
|
|
622
|
+
onClick: $
|
|
569
623
|
}, {
|
|
570
|
-
default: E(() => [...
|
|
624
|
+
default: E(() => [...a[4] ||= [_(" 确认 ", -1)]]),
|
|
571
625
|
_: 1
|
|
572
626
|
}, 8, ["disabled", "loading"])]),
|
|
573
627
|
key: "0"
|
|
@@ -575,18 +629,18 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
575
629
|
_: 2
|
|
576
630
|
}, [Y.value && !U.value ? {
|
|
577
631
|
name: "operation",
|
|
578
|
-
fn: E(() => [
|
|
632
|
+
fn: E(() => [v(T(e), {
|
|
579
633
|
type: "primary",
|
|
580
634
|
disabled: !X.value,
|
|
581
635
|
loading: L.value,
|
|
582
|
-
onClick:
|
|
636
|
+
onClick: $
|
|
583
637
|
}, {
|
|
584
|
-
default: E(() => [...
|
|
638
|
+
default: E(() => [...a[1] ||= [_(" 确认 ", -1)]]),
|
|
585
639
|
_: 1
|
|
586
640
|
}, 8, ["disabled", "loading"])]),
|
|
587
641
|
key: "0"
|
|
588
642
|
} : void 0]), 1040));
|
|
589
643
|
}
|
|
590
|
-
}),
|
|
644
|
+
}), L = /* @__PURE__ */ s({ default: () => R }), R = /*#__PURE__*/ r(I, [["__scopeId", "data-v-8b9dc5d9"]]);
|
|
591
645
|
//#endregion
|
|
592
|
-
export {
|
|
646
|
+
export { N as a, M as i, L as n, Se as o, j as r, xe as s, R as t };
|