@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
package/dist/{MetadataOrchestrationView-CprWBocy.js → MetadataOrchestrationView-2JxJkFEC.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $t as e, Dt as t, Et as n, G as r, Gt as i, Ht as a,
|
|
2
|
-
import { Fragment as
|
|
1
|
+
import { $t as e, Dt as t, Et as n, G as r, Gt as i, Ht as a, Jt as o, Lt as s, Mt as c, Pt as l, Qt as u, R as d, S as f, Vt as p, Xt as m, Yt as h, Zt as g, _t as _, it as v, mt as y, on as b, rt as x, un as S, x as C } from "./platform-components-CgMBopmF.js";
|
|
2
|
+
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as ee, createElementBlock as te, createElementVNode as D, createTextVNode as O, createVNode as k, defineComponent as A, onMounted as ne, openBlock as j, ref as M, toDisplayString as N, unref as P, watch as re, withCtx as F, withModifiers as I } from "vue";
|
|
3
3
|
//#region src/views/metadataOrchestrationState.ts
|
|
4
|
-
function
|
|
5
|
-
let e = M([]), t = M({}), n = M(), r = M([]), i = M([]), a = M("view"), o = M(
|
|
4
|
+
function ie() {
|
|
5
|
+
let e = M([]), t = M({}), n = M(), r = M([]), i = M([]), a = M("view"), o = M(L()), s = M(B()), c = T(() => e.value.find((e) => e.id === n.value)), l = T(() => c.value?.metadataId ? t.value[c.value.metadataId] : void 0), u = T(() => e.value.some((e) => e.relationRole === "MAIN")), d = T(() => a.value === "create-main"), f = T(() => a.value === "create-field" || a.value === "edit-field"), p = T(() => U(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));
|
|
@@ -15,7 +15,7 @@ function re() {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
function g(e) {
|
|
18
|
-
r.value =
|
|
18
|
+
r.value = H(e);
|
|
19
19
|
}
|
|
20
20
|
function _(e) {
|
|
21
21
|
i.value = e;
|
|
@@ -27,13 +27,13 @@ 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 = L(), a.value = "create-main";
|
|
31
31
|
}
|
|
32
32
|
function x() {
|
|
33
|
-
l.value?.id && (s.value =
|
|
33
|
+
l.value?.id && (s.value = B(), a.value = "create-field");
|
|
34
34
|
}
|
|
35
35
|
function S(e) {
|
|
36
|
-
l.value?.id && (s.value =
|
|
36
|
+
l.value?.id && (s.value = V(e), a.value = "edit-field");
|
|
37
37
|
}
|
|
38
38
|
function C() {
|
|
39
39
|
a.value = "view";
|
|
@@ -65,7 +65,7 @@ function re() {
|
|
|
65
65
|
cancelEditor: C
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function L() {
|
|
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 R(e) {
|
|
78
78
|
return {
|
|
79
79
|
...e,
|
|
80
80
|
alias: e.alias.trim(),
|
|
@@ -83,10 +83,10 @@ function ie(e) {
|
|
|
83
83
|
tableName: e.tableName.trim()
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function z(e) {
|
|
87
87
|
return !!(e.alias.trim() && e.title.trim());
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function B() {
|
|
90
90
|
return {
|
|
91
91
|
fieldName: "",
|
|
92
92
|
columnName: "",
|
|
@@ -102,13 +102,13 @@ function z() {
|
|
|
102
102
|
enabled: !0
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function V(e) {
|
|
106
106
|
return { ...e };
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ae(e) {
|
|
109
109
|
return !!(e.fieldName?.trim() && e.columnName?.trim() && e.fieldSpecAlias);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function oe(e) {
|
|
112
112
|
return {
|
|
113
113
|
...e,
|
|
114
114
|
fieldName: e.fieldName?.trim(),
|
|
@@ -116,39 +116,39 @@ function se(e) {
|
|
|
116
116
|
title: e.title?.trim()
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function H(e) {
|
|
120
120
|
return e.filter((e) => e.fieldOwnership === "BUSINESS" && e.fieldForm === "PHYSICAL" && e.systemManaged !== !0);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function U(e) {
|
|
123
123
|
return e.filter((e) => e.enabled !== !1).map((e) => ({
|
|
124
124
|
value: e.alias ?? e.id ?? "",
|
|
125
125
|
label: e.title ?? e.alias ?? e.id ?? "未命名字段规格"
|
|
126
126
|
})).filter((e) => e.value);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function W(e, t) {
|
|
129
129
|
return t?.title ?? e.relationAlias ?? "未命名实体";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function G(e) {
|
|
132
132
|
if (e === "MAIN") return "主实体";
|
|
133
133
|
if (e === "CHILD") return "子实体";
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
let n =
|
|
135
|
+
function K(e, t) {
|
|
136
|
+
let n = W(e, t), r = t?.alias ?? e.relationAlias;
|
|
137
137
|
return {
|
|
138
138
|
title: n,
|
|
139
139
|
secondary: r && r !== n ? r : void 0,
|
|
140
|
-
tag:
|
|
140
|
+
tag: G(e.relationRole),
|
|
141
141
|
muted: t?.enabled === !1 ? !0 : void 0
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function se(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 ce = { class: "entity-overview" }, le = { class: "field-section" }, ue = { class: "orchestration-form-flags" }, q = 200, J = /*#__PURE__*/ e(/* @__PURE__ */ A({
|
|
152
152
|
name: "MetadataOrchestrationView",
|
|
153
153
|
__name: "MetadataOrchestrationView",
|
|
154
154
|
props: {
|
|
@@ -156,8 +156,8 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
156
156
|
moduleTitle: {},
|
|
157
157
|
title: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
let
|
|
159
|
+
setup(e) {
|
|
160
|
+
let T = e, A = b({ moduleAlias: "platform.module" }), L = S(A.http, "/platform.metadata"), B = ie(), V = M(!1), H = M(!1), U = M(""), G = [
|
|
161
161
|
{
|
|
162
162
|
key: "title",
|
|
163
163
|
title: "字段"
|
|
@@ -183,23 +183,23 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
183
183
|
width: 70
|
|
184
184
|
}
|
|
185
185
|
];
|
|
186
|
-
|
|
187
|
-
async function
|
|
188
|
-
|
|
186
|
+
re(() => T.moduleAlias, () => void J(), { immediate: !0 }), ne(() => void de());
|
|
187
|
+
async function J() {
|
|
188
|
+
V.value = !0;
|
|
189
189
|
try {
|
|
190
|
-
|
|
190
|
+
B.handleRelationsLoaded(await $(Q("/query"))), await Y();
|
|
191
191
|
} catch (e) {
|
|
192
192
|
n(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 de() {
|
|
201
201
|
try {
|
|
202
|
-
|
|
202
|
+
B.handleFieldSpecsLoaded(await $("/platform.field_spec/query"));
|
|
203
203
|
} catch (e) {
|
|
204
204
|
n(e, {
|
|
205
205
|
source: "metadata-orchestration",
|
|
@@ -207,14 +207,14 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
async function
|
|
211
|
-
|
|
210
|
+
async function fe(e) {
|
|
211
|
+
B.selectRelation(e) && await Y();
|
|
212
212
|
}
|
|
213
|
-
async function
|
|
214
|
-
let e =
|
|
215
|
-
if (
|
|
216
|
-
let t = await
|
|
217
|
-
|
|
213
|
+
async function Y() {
|
|
214
|
+
let e = B.selectedRelation.value?.metadataId;
|
|
215
|
+
if (B.handleFieldsLoaded([]), e) try {
|
|
216
|
+
let t = await L.view(e);
|
|
217
|
+
B.handleMetadataLoaded(t), B.handleFieldsLoaded(await $(`/platform.metadata/${encodeURIComponent(e)}/fields/query`));
|
|
218
218
|
} catch (e) {
|
|
219
219
|
n(e, {
|
|
220
220
|
source: "metadata-orchestration",
|
|
@@ -222,23 +222,23 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
async function
|
|
226
|
-
let e =
|
|
227
|
-
if (!
|
|
225
|
+
async function X() {
|
|
226
|
+
let e = R(B.mainMetadataDraft.value);
|
|
227
|
+
if (!z(e)) {
|
|
228
228
|
t("请填写实体 alias 和名称", {
|
|
229
229
|
source: "metadata-orchestration",
|
|
230
230
|
phase: "validation"
|
|
231
231
|
});
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
H.value = !0;
|
|
235
235
|
try {
|
|
236
236
|
let t = await A.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 _({
|
|
242
242
|
success: !0,
|
|
243
243
|
message: "主实体已创建"
|
|
244
244
|
}, { source: "metadata-orchestration" });
|
|
@@ -248,21 +248,21 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
248
248
|
phase: "action"
|
|
249
249
|
});
|
|
250
250
|
} finally {
|
|
251
|
-
|
|
251
|
+
H.value = !1;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
async function
|
|
255
|
-
let e =
|
|
254
|
+
async function Z() {
|
|
255
|
+
let e = B.selectedMetadata.value?.id;
|
|
256
256
|
if (!e) return;
|
|
257
|
-
let r =
|
|
258
|
-
if (!
|
|
257
|
+
let r = oe(B.fieldDraft.value);
|
|
258
|
+
if (!ae(r)) {
|
|
259
259
|
t("请填写字段名、物理列名和字段规格", {
|
|
260
260
|
source: "metadata-orchestration",
|
|
261
261
|
phase: "validation"
|
|
262
262
|
});
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
H.value = !0;
|
|
266
266
|
try {
|
|
267
267
|
let t = {
|
|
268
268
|
...r,
|
|
@@ -278,7 +278,7 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
278
278
|
method: "POST",
|
|
279
279
|
path: `/platform.metadata/${encodeURIComponent(e)}/fields/insert`,
|
|
280
280
|
body: t
|
|
281
|
-
}),
|
|
281
|
+
}), B.cancelEditor(), await Y(), await _({
|
|
282
282
|
success: !0,
|
|
283
283
|
message: "字段已保存"
|
|
284
284
|
}, { source: "metadata-orchestration" });
|
|
@@ -288,43 +288,43 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
288
288
|
phase: "action"
|
|
289
289
|
});
|
|
290
290
|
} finally {
|
|
291
|
-
|
|
291
|
+
H.value = !1;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
async function
|
|
295
|
-
let t =
|
|
296
|
-
if (!(!t || !e.id || !await
|
|
294
|
+
async function pe(e) {
|
|
295
|
+
let t = B.selectedMetadata.value?.id;
|
|
296
|
+
if (!(!t || !e.id || !await l({
|
|
297
297
|
title: "删除字段",
|
|
298
298
|
content: `确认删除字段“${e.title ?? e.fieldName}”?`,
|
|
299
299
|
okText: "删除",
|
|
300
300
|
danger: !0
|
|
301
301
|
}))) {
|
|
302
|
-
|
|
302
|
+
H.value = !0;
|
|
303
303
|
try {
|
|
304
304
|
await A.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
|
-
}), await
|
|
308
|
+
}), await Y();
|
|
309
309
|
} catch (e) {
|
|
310
310
|
n(e, {
|
|
311
311
|
source: "metadata-orchestration",
|
|
312
312
|
phase: "action"
|
|
313
313
|
});
|
|
314
314
|
} finally {
|
|
315
|
-
|
|
315
|
+
H.value = !1;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
async function me() {
|
|
320
|
-
let e =
|
|
320
|
+
let e = B.selectedRelation.value;
|
|
321
321
|
if (e?.id) {
|
|
322
|
-
|
|
322
|
+
H.value = !0;
|
|
323
323
|
try {
|
|
324
324
|
await A.http.request({
|
|
325
325
|
method: "POST",
|
|
326
326
|
path: Q(`/${encodeURIComponent(e.id)}/fields/ensure`)
|
|
327
|
-
}), await
|
|
327
|
+
}), await _({
|
|
328
328
|
success: !0,
|
|
329
329
|
message: "模块字段配置已同步"
|
|
330
330
|
}, { source: "metadata-orchestration" });
|
|
@@ -334,12 +334,12 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
334
334
|
phase: "action"
|
|
335
335
|
});
|
|
336
336
|
} finally {
|
|
337
|
-
|
|
337
|
+
H.value = !1;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
function Q(e) {
|
|
342
|
-
return `/platform.module/${encodeURIComponent(
|
|
342
|
+
return `/platform.module/${encodeURIComponent(T.moduleAlias)}/metadata-relations${e}`;
|
|
343
343
|
}
|
|
344
344
|
async function $(e) {
|
|
345
345
|
let t = [];
|
|
@@ -349,191 +349,191 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
349
349
|
path: e,
|
|
350
350
|
body: { page: {
|
|
351
351
|
pageNum: n,
|
|
352
|
-
pageSize:
|
|
352
|
+
pageSize: q
|
|
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 < q) return t;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
function he(e) {
|
|
359
|
-
return e.metadataId ?
|
|
359
|
+
return e.metadataId ? B.metadataById.value[e.metadataId] : void 0;
|
|
360
360
|
}
|
|
361
361
|
function ge(e) {
|
|
362
362
|
let t = e;
|
|
363
|
-
return
|
|
363
|
+
return K(t, he(t));
|
|
364
364
|
}
|
|
365
365
|
function _e(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 (t, n) => (j(),
|
|
370
|
-
k(P(
|
|
369
|
+
return (t, n) => (j(), te(w, null, [
|
|
370
|
+
k(P(v), {
|
|
371
371
|
class: "metadata-orchestration-workspace",
|
|
372
372
|
"explorer-count": 1
|
|
373
373
|
}, {
|
|
374
|
-
default:
|
|
375
|
-
default:
|
|
376
|
-
"search-keyword":
|
|
377
|
-
"onUpdate:searchKeyword": n[0] ||= (e) =>
|
|
374
|
+
default: F(() => [k(P(x), null, {
|
|
375
|
+
default: F(() => [k(P(d), {
|
|
376
|
+
"search-keyword": U.value,
|
|
377
|
+
"onUpdate:searchKeyword": n[0] ||= (e) => U.value = e,
|
|
378
378
|
title: "实体",
|
|
379
379
|
"search-placeholder": "搜索实体名称或 alias",
|
|
380
|
-
onRefresh:
|
|
380
|
+
onRefresh: J
|
|
381
381
|
}, {
|
|
382
|
-
actions:
|
|
382
|
+
actions: F(() => [P(B).hasMainMetadata.value ? ee("v-if", !0) : (j(), E(P(u), {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "record-panel-create-button",
|
|
385
385
|
type: "primary",
|
|
386
386
|
"icon-name": "plus",
|
|
387
387
|
title: "新建主实体",
|
|
388
|
-
disabled:
|
|
389
|
-
onClick: P(
|
|
388
|
+
disabled: V.value || H.value,
|
|
389
|
+
onClick: P(B).startCreateMain
|
|
390
390
|
}, null, 8, ["disabled", "onClick"]))]),
|
|
391
|
-
default:
|
|
391
|
+
default: F(() => [V.value ? (j(), E(P(s), {
|
|
392
392
|
key: 0,
|
|
393
393
|
tip: "加载实体"
|
|
394
|
-
})) : P(
|
|
394
|
+
})) : P(B).relations.value.length ? (j(), E(P(c), {
|
|
395
395
|
key: 2,
|
|
396
|
-
records: P(
|
|
397
|
-
"selected-id": P(
|
|
398
|
-
keyword:
|
|
396
|
+
records: P(B).relations.value,
|
|
397
|
+
"selected-id": P(B).selectedRelationId.value,
|
|
398
|
+
keyword: U.value,
|
|
399
399
|
"empty-description": "暂无实体",
|
|
400
400
|
"item-of": ge,
|
|
401
|
-
onSelect:
|
|
401
|
+
onSelect: fe
|
|
402
402
|
}, null, 8, [
|
|
403
403
|
"records",
|
|
404
404
|
"selected-id",
|
|
405
405
|
"keyword"
|
|
406
|
-
])) : (j(),
|
|
406
|
+
])) : (j(), E(P(a), {
|
|
407
407
|
key: 1,
|
|
408
408
|
description: "请先创建动态模块的主实体"
|
|
409
409
|
}))]),
|
|
410
410
|
_: 1
|
|
411
411
|
}, 8, ["search-keyword"])]),
|
|
412
412
|
_: 1
|
|
413
|
-
}), P(
|
|
413
|
+
}), P(B).selectedMetadata.value && P(B).selectedRelation.value ? (j(), E(P(r), {
|
|
414
414
|
key: 0,
|
|
415
|
-
title: P(
|
|
416
|
-
subtitle: P(
|
|
415
|
+
title: P(W)(P(B).selectedRelation.value, P(B).selectedMetadata.value),
|
|
416
|
+
subtitle: P(se)(P(B).selectedMetadata.value)
|
|
417
417
|
}, {
|
|
418
|
-
actions:
|
|
418
|
+
actions: F(() => [k(P(g), {
|
|
419
419
|
emphasis: "quiet",
|
|
420
|
-
disabled:
|
|
420
|
+
disabled: H.value || V.value,
|
|
421
421
|
onClick: me
|
|
422
422
|
}, {
|
|
423
|
-
default:
|
|
423
|
+
default: F(() => [...n[16] ||= [O(" 同步模块字段配置 ", -1)]]),
|
|
424
424
|
_: 1
|
|
425
|
-
}, 8, ["disabled"]), k(P(
|
|
425
|
+
}, 8, ["disabled"]), k(P(g), {
|
|
426
426
|
emphasis: "primary",
|
|
427
|
-
disabled:
|
|
428
|
-
onClick: P(
|
|
427
|
+
disabled: H.value || V.value,
|
|
428
|
+
onClick: P(B).startCreateField
|
|
429
429
|
}, {
|
|
430
|
-
default:
|
|
430
|
+
default: F(() => [...n[17] ||= [O(" 新增字段 ", -1)]]),
|
|
431
431
|
_: 1
|
|
432
432
|
}, 8, ["disabled", "onClick"])]),
|
|
433
|
-
default:
|
|
434
|
-
D("dl",
|
|
435
|
-
D("div", null, [n[18] ||= D("dt", null, "实体 alias", -1), D("dd", null, N(P(
|
|
436
|
-
D("div", null, [n[19] ||= D("dt", null, "物理表", -1), D("dd", null, N(P(
|
|
437
|
-
D("div", null, [n[20] ||= D("dt", null, "数据权限范围", -1), D("dd", null, N(P(
|
|
433
|
+
default: F(() => [
|
|
434
|
+
D("dl", ce, [
|
|
435
|
+
D("div", null, [n[18] ||= D("dt", null, "实体 alias", -1), D("dd", null, N(P(B).selectedMetadata.value.alias ?? "-"), 1)]),
|
|
436
|
+
D("div", null, [n[19] ||= D("dt", null, "物理表", -1), D("dd", null, N(P(B).selectedMetadata.value.tableName ? `${P(B).selectedMetadata.value.schemaName ?? "public"}.${P(B).selectedMetadata.value.tableName}` : "-"), 1)]),
|
|
437
|
+
D("div", null, [n[20] ||= D("dt", null, "数据权限范围", -1), D("dd", null, N(P(B).selectedMetadata.value.dataScopeEnabled ? "已启用" : "未启用"), 1)])
|
|
438
438
|
]),
|
|
439
|
-
D("section",
|
|
439
|
+
D("section", le, [n[23] ||= D("header", { class: "field-section-header" }, [D("h3", null, "业务字段")], -1), V.value ? (j(), E(P(s), {
|
|
440
440
|
key: 0,
|
|
441
441
|
tip: "加载字段"
|
|
442
|
-
})) : P(
|
|
442
|
+
})) : P(B).fields.value.length ? (j(), E(P(p), {
|
|
443
443
|
key: 2,
|
|
444
|
-
columns:
|
|
445
|
-
rows: P(
|
|
444
|
+
columns: G,
|
|
445
|
+
rows: P(B).fields.value,
|
|
446
446
|
"show-action-column": "",
|
|
447
447
|
"action-column-title": "操作"
|
|
448
448
|
}, {
|
|
449
|
-
cell:
|
|
450
|
-
rowActions:
|
|
449
|
+
cell: F(({ column: e, record: t }) => [O(N(_e(e, t)), 1)]),
|
|
450
|
+
rowActions: F(({ record: e }) => [k(P(g), {
|
|
451
451
|
emphasis: "quiet",
|
|
452
452
|
density: "compact",
|
|
453
|
-
onClick: (
|
|
453
|
+
onClick: (t) => P(B).startEditField(e)
|
|
454
454
|
}, {
|
|
455
|
-
default:
|
|
455
|
+
default: F(() => [...n[21] ||= [O(" 编辑 ", -1)]]),
|
|
456
456
|
_: 1
|
|
457
|
-
}, 8, ["onClick"]), k(P(
|
|
457
|
+
}, 8, ["onClick"]), k(P(g), {
|
|
458
458
|
emphasis: "quiet",
|
|
459
459
|
density: "compact",
|
|
460
460
|
intent: "danger",
|
|
461
|
-
disabled:
|
|
462
|
-
onClick: (
|
|
461
|
+
disabled: H.value,
|
|
462
|
+
onClick: (t) => pe(e)
|
|
463
463
|
}, {
|
|
464
|
-
default:
|
|
464
|
+
default: F(() => [...n[22] ||= [O(" 删除 ", -1)]]),
|
|
465
465
|
_: 1
|
|
466
466
|
}, 8, ["disabled", "onClick"])]),
|
|
467
467
|
_: 1
|
|
468
|
-
}, 8, ["rows"])) : (j(),
|
|
468
|
+
}, 8, ["rows"])) : (j(), E(P(a), {
|
|
469
469
|
key: 1,
|
|
470
470
|
description: "暂无业务字段,点击右上角新增字段"
|
|
471
471
|
}))]),
|
|
472
|
-
k(P(
|
|
472
|
+
k(P(f), { record: P(B).selectedMetadata.value }, null, 8, ["record"])
|
|
473
473
|
]),
|
|
474
474
|
_: 1
|
|
475
|
-
}, 8, ["title", "subtitle"])) : (j(),
|
|
475
|
+
}, 8, ["title", "subtitle"])) : (j(), E(P(r), {
|
|
476
476
|
key: 1,
|
|
477
477
|
title: "字段编排"
|
|
478
478
|
}, {
|
|
479
|
-
default:
|
|
479
|
+
default: F(() => [k(P(a), { description: "从左侧选择实体后开始字段编排" })]),
|
|
480
480
|
_: 1
|
|
481
481
|
}))]),
|
|
482
482
|
_: 1
|
|
483
483
|
}),
|
|
484
484
|
k(P(C), {
|
|
485
|
-
open: P(
|
|
485
|
+
open: P(B).mainEditorOpen.value,
|
|
486
486
|
title: "新建主实体",
|
|
487
|
-
subtitle:
|
|
487
|
+
subtitle: e.moduleTitle ?? e.moduleAlias,
|
|
488
488
|
mode: "create",
|
|
489
|
-
onClose: P(
|
|
489
|
+
onClose: P(B).cancelEditor
|
|
490
490
|
}, {
|
|
491
|
-
form:
|
|
491
|
+
form: F(() => [D("form", {
|
|
492
492
|
class: "orchestration-form",
|
|
493
|
-
onSubmit:
|
|
493
|
+
onSubmit: I(X, ["prevent"])
|
|
494
494
|
}, [
|
|
495
|
-
D("label", null, [n[24] ||= D("span", null, "实体 alias", -1), k(P(
|
|
496
|
-
value: P(
|
|
497
|
-
"onUpdate:value": n[1] ||= (e) => P(
|
|
495
|
+
D("label", null, [n[24] ||= D("span", null, "实体 alias", -1), k(P(o), {
|
|
496
|
+
value: P(B).mainMetadataDraft.value.alias,
|
|
497
|
+
"onUpdate:value": n[1] ||= (e) => P(B).mainMetadataDraft.value.alias = e,
|
|
498
498
|
placeholder: "例如 customer"
|
|
499
499
|
}, null, 8, ["value"])]),
|
|
500
|
-
D("label", null, [n[25] ||= D("span", null, "实体名称", -1), k(P(
|
|
501
|
-
value: P(
|
|
502
|
-
"onUpdate:value": n[2] ||= (e) => P(
|
|
500
|
+
D("label", null, [n[25] ||= D("span", null, "实体名称", -1), k(P(o), {
|
|
501
|
+
value: P(B).mainMetadataDraft.value.title,
|
|
502
|
+
"onUpdate:value": n[2] ||= (e) => P(B).mainMetadataDraft.value.title = e,
|
|
503
503
|
placeholder: "例如 客户"
|
|
504
504
|
}, null, 8, ["value"])]),
|
|
505
|
-
D("label", null, [n[26] ||= D("span", null, "Schema(可选)", -1), k(P(
|
|
506
|
-
value: P(
|
|
507
|
-
"onUpdate:value": n[3] ||= (e) => P(
|
|
505
|
+
D("label", null, [n[26] ||= D("span", null, "Schema(可选)", -1), k(P(o), {
|
|
506
|
+
value: P(B).mainMetadataDraft.value.schemaName,
|
|
507
|
+
"onUpdate:value": n[3] ||= (e) => P(B).mainMetadataDraft.value.schemaName = e,
|
|
508
508
|
placeholder: "默认 public"
|
|
509
509
|
}, null, 8, ["value"])]),
|
|
510
|
-
D("label", null, [n[27] ||= D("span", null, "物理表名(可选)", -1), k(P(
|
|
511
|
-
value: P(
|
|
512
|
-
"onUpdate:value": n[4] ||= (e) => P(
|
|
510
|
+
D("label", null, [n[27] ||= D("span", null, "物理表名(可选)", -1), k(P(o), {
|
|
511
|
+
value: P(B).mainMetadataDraft.value.tableName,
|
|
512
|
+
"onUpdate:value": n[4] ||= (e) => P(B).mainMetadataDraft.value.tableName = e,
|
|
513
513
|
placeholder: "默认按应用和 alias 生成"
|
|
514
514
|
}, null, 8, ["value"])]),
|
|
515
515
|
k(P(m), {
|
|
516
|
-
checked: P(
|
|
517
|
-
"onUpdate:checked": n[5] ||= (e) => P(
|
|
516
|
+
checked: P(B).mainMetadataDraft.value.dataScopeEnabled,
|
|
517
|
+
"onUpdate:checked": n[5] ||= (e) => P(B).mainMetadataDraft.value.dataScopeEnabled = e
|
|
518
518
|
}, {
|
|
519
|
-
default:
|
|
519
|
+
default: F(() => [...n[28] ||= [O(" 启用数据权限范围 ", -1)]]),
|
|
520
520
|
_: 1
|
|
521
521
|
}, 8, ["checked"])
|
|
522
522
|
], 32)]),
|
|
523
|
-
operation:
|
|
524
|
-
default:
|
|
525
|
-
disabled:
|
|
526
|
-
onClick: P(
|
|
523
|
+
operation: F(() => [k(P(y), null, {
|
|
524
|
+
default: F(() => [k(P(g), {
|
|
525
|
+
disabled: H.value,
|
|
526
|
+
onClick: P(B).cancelEditor
|
|
527
527
|
}, {
|
|
528
|
-
default:
|
|
528
|
+
default: F(() => [...n[29] ||= [O("取消", -1)]]),
|
|
529
529
|
_: 1
|
|
530
|
-
}, 8, ["disabled", "onClick"]), k(P(
|
|
530
|
+
}, 8, ["disabled", "onClick"]), k(P(g), {
|
|
531
531
|
emphasis: "primary",
|
|
532
532
|
submit: "",
|
|
533
|
-
loading:
|
|
534
|
-
onClick:
|
|
533
|
+
loading: H.value,
|
|
534
|
+
onClick: X
|
|
535
535
|
}, {
|
|
536
|
-
default:
|
|
536
|
+
default: F(() => [...n[30] ||= [O(" 创建 ", -1)]]),
|
|
537
537
|
_: 1
|
|
538
538
|
}, 8, ["loading"])]),
|
|
539
539
|
_: 1
|
|
@@ -545,98 +545,98 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
545
545
|
"onClose"
|
|
546
546
|
]),
|
|
547
547
|
k(P(C), {
|
|
548
|
-
open: P(
|
|
549
|
-
title: P(
|
|
550
|
-
subtitle: P(
|
|
548
|
+
open: P(B).fieldEditorOpen.value,
|
|
549
|
+
title: P(B).mode.value === "edit-field" ? "编辑字段" : "新增字段",
|
|
550
|
+
subtitle: P(B).selectedMetadata.value?.title,
|
|
551
551
|
mode: "create",
|
|
552
|
-
onClose: P(
|
|
552
|
+
onClose: P(B).cancelEditor
|
|
553
553
|
}, {
|
|
554
|
-
form:
|
|
554
|
+
form: F(() => [D("form", {
|
|
555
555
|
class: "orchestration-form",
|
|
556
|
-
onSubmit:
|
|
556
|
+
onSubmit: I(Z, ["prevent"])
|
|
557
557
|
}, [
|
|
558
|
-
D("label", null, [n[31] ||= D("span", null, "字段名称", -1), k(P(
|
|
559
|
-
value: P(
|
|
560
|
-
"onUpdate:value": n[6] ||= (e) => P(
|
|
561
|
-
disabled: !!P(
|
|
558
|
+
D("label", null, [n[31] ||= D("span", null, "字段名称", -1), k(P(o), {
|
|
559
|
+
value: P(B).fieldDraft.value.fieldName,
|
|
560
|
+
"onUpdate:value": n[6] ||= (e) => P(B).fieldDraft.value.fieldName = e,
|
|
561
|
+
disabled: !!P(B).fieldDraft.value.id,
|
|
562
562
|
placeholder: "例如 customerName"
|
|
563
563
|
}, null, 8, ["value", "disabled"])]),
|
|
564
|
-
D("label", null, [n[32] ||= D("span", null, "物理列名", -1), k(P(
|
|
565
|
-
value: P(
|
|
566
|
-
"onUpdate:value": n[7] ||= (e) => P(
|
|
567
|
-
disabled: !!P(
|
|
564
|
+
D("label", null, [n[32] ||= D("span", null, "物理列名", -1), k(P(o), {
|
|
565
|
+
value: P(B).fieldDraft.value.columnName,
|
|
566
|
+
"onUpdate:value": n[7] ||= (e) => P(B).fieldDraft.value.columnName = e,
|
|
567
|
+
disabled: !!P(B).fieldDraft.value.id,
|
|
568
568
|
placeholder: "例如 customer_name"
|
|
569
569
|
}, null, 8, ["value", "disabled"])]),
|
|
570
|
-
D("label", null, [n[33] ||= D("span", null, "显示名称", -1), k(P(
|
|
571
|
-
value: P(
|
|
572
|
-
"onUpdate:value": n[8] ||= (e) => P(
|
|
570
|
+
D("label", null, [n[33] ||= D("span", null, "显示名称", -1), k(P(o), {
|
|
571
|
+
value: P(B).fieldDraft.value.title,
|
|
572
|
+
"onUpdate:value": n[8] ||= (e) => P(B).fieldDraft.value.title = e,
|
|
573
573
|
placeholder: "例如 客户名称"
|
|
574
574
|
}, null, 8, ["value"])]),
|
|
575
|
-
D("label", null, [n[34] ||= D("span", null, "字段规格", -1), k(P(
|
|
576
|
-
value: P(
|
|
577
|
-
"onUpdate:value": n[9] ||= (e) => P(
|
|
578
|
-
options: P(
|
|
575
|
+
D("label", null, [n[34] ||= D("span", null, "字段规格", -1), k(P(h), {
|
|
576
|
+
value: P(B).fieldDraft.value.fieldSpecAlias,
|
|
577
|
+
"onUpdate:value": n[9] ||= (e) => P(B).fieldDraft.value.fieldSpecAlias = e,
|
|
578
|
+
options: P(B).fieldSpecOptions.value,
|
|
579
579
|
placeholder: "选择字段规格",
|
|
580
580
|
style: { width: "100%" }
|
|
581
581
|
}, null, 8, ["value", "options"])]),
|
|
582
|
-
D("div",
|
|
582
|
+
D("div", ue, [
|
|
583
583
|
k(P(m), {
|
|
584
|
-
checked: P(
|
|
585
|
-
"onUpdate:checked": n[10] ||= (e) => P(
|
|
584
|
+
checked: P(B).fieldDraft.value.required,
|
|
585
|
+
"onUpdate:checked": n[10] ||= (e) => P(B).fieldDraft.value.required = e
|
|
586
586
|
}, {
|
|
587
|
-
default:
|
|
587
|
+
default: F(() => [...n[35] ||= [O("必填", -1)]]),
|
|
588
588
|
_: 1
|
|
589
589
|
}, 8, ["checked"]),
|
|
590
590
|
k(P(m), {
|
|
591
|
-
checked: P(
|
|
592
|
-
"onUpdate:checked": n[11] ||= (e) => P(
|
|
591
|
+
checked: P(B).fieldDraft.value.uniqueField,
|
|
592
|
+
"onUpdate:checked": n[11] ||= (e) => P(B).fieldDraft.value.uniqueField = e
|
|
593
593
|
}, {
|
|
594
|
-
default:
|
|
594
|
+
default: F(() => [...n[36] ||= [O("唯一", -1)]]),
|
|
595
595
|
_: 1
|
|
596
596
|
}, 8, ["checked"]),
|
|
597
597
|
k(P(m), {
|
|
598
|
-
checked: P(
|
|
599
|
-
"onUpdate:checked": n[12] ||= (e) => P(
|
|
598
|
+
checked: P(B).fieldDraft.value.indexed,
|
|
599
|
+
"onUpdate:checked": n[12] ||= (e) => P(B).fieldDraft.value.indexed = e
|
|
600
600
|
}, {
|
|
601
|
-
default:
|
|
601
|
+
default: F(() => [...n[37] ||= [O("建立索引", -1)]]),
|
|
602
602
|
_: 1
|
|
603
603
|
}, 8, ["checked"]),
|
|
604
604
|
k(P(m), {
|
|
605
|
-
checked: P(
|
|
606
|
-
"onUpdate:checked": n[13] ||= (e) => P(
|
|
605
|
+
checked: P(B).fieldDraft.value.sortableField,
|
|
606
|
+
"onUpdate:checked": n[13] ||= (e) => P(B).fieldDraft.value.sortableField = e
|
|
607
607
|
}, {
|
|
608
|
-
default:
|
|
608
|
+
default: F(() => [...n[38] ||= [O("排序字段", -1)]]),
|
|
609
609
|
_: 1
|
|
610
610
|
}, 8, ["checked"]),
|
|
611
611
|
k(P(m), {
|
|
612
|
-
checked: P(
|
|
613
|
-
"onUpdate:checked": n[14] ||= (e) => P(
|
|
612
|
+
checked: P(B).fieldDraft.value.titleField,
|
|
613
|
+
"onUpdate:checked": n[14] ||= (e) => P(B).fieldDraft.value.titleField = e
|
|
614
614
|
}, {
|
|
615
|
-
default:
|
|
615
|
+
default: F(() => [...n[39] ||= [O("标题字段", -1)]]),
|
|
616
616
|
_: 1
|
|
617
617
|
}, 8, ["checked"]),
|
|
618
618
|
k(P(i), {
|
|
619
|
-
checked: P(
|
|
620
|
-
"onUpdate:checked": n[15] ||= (e) => P(
|
|
619
|
+
checked: P(B).fieldDraft.value.enabled,
|
|
620
|
+
"onUpdate:checked": n[15] ||= (e) => P(B).fieldDraft.value.enabled = e,
|
|
621
621
|
"checked-children": "启用",
|
|
622
622
|
"un-checked-children": "停用"
|
|
623
623
|
}, null, 8, ["checked"])
|
|
624
624
|
])
|
|
625
625
|
], 32)]),
|
|
626
|
-
operation:
|
|
627
|
-
default:
|
|
628
|
-
disabled:
|
|
629
|
-
onClick: P(
|
|
626
|
+
operation: F(() => [k(P(y), null, {
|
|
627
|
+
default: F(() => [k(P(g), {
|
|
628
|
+
disabled: H.value,
|
|
629
|
+
onClick: P(B).cancelEditor
|
|
630
630
|
}, {
|
|
631
|
-
default:
|
|
631
|
+
default: F(() => [...n[40] ||= [O("取消", -1)]]),
|
|
632
632
|
_: 1
|
|
633
|
-
}, 8, ["disabled", "onClick"]), k(P(
|
|
633
|
+
}, 8, ["disabled", "onClick"]), k(P(g), {
|
|
634
634
|
emphasis: "primary",
|
|
635
635
|
submit: "",
|
|
636
|
-
loading:
|
|
637
|
-
onClick:
|
|
636
|
+
loading: H.value,
|
|
637
|
+
onClick: Z
|
|
638
638
|
}, {
|
|
639
|
-
default:
|
|
639
|
+
default: F(() => [...n[41] ||= [O("保存", -1)]]),
|
|
640
640
|
_: 1
|
|
641
641
|
}, 8, ["loading"])]),
|
|
642
642
|
_: 1
|
|
@@ -652,4 +652,4 @@ var le = { class: "entity-overview" }, ue = { class: "field-section" }, de = { c
|
|
|
652
652
|
}
|
|
653
653
|
}), [["__scopeId", "data-v-2746e768"]]);
|
|
654
654
|
//#endregion
|
|
655
|
-
export {
|
|
655
|
+
export { J as default };
|