@ximatai/muyun-web-app 0.26.3 → 0.26.4
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-BySbWjCV.js} +1 -1
- package/dist/{EmployeeManagementView-CKKvQZaC.js → EmployeeManagementView-DvmDPxzN.js} +205 -205
- package/dist/{MetadataOrchestrationView-CprWBocy.js → MetadataOrchestrationView-2JxJkFEC.js} +194 -194
- package/dist/{ModuleActionManagementView-DNuAQUPE.js → ModuleActionManagementView-DRtYMXOK.js} +122 -122
- package/dist/{RoleAuthorizationView-CQtSAJoJ.js → RoleAuthorizationView-CK6Vfdup.js} +52 -52
- package/dist/{RoleDetailWorkspaceView-Dh8DXpyS.js → RoleDetailWorkspaceView-BPZcZy-r.js} +1 -1
- package/dist/{RoleManagementView-BrqaFV7y.js → RoleManagementView-B7TzzVOm.js} +204 -204
- package/dist/{SystemUserDetailWorkspaceView-N-kvycAu.js → SystemUserDetailWorkspaceView-BtEDyU-k.js} +1 -1
- package/dist/SystemUserManagementView-TKqj92zG.js +761 -0
- package/dist/{UserDetailWorkspaceView-Iek6xwix.js → UserDetailWorkspaceView-B6fGrnQ7.js} +1 -1
- package/dist/UserManagementView-4IJeDSQS.js +965 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1054 -1054
- package/dist/{pageRealtime-sRtDYlQP.js → pageRealtime-CJriNmzP.js} +12 -12
- package/dist/{platform-components-bC1gwhic.js → platform-components-CgMBopmF.js} +1107 -1377
- 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/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/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 +1 -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 +2 -2
- 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-DHsyr2Vy.js} +2 -2
- package/dist/{workspaceViewSessions-WsJU3OS7.js → workspaceViewSessions-BMbyO9O4.js} +403 -410
- package/package.json +1 -1
- package/dist/SystemUserManagementView-BVS5moV5.js +0 -761
- package/dist/UserManagementView-BR_Jz8O-.js +0 -965
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment as
|
|
1
|
+
import { $t as e, Bt as t, C as n, G as r, Ht as i, It as a, Jt as o, Lt as s, Pt as c, Rt as l, Wt as u, Z as d, en as f, on as p, y as m } from "./platform-components-CgMBopmF.js";
|
|
2
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineAsyncComponent as C, defineComponent as w, inject as T, nextTick as ee, normalizeClass as E, normalizeStyle as D, onMounted as O, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, toDisplayString as F, toValue as I, unref as L, vShow as te, withCtx as R, withDirectives as z, withModifiers as B } from "vue";
|
|
3
3
|
//#region src/dynamic-page-runtime/DynamicModuleHost.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var V = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "dynamic-module-workspace"
|
|
7
|
-
},
|
|
7
|
+
}, ne = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "view-code"
|
|
10
|
-
},
|
|
10
|
+
}, re = ["disabled"], H = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "empty-detail"
|
|
13
13
|
}, ie = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "dynamic-module-unsupported"
|
|
16
|
-
},
|
|
16
|
+
}, U = /*#__PURE__*/ e(/* @__PURE__ */ w({
|
|
17
17
|
name: "DynamicModuleHost",
|
|
18
18
|
__name: "DynamicModuleHost",
|
|
19
19
|
props: { descriptor: {} },
|
|
20
20
|
setup(e) {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
async function
|
|
24
|
-
if (!
|
|
25
|
-
let e = await i.runtime.ready, t =
|
|
26
|
-
l.value = t?.viewCode, u.value =
|
|
21
|
+
let t = e, i = p({ moduleAlias: t.descriptor.target.moduleAlias }), a = j(), o = j(), s = j("view"), l = j(), u = j(d(void 0)), f = j(0), h = j(!1), x = g(() => t.descriptor.title ?? i.runtime.snapshot()?.title ?? i.moduleAlias), C = g(() => s.value === "create" ? `新建${x.value}` : G(o.value ?? a.value) ?? "记录详情"), w = g(() => t.descriptor.target.pageMode ?? "LIST"), T = g(() => w.value === "LIST"), ee = g(() => T.value ? t.descriptor.target.defaultUiConfigId : void 0), E = g(() => `动态${w.value}入口暂未接入运行器`);
|
|
22
|
+
O(D);
|
|
23
|
+
async function D() {
|
|
24
|
+
if (!T.value) return;
|
|
25
|
+
let e = await i.runtime.ready, t = A(e.uiDescriptor?.views ?? []);
|
|
26
|
+
l.value = t?.viewCode, u.value = d(e.uiDescriptor, t?.viewCode);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function A(e) {
|
|
29
29
|
return e.find((e) => e.viewKind === "FORM");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function M(e) {
|
|
32
32
|
if (a.value) {
|
|
33
33
|
a.value = e.find((e) => e.id === a.value?.id) ?? a.value, s.value === "view" && (o.value = a.value);
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
a.value = e[0], o.value = e[0];
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function N(e) {
|
|
39
39
|
a.value = e, o.value = e, s.value = "view";
|
|
40
40
|
}
|
|
41
41
|
function P(e, t) {
|
|
@@ -47,19 +47,19 @@ var G = {
|
|
|
47
47
|
function I() {
|
|
48
48
|
o.value = { enabled: !0 }, s.value = "create";
|
|
49
49
|
}
|
|
50
|
-
async function
|
|
50
|
+
async function te(e) {
|
|
51
51
|
let t = e.id == null ? void 0 : String(e.id);
|
|
52
52
|
t && (o.value = await i.crud.view(t), a.value = o.value, s.value = "edit");
|
|
53
53
|
}
|
|
54
|
-
async function
|
|
54
|
+
async function z() {
|
|
55
55
|
let e = o.value;
|
|
56
|
-
if (!(!e ||
|
|
57
|
-
|
|
56
|
+
if (!(!e || h.value)) {
|
|
57
|
+
h.value = !0;
|
|
58
58
|
try {
|
|
59
59
|
let t = e.id == null ? void 0 : String(e.id), n = s.value === "edit" && t ? await i.crud.update(t, e) : await i.crud.insert(e);
|
|
60
|
-
a.value = n.record, o.value = n.record, s.value = "view",
|
|
60
|
+
a.value = n.record, o.value = n.record, s.value = "view", f.value += 1;
|
|
61
61
|
} finally {
|
|
62
|
-
|
|
62
|
+
h.value = !1;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -67,38 +67,38 @@ var G = {
|
|
|
67
67
|
let t = e.id == null ? void 0 : String(e.id), n = typeof e.version == "number" ? e.version : void 0;
|
|
68
68
|
!t || n === void 0 || await c({
|
|
69
69
|
title: "删除记录",
|
|
70
|
-
content: `确认删除「${
|
|
70
|
+
content: `确认删除「${G(e) ?? t}」?`,
|
|
71
71
|
okText: "删除",
|
|
72
72
|
danger: !0
|
|
73
|
-
}) && (await i.crud.delete(t, { version: n }), a.value?.id === t && (a.value = void 0, o.value = void 0),
|
|
73
|
+
}) && (await i.crud.delete(t, { version: n }), a.value?.id === t && (a.value = void 0, o.value = void 0), f.value += 1);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function U(e) {
|
|
76
76
|
e.key === "create" && I();
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
e.key === "edit" &&
|
|
78
|
+
function W(e, t) {
|
|
79
|
+
e.key === "edit" && te(t), e.key === "delete" && B(t);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function G(e) {
|
|
82
82
|
let t = e?.title ?? e?.name ?? e?.code ?? e?.id;
|
|
83
83
|
return t == null ? void 0 : String(t);
|
|
84
84
|
}
|
|
85
|
-
return (
|
|
85
|
+
return (t, c) => T.value ? (k(), y("section", V, [S(L(m), {
|
|
86
86
|
class: "dynamic-list",
|
|
87
|
-
context:
|
|
88
|
-
title:
|
|
87
|
+
context: L(i),
|
|
88
|
+
title: x.value,
|
|
89
89
|
"selected-key": a.value?.id,
|
|
90
|
-
"reload-key":
|
|
90
|
+
"reload-key": f.value,
|
|
91
91
|
"standard-crud-actions": !0,
|
|
92
92
|
"standard-crud-row-actions": !0,
|
|
93
|
-
"ui-config-id":
|
|
93
|
+
"ui-config-id": ee.value,
|
|
94
94
|
"query-template-id": e.descriptor.target.defaultQueryTemplateId,
|
|
95
95
|
"quick-search-placeholder": "搜索动态记录",
|
|
96
96
|
"empty-description": "暂无动态记录",
|
|
97
|
-
onLoaded:
|
|
98
|
-
onSelect:
|
|
99
|
-
onRowDblclick:
|
|
100
|
-
onAction:
|
|
101
|
-
onRowAction:
|
|
97
|
+
onLoaded: M,
|
|
98
|
+
onSelect: N,
|
|
99
|
+
onRowDblclick: N,
|
|
100
|
+
onAction: U,
|
|
101
|
+
onRowAction: W
|
|
102
102
|
}, null, 8, [
|
|
103
103
|
"context",
|
|
104
104
|
"title",
|
|
@@ -106,30 +106,30 @@ var G = {
|
|
|
106
106
|
"reload-key",
|
|
107
107
|
"ui-config-id",
|
|
108
108
|
"query-template-id"
|
|
109
|
-
]),
|
|
109
|
+
]), S(L(r), {
|
|
110
110
|
class: "dynamic-detail",
|
|
111
|
-
title:
|
|
111
|
+
title: C.value
|
|
112
112
|
}, {
|
|
113
|
-
actions:
|
|
114
|
-
l.value ? (
|
|
115
|
-
a.value && s.value === "view" ? (
|
|
113
|
+
actions: R(() => [
|
|
114
|
+
l.value ? (k(), y("span", ne, F(l.value), 1)) : v("v-if", !0),
|
|
115
|
+
a.value && s.value === "view" ? (k(), y("button", {
|
|
116
116
|
key: 1,
|
|
117
117
|
type: "button",
|
|
118
|
-
onClick: c[0] ||= (e) =>
|
|
119
|
-
}, " 编辑 ")) :
|
|
120
|
-
s.value === "view" ?
|
|
118
|
+
onClick: c[0] ||= (e) => te(a.value)
|
|
119
|
+
}, " 编辑 ")) : v("v-if", !0),
|
|
120
|
+
s.value === "view" ? v("v-if", !0) : (k(), y("button", {
|
|
121
121
|
key: 2,
|
|
122
122
|
type: "button",
|
|
123
|
-
disabled:
|
|
124
|
-
onClick:
|
|
125
|
-
},
|
|
123
|
+
disabled: h.value,
|
|
124
|
+
onClick: z
|
|
125
|
+
}, F(h.value ? "保存中" : "保存"), 9, re))
|
|
126
126
|
]),
|
|
127
|
-
default:
|
|
127
|
+
default: R(() => [o.value ? (k(), _(L(n), {
|
|
128
128
|
key: 0,
|
|
129
129
|
class: "dynamic-form",
|
|
130
130
|
record: o.value,
|
|
131
131
|
fields: u.value,
|
|
132
|
-
"option-context":
|
|
132
|
+
"option-context": L(i),
|
|
133
133
|
disabled: s.value === "view",
|
|
134
134
|
"onUpdate:field": P
|
|
135
135
|
}, null, 8, [
|
|
@@ -137,22 +137,22 @@ var G = {
|
|
|
137
137
|
"fields",
|
|
138
138
|
"option-context",
|
|
139
139
|
"disabled"
|
|
140
|
-
])) : (
|
|
140
|
+
])) : (k(), y("p", H, "请选择一条动态记录"))]),
|
|
141
141
|
_: 1
|
|
142
|
-
}, 8, ["title"])])) : (
|
|
142
|
+
}, 8, ["title"])])) : (k(), y("section", ie, [b("h2", null, F(x.value), 1), b("p", null, F(E.value), 1)]));
|
|
143
143
|
}
|
|
144
|
-
}), [["__scopeId", "data-v-
|
|
144
|
+
}), [["__scopeId", "data-v-9eef6d2d"]]);
|
|
145
145
|
//#endregion
|
|
146
146
|
//#region src/dynamic-page-runtime/actionReactions.ts
|
|
147
|
-
function
|
|
148
|
-
let n =
|
|
149
|
-
return n === "none" ? [] : n === "record" ? [K(t)] : n === "list" ? [
|
|
147
|
+
function W(e, t) {
|
|
148
|
+
let n = G(e);
|
|
149
|
+
return n === "none" ? [] : n === "record" ? [K(t)] : n === "list" ? [ae(t)] : [ae(t), K(t)];
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function G(e) {
|
|
152
152
|
let t = e.refresh;
|
|
153
153
|
return t === "record" || t === "list" || t === "all" ? t : "none";
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ae(e) {
|
|
156
156
|
return {
|
|
157
157
|
type: "refresh-list",
|
|
158
158
|
payload: { moduleAlias: e.moduleAlias }
|
|
@@ -169,46 +169,39 @@ function K(e) {
|
|
|
169
169
|
}
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region src/dynamic-page-runtime/DynamicModulePage.vue?vue&type=script&setup=true&lang.ts
|
|
172
|
-
var
|
|
172
|
+
var oe = { class: "runtime-page" }, se = { class: "section-header" }, ce = { class: "runtime-actions" }, le = ["onClick"], ue = { class: "runtime-grid" }, de = { class: "panel" }, fe = { class: "panel" }, pe = { class: "panel" }, me = /* @__PURE__ */ w({
|
|
173
173
|
name: "DynamicModulePage",
|
|
174
174
|
__name: "DynamicModulePage",
|
|
175
175
|
props: { descriptor: {} },
|
|
176
176
|
setup(e) {
|
|
177
|
-
let t = e,
|
|
177
|
+
let t = e, n = j({ ...t.descriptor.initialRecord }), r = j("none"), i = g(() => ({
|
|
178
178
|
moduleAlias: t.descriptor.moduleAlias,
|
|
179
|
-
values:
|
|
179
|
+
values: n.value,
|
|
180
180
|
children: {},
|
|
181
181
|
originContext: { source: "dynamic-runtime-skeleton" }
|
|
182
182
|
}));
|
|
183
|
-
function
|
|
184
|
-
let
|
|
183
|
+
function a(e) {
|
|
184
|
+
let i = W(e, {
|
|
185
185
|
moduleAlias: t.descriptor.moduleAlias,
|
|
186
|
-
recordId: typeof
|
|
186
|
+
recordId: typeof n.value.id == "string" ? n.value.id : void 0
|
|
187
187
|
});
|
|
188
|
-
|
|
188
|
+
r.value = `${e.actionCode}:${i.map((e) => e.type).join(",") || "none"}`;
|
|
189
189
|
}
|
|
190
|
-
return (t,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
contract: e.descriptor.list,
|
|
202
|
-
rows: e.descriptor.records
|
|
203
|
-
}, null, 8, ["contract", "rows"])])]),
|
|
204
|
-
C("article", me, [
|
|
205
|
-
c[4] ||= C("h3", null, "运行态输出", -1),
|
|
206
|
-
C("p", null, [c[3] ||= w(" last action: ", -1), C("code", null, z(i.value), 1)]),
|
|
207
|
-
C("pre", null, z(JSON.stringify(a.value, null, 2)), 1)
|
|
190
|
+
return (t, o) => (k(), y("section", oe, [
|
|
191
|
+
b("header", se, [b("div", null, [b("h2", null, F(e.descriptor.title), 1), b("p", null, F(e.descriptor.moduleAlias), 1)]), b("div", ce, [(k(!0), y(h, null, M(e.descriptor.actions, (e) => (k(), y("button", {
|
|
192
|
+
key: e.actionCode,
|
|
193
|
+
type: "button",
|
|
194
|
+
onClick: (t) => a(e)
|
|
195
|
+
}, F(e.title), 9, le))), 128))])]),
|
|
196
|
+
b("div", ue, [b("article", de, [o[0] ||= b("h3", null, "动态表单", -1), b("dl", null, [(k(!0), y(h, null, M(e.descriptor.form.fields, (e) => (k(), y(h, { key: e.name }, [b("dt", null, F(e.label), 1), b("dd", null, F(n.value[e.name] ?? "—"), 1)], 64))), 128))])]), b("article", fe, [o[1] ||= b("h3", null, "动态列表", -1), b("table", null, [b("thead", null, [b("tr", null, [(k(!0), y(h, null, M(e.descriptor.list.columns, (e) => (k(), y("th", { key: e.key }, F(e.title), 1))), 128))])]), b("tbody", null, [(k(!0), y(h, null, M(e.descriptor.records, (t) => (k(), y("tr", { key: String(t.id) }, [(k(!0), y(h, null, M(e.descriptor.list.columns, (e) => (k(), y("td", { key: e.key }, F(t[e.key] ?? "—"), 1))), 128))]))), 128))])])])]),
|
|
197
|
+
b("article", pe, [
|
|
198
|
+
o[3] ||= b("h3", null, "运行态输出", -1),
|
|
199
|
+
b("p", null, [o[2] ||= x(" last action: ", -1), b("code", null, F(r.value), 1)]),
|
|
200
|
+
b("pre", null, F(JSON.stringify(i.value, null, 2)), 1)
|
|
208
201
|
])
|
|
209
202
|
]));
|
|
210
203
|
}
|
|
211
|
-
}),
|
|
204
|
+
}), he = {
|
|
212
205
|
moduleAlias: "crm.customer",
|
|
213
206
|
title: "客户档案",
|
|
214
207
|
form: { fields: [
|
|
@@ -318,10 +311,10 @@ var le = { class: "runtime-page" }, ue = { class: "section-header" }, de = { cla
|
|
|
318
311
|
industry: "manufacturing",
|
|
319
312
|
level: "key"
|
|
320
313
|
}]
|
|
321
|
-
},
|
|
314
|
+
}, ge = ["disabled"], _e = { key: 0 }, ve = {
|
|
322
315
|
key: 0,
|
|
323
316
|
class: "deep-children"
|
|
324
|
-
},
|
|
317
|
+
}, ye = /*#__PURE__*/ e(/* @__PURE__ */ w({
|
|
325
318
|
name: "WorkbenchMenuTree",
|
|
326
319
|
__name: "WorkbenchMenuTree",
|
|
327
320
|
props: {
|
|
@@ -330,7 +323,7 @@ var le = { class: "runtime-page" }, ue = { class: "section-header" }, de = { cla
|
|
|
330
323
|
},
|
|
331
324
|
emits: ["selectMenu"],
|
|
332
325
|
setup(e, { emit: t }) {
|
|
333
|
-
let n = e, r = t, i =
|
|
326
|
+
let n = e, r = t, i = g(() => n.level ?? 0);
|
|
334
327
|
function a() {
|
|
335
328
|
n.node.target && r("selectMenu", n.node.record, n.node.target);
|
|
336
329
|
}
|
|
@@ -338,32 +331,32 @@ var le = { class: "runtime-page" }, ue = { class: "section-header" }, de = { cla
|
|
|
338
331
|
r("selectMenu", e, t);
|
|
339
332
|
}
|
|
340
333
|
return (t, n) => {
|
|
341
|
-
let r =
|
|
342
|
-
return
|
|
334
|
+
let r = P("WorkbenchMenuTree", !0);
|
|
335
|
+
return k(), y("li", {
|
|
343
336
|
class: "deep-node",
|
|
344
|
-
style:
|
|
345
|
-
}, [
|
|
346
|
-
class:
|
|
337
|
+
style: D({ "--depth": i.value })
|
|
338
|
+
}, [b("button", {
|
|
339
|
+
class: E(["deep-node-button", {
|
|
347
340
|
navigable: e.node.navigable,
|
|
348
341
|
branch: e.node.hasChildren
|
|
349
342
|
}]),
|
|
350
343
|
type: "button",
|
|
351
344
|
disabled: !e.node.navigable && !e.node.hasChildren,
|
|
352
345
|
onClick: a
|
|
353
|
-
}, [
|
|
346
|
+
}, [b("span", null, F(e.node.record.title), 1), e.node.navigable ? (k(), y("small", _e, "打开")) : v("v-if", !0)], 10, ge), e.node.hasChildren ? (k(), y("ul", ve, [(k(!0), y(h, null, M(e.node.children, (e) => (k(), _(r, {
|
|
354
347
|
key: e.record.id,
|
|
355
348
|
node: e,
|
|
356
349
|
level: i.value + 1,
|
|
357
350
|
onSelectMenu: o
|
|
358
|
-
}, null, 8, ["node", "level"]))), 128))])) :
|
|
351
|
+
}, null, 8, ["node", "level"]))), 128))])) : v("v-if", !0)], 4);
|
|
359
352
|
};
|
|
360
353
|
}
|
|
361
|
-
}), [["__scopeId", "data-v-e4338872"]]),
|
|
354
|
+
}), [["__scopeId", "data-v-e4338872"]]), be = [], q = "_muyunMenuId", J = "_muyunTitle", Y = "_muyunEntryParams", xe = [
|
|
362
355
|
"entryParamsJson",
|
|
363
356
|
"menuId",
|
|
364
357
|
"title"
|
|
365
358
|
];
|
|
366
|
-
function
|
|
359
|
+
function Se(e) {
|
|
367
360
|
if (e.enabled !== !1 && !(!e.openMode || !e.moduleAlias)) return e.externalUrl ? {
|
|
368
361
|
menuId: e.id,
|
|
369
362
|
menuType: "link",
|
|
@@ -389,13 +382,13 @@ function Ce(e) {
|
|
|
389
382
|
entryParamsJson: e.entryParamsJson
|
|
390
383
|
};
|
|
391
384
|
}
|
|
392
|
-
function
|
|
385
|
+
function Ce(e) {
|
|
393
386
|
return e.openMode === "tab";
|
|
394
387
|
}
|
|
395
|
-
function
|
|
388
|
+
function we(e) {
|
|
396
389
|
return e.openMode === "window";
|
|
397
390
|
}
|
|
398
|
-
function
|
|
391
|
+
function Te(e, t = {}) {
|
|
399
392
|
if (e.menuType === "module") {
|
|
400
393
|
let n = t.businessModuleRoutes?.[e.moduleAlias];
|
|
401
394
|
return n ? {
|
|
@@ -403,7 +396,7 @@ function Ee(e, t = {}) {
|
|
|
403
396
|
openMode: "workbench-route",
|
|
404
397
|
hostType: "business-route-host",
|
|
405
398
|
title: t.title,
|
|
406
|
-
layout:
|
|
399
|
+
layout: X({ route: n }, t),
|
|
407
400
|
menuId: e.menuId,
|
|
408
401
|
target: {
|
|
409
402
|
route: n,
|
|
@@ -437,7 +430,7 @@ function Ee(e, t = {}) {
|
|
|
437
430
|
};
|
|
438
431
|
}
|
|
439
432
|
if (e.menuType === "route") {
|
|
440
|
-
let n =
|
|
433
|
+
let n = Me(e.route, e.query, e.moduleAlias), r = Ne(n, t) ? "business-route" : "platform-route", i = {
|
|
441
434
|
openMode: "workbench-route",
|
|
442
435
|
title: t.title,
|
|
443
436
|
menuId: e.menuId,
|
|
@@ -454,7 +447,7 @@ function Ee(e, t = {}) {
|
|
|
454
447
|
...i,
|
|
455
448
|
pageType: r,
|
|
456
449
|
hostType: "business-route-host",
|
|
457
|
-
layout:
|
|
450
|
+
layout: X(n, t)
|
|
458
451
|
} : {
|
|
459
452
|
...i,
|
|
460
453
|
pageType: r,
|
|
@@ -493,14 +486,14 @@ function Ee(e, t = {}) {
|
|
|
493
486
|
}
|
|
494
487
|
};
|
|
495
488
|
}
|
|
496
|
-
function
|
|
497
|
-
if (!
|
|
498
|
-
let r =
|
|
489
|
+
function Ee(e, t, n = {}) {
|
|
490
|
+
if (!Ce(t)) throw Error(`WINDOW menu target cannot be opened as a workbench tab: ${t.menuId}`);
|
|
491
|
+
let r = Te(t, {
|
|
499
492
|
...n,
|
|
500
493
|
title: n.title ?? e.title
|
|
501
494
|
});
|
|
502
495
|
return {
|
|
503
|
-
key:
|
|
496
|
+
key: Oe(r),
|
|
504
497
|
title: e.title,
|
|
505
498
|
target: t,
|
|
506
499
|
pageDescriptor: r,
|
|
@@ -508,24 +501,24 @@ function De(e, t, n = {}) {
|
|
|
508
501
|
closable: !0
|
|
509
502
|
};
|
|
510
503
|
}
|
|
511
|
-
function
|
|
504
|
+
function De(e) {
|
|
512
505
|
for (let t of e) {
|
|
513
|
-
let e =
|
|
514
|
-
if (e &&
|
|
515
|
-
let n =
|
|
506
|
+
let e = Se(t.record);
|
|
507
|
+
if (e && Ce(e)) return t.record;
|
|
508
|
+
let n = De(t.children);
|
|
516
509
|
if (n) return n;
|
|
517
510
|
}
|
|
518
511
|
}
|
|
519
|
-
function
|
|
520
|
-
return e.tabPolicy.identity === "by-menu" && e.menuId ? `menu:${e.menuId}` : e.tabPolicy.identity === "by-params" && e.params ? `${e.menuId ? `menu:${e.menuId}` : `${e.pageType}:${
|
|
512
|
+
function Oe(e) {
|
|
513
|
+
return e.tabPolicy.identity === "by-menu" && e.menuId ? `menu:${e.menuId}` : e.tabPolicy.identity === "by-params" && e.params ? `${e.menuId ? `menu:${e.menuId}` : `${e.pageType}:${Fe(e)}`}:${Le(e.params)}` : `${e.pageType}:${Fe(e)}`;
|
|
521
514
|
}
|
|
522
|
-
function
|
|
523
|
-
if (e.pageType === "platform-route" || e.pageType === "business-route") return e.target.route ?
|
|
515
|
+
function ke(e) {
|
|
516
|
+
if (e.pageType === "platform-route" || e.pageType === "business-route") return e.target.route ? Ie(e.target.route, {
|
|
524
517
|
...e.target.query ?? e.params,
|
|
525
518
|
[Y]: e.entryParamsJson,
|
|
526
519
|
[q]: e.menuId,
|
|
527
520
|
[J]: e.title
|
|
528
|
-
}) :
|
|
521
|
+
}) : Ie("/platform/workspace", {
|
|
529
522
|
...e.target.query ?? e.params ?? {},
|
|
530
523
|
pageType: e.pageType,
|
|
531
524
|
routeName: e.target.routeName,
|
|
@@ -535,7 +528,7 @@ function Ae(e) {
|
|
|
535
528
|
});
|
|
536
529
|
if (e.pageType === "dynamic-module") {
|
|
537
530
|
let t = e.target.pageMode?.toLowerCase() ?? "list";
|
|
538
|
-
return
|
|
531
|
+
return Ie(`/platform/dynamic/${e.target.moduleAlias}/${t}`, {
|
|
539
532
|
...e.params,
|
|
540
533
|
[Y]: e.entryParamsJson,
|
|
541
534
|
uiConfigId: e.target.defaultUiConfigId,
|
|
@@ -544,41 +537,41 @@ function Ae(e) {
|
|
|
544
537
|
[J]: e.title
|
|
545
538
|
});
|
|
546
539
|
}
|
|
547
|
-
return e.pageType === "remote-url" || e.pageType === "external-link" ?
|
|
540
|
+
return e.pageType === "remote-url" || e.pageType === "external-link" ? Ie("/platform/external", {
|
|
548
541
|
url: e.target.url,
|
|
549
542
|
mode: e.openMode,
|
|
550
543
|
[q]: e.menuId,
|
|
551
544
|
[J]: e.title
|
|
552
|
-
}) :
|
|
545
|
+
}) : Ke(e);
|
|
553
546
|
}
|
|
554
|
-
function
|
|
555
|
-
let n =
|
|
547
|
+
function Ae(e, t = {}) {
|
|
548
|
+
let n = Ve(e), r = n.pathname, i = Ue(n.searchParams);
|
|
556
549
|
if (r === "/platform/dynamic") throw Error(`Invalid dynamic module URL: ${e}`);
|
|
557
550
|
if (r.startsWith("/platform/dynamic/")) {
|
|
558
551
|
let [, , , n, a] = r.split("/");
|
|
559
552
|
if (!n) throw Error(`Invalid dynamic module URL: ${e}`);
|
|
560
|
-
let o =
|
|
561
|
-
...
|
|
553
|
+
let o = He(i, [
|
|
554
|
+
...xe,
|
|
562
555
|
Y,
|
|
563
556
|
q,
|
|
564
557
|
J,
|
|
565
558
|
"queryTemplateId",
|
|
566
559
|
"uiConfigId"
|
|
567
|
-
]), s =
|
|
560
|
+
]), s = Q(i, q, "menuId");
|
|
568
561
|
return {
|
|
569
562
|
pageType: "dynamic-module",
|
|
570
563
|
openMode: "dynamic-runner",
|
|
571
564
|
hostType: "dynamic-module-host",
|
|
572
|
-
title:
|
|
565
|
+
title: Q(i, J, "title") ?? t.title,
|
|
573
566
|
menuId: s,
|
|
574
567
|
target: {
|
|
575
568
|
moduleAlias: decodeURIComponent(n ?? ""),
|
|
576
|
-
pageMode:
|
|
577
|
-
defaultUiConfigId:
|
|
578
|
-
defaultQueryTemplateId:
|
|
569
|
+
pageMode: Ge(a),
|
|
570
|
+
defaultUiConfigId: Z(i.uiConfigId),
|
|
571
|
+
defaultQueryTemplateId: Z(i.queryTemplateId)
|
|
579
572
|
},
|
|
580
573
|
params: o,
|
|
581
|
-
entryParamsJson:
|
|
574
|
+
entryParamsJson: Q(i, Y, "entryParamsJson"),
|
|
582
575
|
tabPolicy: s ? {
|
|
583
576
|
identity: "by-menu",
|
|
584
577
|
closable: !0,
|
|
@@ -591,9 +584,9 @@ function je(e, t = {}) {
|
|
|
591
584
|
};
|
|
592
585
|
}
|
|
593
586
|
if (r === "/platform/external") {
|
|
594
|
-
let n =
|
|
587
|
+
let n = Z(i.url) ?? "";
|
|
595
588
|
if (!n) throw Error(`Invalid external page URL: ${e}`);
|
|
596
|
-
let r =
|
|
589
|
+
let r = Z(i.mode) === "new-window" ? "new-window" : "iframe", a = Q(i, q, "menuId"), o = a ? {
|
|
597
590
|
identity: "by-menu",
|
|
598
591
|
closable: !0
|
|
599
592
|
} : {
|
|
@@ -604,7 +597,7 @@ function je(e, t = {}) {
|
|
|
604
597
|
pageType: "remote-url",
|
|
605
598
|
openMode: r,
|
|
606
599
|
hostType: "external-page-host",
|
|
607
|
-
title:
|
|
600
|
+
title: Q(i, J, "title") ?? t.title,
|
|
608
601
|
menuId: a,
|
|
609
602
|
target: { url: n },
|
|
610
603
|
tabPolicy: o
|
|
@@ -612,7 +605,7 @@ function je(e, t = {}) {
|
|
|
612
605
|
pageType: "external-link",
|
|
613
606
|
openMode: r,
|
|
614
607
|
hostType: "external-page-host",
|
|
615
|
-
title:
|
|
608
|
+
title: Q(i, J, "title") ?? t.title,
|
|
616
609
|
menuId: a,
|
|
617
610
|
target: { url: n },
|
|
618
611
|
tabPolicy: o
|
|
@@ -621,19 +614,19 @@ function je(e, t = {}) {
|
|
|
621
614
|
if (r === "/platform/workspace" && !i.routeName && !i.pageKey) throw Error(`Invalid workspace URL: ${e}`);
|
|
622
615
|
if (r === "/platform/workspace" && (i.routeName || i.pageKey)) {
|
|
623
616
|
let e = {
|
|
624
|
-
routeName:
|
|
625
|
-
pageKey:
|
|
626
|
-
query:
|
|
627
|
-
...
|
|
617
|
+
routeName: Z(i.routeName),
|
|
618
|
+
pageKey: Z(i.pageKey),
|
|
619
|
+
query: He(i, [
|
|
620
|
+
...xe,
|
|
628
621
|
q,
|
|
629
622
|
J,
|
|
630
623
|
"pageType",
|
|
631
624
|
"routeName",
|
|
632
625
|
"pageKey"
|
|
633
626
|
])
|
|
634
|
-
}, n =
|
|
627
|
+
}, n = Z(i.pageType) === "business-route" ? "business-route" : "platform-route", r = Q(i, q, "menuId"), a = {
|
|
635
628
|
openMode: "workbench-route",
|
|
636
|
-
title:
|
|
629
|
+
title: Q(i, J, "title") ?? t.title,
|
|
637
630
|
menuId: r,
|
|
638
631
|
target: e,
|
|
639
632
|
params: e.query,
|
|
@@ -651,27 +644,27 @@ function je(e, t = {}) {
|
|
|
651
644
|
...a,
|
|
652
645
|
pageType: "business-route",
|
|
653
646
|
hostType: "business-route-host",
|
|
654
|
-
layout:
|
|
647
|
+
layout: X(e, t)
|
|
655
648
|
} : {
|
|
656
649
|
...a,
|
|
657
650
|
pageType: "platform-route",
|
|
658
651
|
hostType: "platform-route-host"
|
|
659
652
|
};
|
|
660
653
|
}
|
|
661
|
-
let a =
|
|
654
|
+
let a = Pe(r, t) ? "business-route" : "platform-route", o = Q(i, q), s = He(i, [
|
|
662
655
|
Y,
|
|
663
656
|
q,
|
|
664
657
|
J
|
|
665
658
|
]), c = {
|
|
666
659
|
openMode: "workbench-route",
|
|
667
|
-
title:
|
|
660
|
+
title: Q(i, J) ?? t.title,
|
|
668
661
|
menuId: o,
|
|
669
662
|
target: {
|
|
670
663
|
route: r,
|
|
671
664
|
query: s
|
|
672
665
|
},
|
|
673
666
|
params: s,
|
|
674
|
-
entryParamsJson:
|
|
667
|
+
entryParamsJson: Q(i, Y),
|
|
675
668
|
tabPolicy: o ? {
|
|
676
669
|
identity: "by-menu",
|
|
677
670
|
closable: !0,
|
|
@@ -686,21 +679,21 @@ function je(e, t = {}) {
|
|
|
686
679
|
...c,
|
|
687
680
|
pageType: "business-route",
|
|
688
681
|
hostType: "business-route-host",
|
|
689
|
-
layout:
|
|
682
|
+
layout: X(c.target, t)
|
|
690
683
|
} : {
|
|
691
684
|
...c,
|
|
692
685
|
pageType: "platform-route",
|
|
693
686
|
hostType: "platform-route-host"
|
|
694
687
|
};
|
|
695
688
|
}
|
|
696
|
-
function
|
|
689
|
+
function je(e, t = {}) {
|
|
697
690
|
try {
|
|
698
|
-
return
|
|
691
|
+
return Ae(e, t);
|
|
699
692
|
} catch {
|
|
700
693
|
return;
|
|
701
694
|
}
|
|
702
695
|
}
|
|
703
|
-
function
|
|
696
|
+
function Me(e, t, n) {
|
|
704
697
|
return e.startsWith("/") ? {
|
|
705
698
|
route: e,
|
|
706
699
|
moduleAlias: n,
|
|
@@ -715,61 +708,61 @@ function Ne(e, t, n) {
|
|
|
715
708
|
query: t
|
|
716
709
|
};
|
|
717
710
|
}
|
|
718
|
-
function
|
|
719
|
-
return (e.route ?
|
|
711
|
+
function Ne(e, t) {
|
|
712
|
+
return (e.route ? Pe(e.route, t) : !1) || (e.routeName ? t.businessRouteNames?.includes(e.routeName) === !0 : !1) || (e.pageKey ? t.businessPageKeys?.includes(e.pageKey) === !0 : !1);
|
|
720
713
|
}
|
|
721
|
-
function
|
|
714
|
+
function X(e, t) {
|
|
722
715
|
return e.route ? t.businessRouteLayouts?.[e.route] : void 0;
|
|
723
716
|
}
|
|
724
|
-
function
|
|
725
|
-
let n =
|
|
717
|
+
function Pe(e, t) {
|
|
718
|
+
let n = Be(e, t.businessRoutePrefixes ?? be);
|
|
726
719
|
if (n < 0) return !1;
|
|
727
|
-
let r =
|
|
720
|
+
let r = Be(e, t.platformRoutePrefixes ?? We);
|
|
728
721
|
return r < 0 || n > r;
|
|
729
722
|
}
|
|
730
|
-
function
|
|
723
|
+
function Fe(e) {
|
|
731
724
|
return e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "route" : e.pageType === "dynamic-module" ? [e.target.moduleAlias, e.target.pageMode ?? "LIST"].join(":") : e.target.url;
|
|
732
725
|
}
|
|
733
|
-
function
|
|
734
|
-
let n = t ?
|
|
726
|
+
function Ie(e, t) {
|
|
727
|
+
let n = t ? Le(t) : "";
|
|
735
728
|
return n ? `${e}${e.includes("?") ? "&" : "?"}${n}` : e;
|
|
736
729
|
}
|
|
737
|
-
function
|
|
730
|
+
function Le(e) {
|
|
738
731
|
let t = new URLSearchParams();
|
|
739
732
|
for (let n of Object.keys(e).sort()) {
|
|
740
733
|
let r = e[n];
|
|
741
734
|
if (Array.isArray(r)) {
|
|
742
|
-
for (let e of r)
|
|
735
|
+
for (let e of r) Re(t, n, e);
|
|
743
736
|
continue;
|
|
744
737
|
}
|
|
745
|
-
|
|
738
|
+
Re(t, n, r);
|
|
746
739
|
}
|
|
747
740
|
return t.toString();
|
|
748
741
|
}
|
|
749
|
-
function
|
|
742
|
+
function Re(e, t, n) {
|
|
750
743
|
n != null && e.append(t, String(n));
|
|
751
744
|
}
|
|
752
|
-
function
|
|
745
|
+
function ze(e, t) {
|
|
753
746
|
let n = t.endsWith("/") ? t.slice(0, -1) : t;
|
|
754
747
|
return e === n || e.startsWith(`${n}/`);
|
|
755
748
|
}
|
|
756
|
-
function
|
|
749
|
+
function Be(e, t) {
|
|
757
750
|
let n = -1;
|
|
758
751
|
for (let r of t) {
|
|
759
752
|
let t = r.endsWith("/") ? r.slice(0, -1) : r;
|
|
760
|
-
|
|
753
|
+
ze(e, t) && (n = Math.max(n, t.length));
|
|
761
754
|
}
|
|
762
755
|
return n;
|
|
763
756
|
}
|
|
764
|
-
function
|
|
757
|
+
function Ve(e) {
|
|
765
758
|
return new URL(e, "http://muyun.local");
|
|
766
759
|
}
|
|
767
|
-
function
|
|
760
|
+
function He(e, t) {
|
|
768
761
|
let n = {};
|
|
769
762
|
for (let r of Object.keys(e)) t.includes(r) || (n[r] = e[r]);
|
|
770
763
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
771
764
|
}
|
|
772
|
-
function
|
|
765
|
+
function Ue(e) {
|
|
773
766
|
let t = {};
|
|
774
767
|
for (let n of e.keys()) {
|
|
775
768
|
let r = e.getAll(n);
|
|
@@ -777,84 +770,84 @@ function Ge(e) {
|
|
|
777
770
|
}
|
|
778
771
|
return t;
|
|
779
772
|
}
|
|
780
|
-
function
|
|
773
|
+
function Z(e) {
|
|
781
774
|
return Array.isArray(e) ? e[0] === null || e[0] === void 0 ? void 0 : String(e[0]) : e == null ? void 0 : String(e);
|
|
782
775
|
}
|
|
783
|
-
function
|
|
784
|
-
return
|
|
776
|
+
function Q(e, t, n) {
|
|
777
|
+
return Z(e[t]) ?? (n ? Z(e[n]) : void 0);
|
|
785
778
|
}
|
|
786
|
-
var
|
|
787
|
-
function
|
|
779
|
+
var We = ["/platform"];
|
|
780
|
+
function Ge(e) {
|
|
788
781
|
let t = e?.toUpperCase();
|
|
789
782
|
return t === "LIST" || t === "FORM" || t === "DETAIL" ? t : void 0;
|
|
790
783
|
}
|
|
791
|
-
function
|
|
784
|
+
function Ke(e) {
|
|
792
785
|
throw Error(`Unsupported page descriptor: ${JSON.stringify(e)}`);
|
|
793
786
|
}
|
|
794
787
|
//#endregion
|
|
795
788
|
//#region src/platform-workbench/menuTreeModel.ts
|
|
796
|
-
function
|
|
797
|
-
return e.map(
|
|
789
|
+
function qe(e) {
|
|
790
|
+
return e.map(nt);
|
|
798
791
|
}
|
|
799
|
-
function
|
|
792
|
+
function Je(e, t) {
|
|
800
793
|
let n = t.trim().toLowerCase();
|
|
801
794
|
return n ? e.map((e) => {
|
|
802
|
-
let t =
|
|
803
|
-
return
|
|
795
|
+
let t = Je(e.children, n);
|
|
796
|
+
return rt(e, n) || t.length > 0 ? {
|
|
804
797
|
...e,
|
|
805
798
|
children: t
|
|
806
799
|
} : void 0;
|
|
807
800
|
}).filter((e) => !!e) : e;
|
|
808
801
|
}
|
|
809
|
-
function
|
|
802
|
+
function Ye(e, t, n = []) {
|
|
810
803
|
for (let r of e) {
|
|
811
804
|
let e = [...n, r];
|
|
812
805
|
if (r.record.id === t) return e;
|
|
813
|
-
let i =
|
|
806
|
+
let i = Ye(r.children, t, e);
|
|
814
807
|
if (i.length > 0) return i;
|
|
815
808
|
}
|
|
816
809
|
return [];
|
|
817
810
|
}
|
|
818
|
-
function
|
|
811
|
+
function Xe(e, t) {
|
|
819
812
|
for (let n of e) {
|
|
820
813
|
if (n.record.id === t) return n;
|
|
821
|
-
let e =
|
|
814
|
+
let e = Xe(n.children, t);
|
|
822
815
|
if (e) return e;
|
|
823
816
|
}
|
|
824
817
|
}
|
|
825
|
-
function
|
|
818
|
+
function Ze(e) {
|
|
826
819
|
for (let t of e.children) for (let e of t.children) if (e.hasChildren) return e.record.id;
|
|
827
820
|
}
|
|
828
|
-
function
|
|
829
|
-
let r = t ?
|
|
821
|
+
function Qe(e, t, n = 3) {
|
|
822
|
+
let r = t ? Xe(e.children, t) : void 0, i = e.children;
|
|
830
823
|
return {
|
|
831
824
|
root: e,
|
|
832
825
|
groups: i,
|
|
833
|
-
columns:
|
|
826
|
+
columns: $e(i, n),
|
|
834
827
|
activeDeepRoot: r?.hasChildren ? r : void 0
|
|
835
828
|
};
|
|
836
829
|
}
|
|
837
|
-
function
|
|
830
|
+
function $e(e, t) {
|
|
838
831
|
if (e.length === 0) return [];
|
|
839
|
-
let n = Math.max(1, Math.min(Math.floor(t), e.length)), r = Array.from({ length: n }, () => []), i = e.reduce((e, t) => e +
|
|
832
|
+
let n = Math.max(1, Math.min(Math.floor(t), e.length)), r = Array.from({ length: n }, () => []), i = e.reduce((e, t) => e + et(t), 0) / n, a = 0, o = 0;
|
|
840
833
|
for (let t = 0; t < e.length; t += 1) {
|
|
841
|
-
let s = e[t], c =
|
|
834
|
+
let s = e[t], c = et(s), l = e.length - t, u = n - a;
|
|
842
835
|
r[a].length > 0 && a < n - 1 && (l <= u || o + c > i) && (a += 1, o = 0), r[a].push(s), o += c;
|
|
843
836
|
}
|
|
844
837
|
return r;
|
|
845
838
|
}
|
|
846
|
-
function
|
|
847
|
-
let t =
|
|
839
|
+
function et(e) {
|
|
840
|
+
let t = tt(e.record.title), n = e.children.reduce((e, t) => {
|
|
848
841
|
let n = t.hasChildren ? .7 + t.children.length * .25 : 0;
|
|
849
|
-
return e + 1 + n +
|
|
842
|
+
return e + 1 + n + tt(t.record.title) * .4;
|
|
850
843
|
}, 0);
|
|
851
844
|
return 1.25 + t + n;
|
|
852
845
|
}
|
|
853
|
-
function
|
|
846
|
+
function tt(e) {
|
|
854
847
|
return Math.max(0, Math.ceil(e.length / 10) - 1) * .35;
|
|
855
848
|
}
|
|
856
|
-
function
|
|
857
|
-
let t =
|
|
849
|
+
function nt(e) {
|
|
850
|
+
let t = qe(e.children), n = Se(e.record);
|
|
858
851
|
return {
|
|
859
852
|
record: e.record,
|
|
860
853
|
children: t,
|
|
@@ -863,12 +856,12 @@ function rt(e) {
|
|
|
863
856
|
hasChildren: t.length > 0
|
|
864
857
|
};
|
|
865
858
|
}
|
|
866
|
-
function
|
|
859
|
+
function rt(e, t) {
|
|
867
860
|
return e.record.title.toLowerCase().includes(t) || e.record.moduleAlias?.toLowerCase().includes(t) === !0 || e.record.route?.toLowerCase().includes(t) === !0;
|
|
868
861
|
}
|
|
869
862
|
//#endregion
|
|
870
863
|
//#region src/platform-workbench/realtimeStatus.ts
|
|
871
|
-
function
|
|
864
|
+
function it(e) {
|
|
872
865
|
if (e === "connected") return {
|
|
873
866
|
label: "实时连接正常",
|
|
874
867
|
title: "与平台实时服务连接正常",
|
|
@@ -887,31 +880,31 @@ function at(e) {
|
|
|
887
880
|
}
|
|
888
881
|
//#endregion
|
|
889
882
|
//#region src/platform-workbench/WorkbenchMenu.vue?vue&type=script&setup=true&lang.ts
|
|
890
|
-
var
|
|
883
|
+
var at = { class: "menu-sidebar" }, ot = { class: "brand-area" }, st = { class: "brand-mark" }, ct = { class: "brand-copy" }, lt = { class: "menu-search" }, ut = {
|
|
891
884
|
class: "root-menu",
|
|
892
885
|
"aria-label": "主导航"
|
|
893
|
-
},
|
|
886
|
+
}, dt = {
|
|
894
887
|
key: 0,
|
|
895
888
|
class: "root-menu-list"
|
|
896
|
-
},
|
|
889
|
+
}, ft = [
|
|
897
890
|
"aria-expanded",
|
|
898
891
|
"aria-controls",
|
|
899
892
|
"onMouseenter",
|
|
900
893
|
"onFocus",
|
|
901
894
|
"onClick"
|
|
902
|
-
],
|
|
895
|
+
], pt = ["title"], mt = {
|
|
903
896
|
key: 0,
|
|
904
897
|
class: "mega-outline",
|
|
905
898
|
"aria-hidden": "true"
|
|
906
|
-
},
|
|
899
|
+
}, ht = ["d"], gt = { class: "mega-groups" }, _t = ["disabled", "onClick"], vt = { class: "mega-entry-list" }, yt = [
|
|
907
900
|
"disabled",
|
|
908
901
|
"onMouseenter",
|
|
909
902
|
"onFocus",
|
|
910
903
|
"onClick"
|
|
911
|
-
],
|
|
904
|
+
], bt = {
|
|
912
905
|
key: 0,
|
|
913
906
|
class: "mega-deep-panel"
|
|
914
|
-
},
|
|
907
|
+
}, xt = { class: "mega-deep-tree" }, St = 168, Ct = 18, wt = 28, Tt = 280, Et = 1040, Dt = 24, Ot = 620, kt = /*#__PURE__*/ e(/* @__PURE__ */ w({
|
|
915
908
|
name: "WorkbenchMenu",
|
|
916
909
|
__name: "WorkbenchMenu",
|
|
917
910
|
props: {
|
|
@@ -923,8 +916,8 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
|
|
|
923
916
|
},
|
|
924
917
|
emits: ["selectMenu", "invalidMenu"],
|
|
925
918
|
setup(e, { emit: t }) {
|
|
926
|
-
let n = e, r = t, a =
|
|
927
|
-
let e =
|
|
919
|
+
let n = e, r = t, a = j(), s = j(), c = j(""), l = j(), u = j(), d = j(8), p = j(0), m = j(0), x = j(0), C = j(34), w = j(0), T = j(0), O = j(820), A = j(3), N = g(() => qe(n.menus)), P = g(() => Je(N.value, c.value)), I = g(() => n.selectedMenuId ? Ye(N.value, n.selectedMenuId) : []), te = g(() => I.value[0]?.record.id), R = g(() => it(n.realtimeStatus)), z = g(() => l.value ? Xe(P.value, l.value) : void 0), B = g(() => z.value ? Qe(z.value, u.value, A.value) : void 0), V = g(() => B.value?.activeDeepRoot), ne = g(() => B.value?.columns.length ?? 1), re = g(() => {
|
|
920
|
+
let e = m.value, t = x.value, n = t + C.value, r = p.value, i = d.value, a = r + w.value, o = i + T.value;
|
|
928
921
|
return [
|
|
929
922
|
`M ${r} ${i}`,
|
|
930
923
|
`H ${a - 8}`,
|
|
@@ -941,152 +934,152 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
|
|
|
941
934
|
`V ${i}`
|
|
942
935
|
].join(" ");
|
|
943
936
|
});
|
|
944
|
-
function
|
|
937
|
+
function H(e) {
|
|
945
938
|
e.target ? r("selectMenu", e.record, e.target) : r("invalidMenu", e.record);
|
|
946
939
|
}
|
|
947
|
-
function
|
|
940
|
+
function ie(e, t) {
|
|
948
941
|
r("selectMenu", e, t);
|
|
949
942
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
943
|
+
function U(e, t) {
|
|
944
|
+
l.value = e.record.id, u.value = Ze(e), ae(t?.currentTarget), ee(K);
|
|
952
945
|
}
|
|
953
|
-
function
|
|
954
|
-
|
|
946
|
+
function W() {
|
|
947
|
+
l.value = void 0, u.value = void 0;
|
|
955
948
|
}
|
|
956
|
-
function
|
|
957
|
-
e.key === "Escape" &&
|
|
949
|
+
function G(e) {
|
|
950
|
+
e.key === "Escape" && W();
|
|
958
951
|
}
|
|
959
952
|
function ae(e) {
|
|
960
953
|
if (!(e instanceof HTMLElement)) return;
|
|
961
|
-
let t = e.getBoundingClientRect(), n = a.value?.getBoundingClientRect(), r = n?.top ?? 0, i = Math.min(window.innerHeight - 16,
|
|
962
|
-
|
|
954
|
+
let t = e.getBoundingClientRect(), n = a.value?.getBoundingClientRect(), r = n?.top ?? 0, i = Math.min(window.innerHeight - 16, Ot), o = t.top, s = Math.max(8, window.innerHeight - i - 8), c = Math.min(Math.max(o, 8), s), l = n?.left ?? 0;
|
|
955
|
+
d.value = Math.round(c - r), p.value = Math.round(t.right - l), m.value = Math.round(t.left - l), x.value = Math.round(t.top - r), C.value = Math.round(t.height), T.value = i, oe();
|
|
956
|
+
}
|
|
957
|
+
function K() {
|
|
958
|
+
let e = s.value?.getBoundingClientRect();
|
|
959
|
+
e && (w.value = Math.round(e.width), T.value = Math.round(e.height));
|
|
963
960
|
}
|
|
964
961
|
function oe() {
|
|
965
|
-
let e =
|
|
966
|
-
|
|
962
|
+
let e = se(), t = u.value ? Tt : 0, n = Math.max(0, Math.min(e, Et) - t), r = z.value?.children.length ?? 0, i = Math.max(1, Math.min(4, r || 1, Math.floor((n - wt + Ct) / 186) || 1)), a = i * St + Math.max(0, i - 1) * Ct + wt, o = Math.min(e, Et, a + t);
|
|
963
|
+
A.value = i, O.value = Math.max(280, o), w.value = O.value;
|
|
967
964
|
}
|
|
968
965
|
function se() {
|
|
969
|
-
let e =
|
|
970
|
-
|
|
971
|
-
}
|
|
972
|
-
function ce() {
|
|
973
|
-
let e = (a.value?.getBoundingClientRect().left ?? 0) + d.value;
|
|
974
|
-
return Math.max(280, window.innerWidth - e - Ot);
|
|
966
|
+
let e = (a.value?.getBoundingClientRect().left ?? 0) + p.value;
|
|
967
|
+
return Math.max(280, window.innerWidth - e - Dt);
|
|
975
968
|
}
|
|
976
|
-
function
|
|
977
|
-
|
|
978
|
-
|
|
969
|
+
function ce(e) {
|
|
970
|
+
u.value = e.hasChildren ? e.record.id : void 0, ee(() => {
|
|
971
|
+
oe(), K();
|
|
979
972
|
});
|
|
980
973
|
}
|
|
981
974
|
function le(e) {
|
|
982
|
-
return
|
|
975
|
+
return te.value === e.record.id;
|
|
983
976
|
}
|
|
984
|
-
return (t, n) => (
|
|
977
|
+
return (t, n) => (k(), y("div", {
|
|
985
978
|
ref_key: "menuShell",
|
|
986
979
|
ref: a,
|
|
987
|
-
class:
|
|
988
|
-
onMouseleave:
|
|
989
|
-
onKeydown:
|
|
980
|
+
class: E(["workbench-menu", { "mega-open": z.value }]),
|
|
981
|
+
onMouseleave: W,
|
|
982
|
+
onKeydown: G
|
|
990
983
|
}, [
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
value:
|
|
995
|
-
"onUpdate:value": n[0] ||= (e) =>
|
|
984
|
+
b("aside", at, [
|
|
985
|
+
b("div", ot, [b("div", st, [S(L(f), { name: "app" })]), b("div", ct, [n[1] ||= b("strong", null, "MuYun", -1), b("span", null, F(e.tenantLabel), 1)])]),
|
|
986
|
+
b("div", lt, [S(L(f), { name: "search" }), S(L(o), {
|
|
987
|
+
value: c.value,
|
|
988
|
+
"onUpdate:value": n[0] ||= (e) => c.value = e,
|
|
996
989
|
type: "search",
|
|
997
990
|
"allow-clear": "",
|
|
998
991
|
placeholder: e.searchPlaceholder,
|
|
999
992
|
"aria-label": "搜索菜单"
|
|
1000
993
|
}, null, 8, ["value", "placeholder"])]),
|
|
1001
|
-
|
|
994
|
+
b("nav", ut, [P.value.length > 0 ? (k(), y("div", dt, [(k(!0), y(h, null, M(P.value, (e) => (k(), y("button", {
|
|
1002
995
|
key: e.record.id,
|
|
1003
|
-
class:
|
|
1004
|
-
active:
|
|
996
|
+
class: E(["root-menu-item", {
|
|
997
|
+
active: z.value?.record.id === e.record.id,
|
|
1005
998
|
selected: le(e),
|
|
1006
999
|
navigable: e.navigable
|
|
1007
1000
|
}]),
|
|
1008
1001
|
type: "button",
|
|
1009
|
-
"aria-expanded":
|
|
1010
|
-
"aria-controls":
|
|
1011
|
-
onMouseenter: (t) =>
|
|
1012
|
-
onFocus: (t) =>
|
|
1013
|
-
onClick: (t) => e.navigable &&
|
|
1014
|
-
}, [
|
|
1002
|
+
"aria-expanded": z.value?.record.id === e.record.id,
|
|
1003
|
+
"aria-controls": z.value?.record.id === e.record.id ? "workbench-mega-panel" : void 0,
|
|
1004
|
+
onMouseenter: (t) => U(e, t),
|
|
1005
|
+
onFocus: (t) => U(e, t),
|
|
1006
|
+
onClick: (t) => e.navigable && H(e)
|
|
1007
|
+
}, [b("span", null, F(e.record.title), 1)], 42, ft))), 128))])) : (k(), _(L(i), {
|
|
1015
1008
|
key: 1,
|
|
1016
1009
|
description: "暂无菜单"
|
|
1017
1010
|
}))]),
|
|
1018
|
-
R.value ? (
|
|
1011
|
+
R.value ? (k(), y("div", {
|
|
1019
1012
|
key: 0,
|
|
1020
|
-
class:
|
|
1013
|
+
class: E(["sidebar-footer", `realtime-${R.value.tone}`]),
|
|
1021
1014
|
title: R.value.title,
|
|
1022
1015
|
role: "status"
|
|
1023
|
-
}, [n[2] ||=
|
|
1016
|
+
}, [n[2] ||= b("div", { class: "status-dot" }, null, -1), b("span", null, F(R.value.label), 1)], 10, pt)) : v("v-if", !0)
|
|
1024
1017
|
]),
|
|
1025
|
-
|
|
1026
|
-
|
|
1018
|
+
z.value ? (k(), y("svg", mt, [b("path", { d: re.value }, null, 8, ht)])) : v("v-if", !0),
|
|
1019
|
+
z.value ? (k(), y("section", {
|
|
1027
1020
|
key: 1,
|
|
1028
1021
|
id: "workbench-mega-panel",
|
|
1029
1022
|
ref_key: "megaPanel",
|
|
1030
|
-
ref:
|
|
1023
|
+
ref: s,
|
|
1031
1024
|
class: "mega-panel",
|
|
1032
|
-
style:
|
|
1033
|
-
"--mega-panel-top": `${
|
|
1034
|
-
"--mega-panel-left": `${
|
|
1035
|
-
"--mega-panel-width": `${
|
|
1036
|
-
"--mega-column-count":
|
|
1025
|
+
style: D({
|
|
1026
|
+
"--mega-panel-top": `${d.value}px`,
|
|
1027
|
+
"--mega-panel-left": `${p.value}px`,
|
|
1028
|
+
"--mega-panel-width": `${O.value}px`,
|
|
1029
|
+
"--mega-column-count": ne.value
|
|
1037
1030
|
})
|
|
1038
|
-
}, [
|
|
1031
|
+
}, [b("div", { class: E(["mega-body", { "has-deep": V.value }]) }, [b("div", gt, [(k(!0), y(h, null, M(B.value?.columns ?? [], (e, t) => (k(), y("div", {
|
|
1039
1032
|
key: `mega-column-${t}`,
|
|
1040
1033
|
class: "mega-column"
|
|
1041
|
-
}, [(
|
|
1034
|
+
}, [(k(!0), y(h, null, M(e, (e) => (k(), y("section", {
|
|
1042
1035
|
key: e.record.id,
|
|
1043
1036
|
class: "mega-group"
|
|
1044
|
-
}, [
|
|
1045
|
-
class:
|
|
1037
|
+
}, [b("button", {
|
|
1038
|
+
class: E(["mega-group-title", { navigable: e.navigable }]),
|
|
1046
1039
|
type: "button",
|
|
1047
1040
|
disabled: !e.navigable,
|
|
1048
|
-
onClick: (t) =>
|
|
1049
|
-
}, [
|
|
1041
|
+
onClick: (t) => H(e)
|
|
1042
|
+
}, [b("span", null, F(e.record.title), 1)], 10, _t), b("div", vt, [(k(!0), y(h, null, M(e.children, (e) => (k(), y("button", {
|
|
1050
1043
|
key: e.record.id,
|
|
1051
|
-
class:
|
|
1044
|
+
class: E(["mega-entry", {
|
|
1052
1045
|
navigable: e.navigable,
|
|
1053
|
-
active:
|
|
1046
|
+
active: V.value?.record.id === e.record.id,
|
|
1054
1047
|
branch: e.hasChildren
|
|
1055
1048
|
}]),
|
|
1056
1049
|
type: "button",
|
|
1057
1050
|
disabled: !e.navigable && !e.hasChildren,
|
|
1058
|
-
onMouseenter: (t) =>
|
|
1059
|
-
onFocus: (t) =>
|
|
1060
|
-
onClick: (t) => e.navigable &&
|
|
1061
|
-
}, [
|
|
1062
|
-
node:
|
|
1063
|
-
onSelectMenu:
|
|
1064
|
-
}, null, 8, ["node"])])])) :
|
|
1051
|
+
onMouseenter: (t) => ce(e),
|
|
1052
|
+
onFocus: (t) => ce(e),
|
|
1053
|
+
onClick: (t) => e.navigable && H(e)
|
|
1054
|
+
}, [b("span", null, F(e.record.title), 1)], 42, yt))), 128))])]))), 128))]))), 128))]), V.value ? (k(), y("aside", bt, [b("header", null, [n[3] ||= b("span", null, "深层导航", -1), b("strong", null, F(V.value.record.title), 1)]), b("ul", xt, [S(ye, {
|
|
1055
|
+
node: V.value,
|
|
1056
|
+
onSelectMenu: ie
|
|
1057
|
+
}, null, 8, ["node"])])])) : v("v-if", !0)], 2)], 4)) : v("v-if", !0)
|
|
1065
1058
|
], 34));
|
|
1066
1059
|
}
|
|
1067
|
-
}), [["__scopeId", "data-v-5a8e4d51"]]),
|
|
1060
|
+
}), [["__scopeId", "data-v-5a8e4d51"]]), At = { class: "workbench" }, jt = { class: "app-main" }, Mt = { class: "app-topbar" }, Nt = { class: "topbar-title" }, Pt = {
|
|
1068
1061
|
class: "topbar-actions",
|
|
1069
1062
|
"aria-label": "全局工具"
|
|
1070
|
-
},
|
|
1063
|
+
}, Ft = {
|
|
1071
1064
|
class: "icon-button wide",
|
|
1072
1065
|
type: "button",
|
|
1073
1066
|
"aria-label": "搜索"
|
|
1074
|
-
},
|
|
1067
|
+
}, It = {
|
|
1075
1068
|
class: "icon-button",
|
|
1076
1069
|
type: "button",
|
|
1077
1070
|
"aria-label": "刷新"
|
|
1078
|
-
},
|
|
1071
|
+
}, Lt = {
|
|
1079
1072
|
class: "icon-button",
|
|
1080
1073
|
type: "button",
|
|
1081
1074
|
"aria-label": "通知"
|
|
1082
|
-
},
|
|
1075
|
+
}, Rt = {
|
|
1083
1076
|
class: "icon-button",
|
|
1084
1077
|
type: "button",
|
|
1085
1078
|
"aria-label": "设置"
|
|
1086
|
-
},
|
|
1079
|
+
}, zt = ["onClick"], Bt = { class: "avatar" }, Vt = { class: "user-meta" }, Ht = { class: "tab-strip" }, Ut = {
|
|
1087
1080
|
key: 1,
|
|
1088
1081
|
class: "empty-tabs"
|
|
1089
|
-
},
|
|
1082
|
+
}, Wt = { class: "app-content" }, Gt = /*#__PURE__*/ e(/* @__PURE__ */ w({
|
|
1090
1083
|
name: "Workbench",
|
|
1091
1084
|
__name: "Workbench",
|
|
1092
1085
|
props: {
|
|
@@ -1107,8 +1100,8 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
|
|
|
1107
1100
|
"update:activeTabKey",
|
|
1108
1101
|
"userCommand"
|
|
1109
1102
|
],
|
|
1110
|
-
setup(
|
|
1111
|
-
let r =
|
|
1103
|
+
setup(e, { emit: n }) {
|
|
1104
|
+
let r = e, i = n, o = g(() => r.startup?.tabs ?? []), c = g(() => o.value.map(P)), d = g(() => r.activeTabKey ?? r.startup?.activeTabKey ?? c.value[0]?.key ?? ""), p = g(() => o.value.find((e) => e.key === d.value)), m = g(() => A(p.value)), x = g(() => r.startup?.session.currentUser), C = g(() => x.value?.username ?? x.value?.userId ?? "未登录"), w = g(() => C.value.trim().slice(0, 1).toUpperCase() || "M"), T = g(() => x.value?.tenantId ?? "系统工作区"), ee = g(() => re(m.value?.pageType)), D = g(() => H(m.value)), O = [
|
|
1112
1105
|
{
|
|
1113
1106
|
key: "changePassword",
|
|
1114
1107
|
title: "修改密码"
|
|
@@ -1127,199 +1120,199 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
|
|
|
1127
1120
|
danger: !0
|
|
1128
1121
|
}
|
|
1129
1122
|
];
|
|
1130
|
-
function
|
|
1131
|
-
if (e) return e?.pageDescriptor ?? (e?.target ?
|
|
1123
|
+
function A(e) {
|
|
1124
|
+
if (e) return e?.pageDescriptor ?? (e?.target ? Te(e.target, { title: e.title }) : void 0);
|
|
1132
1125
|
}
|
|
1133
1126
|
function j(e) {
|
|
1134
|
-
return e.key ===
|
|
1127
|
+
return e.key === d.value || A(e)?.tabPolicy.cacheable !== !1;
|
|
1135
1128
|
}
|
|
1136
|
-
function
|
|
1129
|
+
function P(e) {
|
|
1137
1130
|
return {
|
|
1138
1131
|
key: e.key,
|
|
1139
1132
|
title: e.title,
|
|
1140
1133
|
closable: e.closable
|
|
1141
1134
|
};
|
|
1142
1135
|
}
|
|
1143
|
-
function
|
|
1136
|
+
function I(e) {
|
|
1144
1137
|
i("update:activeTabKey", e), i("changeTab", e);
|
|
1145
1138
|
}
|
|
1146
|
-
function
|
|
1139
|
+
function V(e) {
|
|
1147
1140
|
i("userCommand", e);
|
|
1148
1141
|
}
|
|
1149
|
-
function
|
|
1142
|
+
function ne(e, t) {
|
|
1150
1143
|
i("selectMenu", e, t);
|
|
1151
1144
|
}
|
|
1152
|
-
function
|
|
1145
|
+
function re(e) {
|
|
1153
1146
|
return e === "dynamic-module" ? "动态模块" : e === "business-route" ? "业务页面" : e === "platform-route" ? "平台页面" : e === "remote-url" ? "在线页面" : e === "external-link" ? "外部链接" : "工作区";
|
|
1154
1147
|
}
|
|
1155
|
-
function
|
|
1148
|
+
function H(e) {
|
|
1156
1149
|
return e ? e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url : "未选择入口";
|
|
1157
1150
|
}
|
|
1158
|
-
return (n, r) => (
|
|
1159
|
-
menus:
|
|
1160
|
-
"selected-menu-id":
|
|
1161
|
-
"tenant-label":
|
|
1162
|
-
"realtime-status":
|
|
1163
|
-
onSelectMenu:
|
|
1151
|
+
return (n, r) => (k(), y("main", At, [S(kt, {
|
|
1152
|
+
menus: e.startup?.menus ?? [],
|
|
1153
|
+
"selected-menu-id": p.value?.target?.menuId,
|
|
1154
|
+
"tenant-label": T.value,
|
|
1155
|
+
"realtime-status": e.realtimeStatus,
|
|
1156
|
+
onSelectMenu: ne,
|
|
1164
1157
|
onInvalidMenu: r[0] ||= (e) => i("invalidMenu", e)
|
|
1165
1158
|
}, null, 8, [
|
|
1166
1159
|
"menus",
|
|
1167
1160
|
"selected-menu-id",
|
|
1168
1161
|
"tenant-label",
|
|
1169
1162
|
"realtime-status"
|
|
1170
|
-
]),
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1163
|
+
]), b("section", jt, [
|
|
1164
|
+
b("header", Mt, [
|
|
1165
|
+
b("div", Nt, [b("h1", null, F(p.value?.title ?? "控制台"), 1), b("span", null, F(ee.value) + " / " + F(D.value), 1)]),
|
|
1166
|
+
b("div", Pt, [
|
|
1167
|
+
b("button", Ft, [S(L(f), { name: "search" }), r[2] ||= b("span", null, "搜索", -1)]),
|
|
1168
|
+
b("button", It, [S(L(f), { name: "reload" })]),
|
|
1169
|
+
b("button", Lt, [S(L(f), { name: "notification" })]),
|
|
1170
|
+
b("button", Rt, [S(L(f), { name: "settings" })])
|
|
1178
1171
|
]),
|
|
1179
|
-
|
|
1172
|
+
S(L(t), {
|
|
1180
1173
|
items: O,
|
|
1181
|
-
onSelect:
|
|
1174
|
+
onSelect: V
|
|
1182
1175
|
}, {
|
|
1183
|
-
default:
|
|
1176
|
+
default: R(({ toggle: e }) => [b("button", {
|
|
1184
1177
|
class: "user-button",
|
|
1185
1178
|
type: "button",
|
|
1186
|
-
onClick:
|
|
1179
|
+
onClick: B(e, ["stop"])
|
|
1187
1180
|
}, [
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1181
|
+
b("span", Bt, F(w.value), 1),
|
|
1182
|
+
b("span", Vt, [b("strong", null, F(C.value), 1), b("small", null, F(x.value?.system ? "系统管理员" : "业务用户"), 1)]),
|
|
1183
|
+
S(L(f), {
|
|
1191
1184
|
class: "user-caret",
|
|
1192
1185
|
name: "down"
|
|
1193
1186
|
})
|
|
1194
|
-
], 8,
|
|
1187
|
+
], 8, zt)]),
|
|
1195
1188
|
_: 1
|
|
1196
1189
|
})
|
|
1197
1190
|
]),
|
|
1198
|
-
|
|
1191
|
+
b("div", Ht, [c.value.length > 0 ? (k(), _(L(u), {
|
|
1199
1192
|
key: 0,
|
|
1200
1193
|
tabs: c.value,
|
|
1201
|
-
"active-key":
|
|
1202
|
-
"onUpdate:activeKey":
|
|
1194
|
+
"active-key": d.value,
|
|
1195
|
+
"onUpdate:activeKey": I,
|
|
1203
1196
|
onClose: r[1] ||= (e) => i("closeTab", e)
|
|
1204
|
-
}, null, 8, ["tabs", "active-key"])) : (
|
|
1205
|
-
|
|
1197
|
+
}, null, 8, ["tabs", "active-key"])) : (k(), y("div", Ut, "暂无打开页面"))]),
|
|
1198
|
+
b("section", Wt, [e.loading ? (k(), _(L(s), { key: 0 })) : e.error ? (k(), _(L(a), {
|
|
1206
1199
|
key: 1,
|
|
1207
|
-
message:
|
|
1208
|
-
}, null, 8, ["message"])) : (
|
|
1200
|
+
message: e.error
|
|
1201
|
+
}, null, 8, ["message"])) : (k(!0), y(h, { key: 2 }, M(o.value, (e) => (k(), y(h, { key: e.key }, [j(e) ? z((k(), _(L(l), {
|
|
1209
1202
|
key: 0,
|
|
1210
1203
|
class: "tab-panel-host"
|
|
1211
1204
|
}, {
|
|
1212
|
-
default:
|
|
1205
|
+
default: R(() => [b("div", { class: E(["tab-page", { "tab-page--workspace": A(e)?.layout === "workspace" }]) }, [N(n.$slots, "default", {
|
|
1213
1206
|
activeTab: e,
|
|
1214
1207
|
target: e.target,
|
|
1215
|
-
pageDescriptor:
|
|
1208
|
+
pageDescriptor: A(e)
|
|
1216
1209
|
}, void 0, !0)], 2)]),
|
|
1217
1210
|
_: 2
|
|
1218
|
-
}, 1536)), [[
|
|
1211
|
+
}, 1536)), [[te, e.key === d.value]]) : v("v-if", !0)], 64))), 128))])
|
|
1219
1212
|
])]));
|
|
1220
1213
|
}
|
|
1221
|
-
}), [["__scopeId", "data-v-6418272d"]]),
|
|
1214
|
+
}), [["__scopeId", "data-v-6418272d"]]), Kt = { class: "page-host" }, qt = /*#__PURE__*/ e(/* @__PURE__ */ w({
|
|
1222
1215
|
name: "BusinessRouteHost",
|
|
1223
1216
|
__name: "BusinessRouteHost",
|
|
1224
1217
|
props: { descriptor: {} },
|
|
1225
1218
|
setup(e) {
|
|
1226
|
-
let t = e, n =
|
|
1227
|
-
return (t, r) => (
|
|
1219
|
+
let t = e, n = g(() => t.descriptor.title ?? t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey);
|
|
1220
|
+
return (t, r) => (k(), y("section", Kt, [b("header", null, [r[0] ||= b("span", { class: "host-badge" }, "业务页面", -1), b("h2", null, F(n.value), 1)]), b("p", null, F(e.descriptor.target.route ?? e.descriptor.target.routeName ?? e.descriptor.target.pageKey), 1)]));
|
|
1228
1221
|
}
|
|
1229
|
-
}), [["__scopeId", "data-v-7c4a6776"]]),
|
|
1222
|
+
}), [["__scopeId", "data-v-7c4a6776"]]), Jt = ["src", "title"], Yt = {
|
|
1230
1223
|
key: 1,
|
|
1231
1224
|
class: "page-host"
|
|
1232
|
-
},
|
|
1225
|
+
}, Xt = { class: "host-badge" }, Zt = ["href"], Qt = /*#__PURE__*/ e(/* @__PURE__ */ w({
|
|
1233
1226
|
name: "ExternalPageHost",
|
|
1234
1227
|
__name: "ExternalPageHost",
|
|
1235
1228
|
props: { descriptor: {} },
|
|
1236
1229
|
setup(e) {
|
|
1237
|
-
let t = e, n =
|
|
1238
|
-
return (t, r) => e.descriptor.openMode === "iframe" ? (
|
|
1230
|
+
let t = e, n = g(() => t.descriptor.title ?? t.descriptor.target.url);
|
|
1231
|
+
return (t, r) => e.descriptor.openMode === "iframe" ? (k(), y("iframe", {
|
|
1239
1232
|
key: 0,
|
|
1240
1233
|
class: "external-frame",
|
|
1241
1234
|
src: e.descriptor.target.url,
|
|
1242
1235
|
title: n.value
|
|
1243
|
-
}, null, 8,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1236
|
+
}, null, 8, Jt)) : (k(), y("section", Yt, [
|
|
1237
|
+
b("span", Xt, F(e.descriptor.openMode), 1),
|
|
1238
|
+
b("h2", null, F(n.value), 1),
|
|
1239
|
+
b("a", {
|
|
1247
1240
|
class: "external-link",
|
|
1248
1241
|
href: e.descriptor.target.url,
|
|
1249
1242
|
target: "_blank",
|
|
1250
1243
|
rel: "noopener noreferrer"
|
|
1251
|
-
}, " 打开页面 ", 8,
|
|
1244
|
+
}, " 打开页面 ", 8, Zt)
|
|
1252
1245
|
]));
|
|
1253
1246
|
}
|
|
1254
|
-
}), [["__scopeId", "data-v-212f730c"]]),
|
|
1247
|
+
}), [["__scopeId", "data-v-212f730c"]]), $t = {
|
|
1255
1248
|
key: 1,
|
|
1256
1249
|
class: "page-host"
|
|
1257
|
-
},
|
|
1250
|
+
}, en = /*#__PURE__*/ e(/* @__PURE__ */ w({
|
|
1258
1251
|
name: "PlatformRouteHost",
|
|
1259
1252
|
__name: "PlatformRouteHost",
|
|
1260
1253
|
props: { descriptor: {} },
|
|
1261
1254
|
setup(e) {
|
|
1262
|
-
let t = e, n =
|
|
1255
|
+
let t = e, n = g(() => t.descriptor.title ?? t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey);
|
|
1263
1256
|
return (e, r) => {
|
|
1264
|
-
let i =
|
|
1265
|
-
return t.descriptor.target.route === "/" ? (
|
|
1257
|
+
let i = P("RouterView");
|
|
1258
|
+
return t.descriptor.target.route === "/" ? (k(), _(i, { key: 0 })) : (k(), y("section", $t, [b("header", null, [r[0] ||= b("span", { class: "host-badge" }, "平台页面", -1), b("h2", null, F(n.value), 1)]), b("p", null, F(t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey), 1)]));
|
|
1266
1259
|
};
|
|
1267
1260
|
}
|
|
1268
1261
|
}), [["__scopeId", "data-v-38e3167a"]]);
|
|
1269
1262
|
//#endregion
|
|
1270
1263
|
//#region src/platform-workbench/pageHostRegistry.ts
|
|
1271
|
-
function
|
|
1264
|
+
function tn(e) {
|
|
1272
1265
|
switch (e) {
|
|
1273
1266
|
case "platform-route-host": return "PlatformRouteHost";
|
|
1274
1267
|
case "business-route-host": return "BusinessRouteHost";
|
|
1275
1268
|
case "dynamic-module-host": return "DynamicModuleHost";
|
|
1276
1269
|
case "external-page-host": return "ExternalPageHost";
|
|
1277
|
-
default: return
|
|
1270
|
+
default: return nn(e);
|
|
1278
1271
|
}
|
|
1279
1272
|
}
|
|
1280
|
-
function
|
|
1273
|
+
function nn(e) {
|
|
1281
1274
|
throw Error(`Unsupported page host type: ${e}`);
|
|
1282
1275
|
}
|
|
1283
1276
|
//#endregion
|
|
1284
1277
|
//#region src/platform-workbench/WorkbenchOutlet.vue
|
|
1285
|
-
var
|
|
1278
|
+
var rn = /* @__PURE__ */ w({
|
|
1286
1279
|
name: "WorkbenchOutlet",
|
|
1287
1280
|
__name: "WorkbenchOutlet",
|
|
1288
1281
|
props: { descriptor: {} },
|
|
1289
1282
|
setup(e) {
|
|
1290
|
-
let t = e, n =
|
|
1291
|
-
return (e, t) => r.value ? (
|
|
1283
|
+
let t = e, n = g(() => t.descriptor ? tn(t.descriptor.hostType) : void 0), r = g(() => n.value === "PlatformRouteHost" ? t.descriptor : void 0), a = g(() => n.value === "BusinessRouteHost" ? t.descriptor : void 0), o = g(() => n.value === "DynamicModuleHost" ? t.descriptor : void 0), s = g(() => n.value === "ExternalPageHost" ? t.descriptor : void 0);
|
|
1284
|
+
return (e, t) => r.value ? (k(), _(en, {
|
|
1292
1285
|
key: 0,
|
|
1293
1286
|
descriptor: r.value
|
|
1294
|
-
}, null, 8, ["descriptor"])) : a.value ? (
|
|
1287
|
+
}, null, 8, ["descriptor"])) : a.value ? (k(), _(qt, {
|
|
1295
1288
|
key: 1,
|
|
1296
1289
|
descriptor: a.value
|
|
1297
|
-
}, null, 8, ["descriptor"])) : o.value ? (
|
|
1290
|
+
}, null, 8, ["descriptor"])) : o.value ? (k(), _(L(U), {
|
|
1298
1291
|
key: 2,
|
|
1299
1292
|
descriptor: o.value
|
|
1300
|
-
}, null, 8, ["descriptor"])) : s.value ? (
|
|
1293
|
+
}, null, 8, ["descriptor"])) : s.value ? (k(), _(Qt, {
|
|
1301
1294
|
key: 3,
|
|
1302
1295
|
descriptor: s.value
|
|
1303
|
-
}, null, 8, ["descriptor"])) : (
|
|
1296
|
+
}, null, 8, ["descriptor"])) : (k(), _(L(i), {
|
|
1304
1297
|
key: 4,
|
|
1305
1298
|
description: "暂无页面"
|
|
1306
1299
|
}));
|
|
1307
1300
|
}
|
|
1308
|
-
}),
|
|
1309
|
-
function
|
|
1310
|
-
|
|
1301
|
+
}), an = Symbol("workbench-navigation");
|
|
1302
|
+
function on(e) {
|
|
1303
|
+
A(an, e);
|
|
1311
1304
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return
|
|
1305
|
+
function sn() {
|
|
1306
|
+
return T(an);
|
|
1314
1307
|
}
|
|
1315
1308
|
//#endregion
|
|
1316
1309
|
//#region src/platform-admin-runtime/workspaceViewHost.ts
|
|
1317
|
-
var
|
|
1318
|
-
function
|
|
1319
|
-
|
|
1310
|
+
var cn = Symbol("workspace-view-host");
|
|
1311
|
+
function ln(e) {
|
|
1312
|
+
A(cn, e);
|
|
1320
1313
|
}
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1314
|
+
function un() {
|
|
1315
|
+
return T(cn, void 0);
|
|
1323
1316
|
}
|
|
1324
1317
|
//#endregion
|
|
1325
1318
|
//#region src/platform-admin-runtime/workspaceViewContract.ts
|
|
@@ -1328,11 +1321,11 @@ function $(e) {
|
|
|
1328
1321
|
}
|
|
1329
1322
|
//#endregion
|
|
1330
1323
|
//#region src/views/userDetailWorkspaceView.ts
|
|
1331
|
-
var
|
|
1324
|
+
var dn = $({
|
|
1332
1325
|
type: "iam.user.detail",
|
|
1333
1326
|
route: "/iam/users",
|
|
1334
1327
|
moduleAlias: "iam.user",
|
|
1335
|
-
component:
|
|
1328
|
+
component: C(() => import("./UserDetailWorkspaceView-B6fGrnQ7.js")),
|
|
1336
1329
|
layout: "workspace",
|
|
1337
1330
|
routeTitle: "用户管理",
|
|
1338
1331
|
presentations: ["drawer", "tab"],
|
|
@@ -1341,11 +1334,11 @@ var fn = $({
|
|
|
1341
1334
|
let t = e.recordId;
|
|
1342
1335
|
if (!(typeof t != "string" || !t)) return { recordId: t };
|
|
1343
1336
|
}
|
|
1344
|
-
}),
|
|
1337
|
+
}), fn = $({
|
|
1345
1338
|
type: "iam.employee.detail",
|
|
1346
1339
|
route: "/iam/employees",
|
|
1347
1340
|
moduleAlias: "iam.employee",
|
|
1348
|
-
component:
|
|
1341
|
+
component: C(() => import("./EmployeeDetailWorkspaceView-BySbWjCV.js")),
|
|
1349
1342
|
layout: "workspace",
|
|
1350
1343
|
routeTitle: "职员管理",
|
|
1351
1344
|
presentations: ["drawer", "tab"],
|
|
@@ -1354,15 +1347,15 @@ var fn = $({
|
|
|
1354
1347
|
let t = e.recordId;
|
|
1355
1348
|
if (!(typeof t != "string" || !t)) return { recordId: t };
|
|
1356
1349
|
}
|
|
1357
|
-
}),
|
|
1350
|
+
}), pn = new Set([
|
|
1358
1351
|
"platform",
|
|
1359
1352
|
"tenant",
|
|
1360
1353
|
"organization"
|
|
1361
|
-
]),
|
|
1354
|
+
]), mn = $({
|
|
1362
1355
|
type: "iam.role.detail",
|
|
1363
1356
|
route: "/iam/roles",
|
|
1364
1357
|
moduleAlias: "iam.role",
|
|
1365
|
-
component:
|
|
1358
|
+
component: C(() => import("./RoleDetailWorkspaceView-BPZcZy-r.js")),
|
|
1366
1359
|
layout: "workspace",
|
|
1367
1360
|
routeTitle: "角色管理",
|
|
1368
1361
|
presentations: ["drawer", "tab"],
|
|
@@ -1375,17 +1368,17 @@ var fn = $({
|
|
|
1375
1368
|
},
|
|
1376
1369
|
parse(e) {
|
|
1377
1370
|
let t = e.recordId, n = e.scopeKind, r = e.scopeId;
|
|
1378
|
-
if (!(typeof t != "string" || !t || typeof n != "string" || !
|
|
1371
|
+
if (!(typeof t != "string" || !t || typeof n != "string" || !pn.has(n) || (n === "platform" ? r !== void 0 : typeof r != "string" || !r))) return {
|
|
1379
1372
|
recordId: t,
|
|
1380
1373
|
scopeKind: n,
|
|
1381
1374
|
...typeof r == "string" ? { scopeId: r } : {}
|
|
1382
1375
|
};
|
|
1383
1376
|
}
|
|
1384
|
-
}),
|
|
1377
|
+
}), hn = $({
|
|
1385
1378
|
type: "iam.system-user.detail",
|
|
1386
1379
|
route: "/iam/system-users",
|
|
1387
1380
|
moduleAlias: "iam.system_user",
|
|
1388
|
-
component:
|
|
1381
|
+
component: C(() => import("./SystemUserDetailWorkspaceView-BtEDyU-k.js")),
|
|
1389
1382
|
layout: "workspace",
|
|
1390
1383
|
routeTitle: "系统账号管理",
|
|
1391
1384
|
presentations: ["drawer", "tab"],
|
|
@@ -1394,11 +1387,11 @@ var fn = $({
|
|
|
1394
1387
|
let t = e.recordId;
|
|
1395
1388
|
return typeof t == "string" && t ? { recordId: t } : void 0;
|
|
1396
1389
|
}
|
|
1397
|
-
}),
|
|
1390
|
+
}), gn = $({
|
|
1398
1391
|
type: "iam.role.authorization",
|
|
1399
1392
|
route: "/iam/role-authorization",
|
|
1400
1393
|
moduleAlias: "iam.role",
|
|
1401
|
-
component:
|
|
1394
|
+
component: C(() => import("./RoleAuthorizationView-CK6Vfdup.js").then((e) => e.n)),
|
|
1402
1395
|
layout: "workspace",
|
|
1403
1396
|
routeTitle: "角色授权",
|
|
1404
1397
|
drawerProfile: "wide-work",
|
|
@@ -1408,11 +1401,11 @@ var fn = $({
|
|
|
1408
1401
|
let t = e.roleId;
|
|
1409
1402
|
return typeof t == "string" && t ? { roleId: t } : void 0;
|
|
1410
1403
|
}
|
|
1411
|
-
}),
|
|
1404
|
+
}), _n = $({
|
|
1412
1405
|
type: "platform.module.actions",
|
|
1413
1406
|
route: "/config/modules",
|
|
1414
1407
|
moduleAlias: "platform.module",
|
|
1415
|
-
component:
|
|
1408
|
+
component: C(() => import("./ModuleActionManagementView-DRtYMXOK.js")),
|
|
1416
1409
|
layout: "workspace",
|
|
1417
1410
|
routeTitle: "模块管理",
|
|
1418
1411
|
presentations: ["tab"],
|
|
@@ -1426,11 +1419,11 @@ var fn = $({
|
|
|
1426
1419
|
...e.moduleKind === "static" || e.moduleKind === "dynamic" ? { moduleKind: e.moduleKind } : {}
|
|
1427
1420
|
};
|
|
1428
1421
|
}
|
|
1429
|
-
}),
|
|
1422
|
+
}), vn = $({
|
|
1430
1423
|
type: "platform.module.metadata-orchestration",
|
|
1431
1424
|
route: "/config/modules",
|
|
1432
1425
|
moduleAlias: "platform.module",
|
|
1433
|
-
component:
|
|
1426
|
+
component: C(() => import("./MetadataOrchestrationView-2JxJkFEC.js")),
|
|
1434
1427
|
layout: "workspace",
|
|
1435
1428
|
routeTitle: "模块管理",
|
|
1436
1429
|
presentations: ["tab"],
|
|
@@ -1443,18 +1436,18 @@ var fn = $({
|
|
|
1443
1436
|
...typeof n == "string" && n ? { moduleTitle: n } : {}
|
|
1444
1437
|
};
|
|
1445
1438
|
}
|
|
1446
|
-
}),
|
|
1439
|
+
}), yn = [
|
|
1440
|
+
dn,
|
|
1447
1441
|
fn,
|
|
1448
|
-
|
|
1442
|
+
mn,
|
|
1449
1443
|
hn,
|
|
1450
1444
|
gn,
|
|
1451
1445
|
_n,
|
|
1452
|
-
vn
|
|
1453
|
-
yn
|
|
1446
|
+
vn
|
|
1454
1447
|
];
|
|
1455
1448
|
//#endregion
|
|
1456
1449
|
//#region src/platform-admin-runtime/workspaceViews.ts
|
|
1457
|
-
function
|
|
1450
|
+
function bn(e) {
|
|
1458
1451
|
let t = /* @__PURE__ */ new Map();
|
|
1459
1452
|
for (let n of e) {
|
|
1460
1453
|
if (t.has(n.type)) throw Error(`重复的工作视图类型:${n.type}`);
|
|
@@ -1474,8 +1467,8 @@ function xn(e) {
|
|
|
1474
1467
|
}
|
|
1475
1468
|
};
|
|
1476
1469
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1470
|
+
var xn = bn(yn);
|
|
1471
|
+
function Sn(e, t, n = "tab", r = e.titleOf(t)) {
|
|
1479
1472
|
if (!e.presentations.includes(n)) throw Error(`工作视图 ${e.type} 不支持 ${n} 承载`);
|
|
1480
1473
|
let i = {
|
|
1481
1474
|
workspaceView: e.type,
|
|
@@ -1497,16 +1490,16 @@ function Cn(e, t, n = "tab", r = e.titleOf(t)) {
|
|
|
1497
1490
|
tabPolicy: { identity: "by-params" }
|
|
1498
1491
|
};
|
|
1499
1492
|
}
|
|
1500
|
-
function
|
|
1493
|
+
function Cn(e, t) {
|
|
1501
1494
|
let n = t.parse(e.target.query ?? {}), r = new Set([
|
|
1502
1495
|
"workspaceView",
|
|
1503
1496
|
"workspacePresentation",
|
|
1504
1497
|
...Object.keys(n ?? {})
|
|
1505
1498
|
]), i = n ? t.parentRouteQueryOf?.(n) ?? {} : {}, a = {
|
|
1506
|
-
...
|
|
1499
|
+
...Tn(e.target.query ?? {}, r),
|
|
1507
1500
|
...i
|
|
1508
1501
|
}, o = {
|
|
1509
|
-
...
|
|
1502
|
+
...Tn(e.params ?? {}, r),
|
|
1510
1503
|
...i
|
|
1511
1504
|
};
|
|
1512
1505
|
return {
|
|
@@ -1520,29 +1513,29 @@ function wn(e, t) {
|
|
|
1520
1513
|
tabPolicy: { identity: "by-params" }
|
|
1521
1514
|
};
|
|
1522
1515
|
}
|
|
1523
|
-
function
|
|
1524
|
-
return
|
|
1516
|
+
function wn(e) {
|
|
1517
|
+
return xn.resolve(e);
|
|
1525
1518
|
}
|
|
1526
|
-
function
|
|
1519
|
+
function Tn(e, t) {
|
|
1527
1520
|
return Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e)));
|
|
1528
1521
|
}
|
|
1529
1522
|
//#endregion
|
|
1530
1523
|
//#region src/platform-admin-runtime/useWorkspaceViewPromotion.ts
|
|
1531
|
-
function
|
|
1524
|
+
function En(e) {
|
|
1532
1525
|
return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
|
|
1533
1526
|
}
|
|
1534
|
-
function
|
|
1535
|
-
let t =
|
|
1536
|
-
return
|
|
1537
|
-
let n =
|
|
1538
|
-
if (!(!n || !
|
|
1527
|
+
function Dn(e) {
|
|
1528
|
+
let t = sn();
|
|
1529
|
+
return g(() => {
|
|
1530
|
+
let n = I(e.input);
|
|
1531
|
+
if (!(!n || !En(I(e.eligibility)) || !t)) return {
|
|
1539
1532
|
title: "固定为页签",
|
|
1540
1533
|
promote: async () => {
|
|
1541
1534
|
if (await e.beforePromote?.(n) === !1) {
|
|
1542
1535
|
e.onPromotionRejected?.();
|
|
1543
1536
|
return;
|
|
1544
1537
|
}
|
|
1545
|
-
let r = t.openPage(
|
|
1538
|
+
let r = t.openPage(Sn(e.view, n, "tab", I(e.title)));
|
|
1546
1539
|
e.onPromoted?.(r);
|
|
1547
1540
|
}
|
|
1548
1541
|
};
|
|
@@ -1550,29 +1543,29 @@ function On(e) {
|
|
|
1550
1543
|
}
|
|
1551
1544
|
//#endregion
|
|
1552
1545
|
//#region src/platform-admin-runtime/workspaceViewSessions.ts
|
|
1553
|
-
var
|
|
1554
|
-
function
|
|
1555
|
-
return `${e.type}:${
|
|
1546
|
+
var On = /* @__PURE__ */ new Map(), kn = /* @__PURE__ */ new Map();
|
|
1547
|
+
function An(e, t) {
|
|
1548
|
+
return `${e.type}:${Pn(t)}`;
|
|
1556
1549
|
}
|
|
1557
|
-
async function
|
|
1558
|
-
let r =
|
|
1559
|
-
return a ? await a(
|
|
1550
|
+
async function jn(e, t, n) {
|
|
1551
|
+
let r = An(e, t), i = kn.get(r), a = i && [...i].at(-1);
|
|
1552
|
+
return a ? await a(Fn(n)) ? "accepted" : "rejected" : (On.set(r, Fn(n)), "accepted");
|
|
1560
1553
|
}
|
|
1561
|
-
function
|
|
1562
|
-
let r =
|
|
1563
|
-
return i.add(n),
|
|
1564
|
-
i.delete(n), i.size === 0 &&
|
|
1554
|
+
function Mn(e, t, n) {
|
|
1555
|
+
let r = An(e, t), i = kn.get(r) ?? /* @__PURE__ */ new Set();
|
|
1556
|
+
return i.add(n), kn.set(r, i), () => {
|
|
1557
|
+
i.delete(n), i.size === 0 && kn.delete(r);
|
|
1565
1558
|
};
|
|
1566
1559
|
}
|
|
1567
|
-
function
|
|
1568
|
-
let n =
|
|
1569
|
-
return
|
|
1560
|
+
function Nn(e, t) {
|
|
1561
|
+
let n = An(e, t), r = On.get(n);
|
|
1562
|
+
return On.delete(n), r;
|
|
1570
1563
|
}
|
|
1571
|
-
function
|
|
1572
|
-
return Array.isArray(e) ? `[${e.map(
|
|
1564
|
+
function Pn(e) {
|
|
1565
|
+
return Array.isArray(e) ? `[${e.map(Pn).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${Pn(t)}`).join(",")}}` : JSON.stringify(e);
|
|
1573
1566
|
}
|
|
1574
|
-
function
|
|
1567
|
+
function Fn(e) {
|
|
1575
1568
|
return JSON.parse(JSON.stringify(e));
|
|
1576
1569
|
}
|
|
1577
1570
|
//#endregion
|
|
1578
|
-
export {
|
|
1571
|
+
export { De as A, me as B, Qe as C, Ye as D, Xe as E, ke as F, Te as I, Oe as L, Ce as M, we as N, Ze as O, Ae as P, je as R, it as S, Je as T, U as V, on as _, Sn as a, Gt as b, vn as c, hn as d, mn as f, un as g, ln as h, Dn as i, Se as j, Ee as k, _n as l, dn as m, Mn as n, Cn as o, fn as p, Nn as r, wn as s, jn as t, gn as u, sn as v, qe as w, kt as x, rn as y, he as z };
|