@ximatai/muyun-web-app 0.26.5 → 0.26.7
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-rm9ujeiQ.js → EmployeeDetailWorkspaceView-DYJLlkSz.js} +1 -1
- package/dist/EmployeeManagementView-taxWUa7g.js +1778 -0
- package/dist/{MetadataOrchestrationView-DaPNQML7.js → MetadataOrchestrationView-B-CPudJl.js} +151 -151
- package/dist/ModuleActionManagementView-CmVj0e0C.js +597 -0
- package/dist/{RoleAuthorizationView-qQvn7M75.js → RoleAuthorizationView-q_6CsBYq.js} +194 -194
- package/dist/{RoleDetailWorkspaceView-C-vaKeZM.js → RoleDetailWorkspaceView-DmJlJgAj.js} +1 -1
- package/dist/{RoleManagementView-C3nxfub2.js → RoleManagementView-HCa9rH0f.js} +466 -466
- package/dist/{SystemUserDetailWorkspaceView-FIbfff00.js → SystemUserDetailWorkspaceView-U6Ij0US1.js} +1 -1
- package/dist/SystemUserManagementView-C1CkKivH.js +758 -0
- package/dist/{UserDetailWorkspaceView-M--ndn6x.js → UserDetailWorkspaceView-OPYvD6mH.js} +1 -1
- package/dist/{UserManagementView-MSXf4fno.js → UserManagementView-gbCL9SnC.js} +226 -226
- package/dist/index.css +1 -1
- package/dist/index.js +3309 -2288
- package/dist/pageRealtime-CzJlr9hs.js +225 -0
- package/dist/{platform-components-_3KlZZf5.js → platform-components-DKKWbNrz.js} +4196 -1790
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +33 -0
- package/dist/types/app/LoginView.vue.d.ts +4 -1
- package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +20 -0
- package/dist/types/app/lockedTabPreference.d.ts +6 -0
- package/dist/types/app/themeSkinPreference.d.ts +11 -0
- package/dist/types/app/workbenchRouteSync.d.ts +13 -0
- package/dist/types/app/workbenchStartup.d.ts +14 -1
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +43 -0
- package/dist/types/consumer/index.d.ts +24 -1
- package/dist/types/consumer/userPreferencePersistence.d.ts +7 -0
- package/dist/types/consumer/workbenchNavigation.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +144 -0
- package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +70 -0
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +30 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +8 -6
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +5 -5
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +6 -6
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +29 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +8 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
- package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +23 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +25 -0
- package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
- package/dist/types/platform-components/index.d.ts +15 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +4 -0
- package/dist/types/platform-components/platformFileSize.d.ts +10 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +12 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +24 -3
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -1
- package/dist/types/platform-components/staticCrudManagementState.d.ts +1 -1
- package/dist/types/platform-workbench/Workbench.vue.d.ts +12 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +41 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +39 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
- package/dist/types/platform-workbench/WorkbenchSidebarMenuEntry.vue.d.ts +19 -0
- package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +7 -0
- package/dist/types/platform-workbench/menuHoverClickIntent.d.ts +10 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +4 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
- package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
- package/dist/types/views/applicationManagementState.d.ts +1 -1
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/fieldSpecManagementState.d.ts +1 -1
- package/dist/types/views/fieldUiControlManagementState.d.ts +1 -1
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/tenantManagementState.d.ts +11 -1
- package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTabs.vue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiThemeProvider.vue.d.ts +21 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/index.d.ts +6 -0
- package/dist/types/vue-ui-antdv/theme.d.ts +58 -0
- package/dist/types/vue-ui-antdv/themeGlobalScope.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +4 -9
- package/dist/types/web-contracts/index.d.ts +168 -0
- package/dist/types/web-core/clients.d.ts +14 -1
- package/dist/types/web-core/http.d.ts +12 -1
- package/dist/types/web-core/index.d.ts +2 -0
- package/dist/types/web-core/mock.d.ts +3 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
- package/dist/types/web-core/userPreferences.d.ts +24 -0
- package/dist/{useUserSessionRows-iAqK_cUy.js → useUserSessionRows-CBHEzRFQ.js} +2 -2
- package/dist/workspaceViewSessions-DkB9myrq.js +3252 -0
- package/package.json +1 -1
- package/dist/EmployeeManagementView-DyYMWQ64.js +0 -1706
- package/dist/ModuleActionManagementView-BFoPGqzC.js +0 -597
- package/dist/SystemUserManagementView-m6vwJDxI.js +0 -761
- package/dist/pageRealtime-4LXXvVW7.js +0 -140
- package/dist/workspaceViewSessions-DW0wbyQ_.js +0 -1448
package/dist/{MetadataOrchestrationView-DaPNQML7.js → MetadataOrchestrationView-B-CPudJl.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment as ee, computed as w, createBlock as T, createCommentVNode as
|
|
1
|
+
import { At as e, C as t, Dt as n, J as r, L as i, Mt as a, O as o, Ot as s, R as c, Ut as l, X as u, _ as d, at as f, bt as p, g as m, gt as h, ht as g, jt as _, kt as v, rt as y, st as b, tt as x, ut as S, zt as C } from "./platform-components-DKKWbNrz.js";
|
|
2
|
+
import { Fragment as ee, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createTextVNode as k, createVNode as A, defineComponent as j, onMounted as te, openBlock as M, ref as N, toDisplayString as P, unref as F, watch as ne, withCtx as I, withModifiers as L } from "vue";
|
|
3
3
|
//#region src/views/metadataOrchestrationState.ts
|
|
4
|
-
function
|
|
5
|
-
let e =
|
|
4
|
+
function re() {
|
|
5
|
+
let e = N([]), t = N({}), n = N(), r = N([]), i = N([]), a = N("view"), o = N(R()), s = N(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 I() {
|
|
|
27
27
|
e && (n.value = e, a.value = "view", r.value = []);
|
|
28
28
|
}
|
|
29
29
|
function b() {
|
|
30
|
-
o.value =
|
|
30
|
+
o.value = R(), 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 I() {
|
|
|
65
65
|
cancelEditor: C
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function R() {
|
|
69
69
|
return {
|
|
70
70
|
alias: "",
|
|
71
71
|
title: "",
|
|
@@ -74,7 +74,7 @@ function L() {
|
|
|
74
74
|
dataScopeEnabled: !1
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function ie(e) {
|
|
78
78
|
return {
|
|
79
79
|
...e,
|
|
80
80
|
alias: e.alias.trim(),
|
|
@@ -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 K(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__*/ a(/* @__PURE__ */ j({
|
|
152
152
|
name: "MetadataOrchestrationView",
|
|
153
153
|
__name: "MetadataOrchestrationView",
|
|
154
154
|
props: {
|
|
@@ -156,8 +156,8 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
156
156
|
moduleTitle: {},
|
|
157
157
|
title: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
let w =
|
|
159
|
+
setup(a) {
|
|
160
|
+
let w = a, j = C({ moduleAlias: "platform.module" }), R = l(j.http, "/platform.metadata"), z = re(), B = N(!1), V = N(!1), H = N(""), W = [
|
|
161
161
|
{
|
|
162
162
|
key: "title",
|
|
163
163
|
title: "字段"
|
|
@@ -183,13 +183,13 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
183
183
|
width: 70
|
|
184
184
|
}
|
|
185
185
|
];
|
|
186
|
-
|
|
186
|
+
ne(() => w.moduleAlias, () => void J(), { immediate: !0 }), te(() => void de());
|
|
187
187
|
async function J() {
|
|
188
188
|
B.value = !0;
|
|
189
189
|
try {
|
|
190
190
|
z.handleRelationsLoaded(await $(Q("/query"))), await Y();
|
|
191
191
|
} catch (e) {
|
|
192
|
-
|
|
192
|
+
x(e, {
|
|
193
193
|
source: "metadata-orchestration",
|
|
194
194
|
phase: "load"
|
|
195
195
|
});
|
|
@@ -201,7 +201,7 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
201
201
|
try {
|
|
202
202
|
z.handleFieldSpecsLoaded(await $("/platform.field_spec/query"));
|
|
203
203
|
} catch (e) {
|
|
204
|
-
|
|
204
|
+
x(e, {
|
|
205
205
|
source: "metadata-orchestration",
|
|
206
206
|
phase: "load"
|
|
207
207
|
});
|
|
@@ -213,17 +213,17 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
213
213
|
async function Y() {
|
|
214
214
|
let e = z.selectedRelation.value?.metadataId;
|
|
215
215
|
if (z.handleFieldsLoaded([]), e) try {
|
|
216
|
-
let t = await
|
|
216
|
+
let t = await R.view(e);
|
|
217
217
|
z.handleMetadataLoaded(t), z.handleFieldsLoaded(await $(`/platform.metadata/${encodeURIComponent(e)}/fields/query`));
|
|
218
218
|
} catch (e) {
|
|
219
|
-
|
|
219
|
+
x(e, {
|
|
220
220
|
source: "metadata-orchestration",
|
|
221
221
|
phase: "load"
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
async function X() {
|
|
226
|
-
let e =
|
|
226
|
+
let e = ie(z.mainMetadataDraft.value);
|
|
227
227
|
if (!ae(e)) {
|
|
228
228
|
y("请填写实体 alias 和名称", {
|
|
229
229
|
source: "metadata-orchestration",
|
|
@@ -233,17 +233,17 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
233
233
|
}
|
|
234
234
|
V.value = !0;
|
|
235
235
|
try {
|
|
236
|
-
let t = await
|
|
236
|
+
let t = await j.http.request({
|
|
237
237
|
method: "POST",
|
|
238
238
|
path: Q("/create-main-metadata"),
|
|
239
239
|
body: e
|
|
240
240
|
});
|
|
241
|
-
z.cancelEditor(), await J(), z.focusRelation(t.relation.id), await Y(), await
|
|
241
|
+
z.cancelEditor(), await J(), z.focusRelation(t.relation.id), await Y(), await u({
|
|
242
242
|
success: !0,
|
|
243
243
|
message: "主实体已创建"
|
|
244
244
|
}, { source: "metadata-orchestration" });
|
|
245
245
|
} catch (e) {
|
|
246
|
-
|
|
246
|
+
x(e, {
|
|
247
247
|
source: "metadata-orchestration",
|
|
248
248
|
phase: "action"
|
|
249
249
|
});
|
|
@@ -270,20 +270,20 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
270
270
|
fieldOwnership: "BUSINESS",
|
|
271
271
|
fieldForm: "PHYSICAL"
|
|
272
272
|
};
|
|
273
|
-
n.id ? await
|
|
273
|
+
n.id ? await j.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 j.http.request({
|
|
278
278
|
method: "POST",
|
|
279
279
|
path: `/platform.metadata/${encodeURIComponent(e)}/fields/insert`,
|
|
280
280
|
body: n
|
|
281
|
-
}), z.cancelEditor(), await Y(), await
|
|
281
|
+
}), z.cancelEditor(), await Y(), await u({
|
|
282
282
|
success: !0,
|
|
283
283
|
message: "字段已保存"
|
|
284
284
|
}, { source: "metadata-orchestration" });
|
|
285
285
|
} catch (e) {
|
|
286
|
-
|
|
286
|
+
x(e, {
|
|
287
287
|
source: "metadata-orchestration",
|
|
288
288
|
phase: "action"
|
|
289
289
|
});
|
|
@@ -293,7 +293,7 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
293
293
|
}
|
|
294
294
|
async function pe(e) {
|
|
295
295
|
let t = z.selectedMetadata.value?.id;
|
|
296
|
-
if (!(!t || !e.id || !await
|
|
296
|
+
if (!(!t || !e.id || !await b({
|
|
297
297
|
title: "删除字段",
|
|
298
298
|
content: `确认删除字段“${e.title ?? e.fieldName}”?`,
|
|
299
299
|
okText: "删除",
|
|
@@ -301,13 +301,13 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
301
301
|
}))) {
|
|
302
302
|
V.value = !0;
|
|
303
303
|
try {
|
|
304
|
-
await
|
|
304
|
+
await j.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
|
+
x(e, {
|
|
311
311
|
source: "metadata-orchestration",
|
|
312
312
|
phase: "action"
|
|
313
313
|
});
|
|
@@ -321,15 +321,15 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
321
321
|
if (e?.id) {
|
|
322
322
|
V.value = !0;
|
|
323
323
|
try {
|
|
324
|
-
await
|
|
324
|
+
await j.http.request({
|
|
325
325
|
method: "POST",
|
|
326
326
|
path: Q(`/${encodeURIComponent(e.id)}/fields/ensure`)
|
|
327
|
-
}), await
|
|
327
|
+
}), await u({
|
|
328
328
|
success: !0,
|
|
329
329
|
message: "模块字段配置已同步"
|
|
330
330
|
}, { source: "metadata-orchestration" });
|
|
331
331
|
} catch (e) {
|
|
332
|
-
|
|
332
|
+
x(e, {
|
|
333
333
|
source: "metadata-orchestration",
|
|
334
334
|
phase: "action"
|
|
335
335
|
});
|
|
@@ -344,7 +344,7 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
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 j.http.request({
|
|
348
348
|
method: "POST",
|
|
349
349
|
path: e,
|
|
350
350
|
body: { page: {
|
|
@@ -366,35 +366,35 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
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 (l, u) => (M(), D(ee, null, [
|
|
370
|
+
A(F(c), {
|
|
371
371
|
class: "metadata-orchestration-workspace",
|
|
372
372
|
"explorer-count": 1
|
|
373
373
|
}, {
|
|
374
|
-
default:
|
|
375
|
-
default:
|
|
374
|
+
default: I(() => [A(F(i), null, {
|
|
375
|
+
default: I(() => [A(F(t), {
|
|
376
376
|
"search-keyword": H.value,
|
|
377
|
-
"onUpdate:searchKeyword":
|
|
377
|
+
"onUpdate:searchKeyword": u[0] ||= (e) => H.value = e,
|
|
378
378
|
title: "实体",
|
|
379
379
|
"search-placeholder": "搜索实体名称或 alias",
|
|
380
380
|
onRefresh: J
|
|
381
381
|
}, {
|
|
382
|
-
actions:
|
|
382
|
+
actions: I(() => [F(z).hasMainMetadata.value ? E("v-if", !0) : (M(), T(F(_), {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "record-panel-create-button",
|
|
385
385
|
type: "primary",
|
|
386
386
|
"icon-name": "plus",
|
|
387
387
|
title: "新建主实体",
|
|
388
388
|
disabled: B.value || V.value,
|
|
389
|
-
onClick:
|
|
389
|
+
onClick: F(z).startCreateMain
|
|
390
390
|
}, null, 8, ["disabled", "onClick"]))]),
|
|
391
|
-
default:
|
|
391
|
+
default: I(() => [B.value ? (M(), T(F(S), {
|
|
392
392
|
key: 0,
|
|
393
393
|
tip: "加载实体"
|
|
394
|
-
})) :
|
|
394
|
+
})) : F(z).relations.value.length ? (M(), T(F(f), {
|
|
395
395
|
key: 2,
|
|
396
|
-
records:
|
|
397
|
-
"selected-id":
|
|
396
|
+
records: F(z).relations.value,
|
|
397
|
+
"selected-id": F(z).selectedRelationId.value,
|
|
398
398
|
keyword: H.value,
|
|
399
399
|
"empty-description": "暂无实体",
|
|
400
400
|
"item-of": ge,
|
|
@@ -403,137 +403,137 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
403
403
|
"records",
|
|
404
404
|
"selected-id",
|
|
405
405
|
"keyword"
|
|
406
|
-
])) : (
|
|
406
|
+
])) : (M(), T(F(h), {
|
|
407
407
|
key: 1,
|
|
408
408
|
description: "请先创建动态模块的主实体"
|
|
409
409
|
}))]),
|
|
410
410
|
_: 1
|
|
411
411
|
}, 8, ["search-keyword"])]),
|
|
412
412
|
_: 1
|
|
413
|
-
}),
|
|
413
|
+
}), F(z).selectedMetadata.value && F(z).selectedRelation.value ? (M(), T(F(o), {
|
|
414
414
|
key: 0,
|
|
415
|
-
title:
|
|
416
|
-
subtitle:
|
|
415
|
+
title: F(U)(F(z).selectedRelation.value, F(z).selectedMetadata.value),
|
|
416
|
+
subtitle: F(K)(F(z).selectedMetadata.value)
|
|
417
417
|
}, {
|
|
418
|
-
actions:
|
|
418
|
+
actions: I(() => [A(F(e), {
|
|
419
419
|
emphasis: "quiet",
|
|
420
420
|
disabled: V.value || B.value,
|
|
421
421
|
onClick: me
|
|
422
422
|
}, {
|
|
423
|
-
default:
|
|
423
|
+
default: I(() => [...u[16] ||= [k(" 同步模块字段配置 ", -1)]]),
|
|
424
424
|
_: 1
|
|
425
|
-
}, 8, ["disabled"]),
|
|
425
|
+
}, 8, ["disabled"]), A(F(e), {
|
|
426
426
|
emphasis: "primary",
|
|
427
427
|
disabled: V.value || B.value,
|
|
428
|
-
onClick:
|
|
428
|
+
onClick: F(z).startCreateField
|
|
429
429
|
}, {
|
|
430
|
-
default:
|
|
430
|
+
default: I(() => [...u[17] ||= [k(" 新增字段 ", -1)]]),
|
|
431
431
|
_: 1
|
|
432
432
|
}, 8, ["disabled", "onClick"])]),
|
|
433
|
-
default:
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
433
|
+
default: I(() => [
|
|
434
|
+
O("dl", ce, [
|
|
435
|
+
O("div", null, [u[18] ||= O("dt", null, "实体 alias", -1), O("dd", null, P(F(z).selectedMetadata.value.alias ?? "-"), 1)]),
|
|
436
|
+
O("div", null, [u[19] ||= O("dt", null, "物理表", -1), O("dd", null, P(F(z).selectedMetadata.value.tableName ? `${F(z).selectedMetadata.value.schemaName ?? "public"}.${F(z).selectedMetadata.value.tableName}` : "-"), 1)]),
|
|
437
|
+
O("div", null, [u[20] ||= O("dt", null, "数据权限范围", -1), O("dd", null, P(F(z).selectedMetadata.value.dataScopeEnabled ? "已启用" : "未启用"), 1)])
|
|
438
438
|
]),
|
|
439
|
-
|
|
439
|
+
O("section", le, [u[23] ||= O("header", { class: "field-section-header" }, [O("h3", null, "业务字段")], -1), B.value ? (M(), T(F(S), {
|
|
440
440
|
key: 0,
|
|
441
441
|
tip: "加载字段"
|
|
442
|
-
})) :
|
|
442
|
+
})) : F(z).fields.value.length ? (M(), T(F(g), {
|
|
443
443
|
key: 2,
|
|
444
444
|
columns: W,
|
|
445
|
-
rows:
|
|
445
|
+
rows: F(z).fields.value,
|
|
446
446
|
"show-action-column": "",
|
|
447
447
|
"action-column-title": "操作"
|
|
448
448
|
}, {
|
|
449
|
-
cell:
|
|
450
|
-
rowActions:
|
|
449
|
+
cell: I(({ column: e, record: t }) => [k(P(_e(e, t)), 1)]),
|
|
450
|
+
rowActions: I(({ record: t }) => [A(F(e), {
|
|
451
451
|
emphasis: "quiet",
|
|
452
452
|
density: "compact",
|
|
453
|
-
onClick: (
|
|
453
|
+
onClick: (e) => F(z).startEditField(t)
|
|
454
454
|
}, {
|
|
455
|
-
default:
|
|
455
|
+
default: I(() => [...u[21] ||= [k(" 编辑 ", -1)]]),
|
|
456
456
|
_: 1
|
|
457
|
-
}, 8, ["onClick"]),
|
|
457
|
+
}, 8, ["onClick"]), A(F(e), {
|
|
458
458
|
emphasis: "quiet",
|
|
459
459
|
density: "compact",
|
|
460
460
|
intent: "danger",
|
|
461
461
|
disabled: V.value,
|
|
462
|
-
onClick: (
|
|
462
|
+
onClick: (e) => pe(t)
|
|
463
463
|
}, {
|
|
464
|
-
default:
|
|
464
|
+
default: I(() => [...u[22] ||= [k(" 删除 ", -1)]]),
|
|
465
465
|
_: 1
|
|
466
466
|
}, 8, ["disabled", "onClick"])]),
|
|
467
467
|
_: 1
|
|
468
|
-
}, 8, ["rows"])) : (
|
|
468
|
+
}, 8, ["rows"])) : (M(), T(F(h), {
|
|
469
469
|
key: 1,
|
|
470
470
|
description: "暂无业务字段,点击右上角新增字段"
|
|
471
471
|
}))]),
|
|
472
|
-
|
|
472
|
+
A(F(d), { record: F(z).selectedMetadata.value }, null, 8, ["record"])
|
|
473
473
|
]),
|
|
474
474
|
_: 1
|
|
475
|
-
}, 8, ["title", "subtitle"])) : (
|
|
475
|
+
}, 8, ["title", "subtitle"])) : (M(), T(F(o), {
|
|
476
476
|
key: 1,
|
|
477
477
|
title: "字段编排"
|
|
478
478
|
}, {
|
|
479
|
-
default:
|
|
479
|
+
default: I(() => [A(F(h), { description: "从左侧选择实体后开始字段编排" })]),
|
|
480
480
|
_: 1
|
|
481
481
|
}))]),
|
|
482
482
|
_: 1
|
|
483
483
|
}),
|
|
484
|
-
|
|
485
|
-
open:
|
|
484
|
+
A(F(m), {
|
|
485
|
+
open: F(z).mainEditorOpen.value,
|
|
486
486
|
title: "新建主实体",
|
|
487
|
-
subtitle:
|
|
487
|
+
subtitle: a.moduleTitle ?? a.moduleAlias,
|
|
488
488
|
mode: "create",
|
|
489
|
-
onClose:
|
|
489
|
+
onClose: F(z).cancelEditor
|
|
490
490
|
}, {
|
|
491
|
-
form:
|
|
491
|
+
form: I(() => [O("form", {
|
|
492
492
|
class: "orchestration-form",
|
|
493
|
-
onSubmit:
|
|
493
|
+
onSubmit: L(X, ["prevent"])
|
|
494
494
|
}, [
|
|
495
|
-
|
|
496
|
-
value:
|
|
497
|
-
"onUpdate:value":
|
|
495
|
+
O("label", null, [u[24] ||= O("span", null, "实体 alias", -1), A(F(n), {
|
|
496
|
+
value: F(z).mainMetadataDraft.value.alias,
|
|
497
|
+
"onUpdate:value": u[1] ||= (e) => F(z).mainMetadataDraft.value.alias = e,
|
|
498
498
|
placeholder: "例如 customer"
|
|
499
499
|
}, null, 8, ["value"])]),
|
|
500
|
-
|
|
501
|
-
value:
|
|
502
|
-
"onUpdate:value":
|
|
500
|
+
O("label", null, [u[25] ||= O("span", null, "实体名称", -1), A(F(n), {
|
|
501
|
+
value: F(z).mainMetadataDraft.value.title,
|
|
502
|
+
"onUpdate:value": u[2] ||= (e) => F(z).mainMetadataDraft.value.title = e,
|
|
503
503
|
placeholder: "例如 客户"
|
|
504
504
|
}, null, 8, ["value"])]),
|
|
505
|
-
|
|
506
|
-
value:
|
|
507
|
-
"onUpdate:value":
|
|
505
|
+
O("label", null, [u[26] ||= O("span", null, "Schema(可选)", -1), A(F(n), {
|
|
506
|
+
value: F(z).mainMetadataDraft.value.schemaName,
|
|
507
|
+
"onUpdate:value": u[3] ||= (e) => F(z).mainMetadataDraft.value.schemaName = e,
|
|
508
508
|
placeholder: "默认 public"
|
|
509
509
|
}, null, 8, ["value"])]),
|
|
510
|
-
|
|
511
|
-
value:
|
|
512
|
-
"onUpdate:value":
|
|
510
|
+
O("label", null, [u[27] ||= O("span", null, "物理表名(可选)", -1), A(F(n), {
|
|
511
|
+
value: F(z).mainMetadataDraft.value.tableName,
|
|
512
|
+
"onUpdate:value": u[4] ||= (e) => F(z).mainMetadataDraft.value.tableName = e,
|
|
513
513
|
placeholder: "默认按应用和 alias 生成"
|
|
514
514
|
}, null, 8, ["value"])]),
|
|
515
|
-
|
|
516
|
-
checked:
|
|
517
|
-
"onUpdate:checked":
|
|
515
|
+
A(F(v), {
|
|
516
|
+
checked: F(z).mainMetadataDraft.value.dataScopeEnabled,
|
|
517
|
+
"onUpdate:checked": u[5] ||= (e) => F(z).mainMetadataDraft.value.dataScopeEnabled = e
|
|
518
518
|
}, {
|
|
519
|
-
default:
|
|
519
|
+
default: I(() => [...u[28] ||= [k(" 启用数据权限范围 ", -1)]]),
|
|
520
520
|
_: 1
|
|
521
521
|
}, 8, ["checked"])
|
|
522
522
|
], 32)]),
|
|
523
|
-
operation:
|
|
524
|
-
default:
|
|
523
|
+
operation: I(() => [A(F(r), null, {
|
|
524
|
+
default: I(() => [A(F(e), {
|
|
525
525
|
disabled: V.value,
|
|
526
|
-
onClick:
|
|
526
|
+
onClick: F(z).cancelEditor
|
|
527
527
|
}, {
|
|
528
|
-
default:
|
|
528
|
+
default: I(() => [...u[29] ||= [k("取消", -1)]]),
|
|
529
529
|
_: 1
|
|
530
|
-
}, 8, ["disabled", "onClick"]),
|
|
530
|
+
}, 8, ["disabled", "onClick"]), A(F(e), {
|
|
531
531
|
emphasis: "primary",
|
|
532
532
|
submit: "",
|
|
533
533
|
loading: V.value,
|
|
534
534
|
onClick: X
|
|
535
535
|
}, {
|
|
536
|
-
default:
|
|
536
|
+
default: I(() => [...u[30] ||= [k(" 创建 ", -1)]]),
|
|
537
537
|
_: 1
|
|
538
538
|
}, 8, ["loading"])]),
|
|
539
539
|
_: 1
|
|
@@ -544,99 +544,99 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
544
544
|
"subtitle",
|
|
545
545
|
"onClose"
|
|
546
546
|
]),
|
|
547
|
-
|
|
548
|
-
open:
|
|
549
|
-
title:
|
|
550
|
-
subtitle:
|
|
547
|
+
A(F(m), {
|
|
548
|
+
open: F(z).fieldEditorOpen.value,
|
|
549
|
+
title: F(z).mode.value === "edit-field" ? "编辑字段" : "新增字段",
|
|
550
|
+
subtitle: F(z).selectedMetadata.value?.title,
|
|
551
551
|
mode: "create",
|
|
552
|
-
onClose:
|
|
552
|
+
onClose: F(z).cancelEditor
|
|
553
553
|
}, {
|
|
554
|
-
form:
|
|
554
|
+
form: I(() => [O("form", {
|
|
555
555
|
class: "orchestration-form",
|
|
556
|
-
onSubmit:
|
|
556
|
+
onSubmit: L(Z, ["prevent"])
|
|
557
557
|
}, [
|
|
558
|
-
|
|
559
|
-
value:
|
|
560
|
-
"onUpdate:value":
|
|
561
|
-
disabled: !!
|
|
558
|
+
O("label", null, [u[31] ||= O("span", null, "字段名称", -1), A(F(n), {
|
|
559
|
+
value: F(z).fieldDraft.value.fieldName,
|
|
560
|
+
"onUpdate:value": u[6] ||= (e) => F(z).fieldDraft.value.fieldName = e,
|
|
561
|
+
disabled: !!F(z).fieldDraft.value.id,
|
|
562
562
|
placeholder: "例如 customerName"
|
|
563
563
|
}, null, 8, ["value", "disabled"])]),
|
|
564
|
-
|
|
565
|
-
value:
|
|
566
|
-
"onUpdate:value":
|
|
567
|
-
disabled: !!
|
|
564
|
+
O("label", null, [u[32] ||= O("span", null, "物理列名", -1), A(F(n), {
|
|
565
|
+
value: F(z).fieldDraft.value.columnName,
|
|
566
|
+
"onUpdate:value": u[7] ||= (e) => F(z).fieldDraft.value.columnName = e,
|
|
567
|
+
disabled: !!F(z).fieldDraft.value.id,
|
|
568
568
|
placeholder: "例如 customer_name"
|
|
569
569
|
}, null, 8, ["value", "disabled"])]),
|
|
570
|
-
|
|
571
|
-
value:
|
|
572
|
-
"onUpdate:value":
|
|
570
|
+
O("label", null, [u[33] ||= O("span", null, "显示名称", -1), A(F(n), {
|
|
571
|
+
value: F(z).fieldDraft.value.title,
|
|
572
|
+
"onUpdate:value": u[8] ||= (e) => F(z).fieldDraft.value.title = e,
|
|
573
573
|
placeholder: "例如 客户名称"
|
|
574
574
|
}, null, 8, ["value"])]),
|
|
575
|
-
|
|
576
|
-
value:
|
|
577
|
-
"onUpdate:value":
|
|
578
|
-
options:
|
|
575
|
+
O("label", null, [u[34] ||= O("span", null, "字段规格", -1), A(F(s), {
|
|
576
|
+
value: F(z).fieldDraft.value.fieldSpecAlias,
|
|
577
|
+
"onUpdate:value": u[9] ||= (e) => F(z).fieldDraft.value.fieldSpecAlias = e,
|
|
578
|
+
options: F(z).fieldSpecOptions.value,
|
|
579
579
|
placeholder: "选择字段规格",
|
|
580
580
|
style: { width: "100%" }
|
|
581
581
|
}, null, 8, ["value", "options"])]),
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
checked:
|
|
585
|
-
"onUpdate:checked":
|
|
582
|
+
O("div", ue, [
|
|
583
|
+
A(F(v), {
|
|
584
|
+
checked: F(z).fieldDraft.value.required,
|
|
585
|
+
"onUpdate:checked": u[10] ||= (e) => F(z).fieldDraft.value.required = e
|
|
586
586
|
}, {
|
|
587
|
-
default:
|
|
587
|
+
default: I(() => [...u[35] ||= [k("必填", -1)]]),
|
|
588
588
|
_: 1
|
|
589
589
|
}, 8, ["checked"]),
|
|
590
|
-
|
|
591
|
-
checked:
|
|
592
|
-
"onUpdate:checked":
|
|
590
|
+
A(F(v), {
|
|
591
|
+
checked: F(z).fieldDraft.value.uniqueField,
|
|
592
|
+
"onUpdate:checked": u[11] ||= (e) => F(z).fieldDraft.value.uniqueField = e
|
|
593
593
|
}, {
|
|
594
|
-
default:
|
|
594
|
+
default: I(() => [...u[36] ||= [k("唯一", -1)]]),
|
|
595
595
|
_: 1
|
|
596
596
|
}, 8, ["checked"]),
|
|
597
|
-
|
|
598
|
-
checked:
|
|
599
|
-
"onUpdate:checked":
|
|
597
|
+
A(F(v), {
|
|
598
|
+
checked: F(z).fieldDraft.value.indexed,
|
|
599
|
+
"onUpdate:checked": u[12] ||= (e) => F(z).fieldDraft.value.indexed = e
|
|
600
600
|
}, {
|
|
601
|
-
default:
|
|
601
|
+
default: I(() => [...u[37] ||= [k("建立索引", -1)]]),
|
|
602
602
|
_: 1
|
|
603
603
|
}, 8, ["checked"]),
|
|
604
|
-
|
|
605
|
-
checked:
|
|
606
|
-
"onUpdate:checked":
|
|
604
|
+
A(F(v), {
|
|
605
|
+
checked: F(z).fieldDraft.value.sortableField,
|
|
606
|
+
"onUpdate:checked": u[13] ||= (e) => F(z).fieldDraft.value.sortableField = e
|
|
607
607
|
}, {
|
|
608
|
-
default:
|
|
608
|
+
default: I(() => [...u[38] ||= [k("排序字段", -1)]]),
|
|
609
609
|
_: 1
|
|
610
610
|
}, 8, ["checked"]),
|
|
611
|
-
|
|
612
|
-
checked:
|
|
613
|
-
"onUpdate:checked":
|
|
611
|
+
A(F(v), {
|
|
612
|
+
checked: F(z).fieldDraft.value.titleField,
|
|
613
|
+
"onUpdate:checked": u[14] ||= (e) => F(z).fieldDraft.value.titleField = e
|
|
614
614
|
}, {
|
|
615
|
-
default:
|
|
615
|
+
default: I(() => [...u[39] ||= [k("标题字段", -1)]]),
|
|
616
616
|
_: 1
|
|
617
617
|
}, 8, ["checked"]),
|
|
618
|
-
|
|
619
|
-
checked:
|
|
620
|
-
"onUpdate:checked":
|
|
618
|
+
A(F(p), {
|
|
619
|
+
checked: F(z).fieldDraft.value.enabled,
|
|
620
|
+
"onUpdate:checked": u[15] ||= (e) => F(z).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:
|
|
626
|
+
operation: I(() => [A(F(r), null, {
|
|
627
|
+
default: I(() => [A(F(e), {
|
|
628
628
|
disabled: V.value,
|
|
629
|
-
onClick:
|
|
629
|
+
onClick: F(z).cancelEditor
|
|
630
630
|
}, {
|
|
631
|
-
default:
|
|
631
|
+
default: I(() => [...u[40] ||= [k("取消", -1)]]),
|
|
632
632
|
_: 1
|
|
633
|
-
}, 8, ["disabled", "onClick"]),
|
|
633
|
+
}, 8, ["disabled", "onClick"]), A(F(e), {
|
|
634
634
|
emphasis: "primary",
|
|
635
635
|
submit: "",
|
|
636
636
|
loading: V.value,
|
|
637
637
|
onClick: Z
|
|
638
638
|
}, {
|
|
639
|
-
default:
|
|
639
|
+
default: I(() => [...u[41] ||= [k("保存", -1)]]),
|
|
640
640
|
_: 1
|
|
641
641
|
}, 8, ["loading"])]),
|
|
642
642
|
_: 1
|
|
@@ -650,6 +650,6 @@ var K = { class: "entity-overview" }, le = { class: "field-section" }, ue = { cl
|
|
|
650
650
|
])
|
|
651
651
|
], 64));
|
|
652
652
|
}
|
|
653
|
-
}), [["__scopeId", "data-v-
|
|
653
|
+
}), [["__scopeId", "data-v-f76d15c3"]]);
|
|
654
654
|
//#endregion
|
|
655
655
|
export { J as default };
|