@ximatai/muyun-web-app 0.26.24 → 0.26.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BusinessActivityLogView-DQ5_VmLp.js → BusinessActivityLogView-a6oZ2t9t.js} +2 -2
- package/dist/{BusinessLogListDrawer-BnucgqNA.js → BusinessLogListDrawer-DtSXpK6g.js} +170 -166
- package/dist/{CodeConfigurationView-CtQjmpLz.js → CodeConfigurationView-BVu1ZnH-.js} +291 -291
- package/dist/{ConfigurationTranslationView-BiYn2MJx.js → ConfigurationTranslationView-Cd8ezR4t.js} +39 -39
- package/dist/{LoginAuditLogView-BIz1LVC3.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
- package/dist/{ModuleActionManagementView-0_ek9yag.js → ModuleActionManagementView-y3t2YHKF.js} +161 -161
- package/dist/{ModuleGovernanceView-DEDF61vj.js → ModuleGovernanceView-BqJq2Pxm.js} +2501 -2501
- package/dist/{RequestErrorLogView-HatmiK8_.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-BzzoarpR.js → RoleDetailWorkspaceView-G-5VAV_B.js} +79 -79
- package/dist/{RuntimeLogView-Vdt6SWK6.js → RuntimeLogView-CulSgS0l.js} +60 -60
- package/dist/{WorkflowAdministrationView-Dlw2ng0N.js → WorkflowAdministrationView-y8VBYMLZ.js} +154 -154
- package/dist/{WorkflowConfigurationView-j2xnGmkM.js → WorkflowConfigurationView-DpONX2nN.js} +293 -293
- package/dist/{WorkflowWorkbenchView-Nv4mvTTP.js → WorkflowWorkbenchView-CGo1eZjr.js} +235 -235
- package/dist/{codeConfiguration-B_z1qQvB.js → codeConfiguration-fZiz0PNC.js} +26 -26
- package/dist/index.css +1 -1
- package/dist/index.js +2195 -1562
- package/dist/{moduleMenuWorkspace-1N0U7QW9.js → moduleMenuWorkspace-AZ4G9BpZ.js} +233 -233
- package/dist/{platform-components-Xb5qgsXU.js → platform-components-D98pyZ77.js} +3584 -2996
- package/dist/{platform-workbench-VhgKhPLI.js → platform-workbench-BBLDvT9V.js} +5542 -5417
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +4 -1
- package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
- package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
- package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
- package/dist/types/app/themeSkinPreference.d.ts +2 -2
- package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
- package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
- package/dist/types/consumer/index.d.ts +9 -0
- package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
- package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
- package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/cronExpression.d.ts +36 -0
- package/dist/types/platform-components/durationSeconds.d.ts +31 -0
- package/dist/types/platform-components/index.d.ts +6 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
- package/dist/types/platform-workbench/index.d.ts +3 -0
- package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
- package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
- package/dist/types/views/businessLogClient.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +16 -0
- package/dist/types/web-core/clients.d.ts +15 -1
- package/dist/{useWorkflowConfigurationContext-BLFXzHwn.js → useWorkflowConfigurationContext-BcK19EXl.js} +8 -8
- package/dist/{workspaceViews-Cas3PR5B.js → workspaceViews-Dr7RZXvX.js} +620 -620
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./BusinessLogListDrawer-
|
|
1
|
+
import { no as e } from "./platform-components-D98pyZ77.js";
|
|
2
|
+
import { t } from "./BusinessLogListDrawer-DtSXpK6g.js";
|
|
3
3
|
import { createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/views/RequestErrorLogView.vue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as e, y as t } from "./platform-workbench-
|
|
2
|
-
import { $r as n,
|
|
3
|
-
import { a as l, c as Te, i as Ee, l as De, o as Oe, r as ke, s as Ae, t as je } from "./workspaceViews-
|
|
1
|
+
import { d as e, y as t } from "./platform-workbench-BBLDvT9V.js";
|
|
2
|
+
import { $r as n, Bt as r, F as i, Gn as a, In as ee, Ir as te, L as o, Ln as ne, Pn as re, R as ie, S as ae, Sn as oe, St as se, Va as ce, Vt as le, Wn as ue, Wt as de, Y as fe, Yt as pe, at as me, b as he, bn as s, fr as ge, gr as _e, ii as ve, lr as ye, no as be, oo as xe, q as Se, vr as c, w as Ce, x as we } from "./platform-components-D98pyZ77.js";
|
|
3
|
+
import { a as l, c as Te, i as Ee, l as De, o as Oe, r as ke, s as Ae, t as je } from "./workspaceViews-Dr7RZXvX.js";
|
|
4
4
|
import { Fragment as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as Ne, createVNode as h, defineComponent as Pe, normalizeClass as Fe, onBeforeUnmount as Ie, onMounted as Le, openBlock as g, ref as _, toDisplayString as v, unref as y, watch as Re, withCtx as b, withModifiers as ze } from "vue";
|
|
5
5
|
//#region src/platform-components/recordDraftNormalizer.ts
|
|
6
6
|
function Be(e, t) {
|
|
@@ -31,7 +31,7 @@ function Ue(e) {
|
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/views/RoleGroupMemberSelector.vue?vue&type=script&setup=true&lang.ts
|
|
34
|
-
var x = { class: "role-group-member-selector" }, S = { class: "role-group-member-selector-label" }, We = /*#__PURE__*/
|
|
34
|
+
var x = { class: "role-group-member-selector" }, S = { class: "role-group-member-selector-label" }, We = /*#__PURE__*/ c(/* @__PURE__ */ Pe({
|
|
35
35
|
name: "RoleGroupMemberSelector",
|
|
36
36
|
__name: "RoleGroupMemberSelector",
|
|
37
37
|
props: {
|
|
@@ -45,12 +45,12 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["update:value"],
|
|
47
47
|
setup(e, { emit: t }) {
|
|
48
|
-
let n =
|
|
49
|
-
label: `${
|
|
48
|
+
let n = be(), r = e, i = t, a = u(() => ne(r.value)), ee = u(() => new Set(r.candidates.filter((e) => e.roleKind === "dataGrant" && e.id && a.value.includes(e.id)).map((e) => e.id))), te = u(() => r.candidates.filter((e) => e.id && e.id !== r.currentRoleId).map((e) => ({
|
|
49
|
+
label: `${re(e)} / ${ie(e.roleKind)}`,
|
|
50
50
|
value: e.id,
|
|
51
51
|
disabled: e.roleKind === "dataGrant" && ee.value.size > 0 && !a.value.includes(e.id)
|
|
52
52
|
})));
|
|
53
|
-
function
|
|
53
|
+
function o(e) {
|
|
54
54
|
if (!Array.isArray(e)) {
|
|
55
55
|
i("update:value", void 0);
|
|
56
56
|
return;
|
|
@@ -58,23 +58,23 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
58
58
|
let t = e.map((e) => String(e).trim()).filter(Boolean);
|
|
59
59
|
i("update:value", t.length > 0 ? t.join(",") : void 0);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function ne(e) {
|
|
62
62
|
return Array.isArray(e) ? e.map((e) => String(e).trim()).filter(Boolean) : typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : [];
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
return String((e &&
|
|
64
|
+
function re(e) {
|
|
65
|
+
return String((e && ce(e, "title", n)) ?? e?.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ie(e) {
|
|
68
68
|
return e === "dataGrant" ? n.t("platform.screen.RoleManagementView.data-authorization-role", "数据授权角色") : n.t("platform.screen.RoleManagementView.standard-role", "标准角色");
|
|
69
69
|
}
|
|
70
|
-
return (t, r) => (g(), p("label", x, [m("span", S, v(y(n).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), h(y(
|
|
70
|
+
return (t, r) => (g(), p("label", x, [m("span", S, v(y(n).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), h(y(ge), {
|
|
71
71
|
mode: "multiple",
|
|
72
72
|
value: a.value,
|
|
73
73
|
options: te.value,
|
|
74
74
|
placeholder: y(n).t("platform.screen.RoleGroupMemberSelector.select-member-roles", "请选择成员角色"),
|
|
75
75
|
disabled: e.disabled,
|
|
76
76
|
"allow-clear": !0,
|
|
77
|
-
"onUpdate:value":
|
|
77
|
+
"onUpdate:value": o
|
|
78
78
|
}, null, 8, [
|
|
79
79
|
"value",
|
|
80
80
|
"options",
|
|
@@ -88,7 +88,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
88
88
|
}, Ke = { class: "role-form-label" }, qe = {
|
|
89
89
|
key: 1,
|
|
90
90
|
class: "role-detail-state"
|
|
91
|
-
}, Je = { class: "role-form-label" }, Ye = /*#__PURE__*/
|
|
91
|
+
}, Je = { class: "role-form-label" }, Ye = /*#__PURE__*/ c(/* @__PURE__ */ Pe({
|
|
92
92
|
name: "RoleManagementView",
|
|
93
93
|
__name: "RoleManagementView",
|
|
94
94
|
props: {
|
|
@@ -97,7 +97,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
97
97
|
scopeId: {}
|
|
98
98
|
},
|
|
99
99
|
setup(ge) {
|
|
100
|
-
let c =
|
|
100
|
+
let c = be(), l = ge, Ee = e(), ke = n({ moduleAlias: "iam.tenant" }), Pe = n({ moduleAlias: "iam.organization" }), x = n({ moduleAlias: "iam.role" }), S = t(), Ye = _(""), C = _(null), w = _(0), T = _(), E = _(), D = _(), O = _(), k = _(!1), A = _("view"), j = _(!1), M = _(!1), N = _(!1), P = _(), Xe = _(!1), Ze = _(!1), Qe = _(), $e = _(!1), F = _(0), I = _(Z(void 0)), et = _(he(I.value)), L = _(le(void 0)), R = _([]), z = u(() => !!(l.recordId && l.scopeKind)), B = u(() => z.value && Ee?.presentation === "drawer"), tt = u(() => !z.value || B.value), V = _([]), nt = a({
|
|
101
101
|
nodes: () => V.value,
|
|
102
102
|
loader: () => Lt,
|
|
103
103
|
version: () => V.value
|
|
@@ -145,8 +145,8 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
145
145
|
type: "enabledStatus",
|
|
146
146
|
width: "10%"
|
|
147
147
|
}
|
|
148
|
-
]), mt = u(() => !!E.value), ht = u(() => A.value === "create" ? c.t("platform.screen.RoleManagementView.new-role", "新建角色") :
|
|
149
|
-
|
|
148
|
+
]), mt = u(() => !!E.value), ht = u(() => A.value === "create" ? c.t("platform.screen.RoleManagementView.new-role", "新建角色") : $(O.value ?? I.value)), gt = u(() => Qn(E.value) || c.t("platform.unsaved-source.RoleManagementView", "角色详情")), _t = u(() => A.value !== "view" && et.value !== he(I.value));
|
|
149
|
+
te(() => c.t("platform.unsaved-source.RoleManagementView", "角色详情"), () => _t.value, () => N.value);
|
|
150
150
|
let W = u(() => N.value || j.value), vt = u(() => j.value || !E.value ? !1 : A.value === "create" ? x.can("create") === !0 : !!O.value?.id && x.can("update") === !0 && !O.value?.systemManaged), yt = u(() => {
|
|
151
151
|
let e = O.value;
|
|
152
152
|
return !!(e?.id && e.systemManaged !== !0 && x.can(Gn(e)) === !0);
|
|
@@ -197,7 +197,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
197
197
|
...t.kind === "platform" ? {} : { scopeId: t.id }
|
|
198
198
|
};
|
|
199
199
|
}),
|
|
200
|
-
title: u(() =>
|
|
200
|
+
title: u(() => $(O.value)),
|
|
201
201
|
eligibility: u(() => ({
|
|
202
202
|
hasStableIdentity: !!(O.value?.id && E.value) && !j.value,
|
|
203
203
|
busy: N.value
|
|
@@ -307,7 +307,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
307
307
|
function Ot(e) {
|
|
308
308
|
return !_t.value && (wn(e), !0);
|
|
309
309
|
}
|
|
310
|
-
Re(() =>
|
|
310
|
+
Re(() => $(O.value), (e) => {
|
|
311
311
|
z.value && O.value && Ee?.setTitle(e);
|
|
312
312
|
}, { immediate: !0 }), Re(dt, qt, { immediate: !0 }), Re(E, () => {
|
|
313
313
|
z.value || (D.value = void 0, O.value = void 0, I.value = Z(E.value), un(), w.value += 1, At());
|
|
@@ -315,7 +315,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
315
315
|
async function kt() {
|
|
316
316
|
try {
|
|
317
317
|
let e = await x.runtime.ready;
|
|
318
|
-
L.value =
|
|
318
|
+
L.value = le(e.uiDescriptor);
|
|
319
319
|
} catch (e) {
|
|
320
320
|
s(e, {
|
|
321
321
|
language: c,
|
|
@@ -374,14 +374,14 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
374
374
|
}
|
|
375
375
|
function Mt(e, t) {
|
|
376
376
|
if (!t) return e;
|
|
377
|
-
let
|
|
377
|
+
let n = xe(e.http, { "X-MuYun-Page-Selection": JSON.stringify({
|
|
378
378
|
kind: "roleScope",
|
|
379
379
|
key: t.key
|
|
380
380
|
}) });
|
|
381
381
|
return {
|
|
382
382
|
...e,
|
|
383
|
-
http:
|
|
384
|
-
crud: n
|
|
383
|
+
http: n,
|
|
384
|
+
crud: ve(n, { moduleAlias: e.moduleAlias })
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
387
|
function Nt(e, t) {
|
|
@@ -441,7 +441,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
441
441
|
function It(e) {
|
|
442
442
|
return {
|
|
443
443
|
key: Vt(e.id),
|
|
444
|
-
title:
|
|
444
|
+
title: qn(e),
|
|
445
445
|
secondary: e.alias ?? e.id,
|
|
446
446
|
muted: e.enabled === !1,
|
|
447
447
|
isLeaf: !1
|
|
@@ -451,7 +451,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
451
451
|
let n = Wt(e.key), r = n ? H.get(n) : void 0;
|
|
452
452
|
if (!n || !r) throw Error(c.t("platform.screen.RoleManagementView.the-tenant-is-no-longer-available", "租户已失效"));
|
|
453
453
|
try {
|
|
454
|
-
let e =
|
|
454
|
+
let e = Ce(Pe, {
|
|
455
455
|
scopeFieldName: "tenantId",
|
|
456
456
|
scopeValue: n,
|
|
457
457
|
treePath: "/iam.organization/tree"
|
|
@@ -474,7 +474,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
474
474
|
function Rt(e) {
|
|
475
475
|
return {
|
|
476
476
|
key: Ht(e.id),
|
|
477
|
-
title:
|
|
477
|
+
title: qn(e),
|
|
478
478
|
secondary: "租户本级角色",
|
|
479
479
|
isLeaf: !0
|
|
480
480
|
};
|
|
@@ -483,7 +483,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
483
483
|
let n = e.record;
|
|
484
484
|
return n.id && (ot.set(n.id, n), st.set(n.id, t)), {
|
|
485
485
|
key: Ut(n.id),
|
|
486
|
-
title:
|
|
486
|
+
title: Jn(n),
|
|
487
487
|
secondary: n.code ?? n.id,
|
|
488
488
|
muted: n.enabled === !1,
|
|
489
489
|
isLeaf: e.children.length === 0,
|
|
@@ -551,7 +551,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
551
551
|
kind: "tenant",
|
|
552
552
|
id: e.id,
|
|
553
553
|
key: `tenant:${e.id}`,
|
|
554
|
-
title: `${
|
|
554
|
+
title: `${qn(e)} / 租户本级`,
|
|
555
555
|
tenant: e
|
|
556
556
|
});
|
|
557
557
|
}
|
|
@@ -560,7 +560,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
560
560
|
kind: "organization",
|
|
561
561
|
id: e.id,
|
|
562
562
|
key: `organization:${e.id}`,
|
|
563
|
-
title:
|
|
563
|
+
title: Jn(e),
|
|
564
564
|
tenant: t,
|
|
565
565
|
organization: e
|
|
566
566
|
});
|
|
@@ -656,7 +656,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
656
656
|
async function ln() {
|
|
657
657
|
if (await Y()) {
|
|
658
658
|
if (!E.value) {
|
|
659
|
-
|
|
659
|
+
oe(c.t("platform.screen.RoleManagementView.select-the-role-ownership-scope-first", "请先选择角色归属范围"), {
|
|
660
660
|
language: c,
|
|
661
661
|
phase: "validation"
|
|
662
662
|
});
|
|
@@ -676,7 +676,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
676
676
|
let e = await U.value.crud.view(n);
|
|
677
677
|
if (!vn(n, r)) return;
|
|
678
678
|
if (!Cn(e)) {
|
|
679
|
-
M.value = !0,
|
|
679
|
+
M.value = !0, oe(c.t("platform.screen.RoleManagementView.the-role-does-not-belong-to-the-current-ownership-scope", "角色不属于当前归属范围"), {
|
|
680
680
|
language: c,
|
|
681
681
|
source: "role-management",
|
|
682
682
|
phase: "load"
|
|
@@ -737,7 +737,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
737
737
|
}, t);
|
|
738
738
|
}
|
|
739
739
|
async function mn() {
|
|
740
|
-
await
|
|
740
|
+
await we({
|
|
741
741
|
loading: N,
|
|
742
742
|
mode: A.value === "edit" ? "edit" : "create",
|
|
743
743
|
source: "role-management",
|
|
@@ -753,15 +753,15 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
async function hn(e) {
|
|
756
|
-
await
|
|
756
|
+
await ae({
|
|
757
757
|
loading: N,
|
|
758
758
|
source: "role-management",
|
|
759
759
|
record: () => e?.id ? e : void 0,
|
|
760
760
|
canExecute: (e) => x.can("delete") === !0 && e.systemManaged !== !0,
|
|
761
761
|
deniedMessage: c.t("platform.screen.RoleManagementView.you-do-not-have-permission-to-delete-roles", "当前用户无权删除角色"),
|
|
762
|
-
confirm: (e) =>
|
|
762
|
+
confirm: (e) => re({
|
|
763
763
|
title: c.t("platform.screen.RoleManagementView.delete-role", "删除角色"),
|
|
764
|
-
content: c.t("platform.screen.RoleManagementView.delete-role-value", "确认删除角色「{value1}」?", { value1:
|
|
764
|
+
content: c.t("platform.screen.RoleManagementView.delete-role-value", "确认删除角色「{value1}」?", { value1: $(e) }),
|
|
765
765
|
okText: c.t("platform.action.delete", "删除"),
|
|
766
766
|
danger: !0
|
|
767
767
|
}, c),
|
|
@@ -772,7 +772,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
async function gn(e) {
|
|
775
|
-
await
|
|
775
|
+
await ae({
|
|
776
776
|
loading: N,
|
|
777
777
|
source: "role-management",
|
|
778
778
|
record: () => e?.id ? e : void 0,
|
|
@@ -791,7 +791,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
791
791
|
return J() && await _n();
|
|
792
792
|
}
|
|
793
793
|
async function _n() {
|
|
794
|
-
return !_t.value ||
|
|
794
|
+
return !_t.value || re({
|
|
795
795
|
title: c.t("platform.screen.RoleManagementView.discard-unsaved-role-changes", "放弃未保存的角色修改"),
|
|
796
796
|
content: c.t("platform.screen.RoleManagementView.this-role-has-unsaved-changes-that-will-be-lost-when", "当前角色存在未保存的修改,离开后将丢失。是否继续?"),
|
|
797
797
|
okText: c.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
|
|
@@ -850,7 +850,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
850
850
|
E.value = e.scope, O.value = e.selectedRole, D.value = e.selectedRole.id, I.value = e.draft, et.value = e.draftBaseline, A.value = e.mode, k.value = !0, j.value = !1, M.value = !1, F.value += 1;
|
|
851
851
|
}
|
|
852
852
|
function X() {
|
|
853
|
-
et.value =
|
|
853
|
+
et.value = he(I.value);
|
|
854
854
|
}
|
|
855
855
|
function Z(e) {
|
|
856
856
|
return {
|
|
@@ -893,7 +893,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
893
893
|
"ownerScopeType",
|
|
894
894
|
"sharePolicy"
|
|
895
895
|
]) {
|
|
896
|
-
let n =
|
|
896
|
+
let n = r(t, {
|
|
897
897
|
fields: L.value,
|
|
898
898
|
mode: A.value,
|
|
899
899
|
fallback: G.value
|
|
@@ -1016,32 +1016,32 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1016
1016
|
function Kn(e) {
|
|
1017
1017
|
return e?.enabled === !1 ? c.t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : c.t("platform.screen.WorkflowWorkbenchView.disabled", "停用");
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
return String((e &&
|
|
1019
|
+
function $(e) {
|
|
1020
|
+
return String((e && ce(e, "title", c)) ?? e?.id ?? c.t("platform.screen.RoleManagementView.role", "角色"));
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function qn(e) {
|
|
1023
1023
|
return String(e?.title ?? e?.alias ?? e?.id ?? c.t("platform.screen.RoleManagementView.untitled-tenant", "未命名租户"));
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function Jn(e) {
|
|
1026
1026
|
return String(e?.title ?? e?.code ?? e?.id ?? c.t("platform.screen.RoleManagementView.untitled-organization", "未命名机构"));
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1029
|
-
if (e === "ownerScopeType") return
|
|
1030
|
-
if (e === "ownerScopeId") return
|
|
1031
|
-
if (e === "memberRoleIds") return
|
|
1028
|
+
function Yn(e, t) {
|
|
1029
|
+
if (e === "ownerScopeType") return Zn(I.value.ownerScopeType);
|
|
1030
|
+
if (e === "ownerScopeId") return Qn(E.value) || String(t ?? "");
|
|
1031
|
+
if (e === "memberRoleIds") return Xn(t);
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Xn(e) {
|
|
1034
1034
|
let t = tr(e);
|
|
1035
1035
|
return t.length === 0 ? "-" : t.map((e) => {
|
|
1036
1036
|
let t = R.value.find((t) => t.id === e);
|
|
1037
|
-
return t ?
|
|
1037
|
+
return t ? $(t) : e;
|
|
1038
1038
|
}).join(",");
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Zn(e) {
|
|
1041
1041
|
return e === "platform" ? c.t("platform.screen.metadataModelEditSession.platform", "平台") : e === "organization" ? c.t("platform.user-picker.axis.organization", "机构") : c.t("platform.screen.ModulePageHostRuntime.tenant", "租户");
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
return e ? e.kind === "platform" ? c.t("platform.role.scope.platform-roles", "平台角色") : e.kind === "tenant" ? c.t("platform.role.scope.tenant-level", "{title} / 租户本级", { title:
|
|
1043
|
+
function Qn(e) {
|
|
1044
|
+
return e ? e.kind === "platform" ? c.t("platform.role.scope.platform-roles", "平台角色") : e.kind === "tenant" ? c.t("platform.role.scope.tenant-level", "{title} / 租户本级", { title: qn(e.tenant) }) : e.organization ? Jn(e.organization) : c.t("platform.role.scope.organization-id", "机构:{id}", { id: e.id }) : "";
|
|
1045
1045
|
}
|
|
1046
1046
|
function $n(e) {
|
|
1047
1047
|
return e.map((e) => ({
|
|
@@ -1072,7 +1072,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1072
1072
|
ref: C,
|
|
1073
1073
|
class: Fe(["role-management-page", { "role-management-page--task": z.value && !B.value }])
|
|
1074
1074
|
}, [
|
|
1075
|
-
!z.value || B.value ? (g(), d(y(
|
|
1075
|
+
!z.value || B.value ? (g(), d(y(me), {
|
|
1076
1076
|
key: 0,
|
|
1077
1077
|
class: "role-scope-panel",
|
|
1078
1078
|
title: y(c).t("platform.screen.ModulePageHostRuntime.tenant", "租户"),
|
|
@@ -1083,10 +1083,10 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1083
1083
|
onRefresh: Ft,
|
|
1084
1084
|
"onUpdate:searchKeyword": t[2] ||= (e) => Ye.value = e
|
|
1085
1085
|
}, {
|
|
1086
|
-
default: b(() => [at.value ? (g(), d(y(
|
|
1086
|
+
default: b(() => [at.value ? (g(), d(y(ne), {
|
|
1087
1087
|
key: 0,
|
|
1088
1088
|
tip: y(c).t("platform.screen.RoleManagementView.loading-tenants", "加载租户")
|
|
1089
|
-
}, null, 8, ["tip"])) : (g(), d(y(
|
|
1089
|
+
}, null, 8, ["tip"])) : (g(), d(y(ue), {
|
|
1090
1090
|
key: 1,
|
|
1091
1091
|
"expanded-keys": it.value,
|
|
1092
1092
|
"onUpdate:expandedKeys": t[0] ||= (e) => it.value = e,
|
|
@@ -1111,11 +1111,11 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1111
1111
|
"search-placeholder",
|
|
1112
1112
|
"searchable"
|
|
1113
1113
|
])) : f("v-if", !0),
|
|
1114
|
-
!z.value || B.value ? (g(), d(y(
|
|
1114
|
+
!z.value || B.value ? (g(), d(y(fe), {
|
|
1115
1115
|
key: 1,
|
|
1116
1116
|
class: "role-list-panel",
|
|
1117
1117
|
context: ft.value,
|
|
1118
|
-
title: E.value ? y(c).t("platform.screen.RoleManagementView.roles-value", "角色列表 - {value1}", { value1:
|
|
1118
|
+
title: E.value ? y(c).t("platform.screen.RoleManagementView.roles-value", "角色列表 - {value1}", { value1: Qn(E.value) }) : y(c).t("platform.screen.RoleManagementView.role-list", "角色列表"),
|
|
1119
1119
|
columns: pt.value,
|
|
1120
1120
|
"standard-crud-actions": "",
|
|
1121
1121
|
"standard-crud-row-actions": "",
|
|
@@ -1143,7 +1143,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1143
1143
|
"empty-description",
|
|
1144
1144
|
"waiting-description"
|
|
1145
1145
|
])) : f("v-if", !0),
|
|
1146
|
-
tt.value ? (g(), d(y(
|
|
1146
|
+
tt.value ? (g(), d(y(de), {
|
|
1147
1147
|
key: 2,
|
|
1148
1148
|
open: k.value,
|
|
1149
1149
|
title: ht.value,
|
|
@@ -1154,7 +1154,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1154
1154
|
promotion: y(Ct),
|
|
1155
1155
|
onClose: un
|
|
1156
1156
|
}, {
|
|
1157
|
-
status: b(() => [A.value === "view" && O.value ? (g(), d(y(
|
|
1157
|
+
status: b(() => [A.value === "view" && O.value ? (g(), d(y(ie), {
|
|
1158
1158
|
key: 0,
|
|
1159
1159
|
enabled: O.value.enabled !== !1,
|
|
1160
1160
|
disabled: N.value || !yt.value,
|
|
@@ -1166,32 +1166,32 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1166
1166
|
"disabled",
|
|
1167
1167
|
"loading"
|
|
1168
1168
|
])) : f("v-if", !0)]),
|
|
1169
|
-
operation: b(() => [h(y(
|
|
1169
|
+
operation: b(() => [h(y(pe), {
|
|
1170
1170
|
context: ft.value,
|
|
1171
1171
|
actions: xt.value,
|
|
1172
1172
|
onAction: fn
|
|
1173
1173
|
}, null, 8, ["context", "actions"])]),
|
|
1174
|
-
default: b(() => [j.value ? (g(), d(y(
|
|
1174
|
+
default: b(() => [j.value ? (g(), d(y(ne), {
|
|
1175
1175
|
key: 0,
|
|
1176
1176
|
class: "role-detail-state",
|
|
1177
1177
|
tip: y(c).t("platform.screen.RoleManagementView.loading-role-details", "加载角色详情")
|
|
1178
|
-
}, null, 8, ["tip"])) : M.value ? (g(), p("div", Ge, [h(y(
|
|
1178
|
+
}, null, 8, ["tip"])) : M.value ? (g(), p("div", Ge, [h(y(ee), {
|
|
1179
1179
|
title: y(c).t("platform.screen.NavigatorManagementEditor.could-not-load-details", "详情加载失败"),
|
|
1180
1180
|
message: y(c).t("platform.screen.RoleManagementView.failed-to-load-role-details-try-again", "无法加载角色详情,请重试")
|
|
1181
|
-
}, null, 8, ["title", "message"]), h(y(
|
|
1181
|
+
}, null, 8, ["title", "message"]), h(y(_e), {
|
|
1182
1182
|
type: "primary",
|
|
1183
1183
|
"icon-name": "reload",
|
|
1184
1184
|
onClick: pn
|
|
1185
1185
|
}, {
|
|
1186
1186
|
default: b(() => [Ne(v(y(c).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
|
|
1187
1187
|
_: 1
|
|
1188
|
-
})])) : A.value === "view" || A.value === "create" || O.value ? (g(), p(Me, { key: 2 }, [A.value === "view" ? (g(), d(y(
|
|
1188
|
+
})])) : A.value === "view" || A.value === "create" || O.value ? (g(), p(Me, { key: 2 }, [A.value === "view" ? (g(), d(y(se), {
|
|
1189
1189
|
key: 0,
|
|
1190
1190
|
record: I.value,
|
|
1191
1191
|
"field-names": Et.value,
|
|
1192
1192
|
fields: L.value,
|
|
1193
1193
|
fallback: G.value,
|
|
1194
|
-
"display-of":
|
|
1194
|
+
"display-of": Yn
|
|
1195
1195
|
}, null, 8, [
|
|
1196
1196
|
"record",
|
|
1197
1197
|
"field-names",
|
|
@@ -1202,8 +1202,8 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1202
1202
|
class: "role-form",
|
|
1203
1203
|
onSubmit: ze(mn, ["prevent"])
|
|
1204
1204
|
}, [
|
|
1205
|
-
m("label", null, [m("span", Ke, v(y(c).t("platform.screen.RoleManagementView.current-scope", "当前范围")), 1), h(y(
|
|
1206
|
-
value:
|
|
1205
|
+
m("label", null, [m("span", Ke, v(y(c).t("platform.screen.RoleManagementView.current-scope", "当前范围")), 1), h(y(ye), {
|
|
1206
|
+
value: Qn(E.value) || "-",
|
|
1207
1207
|
disabled: ""
|
|
1208
1208
|
}, null, 8, ["value"])]),
|
|
1209
1209
|
h(y(o), {
|
|
@@ -1251,7 +1251,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1251
1251
|
"fallback",
|
|
1252
1252
|
"disabled"
|
|
1253
1253
|
])
|
|
1254
|
-
], 32)), A.value === "create" ? f("v-if", !0) : (g(), d(y(
|
|
1254
|
+
], 32)), A.value === "create" ? f("v-if", !0) : (g(), d(y(i), {
|
|
1255
1255
|
key: 2,
|
|
1256
1256
|
record: I.value,
|
|
1257
1257
|
"show-sort-order": ""
|
|
@@ -1263,12 +1263,12 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1263
1263
|
"subtitle",
|
|
1264
1264
|
"dismissal",
|
|
1265
1265
|
"promotion"
|
|
1266
|
-
])) : (g(), d(y(
|
|
1266
|
+
])) : (g(), d(y(Se), {
|
|
1267
1267
|
key: 3,
|
|
1268
1268
|
title: ht.value,
|
|
1269
1269
|
subtitle: gt.value
|
|
1270
1270
|
}, {
|
|
1271
|
-
status: b(() => [A.value === "view" && O.value ? (g(), d(y(
|
|
1271
|
+
status: b(() => [A.value === "view" && O.value ? (g(), d(y(ie), {
|
|
1272
1272
|
key: 0,
|
|
1273
1273
|
enabled: O.value.enabled !== !1,
|
|
1274
1274
|
disabled: N.value || !yt.value,
|
|
@@ -1280,7 +1280,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1280
1280
|
"disabled",
|
|
1281
1281
|
"loading"
|
|
1282
1282
|
])) : f("v-if", !0)]),
|
|
1283
|
-
operation: b(() => [h(y(
|
|
1283
|
+
operation: b(() => [h(y(pe), {
|
|
1284
1284
|
context: y(x),
|
|
1285
1285
|
actions: St.value,
|
|
1286
1286
|
"record-id": O.value?.id,
|
|
@@ -1290,27 +1290,27 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1290
1290
|
"actions",
|
|
1291
1291
|
"record-id"
|
|
1292
1292
|
])]),
|
|
1293
|
-
default: b(() => [j.value ? (g(), d(y(
|
|
1293
|
+
default: b(() => [j.value ? (g(), d(y(ne), {
|
|
1294
1294
|
key: 0,
|
|
1295
1295
|
class: "role-detail-state",
|
|
1296
1296
|
tip: y(c).t("platform.screen.RoleManagementView.loading-role-details", "加载角色详情")
|
|
1297
|
-
}, null, 8, ["tip"])) : M.value ? (g(), p("div", qe, [h(y(
|
|
1297
|
+
}, null, 8, ["tip"])) : M.value ? (g(), p("div", qe, [h(y(ee), {
|
|
1298
1298
|
title: y(c).t("platform.screen.NavigatorManagementEditor.could-not-load-details", "详情加载失败"),
|
|
1299
1299
|
message: y(c).t("platform.screen.RoleManagementView.failed-to-load-role-details-try-again", "无法加载角色详情,请重试")
|
|
1300
|
-
}, null, 8, ["title", "message"]), h(y(
|
|
1300
|
+
}, null, 8, ["title", "message"]), h(y(_e), {
|
|
1301
1301
|
type: "primary",
|
|
1302
1302
|
"icon-name": "reload",
|
|
1303
1303
|
onClick: pn
|
|
1304
1304
|
}, {
|
|
1305
1305
|
default: b(() => [Ne(v(y(c).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
|
|
1306
1306
|
_: 1
|
|
1307
|
-
})])) : A.value === "view" || O.value ? (g(), p(Me, { key: 2 }, [A.value === "view" ? (g(), d(y(
|
|
1307
|
+
})])) : A.value === "view" || O.value ? (g(), p(Me, { key: 2 }, [A.value === "view" ? (g(), d(y(se), {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
record: I.value,
|
|
1310
1310
|
"field-names": Et.value,
|
|
1311
1311
|
fields: L.value,
|
|
1312
1312
|
fallback: G.value,
|
|
1313
|
-
"display-of":
|
|
1313
|
+
"display-of": Yn
|
|
1314
1314
|
}, null, 8, [
|
|
1315
1315
|
"record",
|
|
1316
1316
|
"field-names",
|
|
@@ -1321,8 +1321,8 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1321
1321
|
class: "role-form",
|
|
1322
1322
|
onSubmit: ze(mn, ["prevent"])
|
|
1323
1323
|
}, [
|
|
1324
|
-
m("label", null, [m("span", Je, v(y(c).t("platform.screen.RoleManagementView.current-scope", "当前范围")), 1), h(y(
|
|
1325
|
-
value:
|
|
1324
|
+
m("label", null, [m("span", Je, v(y(c).t("platform.screen.RoleManagementView.current-scope", "当前范围")), 1), h(y(ye), {
|
|
1325
|
+
value: Qn(E.value) || "-",
|
|
1326
1326
|
disabled: ""
|
|
1327
1327
|
}, null, 8, ["value"])]),
|
|
1328
1328
|
h(y(o), {
|
|
@@ -1370,7 +1370,7 @@ var x = { class: "role-group-member-selector" }, S = { class: "role-group-member
|
|
|
1370
1370
|
"fallback",
|
|
1371
1371
|
"disabled"
|
|
1372
1372
|
])
|
|
1373
|
-
], 32)), h(y(
|
|
1373
|
+
], 32)), h(y(i), {
|
|
1374
1374
|
record: I.value,
|
|
1375
1375
|
"show-sort-order": ""
|
|
1376
1376
|
}, null, 8, ["record"])], 64)) : f("v-if", !0)]),
|