@ximatai/muyun-web-app 0.26.8 → 0.26.9
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/DictionaryManagementView-CtIQpqVA.js +1035 -0
- package/dist/MenuManagementView-DJhkN2sG.js +837 -0
- package/dist/{MetadataOrchestrationView-DKYVGMzy.js → MetadataOrchestrationView-CzhAgEdX.js} +211 -205
- package/dist/{ModuleActionManagementView-DiVzuPdu.js → ModuleActionManagementView-CM2d8jPO.js} +72 -72
- package/dist/{RoleAuthorizationView-C0s4Bog7.js → RoleAuthorizationView-jn_WUCeg.js} +228 -221
- package/dist/{RoleDetailWorkspaceView-dqHxKVfd.js → RoleDetailWorkspaceView-CzaQ3Dz1.js} +1 -1
- package/dist/RoleManagementView-nY7qu4GF.js +1951 -0
- package/dist/{SystemUserDetailWorkspaceView-CQ9WeLrR.js → SystemUserDetailWorkspaceView-CBvqmWvP.js} +1 -1
- package/dist/SystemUserManagementView-AEomKvK7.js +887 -0
- package/dist/currentUserContext-B1lj1WgF.js +11 -0
- package/dist/index.css +1 -1
- package/dist/index.js +531 -4402
- package/dist/{platform-components-CFU_zR7-.js → platform-components-CIi6GdC9.js} +4832 -3453
- package/dist/types/App.vue.d.ts +1 -0
- package/dist/types/app/StaticRoutePageHost.vue.d.ts +11 -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/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 +40 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +26 -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 +19 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +16 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +42 -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 +12 -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 +26 -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 +1324 -0
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +22 -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 +3 -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 +181 -7
- package/dist/types/dynamic-page-runtime/navigatorVisibility.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +9 -1
- 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/UserDetailWorkspaceView.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 +9 -0
- package/dist/types/platform-admin-runtime/tenant/TenantApplicationConfigurationDrawer.vue.d.ts +7 -0
- 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 +4 -2
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +13 -0
- package/dist/types/{views/EmployeeDetailWorkspaceView.vue.d.ts → platform-components/DrawerTitleActions.vue.d.ts} +2 -1
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +7 -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 +3 -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/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 +2 -1
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +12 -2
- package/dist/types/platform-components/RecordPicker.vue.d.ts +10 -2
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +33 -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/StaticManagementLayout.vue.d.ts +12 -4
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +4 -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 -3
- 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 +67 -4
- package/dist/types/platform-components/recordPickerConstraints.d.ts +2 -0
- package/dist/types/platform-components/recordPickerModel.d.ts +6 -2
- package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -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/{EmployeeManagementView.vue.d.ts → UserDetailRouteView.vue.d.ts} +3 -2
- package/dist/types/views/UserManagementListView.vue.d.ts +3 -0
- package/dist/types/views/UserManagementView.vue.d.ts +1 -6
- package/dist/types/views/WorkspaceRouteView.vue.d.ts +3 -0
- package/dist/types/views/menuManagementState.d.ts +2 -0
- 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/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 +303 -12
- package/dist/types/web-core/businessNotifications.d.ts +3 -2
- 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/moduleContext.d.ts +5 -3
- package/dist/types/web-core/module/runtimeContext.d.ts +2 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +36 -10
- package/dist/types/web-core/referenceResolveClient.d.ts +11 -0
- package/dist/workspaceViewSessions-B5g4M0rT.js +51 -0
- package/dist/workspaceViews-CkERhK0K.js +8748 -0
- package/package.json +1 -1
- package/dist/EmployeeDetailWorkspaceView-DswEDSxH.js +0 -14
- package/dist/EmployeeManagementView-C9STtw08.js +0 -1777
- package/dist/RoleManagementView-D43pUCxi.js +0 -1926
- 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/views/EmployeeDetailContent.vue.d.ts +0 -64
- 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/moduleManagementState.d.ts +0 -76
- package/dist/types/views/positionManagementState.d.ts +0 -218
- 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/{FieldUiControlManagementView.vue.d.ts → DynamicModuleRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{ModuleManagementView.vue.d.ts → ExternalRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{PasswordManagementView.vue.d.ts → ModuleOpenApiRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{PositionManagementView.vue.d.ts → OpenApiCatalogRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{TenantManagementView.vue.d.ts → RouteDiagnosticsView.vue.d.ts} +0 -0
|
@@ -1,6 +1,49 @@
|
|
|
1
|
-
import { At as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { At as e, Bt as t, Et as n, Kt as r, O as i, Qt as ee, Tt as te, Vt as ne, W as re, Wt as a, bt as ie, f as ae, ft as o, mt as oe, st as se, vr as s, vt as ce, x as c, xt as le } from "./platform-components-CIi6GdC9.js";
|
|
2
|
+
import { P as ue, x as l } from "./workspaceViews-CkERhK0K.js";
|
|
3
|
+
import { i as de, n as fe, r as u, t as d } from "./workspaceViewSessions-B5g4M0rT.js";
|
|
4
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as pe, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, defineComponent as b, guardReactiveProps as me, normalizeClass as he, normalizeProps as ge, onBeforeUnmount as _e, onMounted as x, openBlock as S, ref as C, renderSlot as w, resolveDynamicComponent as ve, toDisplayString as T, unref as E, watch as ye, withCtx as D } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/platform-admin-runtime/WorkspaceViewDrawer.vue
|
|
7
|
+
var be = /* @__PURE__ */ b({
|
|
8
|
+
name: "WorkspaceViewDrawer",
|
|
9
|
+
__name: "WorkspaceViewDrawer",
|
|
10
|
+
props: {
|
|
11
|
+
open: { type: Boolean },
|
|
12
|
+
title: {},
|
|
13
|
+
container: {},
|
|
14
|
+
subtitle: { default: void 0 },
|
|
15
|
+
profile: { default: "detail" },
|
|
16
|
+
promotion: { default: void 0 }
|
|
17
|
+
},
|
|
18
|
+
emits: ["close"],
|
|
19
|
+
setup(e, { emit: t }) {
|
|
20
|
+
let n = e, r = t, i = p(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
|
|
21
|
+
return (t, n) => (S(), m(E(re), {
|
|
22
|
+
open: e.open,
|
|
23
|
+
title: e.title,
|
|
24
|
+
container: e.container,
|
|
25
|
+
subtitle: e.subtitle,
|
|
26
|
+
width: i.value,
|
|
27
|
+
promotion: e.promotion,
|
|
28
|
+
onClose: n[0] ||= (e) => r("close")
|
|
29
|
+
}, _({
|
|
30
|
+
default: D(() => [w(t.$slots, "default")]),
|
|
31
|
+
_: 2
|
|
32
|
+
}, [t.$slots.operation ? {
|
|
33
|
+
name: "operation",
|
|
34
|
+
fn: D(() => [w(t.$slots, "operation")]),
|
|
35
|
+
key: "0"
|
|
36
|
+
} : void 0]), 1032, [
|
|
37
|
+
"open",
|
|
38
|
+
"title",
|
|
39
|
+
"container",
|
|
40
|
+
"subtitle",
|
|
41
|
+
"width",
|
|
42
|
+
"promotion"
|
|
43
|
+
]));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
4
47
|
//#region src/views/roleGrantClient.ts
|
|
5
48
|
function xe(e) {
|
|
6
49
|
return {
|
|
@@ -103,89 +146,52 @@ function xe(e) {
|
|
|
103
146
|
};
|
|
104
147
|
}
|
|
105
148
|
//#endregion
|
|
106
|
-
//#region src/platform-admin-runtime/WorkspaceViewDrawer.vue
|
|
107
|
-
var Se = /* @__PURE__ */ b({
|
|
108
|
-
name: "WorkspaceViewDrawer",
|
|
109
|
-
__name: "WorkspaceViewDrawer",
|
|
110
|
-
props: {
|
|
111
|
-
open: { type: Boolean },
|
|
112
|
-
title: {},
|
|
113
|
-
subtitle: { default: void 0 },
|
|
114
|
-
profile: { default: "detail" },
|
|
115
|
-
promotion: { default: void 0 }
|
|
116
|
-
},
|
|
117
|
-
emits: ["close"],
|
|
118
|
-
setup(e, { emit: n }) {
|
|
119
|
-
let r = e, i = n, a = p(() => r.profile === "wide-work" ? "min(600px, 100vw)" : 520);
|
|
120
|
-
return (n, r) => (x(), m(T(t), {
|
|
121
|
-
open: e.open,
|
|
122
|
-
title: e.title,
|
|
123
|
-
subtitle: e.subtitle,
|
|
124
|
-
width: a.value,
|
|
125
|
-
promotion: e.promotion,
|
|
126
|
-
onClose: r[0] ||= (e) => i("close")
|
|
127
|
-
}, _({
|
|
128
|
-
default: E(() => [C(n.$slots, "default")]),
|
|
129
|
-
_: 2
|
|
130
|
-
}, [n.$slots.operation ? {
|
|
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
|
-
});
|
|
143
|
-
//#endregion
|
|
144
149
|
//#region src/views/roleAuthorizationWorkspaceSession.ts
|
|
145
|
-
function
|
|
146
|
-
return d(
|
|
150
|
+
function Se(e, t) {
|
|
151
|
+
return d(l, e, t);
|
|
147
152
|
}
|
|
148
|
-
function
|
|
149
|
-
return fe(
|
|
153
|
+
function Ce(e, t) {
|
|
154
|
+
return fe(l, e, t);
|
|
150
155
|
}
|
|
151
|
-
function
|
|
152
|
-
return l
|
|
156
|
+
function we(e) {
|
|
157
|
+
return u(l, e);
|
|
153
158
|
}
|
|
154
159
|
//#endregion
|
|
155
160
|
//#region src/views/RoleAuthorizationView.vue?vue&type=script&setup=true&lang.ts
|
|
156
|
-
var
|
|
161
|
+
var Te = { class: "panel-title" }, Ee = {
|
|
157
162
|
key: 4,
|
|
158
163
|
class: "authorization-layout"
|
|
159
|
-
},
|
|
164
|
+
}, De = {
|
|
160
165
|
key: 0,
|
|
161
166
|
class: "authorization-column-header"
|
|
162
|
-
},
|
|
167
|
+
}, Oe = {
|
|
163
168
|
key: 2,
|
|
164
169
|
class: "data-scope-editor"
|
|
165
|
-
},
|
|
170
|
+
}, ke = { key: 0 }, Ae = { key: 1 }, je = { key: 3 }, Me = {
|
|
166
171
|
key: 4,
|
|
167
172
|
class: "not-applicable"
|
|
168
|
-
},
|
|
173
|
+
}, O = /*@__PURE__*/ b({
|
|
169
174
|
name: "RoleAuthorizationView",
|
|
170
175
|
__name: "RoleAuthorizationView",
|
|
171
176
|
props: {
|
|
172
177
|
roleId: {},
|
|
178
|
+
container: {},
|
|
173
179
|
drawer: { type: Boolean }
|
|
174
180
|
},
|
|
175
181
|
emits: ["close"],
|
|
176
|
-
setup(
|
|
177
|
-
let s =
|
|
182
|
+
setup(r, { emit: re }) {
|
|
183
|
+
let s = r, fe = re, u = ee({ moduleAlias: "iam.role" }), d = xe(u.http), b = s.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", w = ue(), O = s.roleId ? { roleId: s.roleId } : void 0, k = O ? we(O) : void 0, A = C(), j = C([]), M = C(), N = C([]), P = C(), F = C(), I = C(!1), L = C(!1), R = C(!1), z = C(), B = C(), V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), U = C(0), Ne, W = p(() => A.value?.roleKind === "group"), G = p(() => A.value?.roleKind === "dataGrant"), K = p(() => A.value?.assignmentType === "employment"), q = p(() => A.value?.title ?? b ?? "角色"), J = p(() => `授权:${q.value}`), Pe = p(() => Fe.value ? `动作授权 - ${Fe.value.title}` : `动作授权 - ${q.value}`), Fe = p(() => j.value.find((e) => e.moduleAlias === M.value)), Ie = p(() => j.value.map((e) => ({
|
|
178
184
|
id: e.moduleAlias,
|
|
179
185
|
parentId: e.parentId,
|
|
180
186
|
title: e.title,
|
|
181
187
|
secondary: e.applicationAlias
|
|
182
|
-
}))),
|
|
188
|
+
}))), Le = p(() => (F.value?.options ?? []).map((e) => ({
|
|
183
189
|
value: e.code,
|
|
184
190
|
label: e.title
|
|
185
|
-
}))),
|
|
191
|
+
}))), Re = p(() => (F.value?.referenceDependencies ?? []).map((e) => ({
|
|
186
192
|
value: e.referenceFieldId,
|
|
187
193
|
label: `${e.title} → ${e.targetModuleTitle}`
|
|
188
|
-
}))),
|
|
194
|
+
}))), ze = p(() => new Map((F.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), Be = [
|
|
189
195
|
{
|
|
190
196
|
key: "title",
|
|
191
197
|
title: "动作",
|
|
@@ -202,7 +208,7 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
202
208
|
title: "数据范围",
|
|
203
209
|
width: 160
|
|
204
210
|
}
|
|
205
|
-
],
|
|
211
|
+
], Ve = [
|
|
206
212
|
{
|
|
207
213
|
key: "title",
|
|
208
214
|
title: "标准动作",
|
|
@@ -219,131 +225,132 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
219
225
|
title: "数据范围",
|
|
220
226
|
width: 160
|
|
221
227
|
}
|
|
222
|
-
],
|
|
228
|
+
], He = p(() => N.value), Ue = p(() => P.value?.actions ?? []), Y = p(() => s.drawer === !0 || !!O && w?.presentation === "drawer"), X = p(() => !!O), We = p(() => Y.value ? be : X.value ? i : "div"), Ge = p(() => Y.value ? {
|
|
223
229
|
open: !0,
|
|
224
|
-
title:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
230
|
+
title: J.value,
|
|
231
|
+
container: s.container ?? null,
|
|
232
|
+
profile: l.drawerProfile,
|
|
233
|
+
promotion: Xe.value,
|
|
234
|
+
onClose: ut
|
|
235
|
+
} : X.value ? { title: J.value } : {}), Ke = p(() => {
|
|
236
|
+
let e = P.value;
|
|
237
|
+
return !e || B.value === void 0 ? !1 : JSON.stringify(e.actions) !== B.value;
|
|
238
|
+
}), qe = p(() => U.value >= 0 && [...V.entries()].some(([e, t]) => H.get(e) !== JSON.stringify(t))), Z = p(() => Ke.value || qe.value), Je = p(() => N.value.length > 0 && N.value.every((e) => e.granted)), Ye = p(() => N.value.some((e) => e.granted) && !Je.value), Xe = de({
|
|
239
|
+
view: l,
|
|
240
|
+
input: () => O,
|
|
241
|
+
title: J,
|
|
235
242
|
eligibility: () => ({
|
|
236
|
-
hasStableIdentity: !!(b &&
|
|
237
|
-
busy:
|
|
243
|
+
hasStableIdentity: !!(b && A.value),
|
|
244
|
+
busy: R.value
|
|
238
245
|
}),
|
|
239
|
-
beforePromote: (e) =>
|
|
240
|
-
selectedModuleAlias:
|
|
241
|
-
dataGrantMatrix:
|
|
242
|
-
actionDrafts: [...
|
|
246
|
+
beforePromote: (e) => Se(e, {
|
|
247
|
+
selectedModuleAlias: M.value,
|
|
248
|
+
dataGrantMatrix: P.value,
|
|
249
|
+
actionDrafts: [...V.entries()].map(([e, t]) => ({
|
|
243
250
|
moduleAlias: e,
|
|
244
251
|
actions: t
|
|
245
252
|
})),
|
|
246
|
-
actionSnapshots: [...
|
|
253
|
+
actionSnapshots: [...H.entries()].map(([e, t]) => ({
|
|
247
254
|
moduleAlias: e,
|
|
248
255
|
snapshot: t
|
|
249
256
|
}))
|
|
250
257
|
}).then((e) => e === "accepted"),
|
|
251
|
-
onPromoted:
|
|
252
|
-
onPromotionRejected: () =>
|
|
258
|
+
onPromoted: dt,
|
|
259
|
+
onPromotionRejected: () => oe("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
|
|
253
260
|
source: "role-authorization",
|
|
254
261
|
phase: "validation"
|
|
255
262
|
})
|
|
256
263
|
});
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}),
|
|
260
|
-
|
|
261
|
-
}, { immediate: !0 }),
|
|
262
|
-
|
|
264
|
+
x(() => {
|
|
265
|
+
O && !Y.value && (Ne = Ce(O, ft)), Q();
|
|
266
|
+
}), ye(J, (e) => {
|
|
267
|
+
X.value && w?.setTitle(e);
|
|
268
|
+
}, { immediate: !0 }), ye(M, () => void Ze()), x(() => window.addEventListener("beforeunload", mt)), _e(() => {
|
|
269
|
+
Ne?.(), window.removeEventListener("beforeunload", mt);
|
|
263
270
|
});
|
|
264
|
-
async function
|
|
271
|
+
async function Q() {
|
|
265
272
|
if (!b) {
|
|
266
|
-
|
|
273
|
+
z.value = "缺少角色标识,无法打开授权页。";
|
|
267
274
|
return;
|
|
268
275
|
}
|
|
269
|
-
|
|
276
|
+
I.value = !0, z.value = void 0;
|
|
270
277
|
try {
|
|
271
|
-
if (
|
|
272
|
-
if (
|
|
278
|
+
if (A.value = await u.crud.view(b), A.value.roleKind === "group") return;
|
|
279
|
+
if (A.value.roleKind === "dataGrant") {
|
|
273
280
|
let [e, t] = await Promise.all([d.dataGrantActionMatrix(b), d.dataScopePolicyCatalog(b)]);
|
|
274
|
-
|
|
281
|
+
P.value = k?.dataGrantMatrix ?? e, F.value = t, B.value = JSON.stringify(e.actions);
|
|
275
282
|
return;
|
|
276
283
|
}
|
|
277
|
-
|
|
284
|
+
j.value = (await d.authorizationModules(b)).records, M.value = k?.selectedModuleAlias ?? j.value[0]?.moduleAlias;
|
|
278
285
|
} catch (e) {
|
|
279
|
-
|
|
286
|
+
z.value = "授权信息加载失败,请重试。", o(e, {
|
|
280
287
|
source: "role-authorization",
|
|
281
288
|
phase: "load"
|
|
282
289
|
});
|
|
283
290
|
} finally {
|
|
284
|
-
|
|
291
|
+
I.value = !1;
|
|
285
292
|
}
|
|
286
293
|
}
|
|
287
|
-
async function
|
|
288
|
-
let e =
|
|
289
|
-
if (!(!e ||
|
|
290
|
-
|
|
294
|
+
async function Ze() {
|
|
295
|
+
let e = M.value;
|
|
296
|
+
if (!(!e || G.value || W.value)) {
|
|
297
|
+
L.value = !0;
|
|
291
298
|
try {
|
|
292
|
-
let [t, n] = await Promise.all([d.permissionMatrix(b, [e]), d.dataScopePolicyCatalog(b, e)]), r = (t.modules[0]?.actions ?? []).map(
|
|
293
|
-
|
|
299
|
+
let [t, n] = await Promise.all([d.permissionMatrix(b, [e]), d.dataScopePolicyCatalog(b, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = k?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
|
|
300
|
+
N.value = V.get(e) ?? i ?? r, V.has(e) || (V.set(e, N.value), H.set(e, k?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), U.value += 1, F.value = n;
|
|
294
301
|
} catch (e) {
|
|
295
302
|
o(e, {
|
|
296
303
|
source: "role-authorization",
|
|
297
304
|
phase: "load"
|
|
298
305
|
});
|
|
299
306
|
} finally {
|
|
300
|
-
|
|
307
|
+
L.value = !1;
|
|
301
308
|
}
|
|
302
309
|
}
|
|
303
310
|
}
|
|
304
|
-
function
|
|
305
|
-
t && e.dataAuth &&
|
|
311
|
+
function Qe(e, t) {
|
|
312
|
+
t && e.dataAuth && K.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, U.value += 1;
|
|
306
313
|
}
|
|
307
|
-
function
|
|
308
|
-
|
|
314
|
+
function $e(e) {
|
|
315
|
+
N.value.forEach((t) => Qe(t, e));
|
|
309
316
|
}
|
|
310
|
-
function
|
|
317
|
+
function et(e, t) {
|
|
311
318
|
if (e.dataScopePolicy = String(t || "none"), e.dataScopePolicy === "referenceDependency") {
|
|
312
|
-
e.referenceFieldId = void 0, e.referenceActionCode = void 0,
|
|
319
|
+
e.referenceFieldId = void 0, e.referenceActionCode = void 0, U.value += 1;
|
|
313
320
|
return;
|
|
314
321
|
}
|
|
315
|
-
e.referenceFieldId = void 0, e.referenceActionCode = void 0,
|
|
322
|
+
e.referenceFieldId = void 0, e.referenceActionCode = void 0, U.value += 1;
|
|
316
323
|
}
|
|
317
|
-
function
|
|
318
|
-
let n =
|
|
319
|
-
e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode,
|
|
324
|
+
function tt(e, t) {
|
|
325
|
+
let n = ze.value.get(String(t || ""));
|
|
326
|
+
e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, U.value += 1;
|
|
320
327
|
}
|
|
321
|
-
function
|
|
322
|
-
return
|
|
328
|
+
function nt(e) {
|
|
329
|
+
return ze.value.get(String(e || ""));
|
|
323
330
|
}
|
|
324
|
-
function
|
|
331
|
+
function rt(e) {
|
|
325
332
|
return typeof e == "string" || typeof e == "number" ? e : void 0;
|
|
326
333
|
}
|
|
327
|
-
function
|
|
334
|
+
function it(e) {
|
|
328
335
|
return e.dataScopePolicy ?? "inheritDataGrant";
|
|
329
336
|
}
|
|
330
|
-
function
|
|
331
|
-
return !!e.dataAuth &&
|
|
337
|
+
function at(e) {
|
|
338
|
+
return !!e.dataAuth && K.value;
|
|
332
339
|
}
|
|
333
|
-
function
|
|
334
|
-
return e.key === "dataScopePolicy" &&
|
|
340
|
+
function ot(e, t) {
|
|
341
|
+
return e.key === "dataScopePolicy" && at(t);
|
|
335
342
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
343
|
+
function st(e) {
|
|
344
|
+
return K.value && e.dataAuth && e.dataScopePolicy === "none" ? {
|
|
338
345
|
...e,
|
|
339
346
|
dataScopePolicy: "inheritDataGrant"
|
|
340
347
|
} : e;
|
|
341
348
|
}
|
|
342
|
-
async function
|
|
343
|
-
if (
|
|
344
|
-
|
|
349
|
+
async function ct() {
|
|
350
|
+
if (P.value) {
|
|
351
|
+
R.value = !0;
|
|
345
352
|
try {
|
|
346
|
-
await
|
|
353
|
+
await se(await d.replaceDataGrantActions(b, P.value.actions.map((e) => ({
|
|
347
354
|
actionCode: e.actionCode,
|
|
348
355
|
dataScopePolicy: e.dataScopePolicy,
|
|
349
356
|
enabled: e.configured
|
|
@@ -351,126 +358,126 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
351
358
|
source: "role-authorization",
|
|
352
359
|
phase: "action",
|
|
353
360
|
fallbackMessage: "数据权限模板已保存"
|
|
354
|
-
}),
|
|
361
|
+
}), B.value = JSON.stringify(P.value.actions);
|
|
355
362
|
} catch (e) {
|
|
356
363
|
o(e, {
|
|
357
364
|
source: "role-authorization",
|
|
358
365
|
phase: "action"
|
|
359
366
|
});
|
|
360
367
|
} finally {
|
|
361
|
-
|
|
368
|
+
R.value = !1;
|
|
362
369
|
}
|
|
363
370
|
}
|
|
364
371
|
}
|
|
365
|
-
async function
|
|
366
|
-
let e = [...
|
|
372
|
+
async function lt() {
|
|
373
|
+
let e = [...V.entries()].filter(([e, t]) => H.get(e) !== JSON.stringify(t));
|
|
367
374
|
if (e.length) {
|
|
368
|
-
|
|
375
|
+
R.value = !0;
|
|
369
376
|
try {
|
|
370
|
-
await
|
|
377
|
+
await se(await d.replacePermissionMatrix(b, e.flatMap(([e, t]) => t.map((t) => ({
|
|
371
378
|
moduleAlias: e,
|
|
372
379
|
actionCode: t.actionCode,
|
|
373
380
|
granted: !!t.granted,
|
|
374
|
-
dataScopePolicy: t.granted && t.dataAuth &&
|
|
381
|
+
dataScopePolicy: t.granted && t.dataAuth && K.value ? t.dataScopePolicy ?? "inheritDataGrant" : void 0,
|
|
375
382
|
referenceFieldId: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceFieldId : void 0,
|
|
376
383
|
referenceActionCode: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceActionCode : void 0
|
|
377
384
|
})))), {
|
|
378
385
|
source: "role-authorization",
|
|
379
386
|
phase: "action",
|
|
380
387
|
fallbackMessage: "角色授权已保存"
|
|
381
|
-
}), e.forEach(([e, t]) =>
|
|
388
|
+
}), e.forEach(([e, t]) => H.set(e, JSON.stringify(t))), U.value += 1;
|
|
382
389
|
} catch (e) {
|
|
383
390
|
o(e, {
|
|
384
391
|
source: "role-authorization",
|
|
385
392
|
phase: "action"
|
|
386
393
|
});
|
|
387
394
|
} finally {
|
|
388
|
-
|
|
395
|
+
R.value = !1;
|
|
389
396
|
}
|
|
390
397
|
}
|
|
391
398
|
}
|
|
392
|
-
async function
|
|
393
|
-
if (
|
|
394
|
-
await
|
|
399
|
+
async function $() {
|
|
400
|
+
if (G.value) {
|
|
401
|
+
await ct();
|
|
395
402
|
return;
|
|
396
403
|
}
|
|
397
|
-
await
|
|
404
|
+
await lt();
|
|
398
405
|
}
|
|
399
|
-
async function
|
|
400
|
-
|
|
406
|
+
async function ut() {
|
|
407
|
+
Z.value && !await ce({
|
|
401
408
|
title: "放弃未确认的授权配置",
|
|
402
409
|
content: "当前修改尚未确认,关闭后将丢失这些修改。",
|
|
403
410
|
okText: "放弃修改",
|
|
404
411
|
danger: !0
|
|
405
|
-
}) ||
|
|
412
|
+
}) || pt();
|
|
406
413
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
414
|
+
function dt() {
|
|
415
|
+
pt();
|
|
409
416
|
}
|
|
410
|
-
function
|
|
411
|
-
return
|
|
417
|
+
function ft(e) {
|
|
418
|
+
return Z.value ? !1 : (M.value = e.selectedModuleAlias, P.value = e.dataGrantMatrix, V.clear(), H.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => V.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => H.set(e, t)), U.value += 1, !0);
|
|
412
419
|
}
|
|
413
|
-
function
|
|
420
|
+
function pt() {
|
|
414
421
|
if (s.drawer === !0) {
|
|
415
422
|
fe("close");
|
|
416
423
|
return;
|
|
417
424
|
}
|
|
418
|
-
|
|
425
|
+
w?.dismiss();
|
|
419
426
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
427
|
+
function mt(e) {
|
|
428
|
+
Z.value && (e.preventDefault(), e.returnValue = "");
|
|
422
429
|
}
|
|
423
|
-
return (
|
|
424
|
-
default:
|
|
430
|
+
return (r, i) => (S(), m(ve(We.value), ge(me(Ge.value)), _({
|
|
431
|
+
default: D(() => [g("section", { class: he(["role-authorization-page", { "role-authorization-page--drawer": Y.value }]) }, [I.value ? (S(), m(E(le), {
|
|
425
432
|
key: 0,
|
|
426
433
|
tip: "加载授权信息"
|
|
427
|
-
})) :
|
|
434
|
+
})) : z.value ? (S(), m(E(ie), {
|
|
428
435
|
key: 1,
|
|
429
436
|
title: "授权页加载失败",
|
|
430
|
-
message:
|
|
431
|
-
}, null, 8, ["message"])) :
|
|
437
|
+
message: z.value
|
|
438
|
+
}, null, 8, ["message"])) : W.value ? (S(), m(E(n), {
|
|
432
439
|
key: 2,
|
|
433
440
|
title: "角色组不独立授权",
|
|
434
441
|
description: "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。"
|
|
435
|
-
})) :
|
|
442
|
+
})) : G.value && P.value ? (S(), m(E(c), {
|
|
436
443
|
key: 3,
|
|
437
444
|
class: "data-grant-content",
|
|
438
|
-
title:
|
|
445
|
+
title: X.value ? "数据权限模板" : `数据权限模板 - ${q.value}`,
|
|
439
446
|
searchable: !1,
|
|
440
|
-
onRefresh:
|
|
447
|
+
onRefresh: Q
|
|
441
448
|
}, {
|
|
442
|
-
default:
|
|
449
|
+
default: D(() => [g("header", Te, [i[3] ||= g("div", null, [g("h3", null, "标准动作的数据范围模板"), g("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), X.value ? pe("v-if", !0) : (S(), m(E(a), {
|
|
443
450
|
key: 0,
|
|
444
451
|
type: "primary",
|
|
445
|
-
disabled: !
|
|
446
|
-
loading:
|
|
447
|
-
onClick:
|
|
452
|
+
disabled: !Z.value,
|
|
453
|
+
loading: R.value,
|
|
454
|
+
onClick: $
|
|
448
455
|
}, {
|
|
449
|
-
default:
|
|
456
|
+
default: D(() => [...i[2] ||= [v(" 确认 ", -1)]]),
|
|
450
457
|
_: 1
|
|
451
|
-
}, 8, ["disabled", "loading"]))]), y(
|
|
452
|
-
columns:
|
|
453
|
-
rows:
|
|
458
|
+
}, 8, ["disabled", "loading"]))]), y(E(te), {
|
|
459
|
+
columns: Ve,
|
|
460
|
+
rows: Ue.value,
|
|
454
461
|
"row-key": "actionCode",
|
|
455
462
|
"horizontal-scroll": ""
|
|
456
463
|
}, {
|
|
457
|
-
cell:
|
|
464
|
+
cell: D(({ column: n, record: r }) => [n.key === "title" ? (S(), h(f, { key: 0 }, [g("strong", null, T(r.title || r.actionCode), 1), g("small", null, T(r.actionCode), 1)], 64)) : n.key === "configured" ? (S(), m(E(e), {
|
|
458
465
|
key: 1,
|
|
459
|
-
checked: !!
|
|
460
|
-
disabled:
|
|
461
|
-
onChange: (e) =>
|
|
466
|
+
checked: !!r.configured,
|
|
467
|
+
disabled: R.value,
|
|
468
|
+
onChange: (e) => r.configured = e
|
|
462
469
|
}, null, 8, [
|
|
463
470
|
"checked",
|
|
464
471
|
"disabled",
|
|
465
472
|
"onChange"
|
|
466
|
-
])) : (
|
|
473
|
+
])) : (S(), m(E(t), {
|
|
467
474
|
key: 2,
|
|
468
|
-
value:
|
|
469
|
-
options:
|
|
470
|
-
disabled: !
|
|
475
|
+
value: r.dataScopePolicy,
|
|
476
|
+
options: Le.value,
|
|
477
|
+
disabled: !r.configured || R.value,
|
|
471
478
|
placeholder: "请选择数据范围",
|
|
472
479
|
"allow-clear": !1,
|
|
473
|
-
"onUpdate:value": (e) =>
|
|
480
|
+
"onUpdate:value": (e) => r.dataScopePolicy = String(e || "")
|
|
474
481
|
}, null, 8, [
|
|
475
482
|
"value",
|
|
476
483
|
"options",
|
|
@@ -480,113 +487,113 @@ var Ee = { class: "panel-title" }, De = {
|
|
|
480
487
|
_: 1
|
|
481
488
|
}, 8, ["rows"])]),
|
|
482
489
|
_: 1
|
|
483
|
-
}, 8, ["title"])) : (
|
|
490
|
+
}, 8, ["title"])) : (S(), h("section", Ee, [y(E(c), {
|
|
484
491
|
class: "module-panel",
|
|
485
492
|
title: "模块树",
|
|
486
493
|
"refresh-title": "刷新模块目录",
|
|
487
494
|
searchable: !1,
|
|
488
|
-
onRefresh:
|
|
495
|
+
onRefresh: Q
|
|
489
496
|
}, {
|
|
490
|
-
default:
|
|
491
|
-
records:
|
|
492
|
-
"selected-id":
|
|
493
|
-
onSelect:
|
|
497
|
+
default: D(() => [y(E(ae), {
|
|
498
|
+
records: Ie.value,
|
|
499
|
+
"selected-id": M.value,
|
|
500
|
+
onSelect: i[0] ||= (e) => M.value = e.id
|
|
494
501
|
}, null, 8, ["records", "selected-id"])]),
|
|
495
502
|
_: 1
|
|
496
|
-
}), y(
|
|
503
|
+
}), y(E(c), {
|
|
497
504
|
class: "action-panel",
|
|
498
|
-
title:
|
|
505
|
+
title: Pe.value,
|
|
499
506
|
searchable: !1
|
|
500
507
|
}, _({
|
|
501
|
-
default:
|
|
508
|
+
default: D(() => [L.value ? (S(), m(E(le), {
|
|
502
509
|
key: 0,
|
|
503
510
|
tip: "加载模块动作"
|
|
504
|
-
})) :
|
|
511
|
+
})) : M.value ? (S(), m(E(te), {
|
|
505
512
|
key: 2,
|
|
506
|
-
columns:
|
|
507
|
-
rows:
|
|
513
|
+
columns: Be,
|
|
514
|
+
rows: He.value,
|
|
508
515
|
"row-key": "actionCode",
|
|
509
516
|
"fill-height": "",
|
|
510
517
|
"horizontal-scroll": ""
|
|
511
518
|
}, {
|
|
512
|
-
header:
|
|
513
|
-
checked:
|
|
514
|
-
indeterminate:
|
|
515
|
-
disabled:
|
|
519
|
+
header: D(({ column: e }) => [e.key === "granted" ? (S(), h("span", De, [y(E(ne), {
|
|
520
|
+
checked: Je.value,
|
|
521
|
+
indeterminate: Ye.value,
|
|
522
|
+
disabled: R.value || !N.value.length,
|
|
516
523
|
"aria-label": "全选当前模块动作授权",
|
|
517
|
-
onChange:
|
|
524
|
+
onChange: $e
|
|
518
525
|
}, null, 8, [
|
|
519
526
|
"checked",
|
|
520
527
|
"indeterminate",
|
|
521
528
|
"disabled"
|
|
522
|
-
]),
|
|
523
|
-
cell:
|
|
529
|
+
]), i[5] ||= v(" 授权 ", -1)])) : (S(), h(f, { key: 1 }, [v(T(e.title), 1)], 64))]),
|
|
530
|
+
cell: D(({ column: e, record: n }) => [e.key === "title" ? (S(), h(f, { key: 0 }, [g("strong", null, T(n.title || n.actionCode), 1), g("small", null, T(n.permissionActionCode || n.actionCode), 1)], 64)) : e.key === "granted" ? (S(), m(E(ne), {
|
|
524
531
|
key: 1,
|
|
525
532
|
checked: !!n.granted,
|
|
526
|
-
disabled:
|
|
527
|
-
onChange: (e) =>
|
|
533
|
+
disabled: R.value,
|
|
534
|
+
onChange: (e) => Qe(n, e)
|
|
528
535
|
}, null, 8, [
|
|
529
536
|
"checked",
|
|
530
537
|
"disabled",
|
|
531
538
|
"onChange"
|
|
532
|
-
])) : n.dataAuth &&
|
|
533
|
-
value:
|
|
534
|
-
options:
|
|
535
|
-
disabled:
|
|
539
|
+
])) : n.dataAuth && K.value && n.granted ? (S(), h("div", Oe, [y(E(t), {
|
|
540
|
+
value: it(n),
|
|
541
|
+
options: Le.value,
|
|
542
|
+
disabled: R.value,
|
|
536
543
|
"allow-clear": !1,
|
|
537
|
-
"onUpdate:value": (e) =>
|
|
544
|
+
"onUpdate:value": (e) => et(n, e)
|
|
538
545
|
}, null, 8, [
|
|
539
546
|
"value",
|
|
540
547
|
"options",
|
|
541
548
|
"disabled",
|
|
542
549
|
"onUpdate:value"
|
|
543
|
-
]), n.dataScopePolicy === "referenceDependency" ? (
|
|
544
|
-
value:
|
|
545
|
-
options:
|
|
546
|
-
disabled:
|
|
550
|
+
]), n.dataScopePolicy === "referenceDependency" ? (S(), h(f, { key: 0 }, [y(E(t), {
|
|
551
|
+
value: rt(n.referenceFieldId),
|
|
552
|
+
options: Re.value,
|
|
553
|
+
disabled: R.value,
|
|
547
554
|
placeholder: "请选择引用字段",
|
|
548
555
|
"allow-clear": !1,
|
|
549
|
-
"onUpdate:value": (e) =>
|
|
556
|
+
"onUpdate:value": (e) => tt(n, e)
|
|
550
557
|
}, null, 8, [
|
|
551
558
|
"value",
|
|
552
559
|
"options",
|
|
553
560
|
"disabled",
|
|
554
561
|
"onUpdate:value"
|
|
555
|
-
]), n.referenceFieldId ? (
|
|
562
|
+
]), n.referenceFieldId ? (S(), h("small", ke, " 依赖目标:" + T(nt(n.referenceFieldId)?.targetModuleTitle) + " · " + T(nt(n.referenceFieldId)?.referenceActionTitle), 1)) : (S(), h("small", Ae, "请先选择引用字段,再开启该动作授权。"))], 64)) : pe("v-if", !0)])) : ot(e, n) ? (S(), h("span", je, "—")) : (S(), h("span", Me, "不适用"))]),
|
|
556
563
|
_: 1
|
|
557
|
-
}, 8, ["rows"])) : (
|
|
564
|
+
}, 8, ["rows"])) : (S(), m(E(n), {
|
|
558
565
|
key: 1,
|
|
559
566
|
title: "请选择模块"
|
|
560
567
|
}))]),
|
|
561
568
|
_: 2
|
|
562
|
-
}, [
|
|
569
|
+
}, [X.value ? void 0 : {
|
|
563
570
|
name: "actions",
|
|
564
|
-
fn:
|
|
571
|
+
fn: D(() => [y(E(a), {
|
|
565
572
|
type: "primary",
|
|
566
|
-
disabled: !
|
|
567
|
-
loading:
|
|
568
|
-
onClick:
|
|
573
|
+
disabled: !Z.value,
|
|
574
|
+
loading: R.value,
|
|
575
|
+
onClick: $
|
|
569
576
|
}, {
|
|
570
|
-
default:
|
|
577
|
+
default: D(() => [...i[4] ||= [v(" 确认 ", -1)]]),
|
|
571
578
|
_: 1
|
|
572
579
|
}, 8, ["disabled", "loading"])]),
|
|
573
580
|
key: "0"
|
|
574
581
|
}]), 1032, ["title"])]))], 2)]),
|
|
575
582
|
_: 2
|
|
576
|
-
}, [
|
|
583
|
+
}, [X.value && !W.value ? {
|
|
577
584
|
name: "operation",
|
|
578
|
-
fn:
|
|
585
|
+
fn: D(() => [y(E(a), {
|
|
579
586
|
type: "primary",
|
|
580
|
-
disabled: !
|
|
581
|
-
loading:
|
|
582
|
-
onClick:
|
|
587
|
+
disabled: !Z.value,
|
|
588
|
+
loading: R.value,
|
|
589
|
+
onClick: $
|
|
583
590
|
}, {
|
|
584
|
-
default:
|
|
591
|
+
default: D(() => [...i[1] ||= [v(" 确认 ", -1)]]),
|
|
585
592
|
_: 1
|
|
586
593
|
}, 8, ["disabled", "loading"])]),
|
|
587
594
|
key: "0"
|
|
588
595
|
} : void 0]), 1040));
|
|
589
596
|
}
|
|
590
|
-
}),
|
|
597
|
+
}), k = /* @__PURE__ */ s({ default: () => A }), A = /*#__PURE__*/ r(O, [["__scopeId", "data-v-8b9dc5d9"]]);
|
|
591
598
|
//#endregion
|
|
592
|
-
export {
|
|
599
|
+
export { k as n, xe as r, A as t };
|