@ximatai/muyun-web-app 0.26.3 → 0.26.5
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/{EmployeeDetailWorkspaceView-mtdcsqgF.js → EmployeeDetailWorkspaceView-rm9ujeiQ.js} +1 -1
- package/dist/{EmployeeManagementView-CKKvQZaC.js → EmployeeManagementView-DyYMWQ64.js} +510 -510
- package/dist/{MetadataOrchestrationView-CprWBocy.js → MetadataOrchestrationView-DaPNQML7.js} +175 -175
- package/dist/{ModuleActionManagementView-DNuAQUPE.js → ModuleActionManagementView-BFoPGqzC.js} +197 -197
- package/dist/{RoleAuthorizationView-CQtSAJoJ.js → RoleAuthorizationView-qQvn7M75.js} +56 -56
- package/dist/{RoleDetailWorkspaceView-Dh8DXpyS.js → RoleDetailWorkspaceView-C-vaKeZM.js} +1 -1
- package/dist/{RoleManagementView-BrqaFV7y.js → RoleManagementView-C3nxfub2.js} +490 -490
- package/dist/{SystemUserDetailWorkspaceView-N-kvycAu.js → SystemUserDetailWorkspaceView-FIbfff00.js} +1 -1
- package/dist/{SystemUserManagementView-BVS5moV5.js → SystemUserManagementView-m6vwJDxI.js} +128 -128
- package/dist/{UserDetailWorkspaceView-Iek6xwix.js → UserDetailWorkspaceView-M--ndn6x.js} +1 -1
- package/dist/{UserManagementView-BR_Jz8O-.js → UserManagementView-MSXf4fno.js} +293 -293
- package/dist/index.css +1 -1
- package/dist/index.js +2250 -2250
- package/dist/{pageRealtime-sRtDYlQP.js → pageRealtime-4LXXvVW7.js} +10 -10
- package/dist/{platform-components-bC1gwhic.js → platform-components-_3KlZZf5.js} +1195 -1467
- package/dist/types/app/LoginView.vue.d.ts +2 -2
- package/dist/types/app/appWorkbenchStartup.d.ts +1 -1
- package/dist/types/app/platformMessage.d.ts +1 -1
- package/dist/types/app/query.d.ts +1 -1
- package/dist/types/app/workbenchStartup.d.ts +3 -3
- package/dist/types/consumer/PlatformAdminOutlet.vue.d.ts +1 -1
- package/dist/types/consumer/index.d.ts +1 -2
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/actionReactions.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +1 -1
- package/dist/types/main.d.ts +1 -1
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -1
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -1
- package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +1 -1
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
- package/dist/types/platform-admin-runtime/currentUserContext.d.ts +1 -1
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -2
- package/dist/types/platform-admin-runtime/pageRealtime.d.ts +1 -1
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -1
- package/dist/types/platform-admin-runtime/realtime.d.ts +4 -4
- package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +1 -1
- package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +1 -1
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -1
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -1
- package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +1 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordMetaSection.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +15 -1
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
- package/dist/types/platform-components/actionConfirmation.d.ts +1 -1
- package/dist/types/platform-components/index.d.ts +1 -0
- package/dist/types/platform-components/optionFieldOptions.d.ts +1 -1
- package/dist/types/platform-components/pageLayoutContext.d.ts +1 -1
- package/dist/types/platform-components/platformActionResultReactions.d.ts +1 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +1 -1
- package/dist/types/platform-components/recordActionBarModel.d.ts +2 -2
- package/dist/types/platform-components/recordEditorSessionState.d.ts +1 -1
- package/dist/types/platform-components/recordExplorerItemModel.d.ts +1 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +3 -3
- package/dist/types/platform-components/recycleBinState.d.ts +2 -2
- package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +1 -1
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -1
- package/dist/types/platform-components/softDeletedConflictHandler.d.ts +1 -1
- package/dist/types/platform-components/staticCrudManagementState.d.ts +2 -2
- package/dist/types/platform-components/staticFormActionFlow.d.ts +1 -1
- package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +1 -1
- package/dist/types/platform-components/treeRecordModel.d.ts +1 -1
- package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +1 -1
- package/dist/types/platform-components/userSessionPresentation.d.ts +1 -1
- package/dist/types/platform-workbench/Workbench.vue.d.ts +1 -1
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +1 -1
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +1 -1
- package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +1 -1
- package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +1 -1
- package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +1 -1
- package/dist/types/platform-workbench/menuNavigation.d.ts +1 -1
- package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -1
- package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -1
- package/dist/types/views/EmployeeDetailContent.vue.d.ts +3 -3
- package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +1 -1
- package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +1 -1
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +2 -2
- package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +1 -1
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +2 -2
- package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +1 -1
- package/dist/types/views/RoleManagementView.vue.d.ts +1 -1
- package/dist/types/views/UserDetailContent.vue.d.ts +2 -2
- package/dist/types/views/applicationManagementState.d.ts +3 -3
- package/dist/types/views/departmentManagementState.d.ts +3 -3
- package/dist/types/views/dictionaryManagementState.d.ts +4 -4
- package/dist/types/views/employeeDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/views/fieldSpecManagementState.d.ts +3 -3
- package/dist/types/views/fieldUiControlManagementState.d.ts +3 -3
- package/dist/types/views/menuManagementState.d.ts +7 -7
- package/dist/types/views/metadataOrchestrationState.d.ts +1 -1
- package/dist/types/views/moduleManagementState.d.ts +5 -5
- package/dist/types/views/organizationManagementState.d.ts +4 -4
- package/dist/types/views/positionManagementState.d.ts +4 -4
- package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleGrantClient.d.ts +2 -2
- package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/views/tenantManagementState.d.ts +3 -3
- package/dist/types/views/useEmployeeEmploymentRows.d.ts +2 -2
- package/dist/types/views/useUserSessionRows.d.ts +3 -3
- package/dist/types/views/userDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/dictionaries.d.ts +1 -1
- package/dist/types/vue-ui-antdv/references.d.ts +1 -1
- package/dist/types/vue-ui-antdv/registry.d.ts +1 -1
- package/dist/types/web-core/actionResult.d.ts +1 -2
- package/dist/types/web-core/clients.d.ts +1 -1
- package/dist/types/web-core/dataChanges.d.ts +1 -1
- package/dist/types/web-core/errors.d.ts +1 -1
- package/dist/types/web-core/http.d.ts +1 -1
- package/dist/types/web-core/mock.d.ts +1 -1
- package/dist/types/web-core/module/runtimeContext.d.ts +1 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -1
- package/dist/types/web-core/realtime.d.ts +1 -1
- package/dist/{useUserSessionRows-CLM0ZvAF.js → useUserSessionRows-iAqK_cUy.js} +2 -2
- package/dist/workspaceViewSessions-DW0wbyQ_.js +1448 -0
- package/package.json +1 -1
- package/dist/workspaceViewSessions-WsJU3OS7.js +0 -1578
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as ue, i as de, n as fe, r as l, t as u, u as d } from "./workspaceViewSessions-
|
|
3
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as
|
|
1
|
+
import { $ as e, C as t, E as n, En as r, K as i, M as ee, Q as te, St as ne, V as re, X as ie, dt as a, f as ae, ft as o, ht as s, it as oe, mt as c, q as se, rt as ce, st as le } from "./platform-components-_3KlZZf5.js";
|
|
2
|
+
import { g as ue, i as de, n as fe, r as l, t as u, u as d } from "./workspaceViewSessions-DW0wbyQ_.js";
|
|
3
|
+
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";
|
|
4
4
|
//#region src/views/roleGrantClient.ts
|
|
5
5
|
function be(e) {
|
|
6
6
|
return {
|
|
@@ -104,7 +104,7 @@ function be(e) {
|
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region src/platform-admin-runtime/WorkspaceViewDrawer.vue
|
|
107
|
-
var xe = /* @__PURE__ */
|
|
107
|
+
var xe = /* @__PURE__ */ b({
|
|
108
108
|
name: "WorkspaceViewDrawer",
|
|
109
109
|
__name: "WorkspaceViewDrawer",
|
|
110
110
|
props: {
|
|
@@ -117,14 +117,14 @@ var xe = /* @__PURE__ */ x({
|
|
|
117
117
|
emits: ["close"],
|
|
118
118
|
setup(e, { emit: t }) {
|
|
119
119
|
let n = e, r = t, i = p(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
|
|
120
|
-
return (t, n) => (S(), m(E(
|
|
120
|
+
return (t, n) => (S(), m(E(ee), {
|
|
121
121
|
open: e.open,
|
|
122
122
|
title: e.title,
|
|
123
123
|
subtitle: e.subtitle,
|
|
124
124
|
width: i.value,
|
|
125
125
|
promotion: e.promotion,
|
|
126
126
|
onClose: n[0] ||= (e) => r("close")
|
|
127
|
-
},
|
|
127
|
+
}, _({
|
|
128
128
|
default: D(() => [w(t.$slots, "default")]),
|
|
129
129
|
_: 2
|
|
130
130
|
}, [t.$slots.operation ? {
|
|
@@ -165,7 +165,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
165
165
|
}, ke = { key: 0 }, Ae = { key: 1 }, je = { key: 3 }, Me = {
|
|
166
166
|
key: 4,
|
|
167
167
|
class: "not-applicable"
|
|
168
|
-
}, O = /*@__PURE__*/
|
|
168
|
+
}, O = /*@__PURE__*/ b({
|
|
169
169
|
name: "RoleAuthorizationView",
|
|
170
170
|
__name: "RoleAuthorizationView",
|
|
171
171
|
props: {
|
|
@@ -173,8 +173,8 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
173
173
|
drawer: { type: Boolean }
|
|
174
174
|
},
|
|
175
175
|
emits: ["close"],
|
|
176
|
-
setup(
|
|
177
|
-
let
|
|
176
|
+
setup(r, { emit: ee }) {
|
|
177
|
+
let s = r, fe = ee, l = ne({ moduleAlias: "iam.role" }), u = be(l.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
178
|
id: e.moduleAlias,
|
|
179
179
|
parentId: e.parentId,
|
|
180
180
|
title: e.title,
|
|
@@ -219,7 +219,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
219
219
|
title: "数据范围",
|
|
220
220
|
width: 160
|
|
221
221
|
}
|
|
222
|
-
], He = p(() => N.value), Ue = p(() => P.value?.actions ?? []), Y = p(() =>
|
|
222
|
+
], 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 ? xe : X.value ? n : "div"), Ge = p(() => Y.value ? {
|
|
223
223
|
open: !0,
|
|
224
224
|
title: J.value,
|
|
225
225
|
profile: d.drawerProfile,
|
|
@@ -233,7 +233,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
233
233
|
input: () => O,
|
|
234
234
|
title: J,
|
|
235
235
|
eligibility: () => ({
|
|
236
|
-
hasStableIdentity: !!(
|
|
236
|
+
hasStableIdentity: !!(b && A.value),
|
|
237
237
|
busy: R.value
|
|
238
238
|
}),
|
|
239
239
|
beforePromote: (e) => Se(e, {
|
|
@@ -249,34 +249,34 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
249
249
|
}))
|
|
250
250
|
}).then((e) => e === "accepted"),
|
|
251
251
|
onPromoted: dt,
|
|
252
|
-
onPromotionRejected: () =>
|
|
252
|
+
onPromotionRejected: () => se("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
|
|
253
253
|
source: "role-authorization",
|
|
254
254
|
phase: "validation"
|
|
255
255
|
})
|
|
256
256
|
});
|
|
257
|
-
|
|
257
|
+
x(() => {
|
|
258
258
|
O && !Y.value && (Ne = Ce(O, ft)), Q();
|
|
259
259
|
}), ye(J, (e) => {
|
|
260
260
|
X.value && w?.setTitle(e);
|
|
261
|
-
}, { immediate: !0 }), ye(M, () => void Ze()),
|
|
261
|
+
}, { immediate: !0 }), ye(M, () => void Ze()), x(() => window.addEventListener("beforeunload", mt)), _e(() => {
|
|
262
262
|
Ne?.(), window.removeEventListener("beforeunload", mt);
|
|
263
263
|
});
|
|
264
264
|
async function Q() {
|
|
265
|
-
if (!
|
|
265
|
+
if (!b) {
|
|
266
266
|
z.value = "缺少角色标识,无法打开授权页。";
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
269
|
I.value = !0, z.value = void 0;
|
|
270
270
|
try {
|
|
271
|
-
if (A.value = await l.crud.view(
|
|
271
|
+
if (A.value = await l.crud.view(b), A.value.roleKind === "group") return;
|
|
272
272
|
if (A.value.roleKind === "dataGrant") {
|
|
273
|
-
let [e, t] = await Promise.all([u.dataGrantActionMatrix(
|
|
273
|
+
let [e, t] = await Promise.all([u.dataGrantActionMatrix(b), u.dataScopePolicyCatalog(b)]);
|
|
274
274
|
P.value = k?.dataGrantMatrix ?? e, F.value = t, B.value = JSON.stringify(e.actions);
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
|
-
j.value = (await u.authorizationModules(
|
|
277
|
+
j.value = (await u.authorizationModules(b)).records, M.value = k?.selectedModuleAlias ?? j.value[0]?.moduleAlias;
|
|
278
278
|
} catch (e) {
|
|
279
|
-
z.value = "授权信息加载失败,请重试。",
|
|
279
|
+
z.value = "授权信息加载失败,请重试。", i(e, {
|
|
280
280
|
source: "role-authorization",
|
|
281
281
|
phase: "load"
|
|
282
282
|
});
|
|
@@ -289,10 +289,10 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
289
289
|
if (!(!e || G.value || W.value)) {
|
|
290
290
|
L.value = !0;
|
|
291
291
|
try {
|
|
292
|
-
let [t, n] = await Promise.all([u.permissionMatrix(
|
|
292
|
+
let [t, n] = await Promise.all([u.permissionMatrix(b, [e]), u.dataScopePolicyCatalog(b, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = k?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions;
|
|
293
293
|
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
294
|
} catch (e) {
|
|
295
|
-
|
|
295
|
+
i(e, {
|
|
296
296
|
source: "role-authorization",
|
|
297
297
|
phase: "load"
|
|
298
298
|
});
|
|
@@ -343,7 +343,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
343
343
|
if (P.value) {
|
|
344
344
|
R.value = !0;
|
|
345
345
|
try {
|
|
346
|
-
await
|
|
346
|
+
await re(await u.replaceDataGrantActions(b, P.value.actions.map((e) => ({
|
|
347
347
|
actionCode: e.actionCode,
|
|
348
348
|
dataScopePolicy: e.dataScopePolicy,
|
|
349
349
|
enabled: e.configured
|
|
@@ -353,7 +353,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
353
353
|
fallbackMessage: "数据权限模板已保存"
|
|
354
354
|
}), B.value = JSON.stringify(P.value.actions);
|
|
355
355
|
} catch (e) {
|
|
356
|
-
|
|
356
|
+
i(e, {
|
|
357
357
|
source: "role-authorization",
|
|
358
358
|
phase: "action"
|
|
359
359
|
});
|
|
@@ -367,7 +367,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
367
367
|
if (e.length) {
|
|
368
368
|
R.value = !0;
|
|
369
369
|
try {
|
|
370
|
-
await
|
|
370
|
+
await re(await u.replacePermissionMatrix(b, e.flatMap(([e, t]) => t.map((t) => ({
|
|
371
371
|
moduleAlias: e,
|
|
372
372
|
actionCode: t.actionCode,
|
|
373
373
|
granted: !!t.granted,
|
|
@@ -380,7 +380,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
380
380
|
fallbackMessage: "角色授权已保存"
|
|
381
381
|
}), e.forEach(([e, t]) => H.set(e, JSON.stringify(t))), U.value += 1;
|
|
382
382
|
} catch (e) {
|
|
383
|
-
|
|
383
|
+
i(e, {
|
|
384
384
|
source: "role-authorization",
|
|
385
385
|
phase: "action"
|
|
386
386
|
});
|
|
@@ -397,7 +397,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
397
397
|
await lt();
|
|
398
398
|
}
|
|
399
399
|
async function ut() {
|
|
400
|
-
Z.value && !await
|
|
400
|
+
Z.value && !await ie({
|
|
401
401
|
title: "放弃未确认的授权配置",
|
|
402
402
|
content: "当前修改尚未确认,关闭后将丢失这些修改。",
|
|
403
403
|
okText: "放弃修改",
|
|
@@ -411,7 +411,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
411
411
|
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
412
|
}
|
|
413
413
|
function pt() {
|
|
414
|
-
if (
|
|
414
|
+
if (s.drawer === !0) {
|
|
415
415
|
fe("close");
|
|
416
416
|
return;
|
|
417
417
|
}
|
|
@@ -420,41 +420,41 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
420
420
|
function mt(e) {
|
|
421
421
|
Z.value && (e.preventDefault(), e.returnValue = "");
|
|
422
422
|
}
|
|
423
|
-
return (
|
|
424
|
-
default: D(() => [
|
|
423
|
+
return (n, r) => (S(), m(ve(We.value), ge(me(Ge.value)), _({
|
|
424
|
+
default: D(() => [g("section", { class: he(["role-authorization-page", { "role-authorization-page--drawer": Y.value }]) }, [I.value ? (S(), m(E(e), {
|
|
425
425
|
key: 0,
|
|
426
426
|
tip: "加载授权信息"
|
|
427
|
-
})) : z.value ? (S(), m(E(
|
|
427
|
+
})) : z.value ? (S(), m(E(te), {
|
|
428
428
|
key: 1,
|
|
429
429
|
title: "授权页加载失败",
|
|
430
430
|
message: z.value
|
|
431
|
-
}, null, 8, ["message"])) : W.value ? (S(), m(E(
|
|
431
|
+
}, null, 8, ["message"])) : W.value ? (S(), m(E(oe), {
|
|
432
432
|
key: 2,
|
|
433
433
|
title: "角色组不独立授权",
|
|
434
434
|
description: "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。"
|
|
435
|
-
})) : G.value && P.value ? (S(), m(E(
|
|
435
|
+
})) : G.value && P.value ? (S(), m(E(t), {
|
|
436
436
|
key: 3,
|
|
437
437
|
class: "data-grant-content",
|
|
438
438
|
title: X.value ? "数据权限模板" : `数据权限模板 - ${q.value}`,
|
|
439
439
|
searchable: !1,
|
|
440
440
|
onRefresh: Q
|
|
441
441
|
}, {
|
|
442
|
-
default: D(() => [
|
|
442
|
+
default: D(() => [g("header", Te, [r[3] ||= g("div", null, [g("h3", null, "标准动作的数据范围模板"), g("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), X.value ? pe("v-if", !0) : (S(), m(E(c), {
|
|
443
443
|
key: 0,
|
|
444
444
|
type: "primary",
|
|
445
445
|
disabled: !Z.value,
|
|
446
446
|
loading: R.value,
|
|
447
447
|
onClick: $
|
|
448
448
|
}, {
|
|
449
|
-
default: D(() => [...
|
|
449
|
+
default: D(() => [...r[2] ||= [v(" 确认 ", -1)]]),
|
|
450
450
|
_: 1
|
|
451
|
-
}, 8, ["disabled", "loading"]))]),
|
|
451
|
+
}, 8, ["disabled", "loading"]))]), y(E(ce), {
|
|
452
452
|
columns: Ve,
|
|
453
453
|
rows: Ue.value,
|
|
454
454
|
"row-key": "actionCode",
|
|
455
455
|
"horizontal-scroll": ""
|
|
456
456
|
}, {
|
|
457
|
-
cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(),
|
|
457
|
+
cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), h(f, { key: 0 }, [g("strong", null, T(t.title || t.actionCode), 1), g("small", null, T(t.actionCode), 1)], 64)) : e.key === "configured" ? (S(), m(E(le), {
|
|
458
458
|
key: 1,
|
|
459
459
|
checked: !!t.configured,
|
|
460
460
|
disabled: R.value,
|
|
@@ -463,7 +463,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
463
463
|
"checked",
|
|
464
464
|
"disabled",
|
|
465
465
|
"onChange"
|
|
466
|
-
])) : (S(), m(E(
|
|
466
|
+
])) : (S(), m(E(a), {
|
|
467
467
|
key: 2,
|
|
468
468
|
value: t.dataScopePolicy,
|
|
469
469
|
options: Le.value,
|
|
@@ -480,28 +480,28 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
480
480
|
_: 1
|
|
481
481
|
}, 8, ["rows"])]),
|
|
482
482
|
_: 1
|
|
483
|
-
}, 8, ["title"])) : (S(),
|
|
483
|
+
}, 8, ["title"])) : (S(), h("section", Ee, [y(E(t), {
|
|
484
484
|
class: "module-panel",
|
|
485
485
|
title: "模块树",
|
|
486
486
|
"refresh-title": "刷新模块目录",
|
|
487
487
|
searchable: !1,
|
|
488
488
|
onRefresh: Q
|
|
489
489
|
}, {
|
|
490
|
-
default: D(() => [
|
|
490
|
+
default: D(() => [y(E(ae), {
|
|
491
491
|
records: Ie.value,
|
|
492
492
|
"selected-id": M.value,
|
|
493
|
-
onSelect:
|
|
493
|
+
onSelect: r[0] ||= (e) => M.value = e.id
|
|
494
494
|
}, null, 8, ["records", "selected-id"])]),
|
|
495
495
|
_: 1
|
|
496
|
-
}),
|
|
496
|
+
}), y(E(t), {
|
|
497
497
|
class: "action-panel",
|
|
498
498
|
title: Pe.value,
|
|
499
499
|
searchable: !1
|
|
500
|
-
},
|
|
501
|
-
default: D(() => [L.value ? (S(), m(E(
|
|
500
|
+
}, _({
|
|
501
|
+
default: D(() => [L.value ? (S(), m(E(e), {
|
|
502
502
|
key: 0,
|
|
503
503
|
tip: "加载模块动作"
|
|
504
|
-
})) : M.value ? (S(), m(E(
|
|
504
|
+
})) : M.value ? (S(), m(E(ce), {
|
|
505
505
|
key: 2,
|
|
506
506
|
columns: Be,
|
|
507
507
|
rows: He.value,
|
|
@@ -509,7 +509,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
509
509
|
"fill-height": "",
|
|
510
510
|
"horizontal-scroll": ""
|
|
511
511
|
}, {
|
|
512
|
-
header: D(({ column: e }) => [e.key === "granted" ? (S(),
|
|
512
|
+
header: D(({ column: e }) => [e.key === "granted" ? (S(), h("span", De, [y(E(o), {
|
|
513
513
|
checked: Je.value,
|
|
514
514
|
indeterminate: Ye.value,
|
|
515
515
|
disabled: R.value || !N.value.length,
|
|
@@ -519,8 +519,8 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
519
519
|
"checked",
|
|
520
520
|
"indeterminate",
|
|
521
521
|
"disabled"
|
|
522
|
-
]),
|
|
523
|
-
cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(),
|
|
522
|
+
]), r[5] ||= v(" 授权 ", -1)])) : (S(), h(f, { key: 1 }, [v(T(e.title), 1)], 64))]),
|
|
523
|
+
cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), h(f, { key: 0 }, [g("strong", null, T(t.title || t.actionCode), 1), g("small", null, T(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (S(), m(E(o), {
|
|
524
524
|
key: 1,
|
|
525
525
|
checked: !!t.granted,
|
|
526
526
|
disabled: R.value,
|
|
@@ -529,7 +529,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
529
529
|
"checked",
|
|
530
530
|
"disabled",
|
|
531
531
|
"onChange"
|
|
532
|
-
])) : t.dataAuth && K.value && t.granted ? (S(),
|
|
532
|
+
])) : t.dataAuth && K.value && t.granted ? (S(), h("div", Oe, [y(E(a), {
|
|
533
533
|
value: it(t),
|
|
534
534
|
options: Le.value,
|
|
535
535
|
disabled: R.value,
|
|
@@ -540,7 +540,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
540
540
|
"options",
|
|
541
541
|
"disabled",
|
|
542
542
|
"onUpdate:value"
|
|
543
|
-
]), t.dataScopePolicy === "referenceDependency" ? (S(),
|
|
543
|
+
]), t.dataScopePolicy === "referenceDependency" ? (S(), h(f, { key: 0 }, [y(E(a), {
|
|
544
544
|
value: rt(t.referenceFieldId),
|
|
545
545
|
options: Re.value,
|
|
546
546
|
disabled: R.value,
|
|
@@ -552,22 +552,22 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
552
552
|
"options",
|
|
553
553
|
"disabled",
|
|
554
554
|
"onUpdate:value"
|
|
555
|
-
]), t.referenceFieldId ? (S(),
|
|
555
|
+
]), t.referenceFieldId ? (S(), h("small", ke, " 依赖目标:" + T(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + T(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (S(), h("small", Ae, "请先选择引用字段,再开启该动作授权。"))], 64)) : pe("v-if", !0)])) : ot(e, t) ? (S(), h("span", je, "—")) : (S(), h("span", Me, "不适用"))]),
|
|
556
556
|
_: 1
|
|
557
|
-
}, 8, ["rows"])) : (S(), m(E(
|
|
557
|
+
}, 8, ["rows"])) : (S(), m(E(oe), {
|
|
558
558
|
key: 1,
|
|
559
559
|
title: "请选择模块"
|
|
560
560
|
}))]),
|
|
561
561
|
_: 2
|
|
562
562
|
}, [X.value ? void 0 : {
|
|
563
563
|
name: "actions",
|
|
564
|
-
fn: D(() => [
|
|
564
|
+
fn: D(() => [y(E(c), {
|
|
565
565
|
type: "primary",
|
|
566
566
|
disabled: !Z.value,
|
|
567
567
|
loading: R.value,
|
|
568
568
|
onClick: $
|
|
569
569
|
}, {
|
|
570
|
-
default: D(() => [...
|
|
570
|
+
default: D(() => [...r[4] ||= [v(" 确认 ", -1)]]),
|
|
571
571
|
_: 1
|
|
572
572
|
}, 8, ["disabled", "loading"])]),
|
|
573
573
|
key: "0"
|
|
@@ -575,18 +575,18 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
575
575
|
_: 2
|
|
576
576
|
}, [X.value && !W.value ? {
|
|
577
577
|
name: "operation",
|
|
578
|
-
fn: D(() => [
|
|
578
|
+
fn: D(() => [y(E(c), {
|
|
579
579
|
type: "primary",
|
|
580
580
|
disabled: !Z.value,
|
|
581
581
|
loading: R.value,
|
|
582
582
|
onClick: $
|
|
583
583
|
}, {
|
|
584
|
-
default: D(() => [...
|
|
584
|
+
default: D(() => [...r[1] ||= [v(" 确认 ", -1)]]),
|
|
585
585
|
_: 1
|
|
586
586
|
}, 8, ["disabled", "loading"])]),
|
|
587
587
|
key: "0"
|
|
588
588
|
} : void 0]), 1040));
|
|
589
589
|
}
|
|
590
|
-
}), k = /* @__PURE__ */
|
|
590
|
+
}), k = /* @__PURE__ */ r({ default: () => A }), A = /*#__PURE__*/ s(O, [["__scopeId", "data-v-3023b71d"]]);
|
|
591
591
|
//#endregion
|
|
592
592
|
export { k as n, be as r, A as t };
|