@ximatai/muyun-web-app 0.26.10 → 0.26.11
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-BhtVwJII.js → MetadataOrchestrationView-F_Bmfn9K.js} +91 -91
- package/dist/{ModuleActionManagementView-DpZS-xAD.js → ModuleActionManagementView-Db_3Twom.js} +36 -36
- package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +1369 -0
- package/dist/index.css +1 -1
- package/dist/index.js +201 -206
- package/dist/{platform-components-oRIsIoxu.js → platform-components-59b4qzUL.js} +2391 -2273
- package/dist/types/consumer/index.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +5 -3
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +26 -26
- package/dist/types/dynamic-page-runtime/index.d.ts +1 -2
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +69 -1
- package/dist/types/formula/FormulaRuntime.d.ts +3 -0
- package/dist/types/{views/UserDetailRouteView.vue.d.ts → platform-admin-runtime/role/RoleAccountGrantDrawerSurface.vue.d.ts} +2 -3
- package/dist/types/{dynamic-page-runtime/DynamicModuleHost.vue.d.ts → platform-admin-runtime/role/RoleAuthorizationDrawerSurface.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/role/RoleEmploymentGrantDrawerSurface.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/role/RoleEnumTitleCell.vue.d.ts +8 -0
- package/dist/types/platform-admin-runtime/role/RoleGroupMemberFormField.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/role/RoleScopeTree.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/roleModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -0
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordMultiPicker.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 +6 -3
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/index.d.ts +1 -1
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +2 -2
- package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +3 -3
- package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +5 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +6 -2
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +7 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +5 -1
- package/dist/types/views/roleGrantClient.d.ts +8 -5
- package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +20 -1
- package/dist/types/vue-ui-antdv/types.d.ts +6 -0
- package/dist/types/web-contracts/index.d.ts +9 -2
- package/dist/types/web-core/module/staticModuleClient.d.ts +4 -4
- package/dist/workspaceViews-BvV8mpML.js +11149 -0
- package/package.json +1 -1
- package/dist/RoleAuthorizationView-8lilhtMB.js +0 -646
- package/dist/RoleDetailWorkspaceView-CFha6JHn.js +0 -26
- package/dist/RoleManagementView-0_KDrzgh.js +0 -1948
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +0 -39
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +0 -5
- package/dist/types/views/UserDetailContent.vue.d.ts +0 -32
- package/dist/types/views/UserManagementListView.vue.d.ts +0 -3
- package/dist/types/views/UserManagementView.vue.d.ts +0 -3
- package/dist/types/views/useUserSessionRows.d.ts +0 -28
- package/dist/types/views/userDetailStateModel.d.ts +0 -9
- package/dist/types/views/userManagementRouteState.d.ts +0 -11
- package/dist/workspaceViews-D-RiJ64o.js +0 -9078
package/dist/{MetadataOrchestrationView-BhtVwJII.js → MetadataOrchestrationView-F_Bmfn9K.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as e, E as t, G as n, Gt as r, It as i, K as a, Lt as o, Mt as s, Nt as c, Pt as l, bt as u, dt as d, en as f, f as p, ft as m, ht as h, it as g, lt as _, ot as v, p as y, st as b, y as x, yt as S, zt as C } from "./platform-components-59b4qzUL.js";
|
|
2
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
4
|
function ae() {
|
|
@@ -148,7 +148,7 @@ function le(e) {
|
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/views/MetadataOrchestrationView.vue?vue&type=script&setup=true&lang.ts
|
|
151
|
-
var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { class: "orchestration-form-flags" }, G = 200, K = /*#__PURE__*/
|
|
151
|
+
var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { class: "orchestration-form-flags" }, G = 200, K = /*#__PURE__*/ C(/* @__PURE__ */ k({
|
|
152
152
|
name: "MetadataOrchestrationView",
|
|
153
153
|
__name: "MetadataOrchestrationView",
|
|
154
154
|
props: {
|
|
@@ -156,8 +156,8 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
156
156
|
moduleTitle: {},
|
|
157
157
|
title: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
let k =
|
|
159
|
+
setup(C) {
|
|
160
|
+
let k = C, I = r({ moduleAlias: "platform.module" }), z = f(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: "字段"
|
|
@@ -189,7 +189,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
189
189
|
try {
|
|
190
190
|
B.handleRelationsLoaded(await $(Q("/query"))), await Y();
|
|
191
191
|
} catch (e) {
|
|
192
|
-
|
|
192
|
+
b(e, {
|
|
193
193
|
source: "metadata-orchestration",
|
|
194
194
|
phase: "load"
|
|
195
195
|
});
|
|
@@ -201,7 +201,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
201
201
|
try {
|
|
202
202
|
B.handleFieldSpecsLoaded(await $("/platform.field_spec/query"));
|
|
203
203
|
} catch (e) {
|
|
204
|
-
|
|
204
|
+
b(e, {
|
|
205
205
|
source: "metadata-orchestration",
|
|
206
206
|
phase: "load"
|
|
207
207
|
});
|
|
@@ -216,7 +216,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
216
216
|
let t = await z.view(e);
|
|
217
217
|
B.handleMetadataLoaded(t), B.handleFieldsLoaded(await $(`/platform.metadata/${encodeURIComponent(e)}/fields/query`));
|
|
218
218
|
} catch (e) {
|
|
219
|
-
|
|
219
|
+
b(e, {
|
|
220
220
|
source: "metadata-orchestration",
|
|
221
221
|
phase: "load"
|
|
222
222
|
});
|
|
@@ -225,7 +225,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
225
225
|
async function X() {
|
|
226
226
|
let e = L(B.mainMetadataDraft.value);
|
|
227
227
|
if (!R(e)) {
|
|
228
|
-
|
|
228
|
+
_("请填写实体 alias 和名称", {
|
|
229
229
|
source: "metadata-orchestration",
|
|
230
230
|
phase: "validation"
|
|
231
231
|
});
|
|
@@ -238,12 +238,12 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
238
238
|
path: Q("/create-main-metadata"),
|
|
239
239
|
body: e
|
|
240
240
|
});
|
|
241
|
-
B.cancelEditor(), await J(), B.focusRelation(t.relation.id), await Y(), await
|
|
241
|
+
B.cancelEditor(), await J(), B.focusRelation(t.relation.id), await Y(), await v({
|
|
242
242
|
success: !0,
|
|
243
243
|
message: "主实体已创建"
|
|
244
244
|
}, { source: "metadata-orchestration" });
|
|
245
245
|
} catch (e) {
|
|
246
|
-
|
|
246
|
+
b(e, {
|
|
247
247
|
source: "metadata-orchestration",
|
|
248
248
|
phase: "action"
|
|
249
249
|
});
|
|
@@ -256,7 +256,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
256
256
|
if (!e) return;
|
|
257
257
|
let t = se(B.fieldDraft.value);
|
|
258
258
|
if (!oe(t)) {
|
|
259
|
-
|
|
259
|
+
_("请填写字段名、物理列名和字段规格", {
|
|
260
260
|
source: "metadata-orchestration",
|
|
261
261
|
phase: "validation"
|
|
262
262
|
});
|
|
@@ -278,12 +278,12 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
278
278
|
method: "POST",
|
|
279
279
|
path: `/platform.metadata/${encodeURIComponent(e)}/fields/insert`,
|
|
280
280
|
body: n
|
|
281
|
-
}), B.cancelEditor(), await Y(), await
|
|
281
|
+
}), B.cancelEditor(), await Y(), await v({
|
|
282
282
|
success: !0,
|
|
283
283
|
message: "字段已保存"
|
|
284
284
|
}, { source: "metadata-orchestration" });
|
|
285
285
|
} catch (e) {
|
|
286
|
-
|
|
286
|
+
b(e, {
|
|
287
287
|
source: "metadata-orchestration",
|
|
288
288
|
phase: "action"
|
|
289
289
|
});
|
|
@@ -293,7 +293,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
293
293
|
}
|
|
294
294
|
async function ge(e) {
|
|
295
295
|
let t = B.selectedMetadata.value?.id;
|
|
296
|
-
if (!(!t || !e.id || !await
|
|
296
|
+
if (!(!t || !e.id || !await m({
|
|
297
297
|
title: "删除字段",
|
|
298
298
|
content: `确认删除字段“${e.title ?? e.fieldName}”?`,
|
|
299
299
|
okText: "删除",
|
|
@@ -307,7 +307,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
307
307
|
body: { version: e.version }
|
|
308
308
|
}), await Y();
|
|
309
309
|
} catch (e) {
|
|
310
|
-
|
|
310
|
+
b(e, {
|
|
311
311
|
source: "metadata-orchestration",
|
|
312
312
|
phase: "action"
|
|
313
313
|
});
|
|
@@ -324,12 +324,12 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
324
324
|
await I.http.request({
|
|
325
325
|
method: "POST",
|
|
326
326
|
path: Q(`/${encodeURIComponent(e.id)}/fields/ensure`)
|
|
327
|
-
}), await
|
|
327
|
+
}), await v({
|
|
328
328
|
success: !0,
|
|
329
329
|
message: "模块字段配置已同步"
|
|
330
330
|
}, { source: "metadata-orchestration" });
|
|
331
331
|
} catch (e) {
|
|
332
|
-
|
|
332
|
+
b(e, {
|
|
333
333
|
source: "metadata-orchestration",
|
|
334
334
|
phase: "action"
|
|
335
335
|
});
|
|
@@ -366,22 +366,22 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
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
|
-
O(N(
|
|
369
|
+
return (r, f) => (A(), ne(ee, null, [
|
|
370
|
+
O(N(a), {
|
|
371
371
|
ref_key: "pageHost",
|
|
372
372
|
ref: H,
|
|
373
373
|
class: "metadata-orchestration-workspace",
|
|
374
374
|
"explorer-count": 1
|
|
375
375
|
}, {
|
|
376
|
-
default: P(() => [O(N(
|
|
377
|
-
default: P(() => [O(N(
|
|
376
|
+
default: P(() => [O(N(n), null, {
|
|
377
|
+
default: P(() => [O(N(x), {
|
|
378
378
|
"search-keyword": q.value,
|
|
379
|
-
"onUpdate:searchKeyword":
|
|
379
|
+
"onUpdate:searchKeyword": f[0] ||= (e) => q.value = e,
|
|
380
380
|
title: "实体",
|
|
381
381
|
"search-placeholder": "搜索实体名称或 alias",
|
|
382
382
|
onRefresh: J
|
|
383
383
|
}, {
|
|
384
|
-
actions: P(() => [N(B).hasMainMetadata.value ? te("v-if", !0) : (A(), T(N(
|
|
384
|
+
actions: P(() => [N(B).hasMainMetadata.value ? te("v-if", !0) : (A(), T(N(o), {
|
|
385
385
|
key: 0,
|
|
386
386
|
class: "record-panel-create-button",
|
|
387
387
|
type: "primary",
|
|
@@ -390,10 +390,10 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
390
390
|
disabled: V.value || K.value,
|
|
391
391
|
onClick: N(B).startCreateMain
|
|
392
392
|
}, null, 8, ["disabled", "onClick"]))]),
|
|
393
|
-
default: P(() => [V.value ? (A(), T(N(
|
|
393
|
+
default: P(() => [V.value ? (A(), T(N(h), {
|
|
394
394
|
key: 0,
|
|
395
395
|
tip: "加载实体"
|
|
396
|
-
})) : N(B).relations.value.length ? (A(), T(N(
|
|
396
|
+
})) : N(B).relations.value.length ? (A(), T(N(d), {
|
|
397
397
|
key: 2,
|
|
398
398
|
records: N(B).relations.value,
|
|
399
399
|
"selected-id": N(B).selectedRelationId.value,
|
|
@@ -405,43 +405,43 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
405
405
|
"records",
|
|
406
406
|
"selected-id",
|
|
407
407
|
"keyword"
|
|
408
|
-
])) : (A(), T(N(
|
|
408
|
+
])) : (A(), T(N(u), {
|
|
409
409
|
key: 1,
|
|
410
410
|
description: "请先创建动态模块的主实体"
|
|
411
411
|
}))]),
|
|
412
412
|
_: 1
|
|
413
413
|
}, 8, ["search-keyword"])]),
|
|
414
414
|
_: 1
|
|
415
|
-
}), N(B).selectedMetadata.value && N(B).selectedRelation.value ? (A(), T(N(
|
|
415
|
+
}), N(B).selectedMetadata.value && N(B).selectedRelation.value ? (A(), T(N(t), {
|
|
416
416
|
key: 0,
|
|
417
417
|
title: N(U)(N(B).selectedRelation.value, N(B).selectedMetadata.value),
|
|
418
418
|
subtitle: N(le)(N(B).selectedMetadata.value)
|
|
419
419
|
}, {
|
|
420
|
-
actions: P(() => [O(N(
|
|
420
|
+
actions: P(() => [O(N(i), {
|
|
421
421
|
emphasis: "quiet",
|
|
422
422
|
disabled: K.value || V.value,
|
|
423
423
|
onClick: _e
|
|
424
424
|
}, {
|
|
425
|
-
default: P(() => [...
|
|
425
|
+
default: P(() => [...f[16] ||= [D(" 同步模块字段配置 ", -1)]]),
|
|
426
426
|
_: 1
|
|
427
|
-
}, 8, ["disabled"]), O(N(
|
|
427
|
+
}, 8, ["disabled"]), O(N(i), {
|
|
428
428
|
emphasis: "primary",
|
|
429
429
|
disabled: K.value || V.value,
|
|
430
430
|
onClick: N(B).startCreateField
|
|
431
431
|
}, {
|
|
432
|
-
default: P(() => [...
|
|
432
|
+
default: P(() => [...f[17] ||= [D(" 新增字段 ", -1)]]),
|
|
433
433
|
_: 1
|
|
434
434
|
}, 8, ["disabled", "onClick"])]),
|
|
435
435
|
default: P(() => [
|
|
436
436
|
E("dl", ue, [
|
|
437
|
-
E("div", null, [
|
|
438
|
-
E("div", null, [
|
|
439
|
-
E("div", null, [
|
|
437
|
+
E("div", null, [f[18] ||= E("dt", null, "实体 alias", -1), E("dd", null, M(N(B).selectedMetadata.value.alias ?? "-"), 1)]),
|
|
438
|
+
E("div", null, [f[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, [f[20] ||= E("dt", null, "数据权限范围", -1), E("dd", null, M(N(B).selectedMetadata.value.dataScopeEnabled ? "已启用" : "未启用"), 1)])
|
|
440
440
|
]),
|
|
441
|
-
E("section", de, [
|
|
441
|
+
E("section", de, [f[23] ||= E("header", { class: "field-section-header" }, [E("h3", null, "业务字段")], -1), V.value ? (A(), T(N(h), {
|
|
442
442
|
key: 0,
|
|
443
443
|
tip: "加载字段"
|
|
444
|
-
})) : N(B).fields.value.length ? (A(), T(N(
|
|
444
|
+
})) : N(B).fields.value.length ? (A(), T(N(S), {
|
|
445
445
|
key: 2,
|
|
446
446
|
columns: pe,
|
|
447
447
|
rows: N(B).fields.value,
|
|
@@ -449,36 +449,36 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
449
449
|
"action-column-title": "操作"
|
|
450
450
|
}, {
|
|
451
451
|
cell: P(({ column: e, record: t }) => [D(M(be(e, t)), 1)]),
|
|
452
|
-
rowActions: P(({ record: e }) => [O(N(
|
|
452
|
+
rowActions: P(({ record: e }) => [O(N(i), {
|
|
453
453
|
emphasis: "quiet",
|
|
454
454
|
density: "compact",
|
|
455
455
|
onClick: (t) => N(B).startEditField(e)
|
|
456
456
|
}, {
|
|
457
|
-
default: P(() => [...
|
|
457
|
+
default: P(() => [...f[21] ||= [D(" 编辑 ", -1)]]),
|
|
458
458
|
_: 1
|
|
459
|
-
}, 8, ["onClick"]), O(N(
|
|
459
|
+
}, 8, ["onClick"]), O(N(i), {
|
|
460
460
|
emphasis: "quiet",
|
|
461
461
|
density: "compact",
|
|
462
462
|
intent: "danger",
|
|
463
463
|
disabled: K.value,
|
|
464
464
|
onClick: (t) => ge(e)
|
|
465
465
|
}, {
|
|
466
|
-
default: P(() => [...
|
|
466
|
+
default: P(() => [...f[22] ||= [D(" 删除 ", -1)]]),
|
|
467
467
|
_: 1
|
|
468
468
|
}, 8, ["disabled", "onClick"])]),
|
|
469
469
|
_: 1
|
|
470
|
-
}, 8, ["rows"])) : (A(), T(N(
|
|
470
|
+
}, 8, ["rows"])) : (A(), T(N(u), {
|
|
471
471
|
key: 1,
|
|
472
472
|
description: "暂无业务字段,点击右上角新增字段"
|
|
473
473
|
}))]),
|
|
474
|
-
O(N(
|
|
474
|
+
O(N(y), { record: N(B).selectedMetadata.value }, null, 8, ["record"])
|
|
475
475
|
]),
|
|
476
476
|
_: 1
|
|
477
|
-
}, 8, ["title", "subtitle"])) : (A(), T(N(
|
|
477
|
+
}, 8, ["title", "subtitle"])) : (A(), T(N(t), {
|
|
478
478
|
key: 1,
|
|
479
479
|
title: "字段编排"
|
|
480
480
|
}, {
|
|
481
|
-
default: P(() => [O(N(
|
|
481
|
+
default: P(() => [O(N(u), { description: "从左侧选择实体后开始字段编排" })]),
|
|
482
482
|
_: 1
|
|
483
483
|
}))]),
|
|
484
484
|
_: 1
|
|
@@ -487,7 +487,7 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
487
487
|
open: N(B).mainEditorOpen.value,
|
|
488
488
|
title: "新建主实体",
|
|
489
489
|
container: W.value,
|
|
490
|
-
subtitle:
|
|
490
|
+
subtitle: C.moduleTitle ?? C.moduleAlias,
|
|
491
491
|
mode: "create",
|
|
492
492
|
onClose: N(B).cancelEditor
|
|
493
493
|
}, {
|
|
@@ -495,48 +495,48 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
495
495
|
class: "orchestration-form",
|
|
496
496
|
onSubmit: F(X, ["prevent"])
|
|
497
497
|
}, [
|
|
498
|
-
E("label", null, [
|
|
498
|
+
E("label", null, [f[24] ||= E("span", null, "实体 alias", -1), O(N(s), {
|
|
499
499
|
value: N(B).mainMetadataDraft.value.alias,
|
|
500
|
-
"onUpdate:value":
|
|
500
|
+
"onUpdate:value": f[1] ||= (e) => N(B).mainMetadataDraft.value.alias = e,
|
|
501
501
|
placeholder: "例如 customer"
|
|
502
502
|
}, null, 8, ["value"])]),
|
|
503
|
-
E("label", null, [
|
|
503
|
+
E("label", null, [f[25] ||= E("span", null, "实体名称", -1), O(N(s), {
|
|
504
504
|
value: N(B).mainMetadataDraft.value.title,
|
|
505
|
-
"onUpdate:value":
|
|
505
|
+
"onUpdate:value": f[2] ||= (e) => N(B).mainMetadataDraft.value.title = e,
|
|
506
506
|
placeholder: "例如 客户"
|
|
507
507
|
}, null, 8, ["value"])]),
|
|
508
|
-
E("label", null, [
|
|
508
|
+
E("label", null, [f[26] ||= E("span", null, "Schema(可选)", -1), O(N(s), {
|
|
509
509
|
value: N(B).mainMetadataDraft.value.schemaName,
|
|
510
|
-
"onUpdate:value":
|
|
510
|
+
"onUpdate:value": f[3] ||= (e) => N(B).mainMetadataDraft.value.schemaName = e,
|
|
511
511
|
placeholder: "默认 public"
|
|
512
512
|
}, null, 8, ["value"])]),
|
|
513
|
-
E("label", null, [
|
|
513
|
+
E("label", null, [f[27] ||= E("span", null, "物理表名(可选)", -1), O(N(s), {
|
|
514
514
|
value: N(B).mainMetadataDraft.value.tableName,
|
|
515
|
-
"onUpdate:value":
|
|
515
|
+
"onUpdate:value": f[4] ||= (e) => N(B).mainMetadataDraft.value.tableName = e,
|
|
516
516
|
placeholder: "默认按应用和 alias 生成"
|
|
517
517
|
}, null, 8, ["value"])]),
|
|
518
|
-
O(N(
|
|
518
|
+
O(N(l), {
|
|
519
519
|
checked: N(B).mainMetadataDraft.value.dataScopeEnabled,
|
|
520
|
-
"onUpdate:checked":
|
|
520
|
+
"onUpdate:checked": f[5] ||= (e) => N(B).mainMetadataDraft.value.dataScopeEnabled = e
|
|
521
521
|
}, {
|
|
522
|
-
default: P(() => [...
|
|
522
|
+
default: P(() => [...f[28] ||= [D(" 启用数据权限范围 ", -1)]]),
|
|
523
523
|
_: 1
|
|
524
524
|
}, 8, ["checked"])
|
|
525
525
|
], 32)]),
|
|
526
|
-
operation: P(() => [O(N(
|
|
527
|
-
default: P(() => [O(N(
|
|
526
|
+
operation: P(() => [O(N(g), null, {
|
|
527
|
+
default: P(() => [O(N(i), {
|
|
528
528
|
disabled: K.value,
|
|
529
529
|
onClick: N(B).cancelEditor
|
|
530
530
|
}, {
|
|
531
|
-
default: P(() => [...
|
|
531
|
+
default: P(() => [...f[29] ||= [D("取消", -1)]]),
|
|
532
532
|
_: 1
|
|
533
|
-
}, 8, ["disabled", "onClick"]), O(N(
|
|
533
|
+
}, 8, ["disabled", "onClick"]), O(N(i), {
|
|
534
534
|
emphasis: "primary",
|
|
535
535
|
submit: "",
|
|
536
536
|
loading: K.value,
|
|
537
537
|
onClick: X
|
|
538
538
|
}, {
|
|
539
|
-
default: P(() => [...
|
|
539
|
+
default: P(() => [...f[30] ||= [D(" 创建 ", -1)]]),
|
|
540
540
|
_: 1
|
|
541
541
|
}, 8, ["loading"])]),
|
|
542
542
|
_: 1
|
|
@@ -560,88 +560,88 @@ var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { c
|
|
|
560
560
|
class: "orchestration-form",
|
|
561
561
|
onSubmit: F(Z, ["prevent"])
|
|
562
562
|
}, [
|
|
563
|
-
E("label", null, [
|
|
563
|
+
E("label", null, [f[31] ||= E("span", null, "字段名称", -1), O(N(s), {
|
|
564
564
|
value: N(B).fieldDraft.value.fieldName,
|
|
565
|
-
"onUpdate:value":
|
|
565
|
+
"onUpdate:value": f[6] ||= (e) => N(B).fieldDraft.value.fieldName = e,
|
|
566
566
|
disabled: !!N(B).fieldDraft.value.id,
|
|
567
567
|
placeholder: "例如 customerName"
|
|
568
568
|
}, null, 8, ["value", "disabled"])]),
|
|
569
|
-
E("label", null, [
|
|
569
|
+
E("label", null, [f[32] ||= E("span", null, "物理列名", -1), O(N(s), {
|
|
570
570
|
value: N(B).fieldDraft.value.columnName,
|
|
571
|
-
"onUpdate:value":
|
|
571
|
+
"onUpdate:value": f[7] ||= (e) => N(B).fieldDraft.value.columnName = e,
|
|
572
572
|
disabled: !!N(B).fieldDraft.value.id,
|
|
573
573
|
placeholder: "例如 customer_name"
|
|
574
574
|
}, null, 8, ["value", "disabled"])]),
|
|
575
|
-
E("label", null, [
|
|
575
|
+
E("label", null, [f[33] ||= E("span", null, "显示名称", -1), O(N(s), {
|
|
576
576
|
value: N(B).fieldDraft.value.title,
|
|
577
|
-
"onUpdate:value":
|
|
577
|
+
"onUpdate:value": f[8] ||= (e) => N(B).fieldDraft.value.title = e,
|
|
578
578
|
placeholder: "例如 客户名称"
|
|
579
579
|
}, null, 8, ["value"])]),
|
|
580
|
-
E("label", null, [
|
|
580
|
+
E("label", null, [f[34] ||= E("span", null, "字段规格", -1), O(N(c), {
|
|
581
581
|
value: N(B).fieldDraft.value.fieldSpecAlias,
|
|
582
|
-
"onUpdate:value":
|
|
582
|
+
"onUpdate:value": f[9] ||= (e) => N(B).fieldDraft.value.fieldSpecAlias = e,
|
|
583
583
|
options: N(B).fieldSpecOptions.value,
|
|
584
584
|
placeholder: "选择字段规格",
|
|
585
585
|
style: { width: "100%" }
|
|
586
586
|
}, null, 8, ["value", "options"])]),
|
|
587
587
|
E("div", fe, [
|
|
588
|
-
O(N(
|
|
588
|
+
O(N(l), {
|
|
589
589
|
checked: N(B).fieldDraft.value.required,
|
|
590
|
-
"onUpdate:checked":
|
|
590
|
+
"onUpdate:checked": f[10] ||= (e) => N(B).fieldDraft.value.required = e
|
|
591
591
|
}, {
|
|
592
|
-
default: P(() => [...
|
|
592
|
+
default: P(() => [...f[35] ||= [D("必填", -1)]]),
|
|
593
593
|
_: 1
|
|
594
594
|
}, 8, ["checked"]),
|
|
595
|
-
O(N(
|
|
595
|
+
O(N(l), {
|
|
596
596
|
checked: N(B).fieldDraft.value.uniqueField,
|
|
597
|
-
"onUpdate:checked":
|
|
597
|
+
"onUpdate:checked": f[11] ||= (e) => N(B).fieldDraft.value.uniqueField = e
|
|
598
598
|
}, {
|
|
599
|
-
default: P(() => [...
|
|
599
|
+
default: P(() => [...f[36] ||= [D("唯一", -1)]]),
|
|
600
600
|
_: 1
|
|
601
601
|
}, 8, ["checked"]),
|
|
602
|
-
O(N(
|
|
602
|
+
O(N(l), {
|
|
603
603
|
checked: N(B).fieldDraft.value.indexed,
|
|
604
|
-
"onUpdate:checked":
|
|
604
|
+
"onUpdate:checked": f[12] ||= (e) => N(B).fieldDraft.value.indexed = e
|
|
605
605
|
}, {
|
|
606
|
-
default: P(() => [...
|
|
606
|
+
default: P(() => [...f[37] ||= [D("建立索引", -1)]]),
|
|
607
607
|
_: 1
|
|
608
608
|
}, 8, ["checked"]),
|
|
609
|
-
O(N(
|
|
609
|
+
O(N(l), {
|
|
610
610
|
checked: N(B).fieldDraft.value.sortableField,
|
|
611
|
-
"onUpdate:checked":
|
|
611
|
+
"onUpdate:checked": f[13] ||= (e) => N(B).fieldDraft.value.sortableField = e
|
|
612
612
|
}, {
|
|
613
|
-
default: P(() => [...
|
|
613
|
+
default: P(() => [...f[38] ||= [D("排序字段", -1)]]),
|
|
614
614
|
_: 1
|
|
615
615
|
}, 8, ["checked"]),
|
|
616
|
-
O(N(
|
|
616
|
+
O(N(l), {
|
|
617
617
|
checked: N(B).fieldDraft.value.titleField,
|
|
618
|
-
"onUpdate:checked":
|
|
618
|
+
"onUpdate:checked": f[14] ||= (e) => N(B).fieldDraft.value.titleField = e
|
|
619
619
|
}, {
|
|
620
|
-
default: P(() => [...
|
|
620
|
+
default: P(() => [...f[39] ||= [D("标题字段", -1)]]),
|
|
621
621
|
_: 1
|
|
622
622
|
}, 8, ["checked"]),
|
|
623
|
-
O(N(
|
|
623
|
+
O(N(e), {
|
|
624
624
|
checked: N(B).fieldDraft.value.enabled,
|
|
625
|
-
"onUpdate:checked":
|
|
625
|
+
"onUpdate:checked": f[15] ||= (e) => N(B).fieldDraft.value.enabled = e,
|
|
626
626
|
"checked-children": "启用",
|
|
627
627
|
"un-checked-children": "停用"
|
|
628
628
|
}, null, 8, ["checked"])
|
|
629
629
|
])
|
|
630
630
|
], 32)]),
|
|
631
|
-
operation: P(() => [O(N(
|
|
632
|
-
default: P(() => [O(N(
|
|
631
|
+
operation: P(() => [O(N(g), null, {
|
|
632
|
+
default: P(() => [O(N(i), {
|
|
633
633
|
disabled: K.value,
|
|
634
634
|
onClick: N(B).cancelEditor
|
|
635
635
|
}, {
|
|
636
|
-
default: P(() => [...
|
|
636
|
+
default: P(() => [...f[40] ||= [D("取消", -1)]]),
|
|
637
637
|
_: 1
|
|
638
|
-
}, 8, ["disabled", "onClick"]), O(N(
|
|
638
|
+
}, 8, ["disabled", "onClick"]), O(N(i), {
|
|
639
639
|
emphasis: "primary",
|
|
640
640
|
submit: "",
|
|
641
641
|
loading: K.value,
|
|
642
642
|
onClick: Z
|
|
643
643
|
}, {
|
|
644
|
-
default: P(() => [...
|
|
644
|
+
default: P(() => [...f[41] ||= [D("保存", -1)]]),
|
|
645
645
|
_: 1
|
|
646
646
|
}, 8, ["loading"])]),
|
|
647
647
|
_: 1
|