@ximatai/muyun-web-app 0.26.4 → 0.26.6
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-BySbWjCV.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
- package/dist/{EmployeeManagementView-DvmDPxzN.js → EmployeeManagementView-BfGb_ssB.js} +336 -336
- package/dist/MetadataOrchestrationView-BLxigKBh.js +655 -0
- package/dist/{ModuleActionManagementView-DRtYMXOK.js → ModuleActionManagementView-ByJzNkQs.js} +102 -102
- package/dist/{RoleAuthorizationView-CK6Vfdup.js → RoleAuthorizationView-DJSWY3fu.js} +62 -62
- package/dist/{RoleDetailWorkspaceView-BPZcZy-r.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
- package/dist/{RoleManagementView-B7TzzVOm.js → RoleManagementView-D0e9nLwW.js} +295 -295
- package/dist/{SystemUserDetailWorkspaceView-BtEDyU-k.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
- package/dist/{SystemUserManagementView-TKqj92zG.js → SystemUserManagementView-DNKRvmDk.js} +198 -198
- package/dist/{UserDetailWorkspaceView-B6fGrnQ7.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
- package/dist/{UserManagementView-4IJeDSQS.js → UserManagementView-aY2AeeWK.js} +287 -287
- package/dist/index.css +1 -1
- package/dist/index.js +2384 -2410
- package/dist/pageRealtime-Be2xkeKK.js +225 -0
- package/dist/{platform-components-CgMBopmF.js → platform-components-DuAohqJO.js} +2732 -1546
- package/dist/types/app/workbenchRouteSync.d.ts +13 -0
- package/dist/types/consumer/index.d.ts +10 -2
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +126 -0
- package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +51 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +19 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +15 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
- package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +17 -0
- package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
- package/dist/types/platform-components/index.d.ts +14 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
- package/dist/types/platform-components/platformFileSize.d.ts +10 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +6 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +21 -3
- package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +21 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +15 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
- package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +7 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +1 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
- package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/types.d.ts +3 -9
- package/dist/types/web-contracts/index.d.ts +111 -1
- package/dist/types/web-core/clients.d.ts +6 -1
- package/dist/types/web-core/http.d.ts +12 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
- package/dist/{useUserSessionRows-DHsyr2Vy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
- package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
- package/package.json +1 -1
- package/dist/MetadataOrchestrationView-2JxJkFEC.js +0 -655
- package/dist/pageRealtime-CJriNmzP.js +0 -140
- package/dist/workspaceViewSessions-BMbyO9O4.js +0 -1571
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
1
|
+
import { $ as e, C as t, Ct as n, Et as r, F as i, J as a, Nt as ee, O as te, St as o, Tt as s, at as ne, ct as re, f as ie, mt as ae, pt as oe, st as se, tt as ce, vt as le, zn as c } from "./platform-components-DuAohqJO.js";
|
|
2
|
+
import { i as ue, n as l, r as u, s as d, t as f, x as de } from "./workspaceViewSessions-C3GP1UGp.js";
|
|
3
3
|
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as fe, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, defineComponent as x, guardReactiveProps as pe, normalizeClass as me, normalizeProps as he, onBeforeUnmount as ge, onMounted as _e, 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) {
|
|
@@ -116,12 +116,12 @@ var xe = /* @__PURE__ */ x({
|
|
|
116
116
|
},
|
|
117
117
|
emits: ["close"],
|
|
118
118
|
setup(e, { emit: t }) {
|
|
119
|
-
let n = e, r = t,
|
|
120
|
-
return (t, n) => (S(), h(E(
|
|
119
|
+
let n = e, r = t, a = m(() => n.profile === "wide-work" ? "min(600px, 100vw)" : 520);
|
|
120
|
+
return (t, n) => (S(), h(E(i), {
|
|
121
121
|
open: e.open,
|
|
122
122
|
title: e.title,
|
|
123
123
|
subtitle: e.subtitle,
|
|
124
|
-
width:
|
|
124
|
+
width: a.value,
|
|
125
125
|
promotion: e.promotion,
|
|
126
126
|
onClose: n[0] ||= (e) => r("close")
|
|
127
127
|
}, v({
|
|
@@ -143,13 +143,13 @@ var xe = /* @__PURE__ */ x({
|
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/views/roleAuthorizationWorkspaceSession.ts
|
|
145
145
|
function Se(e, t) {
|
|
146
|
-
return d
|
|
146
|
+
return f(d, e, t);
|
|
147
147
|
}
|
|
148
148
|
function Ce(e, t) {
|
|
149
|
-
return
|
|
149
|
+
return l(d, e, t);
|
|
150
150
|
}
|
|
151
151
|
function we(e) {
|
|
152
|
-
return u(
|
|
152
|
+
return u(d, e);
|
|
153
153
|
}
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/views/RoleAuthorizationView.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -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: i }) {
|
|
177
|
+
let c = r, l = i, u = ee({ moduleAlias: "iam.role" }), f = be(u.http), x = c.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", w = de(), O = c.roleId ? { roleId: c.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 = m(() => A.value?.roleKind === "group"), G = m(() => A.value?.roleKind === "dataGrant"), K = m(() => A.value?.assignmentType === "employment"), q = m(() => A.value?.title ?? x ?? "角色"), J = m(() => `授权:${q.value}`), Pe = m(() => Fe.value ? `动作授权 - ${Fe.value.title}` : `动作授权 - ${q.value}`), Fe = m(() => j.value.find((e) => e.moduleAlias === M.value)), Ie = m(() => j.value.map((e) => ({
|
|
178
178
|
id: e.moduleAlias,
|
|
179
179
|
parentId: e.parentId,
|
|
180
180
|
title: e.title,
|
|
@@ -219,17 +219,17 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
219
219
|
title: "数据范围",
|
|
220
220
|
width: 160
|
|
221
221
|
}
|
|
222
|
-
], He = m(() => N.value), Ue = m(() => P.value?.actions ?? []), Y = m(() =>
|
|
222
|
+
], He = m(() => N.value), Ue = m(() => P.value?.actions ?? []), Y = m(() => c.drawer === !0 || !!O && w?.presentation === "drawer"), X = m(() => !!O), We = m(() => Y.value ? xe : X.value ? te : "div"), Ge = m(() => Y.value ? {
|
|
223
223
|
open: !0,
|
|
224
224
|
title: J.value,
|
|
225
|
-
profile:
|
|
225
|
+
profile: d.drawerProfile,
|
|
226
226
|
promotion: Xe.value,
|
|
227
227
|
onClose: ut
|
|
228
228
|
} : X.value ? { title: J.value } : {}), Ke = m(() => {
|
|
229
229
|
let e = P.value;
|
|
230
230
|
return !e || B.value === void 0 ? !1 : JSON.stringify(e.actions) !== B.value;
|
|
231
231
|
}), qe = m(() => U.value >= 0 && [...V.entries()].some(([e, t]) => H.get(e) !== JSON.stringify(t))), Z = m(() => Ke.value || qe.value), Je = m(() => N.value.length > 0 && N.value.every((e) => e.granted)), Ye = m(() => N.value.some((e) => e.granted) && !Je.value), Xe = ue({
|
|
232
|
-
view:
|
|
232
|
+
view: d,
|
|
233
233
|
input: () => O,
|
|
234
234
|
title: J,
|
|
235
235
|
eligibility: () => ({
|
|
@@ -249,7 +249,7 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
249
249
|
}))
|
|
250
250
|
}).then((e) => e === "accepted"),
|
|
251
251
|
onPromoted: dt,
|
|
252
|
-
onPromotionRejected: () =>
|
|
252
|
+
onPromotionRejected: () => ce("目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。", {
|
|
253
253
|
source: "role-authorization",
|
|
254
254
|
phase: "validation"
|
|
255
255
|
})
|
|
@@ -270,13 +270,13 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
270
270
|
try {
|
|
271
271
|
if (A.value = await u.crud.view(x), A.value.roleKind === "group") return;
|
|
272
272
|
if (A.value.roleKind === "dataGrant") {
|
|
273
|
-
let [e, t] = await Promise.all([
|
|
273
|
+
let [e, t] = await Promise.all([f.dataGrantActionMatrix(x), f.dataScopePolicyCatalog(x)]);
|
|
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
|
|
278
|
-
} catch (
|
|
279
|
-
z.value = "授权信息加载失败,请重试。",
|
|
277
|
+
j.value = (await f.authorizationModules(x)).records, M.value = k?.selectedModuleAlias ?? j.value[0]?.moduleAlias;
|
|
278
|
+
} catch (t) {
|
|
279
|
+
z.value = "授权信息加载失败,请重试。", e(t, {
|
|
280
280
|
source: "role-authorization",
|
|
281
281
|
phase: "load"
|
|
282
282
|
});
|
|
@@ -285,14 +285,14 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
async function Ze() {
|
|
288
|
-
let
|
|
289
|
-
if (!(!
|
|
288
|
+
let t = M.value;
|
|
289
|
+
if (!(!t || G.value || W.value)) {
|
|
290
290
|
L.value = !0;
|
|
291
291
|
try {
|
|
292
|
-
let [
|
|
293
|
-
N.value = V.get(
|
|
294
|
-
} catch (
|
|
295
|
-
|
|
292
|
+
let [e, n] = await Promise.all([f.permissionMatrix(x, [t]), f.dataScopePolicyCatalog(x, t)]), r = (e.modules[0]?.actions ?? []).map(st), i = k?.actionDrafts?.find((e) => e.moduleAlias === t)?.actions;
|
|
293
|
+
N.value = V.get(t) ?? i ?? r, V.has(t) || (V.set(t, N.value), H.set(t, k?.actionSnapshots?.find((e) => e.moduleAlias === t)?.snapshot ?? JSON.stringify(r))), U.value += 1, F.value = n;
|
|
294
|
+
} catch (t) {
|
|
295
|
+
e(t, {
|
|
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 a(await f.replaceDataGrantActions(x, P.value.actions.map((e) => ({
|
|
347
347
|
actionCode: e.actionCode,
|
|
348
348
|
dataScopePolicy: e.dataScopePolicy,
|
|
349
349
|
enabled: e.configured
|
|
@@ -352,8 +352,8 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
352
352
|
phase: "action",
|
|
353
353
|
fallbackMessage: "数据权限模板已保存"
|
|
354
354
|
}), B.value = JSON.stringify(P.value.actions);
|
|
355
|
-
} catch (
|
|
356
|
-
|
|
355
|
+
} catch (t) {
|
|
356
|
+
e(t, {
|
|
357
357
|
source: "role-authorization",
|
|
358
358
|
phase: "action"
|
|
359
359
|
});
|
|
@@ -363,11 +363,11 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
async function lt() {
|
|
366
|
-
let
|
|
367
|
-
if (
|
|
366
|
+
let t = [...V.entries()].filter(([e, t]) => H.get(e) !== JSON.stringify(t));
|
|
367
|
+
if (t.length) {
|
|
368
368
|
R.value = !0;
|
|
369
369
|
try {
|
|
370
|
-
await
|
|
370
|
+
await a(await f.replacePermissionMatrix(x, t.flatMap(([e, t]) => t.map((t) => ({
|
|
371
371
|
moduleAlias: e,
|
|
372
372
|
actionCode: t.actionCode,
|
|
373
373
|
granted: !!t.granted,
|
|
@@ -378,9 +378,9 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
378
378
|
source: "role-authorization",
|
|
379
379
|
phase: "action",
|
|
380
380
|
fallbackMessage: "角色授权已保存"
|
|
381
|
-
}),
|
|
382
|
-
} catch (
|
|
383
|
-
|
|
381
|
+
}), t.forEach(([e, t]) => H.set(e, JSON.stringify(t))), U.value += 1;
|
|
382
|
+
} catch (t) {
|
|
383
|
+
e(t, {
|
|
384
384
|
source: "role-authorization",
|
|
385
385
|
phase: "action"
|
|
386
386
|
});
|
|
@@ -411,8 +411,8 @@ 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 (
|
|
415
|
-
|
|
414
|
+
if (c.drawer === !0) {
|
|
415
|
+
l("close");
|
|
416
416
|
return;
|
|
417
417
|
}
|
|
418
418
|
w?.dismiss();
|
|
@@ -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 (e,
|
|
424
|
-
default: D(() => [_("section", { class: me(["role-authorization-page", { "role-authorization-page--drawer": Y.value }]) }, [I.value ? (S(), h(E(
|
|
423
|
+
return (e, r) => (S(), h(ve(We.value), he(pe(Ge.value)), v({
|
|
424
|
+
default: D(() => [_("section", { class: me(["role-authorization-page", { "role-authorization-page--drawer": Y.value }]) }, [I.value ? (S(), h(E(re), {
|
|
425
425
|
key: 0,
|
|
426
426
|
tip: "加载授权信息"
|
|
427
|
-
})) : z.value ? (S(), h(E(
|
|
427
|
+
})) : z.value ? (S(), h(E(se), {
|
|
428
428
|
key: 1,
|
|
429
429
|
title: "授权页加载失败",
|
|
430
430
|
message: z.value
|
|
431
|
-
}, null, 8, ["message"])) : W.value ? (S(), h(E(
|
|
431
|
+
}, null, 8, ["message"])) : W.value ? (S(), h(E(ae), {
|
|
432
432
|
key: 2,
|
|
433
433
|
title: "角色组不独立授权",
|
|
434
434
|
description: "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。"
|
|
435
|
-
})) : G.value && P.value ? (S(), h(E(
|
|
435
|
+
})) : G.value && P.value ? (S(), h(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(() => [_("header", Te, [
|
|
442
|
+
default: D(() => [_("header", Te, [r[3] ||= _("div", null, [_("h3", null, "标准动作的数据范围模板"), _("p", null, "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")], -1), X.value ? fe("v-if", !0) : (S(), h(E(s), {
|
|
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] ||= [y(" 确认 ", -1)]]),
|
|
450
450
|
_: 1
|
|
451
|
-
}, 8, ["disabled", "loading"]))]), b(E(
|
|
451
|
+
}, 8, ["disabled", "loading"]))]), b(E(oe), {
|
|
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(), g(p, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.actionCode), 1)], 64)) : e.key === "configured" ? (S(), h(E(
|
|
457
|
+
cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), g(p, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.actionCode), 1)], 64)) : e.key === "configured" ? (S(), h(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(), h(E(
|
|
466
|
+
])) : (S(), h(E(o), {
|
|
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(), g("section", Ee, [b(E(
|
|
483
|
+
}, 8, ["title"])) : (S(), g("section", Ee, [b(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(() => [b(E(
|
|
490
|
+
default: D(() => [b(E(ie), {
|
|
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
|
-
}), b(E(
|
|
496
|
+
}), b(E(t), {
|
|
497
497
|
class: "action-panel",
|
|
498
498
|
title: Pe.value,
|
|
499
499
|
searchable: !1
|
|
500
500
|
}, v({
|
|
501
|
-
default: D(() => [L.value ? (S(), h(E(
|
|
501
|
+
default: D(() => [L.value ? (S(), h(E(re), {
|
|
502
502
|
key: 0,
|
|
503
503
|
tip: "加载模块动作"
|
|
504
|
-
})) : M.value ? (S(), h(E(
|
|
504
|
+
})) : M.value ? (S(), h(E(oe), {
|
|
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(), g("span", De, [b(E(
|
|
512
|
+
header: D(({ column: e }) => [e.key === "granted" ? (S(), g("span", De, [b(E(n), {
|
|
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(), g(p, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (S(), h(E(
|
|
522
|
+
]), r[5] ||= y(" 授权 ", -1)])) : (S(), g(p, { key: 1 }, [y(T(e.title), 1)], 64))]),
|
|
523
|
+
cell: D(({ column: e, record: t }) => [e.key === "title" ? (S(), g(p, { key: 0 }, [_("strong", null, T(t.title || t.actionCode), 1), _("small", null, T(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (S(), h(E(n), {
|
|
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(), g("div", Oe, [b(E(
|
|
532
|
+
])) : t.dataAuth && K.value && t.granted ? (S(), g("div", Oe, [b(E(o), {
|
|
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(), g(p, { key: 0 }, [b(E(
|
|
543
|
+
]), t.dataScopePolicy === "referenceDependency" ? (S(), g(p, { key: 0 }, [b(E(o), {
|
|
544
544
|
value: rt(t.referenceFieldId),
|
|
545
545
|
options: Re.value,
|
|
546
546
|
disabled: R.value,
|
|
@@ -554,20 +554,20 @@ var Te = { class: "panel-title" }, Ee = {
|
|
|
554
554
|
"onUpdate:value"
|
|
555
555
|
]), t.referenceFieldId ? (S(), g("small", ke, " 依赖目标:" + T(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + T(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (S(), g("small", Ae, "请先选择引用字段,再开启该动作授权。"))], 64)) : fe("v-if", !0)])) : ot(e, t) ? (S(), g("span", je, "—")) : (S(), g("span", Me, "不适用"))]),
|
|
556
556
|
_: 1
|
|
557
|
-
}, 8, ["rows"])) : (S(), h(E(
|
|
557
|
+
}, 8, ["rows"])) : (S(), h(E(ae), {
|
|
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(() => [b(E(
|
|
564
|
+
fn: D(() => [b(E(s), {
|
|
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] ||= [y(" 确认 ", -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(() => [b(E(
|
|
578
|
+
fn: D(() => [b(E(s), {
|
|
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] ||= [y(" 确认 ", -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__ */ c({ default: () => A }), A = /*#__PURE__*/ r(O, [["__scopeId", "data-v-3023b71d"]]);
|
|
591
591
|
//#endregion
|
|
592
592
|
export { k as n, be as r, A as t };
|