@ximatai/muyun-web-app 0.26.8 → 0.26.10
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/{MetadataOrchestrationView-DKYVGMzy.js → MetadataOrchestrationView-BhtVwJII.js} +210 -204
- package/dist/{ModuleActionManagementView-DiVzuPdu.js → ModuleActionManagementView-DpZS-xAD.js} +74 -74
- package/dist/{RoleAuthorizationView-C0s4Bog7.js → RoleAuthorizationView-8lilhtMB.js} +193 -139
- package/dist/{RoleDetailWorkspaceView-dqHxKVfd.js → RoleDetailWorkspaceView-CFha6JHn.js} +1 -1
- package/dist/{RoleManagementView-D43pUCxi.js → RoleManagementView-0_KDrzgh.js} +572 -550
- package/dist/index.css +1 -1
- package/dist/index.js +536 -4427
- package/dist/{platform-components-CFU_zR7-.js → platform-components-oRIsIoxu.js} +5154 -3608
- package/dist/types/App.vue.d.ts +1 -0
- package/dist/types/app/StaticRoutePageHost.vue.d.ts +13 -0
- package/dist/types/app/loginTenant.d.ts +1 -1
- package/dist/types/app/menuRouteCompiler.d.ts +45 -0
- package/dist/types/app/menuRouteRuntime.d.ts +24 -0
- package/dist/types/app/pageRouteContext.d.ts +24 -0
- package/dist/types/app/routeDiagnosticsStore.d.ts +10 -0
- package/dist/types/app/router.d.ts +15 -0
- package/dist/types/app/staticRouteDefinitions.d.ts +25 -0
- package/dist/types/app/workbenchRouteSync.d.ts +1 -1
- package/dist/types/app/workbenchStartup.d.ts +3 -3
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
- package/dist/types/consumer/index.d.ts +5 -3
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +3 -10
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +4 -3
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +42 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +15 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +28 -0
- package/dist/types/dynamic-page-runtime/ModulePageFormContributionRenderer.vue.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +20 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +44 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +20 -1
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +17 -5
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +31 -0
- package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +30 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +48 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +28 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1378 -0
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +23 -0
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +5 -12
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/listPageSizePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/moduleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +215 -9
- package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/navigatorVisibility.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +10 -2
- package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +12 -3
- package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +9 -0
- package/dist/types/formula/FormulaRuntime.d.ts +29 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -0
- package/dist/types/{views/SystemUserManagementView.vue.d.ts → platform-admin-runtime/employee/EmployeeAccountDrawer.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/employeeModulePageEnhancement.d.ts +3 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -0
- package/dist/types/platform-admin-runtime/passwordPolicyPageEnhancement.d.ts +6 -0
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -6
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +15 -0
- package/dist/types/{views/EmployeeManagementView.vue.d.ts → platform-admin-runtime/tenant/TenantApplicationConfigurationDrawer.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/tenant/TenantApplicationsDetailSection.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/tenantModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserOnlineStatusCell.vue.d.ts +8 -0
- package/dist/types/platform-admin-runtime/user/UserPasswordDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserSessionListExpansion.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +23 -0
- package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +11 -0
- package/dist/types/platform-admin-runtime/userModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -2
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +13 -0
- package/dist/types/{views/SystemUserDetailWorkspaceView.vue.d.ts → platform-components/DrawerTitleActions.vue.d.ts} +2 -2
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +7 -0
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +5 -2
- package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +17 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +8 -3
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +11 -3
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +14 -6
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +3 -0
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +29 -1
- package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordListExpansionSurface.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +12 -2
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +12 -2
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +39 -5
- package/dist/types/{views/EmployeeEmploymentDrawer.vue.d.ts → platform-components/RecordRelationTabs.vue.d.ts} +7 -7
- package/dist/types/platform-components/RecordSelectionCheckbox.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +12 -4
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +8 -2
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +2 -0
- package/dist/types/platform-components/drawerTitleActions.d.ts +11 -0
- package/dist/types/platform-components/index.d.ts +11 -5
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +3 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +82 -5
- package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -0
- package/dist/types/platform-components/recordPickerModel.d.ts +6 -2
- package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
- package/dist/types/platform-workbench/index.d.ts +3 -2
- package/dist/types/platform-workbench/legacyPageHostTypeCompatibility.d.ts +6 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +24 -2
- package/dist/types/platform-workbench/pageCacheKey.d.ts +2 -0
- package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +14 -1
- package/dist/types/views/PasswordPolicyPreview.vue.d.ts +7 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +2 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/{EmployeeDetailWorkspaceView.vue.d.ts → UserDetailRouteView.vue.d.ts} +3 -1
- package/dist/types/views/UserManagementView.vue.d.ts +1 -6
- package/dist/types/views/userDetailStateModel.d.ts +1 -3
- package/dist/types/views/userManagementRouteState.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +3 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -1
- package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +18 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/index.d.ts +4 -2
- package/dist/types/web-contracts/index.d.ts +375 -14
- package/dist/types/web-core/businessNotifications.d.ts +3 -2
- package/dist/types/web-core/http.d.ts +6 -0
- package/dist/types/web-core/index.d.ts +1 -0
- package/dist/types/web-core/module/abilities.d.ts +7 -7
- package/dist/types/web-core/module/index.d.ts +1 -1
- package/dist/types/web-core/module/moduleContext.d.ts +6 -3
- package/dist/types/web-core/module/runtimeContext.d.ts +2 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +42 -10
- package/dist/types/web-core/realtime.d.ts +8 -0
- package/dist/types/web-core/referenceResolveClient.d.ts +11 -0
- package/dist/workspaceViews-D-RiJ64o.js +9078 -0
- package/package.json +1 -1
- package/dist/EmployeeDetailWorkspaceView-DswEDSxH.js +0 -14
- package/dist/EmployeeManagementView-C9STtw08.js +0 -1777
- package/dist/SystemUserDetailWorkspaceView-CQ9WeLrR.js +0 -17
- package/dist/SystemUserManagementView-D75_ylYk.js +0 -758
- package/dist/UserDetailWorkspaceView-BCST01d2.js +0 -17
- package/dist/UserManagementView-CcdvDo_y.js +0 -964
- package/dist/pageRealtime-EAiGWKEo.js +0 -227
- package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
- package/dist/types/views/EmployeeDetailContent.vue.d.ts +0 -64
- package/dist/types/views/UserDetailWorkspaceView.vue.d.ts +0 -7
- package/dist/types/views/dictionaryManagementState.d.ts +0 -215
- package/dist/types/views/employeeDetailStateModel.d.ts +0 -39
- package/dist/types/views/employeeDetailWorkspaceSession.d.ts +0 -16
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +0 -4
- package/dist/types/views/fieldUiControlManagementState.d.ts +0 -76
- package/dist/types/views/menuManagementState.d.ts +0 -178
- package/dist/types/views/moduleManagementState.d.ts +0 -76
- package/dist/types/views/positionManagementState.d.ts +0 -218
- package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
- package/dist/types/views/tenantManagementState.d.ts +0 -74
- package/dist/types/views/useEmployeeEmploymentRows.d.ts +0 -20
- package/dist/types/views/userDetailWorkspaceSession.d.ts +0 -14
- package/dist/types/views/userDetailWorkspaceView.d.ts +0 -4
- package/dist/useUserSessionRows-DCpUZCzN.js +0 -128
- package/dist/workspaceViewSessions-Dj1LjdG1.js +0 -4984
- /package/dist/types/views/{DictionaryManagementView.vue.d.ts → DynamicModuleRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{FieldUiControlManagementView.vue.d.ts → ExternalRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{MenuManagementView.vue.d.ts → ModuleOpenApiRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{ModuleManagementView.vue.d.ts → OpenApiCatalogRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{PasswordManagementView.vue.d.ts → RouteDiagnosticsView.vue.d.ts} +0 -0
- /package/dist/types/views/{PositionManagementView.vue.d.ts → UserManagementListView.vue.d.ts} +0 -0
- /package/dist/types/views/{TenantManagementView.vue.d.ts → WorkspaceRouteView.vue.d.ts} +0 -0
package/dist/{MetadataOrchestrationView-DKYVGMzy.js → MetadataOrchestrationView-BhtVwJII.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment as ee, computed as w, createBlock as T, createCommentVNode as
|
|
1
|
+
import { $t as e, Ft as t, It as n, Mt as r, Nt as i, Rt as a, St as o, T as s, U as c, W as l, Wt as u, _t as d, at as f, f as p, it as m, jt as h, lt as g, nt as _, p as v, pt as y, st as b, ut as x, v as S, vt as C } from "./platform-components-oRIsIoxu.js";
|
|
2
|
+
import { Fragment as ee, computed as w, createBlock as T, createCommentVNode as te, createElementBlock as ne, createElementVNode as E, createTextVNode as D, createVNode as O, defineComponent as k, onMounted as re, openBlock as A, ref as j, toDisplayString as M, unref as N, watch as ie, withCtx as P, withModifiers as F } from "vue";
|
|
3
3
|
//#region src/views/metadataOrchestrationState.ts
|
|
4
|
-
function
|
|
5
|
-
let e =
|
|
4
|
+
function ae() {
|
|
5
|
+
let e = j([]), t = j({}), n = j(), r = j([]), i = j([]), a = j("view"), o = j(I()), s = j(z()), c = w(() => e.value.find((e) => e.id === n.value)), l = w(() => c.value?.metadataId ? t.value[c.value.metadataId] : void 0), u = w(() => e.value.some((e) => e.relationRole === "MAIN")), d = w(() => a.value === "create-main"), f = w(() => a.value === "create-field" || a.value === "edit-field"), p = w(() => H(i.value));
|
|
6
6
|
function m(t) {
|
|
7
7
|
e.value = t;
|
|
8
8
|
let r = new Set(t.map((e) => e.id).filter(Boolean));
|
|
@@ -27,7 +27,7 @@ function re() {
|
|
|
27
27
|
e && (n.value = e, a.value = "view", r.value = []);
|
|
28
28
|
}
|
|
29
29
|
function b() {
|
|
30
|
-
o.value =
|
|
30
|
+
o.value = I(), a.value = "create-main";
|
|
31
31
|
}
|
|
32
32
|
function x() {
|
|
33
33
|
l.value?.id && (s.value = z(), a.value = "create-field");
|
|
@@ -65,7 +65,7 @@ function re() {
|
|
|
65
65
|
cancelEditor: C
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function I() {
|
|
69
69
|
return {
|
|
70
70
|
alias: "",
|
|
71
71
|
title: "",
|
|
@@ -74,7 +74,7 @@ function R() {
|
|
|
74
74
|
dataScopeEnabled: !1
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function L(e) {
|
|
78
78
|
return {
|
|
79
79
|
...e,
|
|
80
80
|
alias: e.alias.trim(),
|
|
@@ -83,7 +83,7 @@ function ie(e) {
|
|
|
83
83
|
tableName: e.tableName.trim()
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function R(e) {
|
|
87
87
|
return !!(e.alias.trim() && e.title.trim());
|
|
88
88
|
}
|
|
89
89
|
function z() {
|
|
@@ -132,7 +132,7 @@ function W(e) {
|
|
|
132
132
|
if (e === "MAIN") return "主实体";
|
|
133
133
|
if (e === "CHILD") return "子实体";
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ce(e, t) {
|
|
136
136
|
let n = U(e, t), r = t?.alias ?? e.relationAlias;
|
|
137
137
|
return {
|
|
138
138
|
title: n,
|
|
@@ -141,14 +141,14 @@ function G(e, t) {
|
|
|
141
141
|
muted: t?.enabled === !1 ? !0 : void 0
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function le(e) {
|
|
145
145
|
if (!e) return;
|
|
146
146
|
let t = e.tableName ? `${e.schemaName ?? "public"}.${e.tableName}` : void 0;
|
|
147
147
|
return [e.alias, t].filter(Boolean).join(" · ") || void 0;
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/views/MetadataOrchestrationView.vue?vue&type=script&setup=true&lang.ts
|
|
151
|
-
var
|
|
151
|
+
var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { class: "orchestration-form-flags" }, G = 200, K = /*#__PURE__*/ a(/* @__PURE__ */ k({
|
|
152
152
|
name: "MetadataOrchestrationView",
|
|
153
153
|
__name: "MetadataOrchestrationView",
|
|
154
154
|
props: {
|
|
@@ -156,8 +156,8 @@ var ce = { class: "entity-overview" }, le = { class: "field-section" }, ue = { c
|
|
|
156
156
|
moduleTitle: {},
|
|
157
157
|
title: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
let
|
|
159
|
+
setup(a) {
|
|
160
|
+
let k = a, I = u({ moduleAlias: "platform.module" }), z = e(I.http, "/platform.metadata"), B = ae(), V = j(!1), H = j(null), W = w(() => H.value?.$el instanceof HTMLElement ? H.value.$el : null), K = j(!1), q = j(""), pe = [
|
|
161
161
|
{
|
|
162
162
|
key: "title",
|
|
163
163
|
title: "字段"
|
|
@@ -183,86 +183,86 @@ var ce = { class: "entity-overview" }, le = { class: "field-section" }, ue = { c
|
|
|
183
183
|
width: 70
|
|
184
184
|
}
|
|
185
185
|
];
|
|
186
|
-
|
|
186
|
+
ie(() => k.moduleAlias, () => void J(), { immediate: !0 }), re(() => void me());
|
|
187
187
|
async function J() {
|
|
188
|
-
|
|
188
|
+
V.value = !0;
|
|
189
189
|
try {
|
|
190
|
-
|
|
190
|
+
B.handleRelationsLoaded(await $(Q("/query"))), await Y();
|
|
191
191
|
} catch (e) {
|
|
192
|
-
|
|
192
|
+
f(e, {
|
|
193
193
|
source: "metadata-orchestration",
|
|
194
194
|
phase: "load"
|
|
195
195
|
});
|
|
196
196
|
} finally {
|
|
197
|
-
|
|
197
|
+
V.value = !1;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
async function
|
|
200
|
+
async function me() {
|
|
201
201
|
try {
|
|
202
|
-
|
|
202
|
+
B.handleFieldSpecsLoaded(await $("/platform.field_spec/query"));
|
|
203
203
|
} catch (e) {
|
|
204
|
-
|
|
204
|
+
f(e, {
|
|
205
205
|
source: "metadata-orchestration",
|
|
206
206
|
phase: "load"
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
async function
|
|
211
|
-
|
|
210
|
+
async function he(e) {
|
|
211
|
+
B.selectRelation(e) && await Y();
|
|
212
212
|
}
|
|
213
213
|
async function Y() {
|
|
214
|
-
let e =
|
|
215
|
-
if (
|
|
216
|
-
let t = await
|
|
217
|
-
|
|
214
|
+
let e = B.selectedRelation.value?.metadataId;
|
|
215
|
+
if (B.handleFieldsLoaded([]), e) try {
|
|
216
|
+
let t = await z.view(e);
|
|
217
|
+
B.handleMetadataLoaded(t), B.handleFieldsLoaded(await $(`/platform.metadata/${encodeURIComponent(e)}/fields/query`));
|
|
218
218
|
} catch (e) {
|
|
219
|
-
|
|
219
|
+
f(e, {
|
|
220
220
|
source: "metadata-orchestration",
|
|
221
221
|
phase: "load"
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
async function X() {
|
|
226
|
-
let e =
|
|
227
|
-
if (!
|
|
228
|
-
|
|
226
|
+
let e = L(B.mainMetadataDraft.value);
|
|
227
|
+
if (!R(e)) {
|
|
228
|
+
b("请填写实体 alias 和名称", {
|
|
229
229
|
source: "metadata-orchestration",
|
|
230
230
|
phase: "validation"
|
|
231
231
|
});
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
K.value = !0;
|
|
235
235
|
try {
|
|
236
|
-
let t = await
|
|
236
|
+
let t = await I.http.request({
|
|
237
237
|
method: "POST",
|
|
238
238
|
path: Q("/create-main-metadata"),
|
|
239
239
|
body: e
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
B.cancelEditor(), await J(), B.focusRelation(t.relation.id), await Y(), await m({
|
|
242
242
|
success: !0,
|
|
243
243
|
message: "主实体已创建"
|
|
244
244
|
}, { source: "metadata-orchestration" });
|
|
245
245
|
} catch (e) {
|
|
246
|
-
|
|
246
|
+
f(e, {
|
|
247
247
|
source: "metadata-orchestration",
|
|
248
248
|
phase: "action"
|
|
249
249
|
});
|
|
250
250
|
} finally {
|
|
251
|
-
|
|
251
|
+
K.value = !1;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
async function Z() {
|
|
255
|
-
let e =
|
|
255
|
+
let e = B.selectedMetadata.value?.id;
|
|
256
256
|
if (!e) return;
|
|
257
|
-
let t = se(
|
|
257
|
+
let t = se(B.fieldDraft.value);
|
|
258
258
|
if (!oe(t)) {
|
|
259
|
-
|
|
259
|
+
b("请填写字段名、物理列名和字段规格", {
|
|
260
260
|
source: "metadata-orchestration",
|
|
261
261
|
phase: "validation"
|
|
262
262
|
});
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
K.value = !0;
|
|
266
266
|
try {
|
|
267
267
|
let n = {
|
|
268
268
|
...t,
|
|
@@ -270,270 +270,273 @@ var ce = { class: "entity-overview" }, le = { class: "field-section" }, ue = { c
|
|
|
270
270
|
fieldOwnership: "BUSINESS",
|
|
271
271
|
fieldForm: "PHYSICAL"
|
|
272
272
|
};
|
|
273
|
-
n.id ? await
|
|
273
|
+
n.id ? await I.http.request({
|
|
274
274
|
method: "POST",
|
|
275
275
|
path: `/platform.metadata/${encodeURIComponent(e)}/fields/update/${encodeURIComponent(n.id)}`,
|
|
276
276
|
body: n
|
|
277
|
-
}) : await
|
|
277
|
+
}) : await I.http.request({
|
|
278
278
|
method: "POST",
|
|
279
279
|
path: `/platform.metadata/${encodeURIComponent(e)}/fields/insert`,
|
|
280
280
|
body: n
|
|
281
|
-
}),
|
|
281
|
+
}), B.cancelEditor(), await Y(), await m({
|
|
282
282
|
success: !0,
|
|
283
283
|
message: "字段已保存"
|
|
284
284
|
}, { source: "metadata-orchestration" });
|
|
285
285
|
} catch (e) {
|
|
286
|
-
|
|
286
|
+
f(e, {
|
|
287
287
|
source: "metadata-orchestration",
|
|
288
288
|
phase: "action"
|
|
289
289
|
});
|
|
290
290
|
} finally {
|
|
291
|
-
|
|
291
|
+
K.value = !1;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
async function
|
|
295
|
-
let t =
|
|
296
|
-
if (!(!t || !e.id || !await
|
|
294
|
+
async function ge(e) {
|
|
295
|
+
let t = B.selectedMetadata.value?.id;
|
|
296
|
+
if (!(!t || !e.id || !await x({
|
|
297
297
|
title: "删除字段",
|
|
298
298
|
content: `确认删除字段“${e.title ?? e.fieldName}”?`,
|
|
299
299
|
okText: "删除",
|
|
300
300
|
danger: !0
|
|
301
301
|
}))) {
|
|
302
|
-
|
|
302
|
+
K.value = !0;
|
|
303
303
|
try {
|
|
304
|
-
await
|
|
304
|
+
await I.http.request({
|
|
305
305
|
method: "POST",
|
|
306
306
|
path: `/platform.metadata/${encodeURIComponent(t)}/fields/delete/${encodeURIComponent(e.id)}`,
|
|
307
307
|
body: { version: e.version }
|
|
308
308
|
}), await Y();
|
|
309
309
|
} catch (e) {
|
|
310
|
-
|
|
310
|
+
f(e, {
|
|
311
311
|
source: "metadata-orchestration",
|
|
312
312
|
phase: "action"
|
|
313
313
|
});
|
|
314
314
|
} finally {
|
|
315
|
-
|
|
315
|
+
K.value = !1;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
async function
|
|
320
|
-
let e =
|
|
319
|
+
async function _e() {
|
|
320
|
+
let e = B.selectedRelation.value;
|
|
321
321
|
if (e?.id) {
|
|
322
|
-
|
|
322
|
+
K.value = !0;
|
|
323
323
|
try {
|
|
324
|
-
await
|
|
324
|
+
await I.http.request({
|
|
325
325
|
method: "POST",
|
|
326
326
|
path: Q(`/${encodeURIComponent(e.id)}/fields/ensure`)
|
|
327
|
-
}), await
|
|
327
|
+
}), await m({
|
|
328
328
|
success: !0,
|
|
329
329
|
message: "模块字段配置已同步"
|
|
330
330
|
}, { source: "metadata-orchestration" });
|
|
331
331
|
} catch (e) {
|
|
332
|
-
|
|
332
|
+
f(e, {
|
|
333
333
|
source: "metadata-orchestration",
|
|
334
334
|
phase: "action"
|
|
335
335
|
});
|
|
336
336
|
} finally {
|
|
337
|
-
|
|
337
|
+
K.value = !1;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
function Q(e) {
|
|
342
|
-
return `/platform.module/${encodeURIComponent(
|
|
342
|
+
return `/platform.module/${encodeURIComponent(k.moduleAlias)}/metadata-relations${e}`;
|
|
343
343
|
}
|
|
344
344
|
async function $(e) {
|
|
345
345
|
let t = [];
|
|
346
346
|
for (let n = 1;; n += 1) {
|
|
347
|
-
let r = await
|
|
347
|
+
let r = await I.http.request({
|
|
348
348
|
method: "POST",
|
|
349
349
|
path: e,
|
|
350
350
|
body: { page: {
|
|
351
351
|
pageNum: n,
|
|
352
|
-
pageSize:
|
|
352
|
+
pageSize: G
|
|
353
353
|
} }
|
|
354
354
|
});
|
|
355
|
-
if (t.push(...r.records), r.totalKnown ? n >= r.pages : r.records.length <
|
|
355
|
+
if (t.push(...r.records), r.totalKnown ? n >= r.pages : r.records.length < G) return t;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
return e.metadataId ?
|
|
358
|
+
function ve(e) {
|
|
359
|
+
return e.metadataId ? B.metadataById.value[e.metadataId] : void 0;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function ye(e) {
|
|
362
362
|
let t = e;
|
|
363
|
-
return
|
|
363
|
+
return ce(t, ve(t));
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function be(e, t) {
|
|
366
366
|
let n = t;
|
|
367
367
|
return e.key === "required" ? n.required ? "是" : "否" : e.key === "enabled" ? n.enabled === !1 ? "停用" : "启用" : String(n[e.key] ?? "");
|
|
368
368
|
}
|
|
369
|
-
return (
|
|
370
|
-
|
|
369
|
+
return (e, u) => (A(), ne(ee, null, [
|
|
370
|
+
O(N(l), {
|
|
371
|
+
ref_key: "pageHost",
|
|
372
|
+
ref: H,
|
|
371
373
|
class: "metadata-orchestration-workspace",
|
|
372
374
|
"explorer-count": 1
|
|
373
375
|
}, {
|
|
374
|
-
default:
|
|
375
|
-
default:
|
|
376
|
-
"search-keyword":
|
|
377
|
-
"onUpdate:searchKeyword":
|
|
376
|
+
default: P(() => [O(N(c), null, {
|
|
377
|
+
default: P(() => [O(N(S), {
|
|
378
|
+
"search-keyword": q.value,
|
|
379
|
+
"onUpdate:searchKeyword": u[0] ||= (e) => q.value = e,
|
|
378
380
|
title: "实体",
|
|
379
381
|
"search-placeholder": "搜索实体名称或 alias",
|
|
380
382
|
onRefresh: J
|
|
381
383
|
}, {
|
|
382
|
-
actions:
|
|
384
|
+
actions: P(() => [N(B).hasMainMetadata.value ? te("v-if", !0) : (A(), T(N(n), {
|
|
383
385
|
key: 0,
|
|
384
386
|
class: "record-panel-create-button",
|
|
385
387
|
type: "primary",
|
|
386
388
|
"icon-name": "plus",
|
|
387
389
|
title: "新建主实体",
|
|
388
|
-
disabled:
|
|
389
|
-
onClick:
|
|
390
|
+
disabled: V.value || K.value,
|
|
391
|
+
onClick: N(B).startCreateMain
|
|
390
392
|
}, null, 8, ["disabled", "onClick"]))]),
|
|
391
|
-
default:
|
|
393
|
+
default: P(() => [V.value ? (A(), T(N(y), {
|
|
392
394
|
key: 0,
|
|
393
395
|
tip: "加载实体"
|
|
394
|
-
})) :
|
|
396
|
+
})) : N(B).relations.value.length ? (A(), T(N(g), {
|
|
395
397
|
key: 2,
|
|
396
|
-
records:
|
|
397
|
-
"selected-id":
|
|
398
|
-
keyword:
|
|
398
|
+
records: N(B).relations.value,
|
|
399
|
+
"selected-id": N(B).selectedRelationId.value,
|
|
400
|
+
keyword: q.value,
|
|
399
401
|
"empty-description": "暂无实体",
|
|
400
|
-
"item-of":
|
|
401
|
-
onSelect:
|
|
402
|
+
"item-of": ye,
|
|
403
|
+
onSelect: he
|
|
402
404
|
}, null, 8, [
|
|
403
405
|
"records",
|
|
404
406
|
"selected-id",
|
|
405
407
|
"keyword"
|
|
406
|
-
])) : (
|
|
408
|
+
])) : (A(), T(N(C), {
|
|
407
409
|
key: 1,
|
|
408
410
|
description: "请先创建动态模块的主实体"
|
|
409
411
|
}))]),
|
|
410
412
|
_: 1
|
|
411
413
|
}, 8, ["search-keyword"])]),
|
|
412
414
|
_: 1
|
|
413
|
-
}),
|
|
415
|
+
}), N(B).selectedMetadata.value && N(B).selectedRelation.value ? (A(), T(N(s), {
|
|
414
416
|
key: 0,
|
|
415
|
-
title:
|
|
416
|
-
subtitle:
|
|
417
|
+
title: N(U)(N(B).selectedRelation.value, N(B).selectedMetadata.value),
|
|
418
|
+
subtitle: N(le)(N(B).selectedMetadata.value)
|
|
417
419
|
}, {
|
|
418
|
-
actions:
|
|
420
|
+
actions: P(() => [O(N(t), {
|
|
419
421
|
emphasis: "quiet",
|
|
420
|
-
disabled:
|
|
421
|
-
onClick:
|
|
422
|
+
disabled: K.value || V.value,
|
|
423
|
+
onClick: _e
|
|
422
424
|
}, {
|
|
423
|
-
default:
|
|
425
|
+
default: P(() => [...u[16] ||= [D(" 同步模块字段配置 ", -1)]]),
|
|
424
426
|
_: 1
|
|
425
|
-
}, 8, ["disabled"]),
|
|
427
|
+
}, 8, ["disabled"]), O(N(t), {
|
|
426
428
|
emphasis: "primary",
|
|
427
|
-
disabled:
|
|
428
|
-
onClick:
|
|
429
|
+
disabled: K.value || V.value,
|
|
430
|
+
onClick: N(B).startCreateField
|
|
429
431
|
}, {
|
|
430
|
-
default:
|
|
432
|
+
default: P(() => [...u[17] ||= [D(" 新增字段 ", -1)]]),
|
|
431
433
|
_: 1
|
|
432
434
|
}, 8, ["disabled", "onClick"])]),
|
|
433
|
-
default:
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
435
|
+
default: P(() => [
|
|
436
|
+
E("dl", ue, [
|
|
437
|
+
E("div", null, [u[18] ||= E("dt", null, "实体 alias", -1), E("dd", null, M(N(B).selectedMetadata.value.alias ?? "-"), 1)]),
|
|
438
|
+
E("div", null, [u[19] ||= E("dt", null, "物理表", -1), E("dd", null, M(N(B).selectedMetadata.value.tableName ? `${N(B).selectedMetadata.value.schemaName ?? "public"}.${N(B).selectedMetadata.value.tableName}` : "-"), 1)]),
|
|
439
|
+
E("div", null, [u[20] ||= E("dt", null, "数据权限范围", -1), E("dd", null, M(N(B).selectedMetadata.value.dataScopeEnabled ? "已启用" : "未启用"), 1)])
|
|
438
440
|
]),
|
|
439
|
-
|
|
441
|
+
E("section", de, [u[23] ||= E("header", { class: "field-section-header" }, [E("h3", null, "业务字段")], -1), V.value ? (A(), T(N(y), {
|
|
440
442
|
key: 0,
|
|
441
443
|
tip: "加载字段"
|
|
442
|
-
})) :
|
|
444
|
+
})) : N(B).fields.value.length ? (A(), T(N(d), {
|
|
443
445
|
key: 2,
|
|
444
|
-
columns:
|
|
445
|
-
rows:
|
|
446
|
+
columns: pe,
|
|
447
|
+
rows: N(B).fields.value,
|
|
446
448
|
"show-action-column": "",
|
|
447
449
|
"action-column-title": "操作"
|
|
448
450
|
}, {
|
|
449
|
-
cell:
|
|
450
|
-
rowActions:
|
|
451
|
+
cell: P(({ column: e, record: t }) => [D(M(be(e, t)), 1)]),
|
|
452
|
+
rowActions: P(({ record: e }) => [O(N(t), {
|
|
451
453
|
emphasis: "quiet",
|
|
452
454
|
density: "compact",
|
|
453
|
-
onClick: (t) =>
|
|
455
|
+
onClick: (t) => N(B).startEditField(e)
|
|
454
456
|
}, {
|
|
455
|
-
default:
|
|
457
|
+
default: P(() => [...u[21] ||= [D(" 编辑 ", -1)]]),
|
|
456
458
|
_: 1
|
|
457
|
-
}, 8, ["onClick"]),
|
|
459
|
+
}, 8, ["onClick"]), O(N(t), {
|
|
458
460
|
emphasis: "quiet",
|
|
459
461
|
density: "compact",
|
|
460
462
|
intent: "danger",
|
|
461
|
-
disabled:
|
|
462
|
-
onClick: (t) =>
|
|
463
|
+
disabled: K.value,
|
|
464
|
+
onClick: (t) => ge(e)
|
|
463
465
|
}, {
|
|
464
|
-
default:
|
|
466
|
+
default: P(() => [...u[22] ||= [D(" 删除 ", -1)]]),
|
|
465
467
|
_: 1
|
|
466
468
|
}, 8, ["disabled", "onClick"])]),
|
|
467
469
|
_: 1
|
|
468
|
-
}, 8, ["rows"])) : (
|
|
470
|
+
}, 8, ["rows"])) : (A(), T(N(C), {
|
|
469
471
|
key: 1,
|
|
470
472
|
description: "暂无业务字段,点击右上角新增字段"
|
|
471
473
|
}))]),
|
|
472
|
-
|
|
474
|
+
O(N(v), { record: N(B).selectedMetadata.value }, null, 8, ["record"])
|
|
473
475
|
]),
|
|
474
476
|
_: 1
|
|
475
|
-
}, 8, ["title", "subtitle"])) : (
|
|
477
|
+
}, 8, ["title", "subtitle"])) : (A(), T(N(s), {
|
|
476
478
|
key: 1,
|
|
477
479
|
title: "字段编排"
|
|
478
480
|
}, {
|
|
479
|
-
default:
|
|
481
|
+
default: P(() => [O(N(C), { description: "从左侧选择实体后开始字段编排" })]),
|
|
480
482
|
_: 1
|
|
481
483
|
}))]),
|
|
482
484
|
_: 1
|
|
483
|
-
}),
|
|
484
|
-
|
|
485
|
-
open:
|
|
485
|
+
}, 512),
|
|
486
|
+
O(N(p), {
|
|
487
|
+
open: N(B).mainEditorOpen.value,
|
|
486
488
|
title: "新建主实体",
|
|
487
|
-
|
|
489
|
+
container: W.value,
|
|
490
|
+
subtitle: a.moduleTitle ?? a.moduleAlias,
|
|
488
491
|
mode: "create",
|
|
489
|
-
onClose:
|
|
492
|
+
onClose: N(B).cancelEditor
|
|
490
493
|
}, {
|
|
491
|
-
form:
|
|
494
|
+
form: P(() => [E("form", {
|
|
492
495
|
class: "orchestration-form",
|
|
493
|
-
onSubmit:
|
|
496
|
+
onSubmit: F(X, ["prevent"])
|
|
494
497
|
}, [
|
|
495
|
-
|
|
496
|
-
value:
|
|
497
|
-
"onUpdate:value":
|
|
498
|
+
E("label", null, [u[24] ||= E("span", null, "实体 alias", -1), O(N(h), {
|
|
499
|
+
value: N(B).mainMetadataDraft.value.alias,
|
|
500
|
+
"onUpdate:value": u[1] ||= (e) => N(B).mainMetadataDraft.value.alias = e,
|
|
498
501
|
placeholder: "例如 customer"
|
|
499
502
|
}, null, 8, ["value"])]),
|
|
500
|
-
|
|
501
|
-
value:
|
|
502
|
-
"onUpdate:value":
|
|
503
|
+
E("label", null, [u[25] ||= E("span", null, "实体名称", -1), O(N(h), {
|
|
504
|
+
value: N(B).mainMetadataDraft.value.title,
|
|
505
|
+
"onUpdate:value": u[2] ||= (e) => N(B).mainMetadataDraft.value.title = e,
|
|
503
506
|
placeholder: "例如 客户"
|
|
504
507
|
}, null, 8, ["value"])]),
|
|
505
|
-
|
|
506
|
-
value:
|
|
507
|
-
"onUpdate:value":
|
|
508
|
+
E("label", null, [u[26] ||= E("span", null, "Schema(可选)", -1), O(N(h), {
|
|
509
|
+
value: N(B).mainMetadataDraft.value.schemaName,
|
|
510
|
+
"onUpdate:value": u[3] ||= (e) => N(B).mainMetadataDraft.value.schemaName = e,
|
|
508
511
|
placeholder: "默认 public"
|
|
509
512
|
}, null, 8, ["value"])]),
|
|
510
|
-
|
|
511
|
-
value:
|
|
512
|
-
"onUpdate:value":
|
|
513
|
+
E("label", null, [u[27] ||= E("span", null, "物理表名(可选)", -1), O(N(h), {
|
|
514
|
+
value: N(B).mainMetadataDraft.value.tableName,
|
|
515
|
+
"onUpdate:value": u[4] ||= (e) => N(B).mainMetadataDraft.value.tableName = e,
|
|
513
516
|
placeholder: "默认按应用和 alias 生成"
|
|
514
517
|
}, null, 8, ["value"])]),
|
|
515
|
-
|
|
516
|
-
checked:
|
|
517
|
-
"onUpdate:checked":
|
|
518
|
+
O(N(i), {
|
|
519
|
+
checked: N(B).mainMetadataDraft.value.dataScopeEnabled,
|
|
520
|
+
"onUpdate:checked": u[5] ||= (e) => N(B).mainMetadataDraft.value.dataScopeEnabled = e
|
|
518
521
|
}, {
|
|
519
|
-
default:
|
|
522
|
+
default: P(() => [...u[28] ||= [D(" 启用数据权限范围 ", -1)]]),
|
|
520
523
|
_: 1
|
|
521
524
|
}, 8, ["checked"])
|
|
522
525
|
], 32)]),
|
|
523
|
-
operation:
|
|
524
|
-
default:
|
|
525
|
-
disabled:
|
|
526
|
-
onClick:
|
|
526
|
+
operation: P(() => [O(N(_), null, {
|
|
527
|
+
default: P(() => [O(N(t), {
|
|
528
|
+
disabled: K.value,
|
|
529
|
+
onClick: N(B).cancelEditor
|
|
527
530
|
}, {
|
|
528
|
-
default:
|
|
531
|
+
default: P(() => [...u[29] ||= [D("取消", -1)]]),
|
|
529
532
|
_: 1
|
|
530
|
-
}, 8, ["disabled", "onClick"]),
|
|
533
|
+
}, 8, ["disabled", "onClick"]), O(N(t), {
|
|
531
534
|
emphasis: "primary",
|
|
532
535
|
submit: "",
|
|
533
|
-
loading:
|
|
536
|
+
loading: K.value,
|
|
534
537
|
onClick: X
|
|
535
538
|
}, {
|
|
536
|
-
default:
|
|
539
|
+
default: P(() => [...u[30] ||= [D(" 创建 ", -1)]]),
|
|
537
540
|
_: 1
|
|
538
541
|
}, 8, ["loading"])]),
|
|
539
542
|
_: 1
|
|
@@ -541,102 +544,104 @@ var ce = { class: "entity-overview" }, le = { class: "field-section" }, ue = { c
|
|
|
541
544
|
_: 1
|
|
542
545
|
}, 8, [
|
|
543
546
|
"open",
|
|
547
|
+
"container",
|
|
544
548
|
"subtitle",
|
|
545
549
|
"onClose"
|
|
546
550
|
]),
|
|
547
|
-
|
|
548
|
-
open:
|
|
549
|
-
title:
|
|
550
|
-
|
|
551
|
+
O(N(p), {
|
|
552
|
+
open: N(B).fieldEditorOpen.value,
|
|
553
|
+
title: N(B).mode.value === "edit-field" ? "编辑字段" : "新增字段",
|
|
554
|
+
container: W.value,
|
|
555
|
+
subtitle: N(B).selectedMetadata.value?.title,
|
|
551
556
|
mode: "create",
|
|
552
|
-
onClose:
|
|
557
|
+
onClose: N(B).cancelEditor
|
|
553
558
|
}, {
|
|
554
|
-
form:
|
|
559
|
+
form: P(() => [E("form", {
|
|
555
560
|
class: "orchestration-form",
|
|
556
|
-
onSubmit:
|
|
561
|
+
onSubmit: F(Z, ["prevent"])
|
|
557
562
|
}, [
|
|
558
|
-
|
|
559
|
-
value:
|
|
560
|
-
"onUpdate:value":
|
|
561
|
-
disabled: !!
|
|
563
|
+
E("label", null, [u[31] ||= E("span", null, "字段名称", -1), O(N(h), {
|
|
564
|
+
value: N(B).fieldDraft.value.fieldName,
|
|
565
|
+
"onUpdate:value": u[6] ||= (e) => N(B).fieldDraft.value.fieldName = e,
|
|
566
|
+
disabled: !!N(B).fieldDraft.value.id,
|
|
562
567
|
placeholder: "例如 customerName"
|
|
563
568
|
}, null, 8, ["value", "disabled"])]),
|
|
564
|
-
|
|
565
|
-
value:
|
|
566
|
-
"onUpdate:value":
|
|
567
|
-
disabled: !!
|
|
569
|
+
E("label", null, [u[32] ||= E("span", null, "物理列名", -1), O(N(h), {
|
|
570
|
+
value: N(B).fieldDraft.value.columnName,
|
|
571
|
+
"onUpdate:value": u[7] ||= (e) => N(B).fieldDraft.value.columnName = e,
|
|
572
|
+
disabled: !!N(B).fieldDraft.value.id,
|
|
568
573
|
placeholder: "例如 customer_name"
|
|
569
574
|
}, null, 8, ["value", "disabled"])]),
|
|
570
|
-
|
|
571
|
-
value:
|
|
572
|
-
"onUpdate:value":
|
|
575
|
+
E("label", null, [u[33] ||= E("span", null, "显示名称", -1), O(N(h), {
|
|
576
|
+
value: N(B).fieldDraft.value.title,
|
|
577
|
+
"onUpdate:value": u[8] ||= (e) => N(B).fieldDraft.value.title = e,
|
|
573
578
|
placeholder: "例如 客户名称"
|
|
574
579
|
}, null, 8, ["value"])]),
|
|
575
|
-
|
|
576
|
-
value:
|
|
577
|
-
"onUpdate:value":
|
|
578
|
-
options:
|
|
580
|
+
E("label", null, [u[34] ||= E("span", null, "字段规格", -1), O(N(r), {
|
|
581
|
+
value: N(B).fieldDraft.value.fieldSpecAlias,
|
|
582
|
+
"onUpdate:value": u[9] ||= (e) => N(B).fieldDraft.value.fieldSpecAlias = e,
|
|
583
|
+
options: N(B).fieldSpecOptions.value,
|
|
579
584
|
placeholder: "选择字段规格",
|
|
580
585
|
style: { width: "100%" }
|
|
581
586
|
}, null, 8, ["value", "options"])]),
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
checked:
|
|
585
|
-
"onUpdate:checked":
|
|
587
|
+
E("div", fe, [
|
|
588
|
+
O(N(i), {
|
|
589
|
+
checked: N(B).fieldDraft.value.required,
|
|
590
|
+
"onUpdate:checked": u[10] ||= (e) => N(B).fieldDraft.value.required = e
|
|
586
591
|
}, {
|
|
587
|
-
default:
|
|
592
|
+
default: P(() => [...u[35] ||= [D("必填", -1)]]),
|
|
588
593
|
_: 1
|
|
589
594
|
}, 8, ["checked"]),
|
|
590
|
-
|
|
591
|
-
checked:
|
|
592
|
-
"onUpdate:checked":
|
|
595
|
+
O(N(i), {
|
|
596
|
+
checked: N(B).fieldDraft.value.uniqueField,
|
|
597
|
+
"onUpdate:checked": u[11] ||= (e) => N(B).fieldDraft.value.uniqueField = e
|
|
593
598
|
}, {
|
|
594
|
-
default:
|
|
599
|
+
default: P(() => [...u[36] ||= [D("唯一", -1)]]),
|
|
595
600
|
_: 1
|
|
596
601
|
}, 8, ["checked"]),
|
|
597
|
-
|
|
598
|
-
checked:
|
|
599
|
-
"onUpdate:checked":
|
|
602
|
+
O(N(i), {
|
|
603
|
+
checked: N(B).fieldDraft.value.indexed,
|
|
604
|
+
"onUpdate:checked": u[12] ||= (e) => N(B).fieldDraft.value.indexed = e
|
|
600
605
|
}, {
|
|
601
|
-
default:
|
|
606
|
+
default: P(() => [...u[37] ||= [D("建立索引", -1)]]),
|
|
602
607
|
_: 1
|
|
603
608
|
}, 8, ["checked"]),
|
|
604
|
-
|
|
605
|
-
checked:
|
|
606
|
-
"onUpdate:checked":
|
|
609
|
+
O(N(i), {
|
|
610
|
+
checked: N(B).fieldDraft.value.sortableField,
|
|
611
|
+
"onUpdate:checked": u[13] ||= (e) => N(B).fieldDraft.value.sortableField = e
|
|
607
612
|
}, {
|
|
608
|
-
default:
|
|
613
|
+
default: P(() => [...u[38] ||= [D("排序字段", -1)]]),
|
|
609
614
|
_: 1
|
|
610
615
|
}, 8, ["checked"]),
|
|
611
|
-
|
|
612
|
-
checked:
|
|
613
|
-
"onUpdate:checked":
|
|
616
|
+
O(N(i), {
|
|
617
|
+
checked: N(B).fieldDraft.value.titleField,
|
|
618
|
+
"onUpdate:checked": u[14] ||= (e) => N(B).fieldDraft.value.titleField = e
|
|
614
619
|
}, {
|
|
615
|
-
default:
|
|
620
|
+
default: P(() => [...u[39] ||= [D("标题字段", -1)]]),
|
|
616
621
|
_: 1
|
|
617
622
|
}, 8, ["checked"]),
|
|
618
|
-
|
|
619
|
-
checked:
|
|
620
|
-
"onUpdate:checked":
|
|
623
|
+
O(N(o), {
|
|
624
|
+
checked: N(B).fieldDraft.value.enabled,
|
|
625
|
+
"onUpdate:checked": u[15] ||= (e) => N(B).fieldDraft.value.enabled = e,
|
|
621
626
|
"checked-children": "启用",
|
|
622
627
|
"un-checked-children": "停用"
|
|
623
628
|
}, null, 8, ["checked"])
|
|
624
629
|
])
|
|
625
630
|
], 32)]),
|
|
626
|
-
operation:
|
|
627
|
-
default:
|
|
628
|
-
disabled:
|
|
629
|
-
onClick:
|
|
631
|
+
operation: P(() => [O(N(_), null, {
|
|
632
|
+
default: P(() => [O(N(t), {
|
|
633
|
+
disabled: K.value,
|
|
634
|
+
onClick: N(B).cancelEditor
|
|
630
635
|
}, {
|
|
631
|
-
default:
|
|
636
|
+
default: P(() => [...u[40] ||= [D("取消", -1)]]),
|
|
632
637
|
_: 1
|
|
633
|
-
}, 8, ["disabled", "onClick"]),
|
|
638
|
+
}, 8, ["disabled", "onClick"]), O(N(t), {
|
|
634
639
|
emphasis: "primary",
|
|
635
640
|
submit: "",
|
|
636
|
-
loading:
|
|
641
|
+
loading: K.value,
|
|
637
642
|
onClick: Z
|
|
638
643
|
}, {
|
|
639
|
-
default:
|
|
644
|
+
default: P(() => [...u[41] ||= [D("保存", -1)]]),
|
|
640
645
|
_: 1
|
|
641
646
|
}, 8, ["loading"])]),
|
|
642
647
|
_: 1
|
|
@@ -645,11 +650,12 @@ var ce = { class: "entity-overview" }, le = { class: "field-section" }, ue = { c
|
|
|
645
650
|
}, 8, [
|
|
646
651
|
"open",
|
|
647
652
|
"title",
|
|
653
|
+
"container",
|
|
648
654
|
"subtitle",
|
|
649
655
|
"onClose"
|
|
650
656
|
])
|
|
651
657
|
], 64));
|
|
652
658
|
}
|
|
653
|
-
}), [["__scopeId", "data-v-
|
|
659
|
+
}), [["__scopeId", "data-v-3dcd57f0"]]);
|
|
654
660
|
//#endregion
|
|
655
|
-
export {
|
|
661
|
+
export { K as default };
|