@ximatai/muyun-web-app 0.26.9 → 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-CzhAgEdX.js → MetadataOrchestrationView-F_Bmfn9K.js} +188 -188
- package/dist/{ModuleActionManagementView-CM2d8jPO.js → ModuleActionManagementView-Db_3Twom.js} +70 -70
- package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +1369 -0
- package/dist/index.css +1 -1
- package/dist/index.js +274 -299
- package/dist/{platform-components-CIi6GdC9.js → platform-components-59b4qzUL.js} +2738 -2453
- package/dist/types/app/StaticRoutePageHost.vue.d.ts +2 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
- package/dist/types/consumer/index.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +7 -2
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +5 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +5 -3
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +95 -41
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +3 -2
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +103 -3
- package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +9 -8
- package/dist/types/formula/FormulaRuntime.d.ts +3 -0
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +6 -0
- package/dist/types/{views/SystemUserManagementView.vue.d.ts → platform-admin-runtime/role/RoleAccountGrantDrawerSurface.vue.d.ts} +2 -2
- package/dist/types/{views/UserDetailRouteView.vue.d.ts → platform-admin-runtime/role/RoleAuthorizationDrawerSurface.vue.d.ts} +2 -3
- package/dist/types/{views/SystemUserDetailWorkspaceView.vue.d.ts → platform-admin-runtime/role/RoleEmploymentGrantDrawerSurface.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/role/RoleEnumTitleCell.vue.d.ts +8 -0
- package/dist/types/{dynamic-page-runtime/DynamicModuleHost.vue.d.ts → platform-admin-runtime/role/RoleGroupMemberFormField.vue.d.ts} +2 -2
- 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 +5 -1
- package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +4 -2
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +6 -3
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +3 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +13 -4
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -1
- package/dist/types/platform-components/index.d.ts +1 -3
- package/dist/types/platform-components/recordFormFieldModel.d.ts +16 -2
- package/dist/types/platform-components/recordPickerConstraints.d.ts +2 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +2 -2
- package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +3 -3
- package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
- 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/UiSidePanel.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/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 +81 -4
- package/dist/types/web-core/http.d.ts +6 -0
- package/dist/types/web-core/module/index.d.ts +1 -1
- package/dist/types/web-core/module/moduleContext.d.ts +2 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +10 -4
- package/dist/types/web-core/realtime.d.ts +8 -0
- package/dist/workspaceViews-BvV8mpML.js +11149 -0
- package/package.json +1 -1
- package/dist/DictionaryManagementView-CtIQpqVA.js +0 -1035
- package/dist/MenuManagementView-DJhkN2sG.js +0 -837
- package/dist/RoleAuthorizationView-jn_WUCeg.js +0 -599
- package/dist/RoleDetailWorkspaceView-CzaQ3Dz1.js +0 -26
- package/dist/RoleManagementView-nY7qu4GF.js +0 -1951
- package/dist/SystemUserDetailWorkspaceView-CBvqmWvP.js +0 -17
- package/dist/SystemUserManagementView-AEomKvK7.js +0 -887
- package/dist/currentUserContext-B1lj1WgF.js +0 -11
- 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/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
- package/dist/types/views/DictionaryManagementView.vue.d.ts +0 -3
- package/dist/types/views/MenuManagementView.vue.d.ts +0 -3
- 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/dictionaryManagementState.d.ts +0 -215
- package/dist/types/views/menuManagementState.d.ts +0 -180
- package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
- 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/workspaceViewSessions-B5g4M0rT.js +0 -51
- package/dist/workspaceViews-CkERhK0K.js +0 -8748
package/dist/{MetadataOrchestrationView-CzhAgEdX.js → MetadataOrchestrationView-F_Bmfn9K.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment as ee, computed as w, createBlock as T, createCommentVNode as te, createElementBlock as
|
|
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
|
+
import { Fragment as ee, computed as w, createBlock as T, createCommentVNode as te, createElementBlock as ne, createElementVNode as E, createTextVNode as D, createVNode as O, defineComponent as k, onMounted as re, openBlock as A, ref as j, toDisplayString as M, unref as N, watch as ie, withCtx as P, withModifiers as F } from "vue";
|
|
3
3
|
//#region src/views/metadataOrchestrationState.ts
|
|
4
|
-
function
|
|
5
|
-
let e =
|
|
4
|
+
function ae() {
|
|
5
|
+
let e = j([]), t = j({}), n = j(), r = j([]), i = j([]), a = j("view"), o = j(I()), s = j(z()), c = w(() => e.value.find((e) => e.id === n.value)), l = w(() => c.value?.metadataId ? t.value[c.value.metadataId] : void 0), u = w(() => e.value.some((e) => e.relationRole === "MAIN")), d = w(() => a.value === "create-main"), f = w(() => a.value === "create-field" || a.value === "edit-field"), p = w(() => H(i.value));
|
|
6
6
|
function m(t) {
|
|
7
7
|
e.value = t;
|
|
8
8
|
let r = new Set(t.map((e) => e.id).filter(Boolean));
|
|
@@ -15,7 +15,7 @@ function ie() {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
function g(e) {
|
|
18
|
-
r.value =
|
|
18
|
+
r.value = V(e);
|
|
19
19
|
}
|
|
20
20
|
function _(e) {
|
|
21
21
|
i.value = e;
|
|
@@ -27,13 +27,13 @@ function ie() {
|
|
|
27
27
|
e && (n.value = e, a.value = "view", r.value = []);
|
|
28
28
|
}
|
|
29
29
|
function b() {
|
|
30
|
-
o.value =
|
|
30
|
+
o.value = I(), a.value = "create-main";
|
|
31
31
|
}
|
|
32
32
|
function x() {
|
|
33
|
-
l.value?.id && (s.value =
|
|
33
|
+
l.value?.id && (s.value = z(), a.value = "create-field");
|
|
34
34
|
}
|
|
35
35
|
function S(e) {
|
|
36
|
-
l.value?.id && (s.value =
|
|
36
|
+
l.value?.id && (s.value = B(e), a.value = "edit-field");
|
|
37
37
|
}
|
|
38
38
|
function C() {
|
|
39
39
|
a.value = "view";
|
|
@@ -65,7 +65,7 @@ function ie() {
|
|
|
65
65
|
cancelEditor: C
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function I() {
|
|
69
69
|
return {
|
|
70
70
|
alias: "",
|
|
71
71
|
title: "",
|
|
@@ -74,7 +74,7 @@ function L() {
|
|
|
74
74
|
dataScopeEnabled: !1
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function L(e) {
|
|
78
78
|
return {
|
|
79
79
|
...e,
|
|
80
80
|
alias: e.alias.trim(),
|
|
@@ -83,10 +83,10 @@ function ae(e) {
|
|
|
83
83
|
tableName: e.tableName.trim()
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function R(e) {
|
|
87
87
|
return !!(e.alias.trim() && e.title.trim());
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function z() {
|
|
90
90
|
return {
|
|
91
91
|
fieldName: "",
|
|
92
92
|
columnName: "",
|
|
@@ -102,13 +102,13 @@ function R() {
|
|
|
102
102
|
enabled: !0
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function B(e) {
|
|
106
106
|
return { ...e };
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function oe(e) {
|
|
109
109
|
return !!(e.fieldName?.trim() && e.columnName?.trim() && e.fieldSpecAlias);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function se(e) {
|
|
112
112
|
return {
|
|
113
113
|
...e,
|
|
114
114
|
fieldName: e.fieldName?.trim(),
|
|
@@ -116,39 +116,39 @@ function ce(e) {
|
|
|
116
116
|
title: e.title?.trim()
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function V(e) {
|
|
120
120
|
return e.filter((e) => e.fieldOwnership === "BUSINESS" && e.fieldForm === "PHYSICAL" && e.systemManaged !== !0);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function H(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 U(e, t) {
|
|
129
129
|
return t?.title ?? e.relationAlias ?? "未命名实体";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function W(e) {
|
|
132
132
|
if (e === "MAIN") return "主实体";
|
|
133
133
|
if (e === "CHILD") return "子实体";
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
let n =
|
|
135
|
+
function ce(e, t) {
|
|
136
|
+
let n = U(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: W(e.relationRole),
|
|
141
141
|
muted: t?.enabled === !1 ? !0 : void 0
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function le(e) {
|
|
145
145
|
if (!e) return;
|
|
146
146
|
let t = e.tableName ? `${e.schemaName ?? "public"}.${e.tableName}` : void 0;
|
|
147
147
|
return [e.alias, t].filter(Boolean).join(" · ") || void 0;
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/views/MetadataOrchestrationView.vue?vue&type=script&setup=true&lang.ts
|
|
151
|
-
var
|
|
151
|
+
var ue = { class: "entity-overview" }, de = { class: "field-section" }, fe = { class: "orchestration-form-flags" }, G = 200, K = /*#__PURE__*/ C(/* @__PURE__ */ k({
|
|
152
152
|
name: "MetadataOrchestrationView",
|
|
153
153
|
__name: "MetadataOrchestrationView",
|
|
154
154
|
props: {
|
|
@@ -156,8 +156,8 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
156
156
|
moduleTitle: {},
|
|
157
157
|
title: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
let
|
|
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: "字段"
|
|
@@ -183,49 +183,49 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
183
183
|
width: 70
|
|
184
184
|
}
|
|
185
185
|
];
|
|
186
|
-
|
|
186
|
+
ie(() => k.moduleAlias, () => void J(), { immediate: !0 }), re(() => void me());
|
|
187
187
|
async function J() {
|
|
188
|
-
|
|
188
|
+
V.value = !0;
|
|
189
189
|
try {
|
|
190
|
-
|
|
190
|
+
B.handleRelationsLoaded(await $(Q("/query"))), await Y();
|
|
191
191
|
} catch (e) {
|
|
192
|
-
|
|
192
|
+
b(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
200
|
async function me() {
|
|
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
|
});
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
async function he(e) {
|
|
211
|
-
|
|
211
|
+
B.selectRelation(e) && await Y();
|
|
212
212
|
}
|
|
213
213
|
async function Y() {
|
|
214
|
-
let e =
|
|
215
|
-
if (
|
|
216
|
-
let t = await
|
|
217
|
-
|
|
214
|
+
let e = B.selectedRelation.value?.metadataId;
|
|
215
|
+
if (B.handleFieldsLoaded([]), e) try {
|
|
216
|
+
let t = await z.view(e);
|
|
217
|
+
B.handleMetadataLoaded(t), B.handleFieldsLoaded(await $(`/platform.metadata/${encodeURIComponent(e)}/fields/query`));
|
|
218
218
|
} catch (e) {
|
|
219
|
-
|
|
219
|
+
b(e, {
|
|
220
220
|
source: "metadata-orchestration",
|
|
221
221
|
phase: "load"
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
async function X() {
|
|
226
|
-
let e =
|
|
227
|
-
if (!
|
|
228
|
-
|
|
226
|
+
let e = L(B.mainMetadataDraft.value);
|
|
227
|
+
if (!R(e)) {
|
|
228
|
+
_("请填写实体 alias 和名称", {
|
|
229
229
|
source: "metadata-orchestration",
|
|
230
230
|
phase: "validation"
|
|
231
231
|
});
|
|
@@ -233,17 +233,17 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
233
233
|
}
|
|
234
234
|
K.value = !0;
|
|
235
235
|
try {
|
|
236
|
-
let t = await
|
|
236
|
+
let t = await I.http.request({
|
|
237
237
|
method: "POST",
|
|
238
238
|
path: Q("/create-main-metadata"),
|
|
239
239
|
body: e
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
B.cancelEditor(), await J(), B.focusRelation(t.relation.id), await Y(), await 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
|
});
|
|
@@ -252,11 +252,11 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
async function Z() {
|
|
255
|
-
let e =
|
|
255
|
+
let e = B.selectedMetadata.value?.id;
|
|
256
256
|
if (!e) return;
|
|
257
|
-
let t =
|
|
258
|
-
if (!
|
|
259
|
-
|
|
257
|
+
let t = se(B.fieldDraft.value);
|
|
258
|
+
if (!oe(t)) {
|
|
259
|
+
_("请填写字段名、物理列名和字段规格", {
|
|
260
260
|
source: "metadata-orchestration",
|
|
261
261
|
phase: "validation"
|
|
262
262
|
});
|
|
@@ -270,20 +270,20 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
270
270
|
fieldOwnership: "BUSINESS",
|
|
271
271
|
fieldForm: "PHYSICAL"
|
|
272
272
|
};
|
|
273
|
-
n.id ? await
|
|
273
|
+
n.id ? await I.http.request({
|
|
274
274
|
method: "POST",
|
|
275
275
|
path: `/platform.metadata/${encodeURIComponent(e)}/fields/update/${encodeURIComponent(n.id)}`,
|
|
276
276
|
body: n
|
|
277
|
-
}) : await
|
|
277
|
+
}) : await I.http.request({
|
|
278
278
|
method: "POST",
|
|
279
279
|
path: `/platform.metadata/${encodeURIComponent(e)}/fields/insert`,
|
|
280
280
|
body: n
|
|
281
|
-
}),
|
|
281
|
+
}), B.cancelEditor(), await Y(), await 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
|
});
|
|
@@ -292,8 +292,8 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
async function ge(e) {
|
|
295
|
-
let t =
|
|
296
|
-
if (!(!t || !e.id || !await
|
|
295
|
+
let t = B.selectedMetadata.value?.id;
|
|
296
|
+
if (!(!t || !e.id || !await m({
|
|
297
297
|
title: "删除字段",
|
|
298
298
|
content: `确认删除字段“${e.title ?? e.fieldName}”?`,
|
|
299
299
|
okText: "删除",
|
|
@@ -301,13 +301,13 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
301
301
|
}))) {
|
|
302
302
|
K.value = !0;
|
|
303
303
|
try {
|
|
304
|
-
await
|
|
304
|
+
await I.http.request({
|
|
305
305
|
method: "POST",
|
|
306
306
|
path: `/platform.metadata/${encodeURIComponent(t)}/fields/delete/${encodeURIComponent(e.id)}`,
|
|
307
307
|
body: { version: e.version }
|
|
308
308
|
}), await Y();
|
|
309
309
|
} catch (e) {
|
|
310
|
-
|
|
310
|
+
b(e, {
|
|
311
311
|
source: "metadata-orchestration",
|
|
312
312
|
phase: "action"
|
|
313
313
|
});
|
|
@@ -317,19 +317,19 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
async function _e() {
|
|
320
|
-
let e =
|
|
320
|
+
let e = B.selectedRelation.value;
|
|
321
321
|
if (e?.id) {
|
|
322
322
|
K.value = !0;
|
|
323
323
|
try {
|
|
324
|
-
await
|
|
324
|
+
await I.http.request({
|
|
325
325
|
method: "POST",
|
|
326
326
|
path: Q(`/${encodeURIComponent(e.id)}/fields/ensure`)
|
|
327
|
-
}), await
|
|
327
|
+
}), await 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
|
});
|
|
@@ -339,12 +339,12 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
function Q(e) {
|
|
342
|
-
return `/platform.module/${encodeURIComponent(
|
|
342
|
+
return `/platform.module/${encodeURIComponent(k.moduleAlias)}/metadata-relations${e}`;
|
|
343
343
|
}
|
|
344
344
|
async function $(e) {
|
|
345
345
|
let t = [];
|
|
346
346
|
for (let n = 1;; n += 1) {
|
|
347
|
-
let r = await
|
|
347
|
+
let r = await I.http.request({
|
|
348
348
|
method: "POST",
|
|
349
349
|
path: e,
|
|
350
350
|
body: { page: {
|
|
@@ -356,47 +356,47 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
function ve(e) {
|
|
359
|
-
return e.metadataId ?
|
|
359
|
+
return e.metadataId ? B.metadataById.value[e.metadataId] : void 0;
|
|
360
360
|
}
|
|
361
361
|
function ye(e) {
|
|
362
362
|
let t = e;
|
|
363
|
-
return
|
|
363
|
+
return ce(t, ve(t));
|
|
364
364
|
}
|
|
365
365
|
function be(e, t) {
|
|
366
366
|
let n = t;
|
|
367
367
|
return e.key === "required" ? n.required ? "是" : "否" : e.key === "enabled" ? n.enabled === !1 ? "停用" : "启用" : String(n[e.key] ?? "");
|
|
368
368
|
}
|
|
369
|
-
return (
|
|
370
|
-
|
|
369
|
+
return (r, f) => (A(), ne(ee, null, [
|
|
370
|
+
O(N(a), {
|
|
371
371
|
ref_key: "pageHost",
|
|
372
|
-
ref:
|
|
372
|
+
ref: H,
|
|
373
373
|
class: "metadata-orchestration-workspace",
|
|
374
374
|
"explorer-count": 1
|
|
375
375
|
}, {
|
|
376
|
-
default:
|
|
377
|
-
default:
|
|
376
|
+
default: P(() => [O(N(n), null, {
|
|
377
|
+
default: P(() => [O(N(x), {
|
|
378
378
|
"search-keyword": q.value,
|
|
379
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:
|
|
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",
|
|
388
388
|
"icon-name": "plus",
|
|
389
389
|
title: "新建主实体",
|
|
390
|
-
disabled:
|
|
391
|
-
onClick:
|
|
390
|
+
disabled: V.value || K.value,
|
|
391
|
+
onClick: N(B).startCreateMain
|
|
392
392
|
}, null, 8, ["disabled", "onClick"]))]),
|
|
393
|
-
default:
|
|
393
|
+
default: P(() => [V.value ? (A(), T(N(h), {
|
|
394
394
|
key: 0,
|
|
395
395
|
tip: "加载实体"
|
|
396
|
-
})) :
|
|
396
|
+
})) : N(B).relations.value.length ? (A(), T(N(d), {
|
|
397
397
|
key: 2,
|
|
398
|
-
records:
|
|
399
|
-
"selected-id":
|
|
398
|
+
records: N(B).relations.value,
|
|
399
|
+
"selected-id": N(B).selectedRelationId.value,
|
|
400
400
|
keyword: q.value,
|
|
401
401
|
"empty-description": "暂无实体",
|
|
402
402
|
"item-of": ye,
|
|
@@ -405,138 +405,138 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
405
405
|
"records",
|
|
406
406
|
"selected-id",
|
|
407
407
|
"keyword"
|
|
408
|
-
])) : (
|
|
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
|
-
}),
|
|
415
|
+
}), N(B).selectedMetadata.value && N(B).selectedRelation.value ? (A(), T(N(t), {
|
|
416
416
|
key: 0,
|
|
417
|
-
title:
|
|
418
|
-
subtitle:
|
|
417
|
+
title: N(U)(N(B).selectedRelation.value, N(B).selectedMetadata.value),
|
|
418
|
+
subtitle: N(le)(N(B).selectedMetadata.value)
|
|
419
419
|
}, {
|
|
420
|
-
actions:
|
|
420
|
+
actions: P(() => [O(N(i), {
|
|
421
421
|
emphasis: "quiet",
|
|
422
|
-
disabled: K.value ||
|
|
422
|
+
disabled: K.value || V.value,
|
|
423
423
|
onClick: _e
|
|
424
424
|
}, {
|
|
425
|
-
default:
|
|
425
|
+
default: P(() => [...f[16] ||= [D(" 同步模块字段配置 ", -1)]]),
|
|
426
426
|
_: 1
|
|
427
|
-
}, 8, ["disabled"]),
|
|
427
|
+
}, 8, ["disabled"]), O(N(i), {
|
|
428
428
|
emphasis: "primary",
|
|
429
|
-
disabled: K.value ||
|
|
430
|
-
onClick:
|
|
429
|
+
disabled: K.value || V.value,
|
|
430
|
+
onClick: N(B).startCreateField
|
|
431
431
|
}, {
|
|
432
|
-
default:
|
|
432
|
+
default: P(() => [...f[17] ||= [D(" 新增字段 ", -1)]]),
|
|
433
433
|
_: 1
|
|
434
434
|
}, 8, ["disabled", "onClick"])]),
|
|
435
|
-
default:
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
435
|
+
default: P(() => [
|
|
436
|
+
E("dl", ue, [
|
|
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
|
-
|
|
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
|
-
})) :
|
|
444
|
+
})) : N(B).fields.value.length ? (A(), T(N(S), {
|
|
445
445
|
key: 2,
|
|
446
446
|
columns: pe,
|
|
447
|
-
rows:
|
|
447
|
+
rows: N(B).fields.value,
|
|
448
448
|
"show-action-column": "",
|
|
449
449
|
"action-column-title": "操作"
|
|
450
450
|
}, {
|
|
451
|
-
cell:
|
|
452
|
-
rowActions:
|
|
451
|
+
cell: P(({ column: e, record: t }) => [D(M(be(e, t)), 1)]),
|
|
452
|
+
rowActions: P(({ record: e }) => [O(N(i), {
|
|
453
453
|
emphasis: "quiet",
|
|
454
454
|
density: "compact",
|
|
455
|
-
onClick: (t) =>
|
|
455
|
+
onClick: (t) => N(B).startEditField(e)
|
|
456
456
|
}, {
|
|
457
|
-
default:
|
|
457
|
+
default: P(() => [...f[21] ||= [D(" 编辑 ", -1)]]),
|
|
458
458
|
_: 1
|
|
459
|
-
}, 8, ["onClick"]),
|
|
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:
|
|
466
|
+
default: P(() => [...f[22] ||= [D(" 删除 ", -1)]]),
|
|
467
467
|
_: 1
|
|
468
468
|
}, 8, ["disabled", "onClick"])]),
|
|
469
469
|
_: 1
|
|
470
|
-
}, 8, ["rows"])) : (
|
|
470
|
+
}, 8, ["rows"])) : (A(), T(N(u), {
|
|
471
471
|
key: 1,
|
|
472
472
|
description: "暂无业务字段,点击右上角新增字段"
|
|
473
473
|
}))]),
|
|
474
|
-
|
|
474
|
+
O(N(y), { record: N(B).selectedMetadata.value }, null, 8, ["record"])
|
|
475
475
|
]),
|
|
476
476
|
_: 1
|
|
477
|
-
}, 8, ["title", "subtitle"])) : (
|
|
477
|
+
}, 8, ["title", "subtitle"])) : (A(), T(N(t), {
|
|
478
478
|
key: 1,
|
|
479
479
|
title: "字段编排"
|
|
480
480
|
}, {
|
|
481
|
-
default:
|
|
481
|
+
default: P(() => [O(N(u), { description: "从左侧选择实体后开始字段编排" })]),
|
|
482
482
|
_: 1
|
|
483
483
|
}))]),
|
|
484
484
|
_: 1
|
|
485
485
|
}, 512),
|
|
486
|
-
|
|
487
|
-
open:
|
|
486
|
+
O(N(p), {
|
|
487
|
+
open: N(B).mainEditorOpen.value,
|
|
488
488
|
title: "新建主实体",
|
|
489
|
-
container:
|
|
490
|
-
subtitle:
|
|
489
|
+
container: W.value,
|
|
490
|
+
subtitle: C.moduleTitle ?? C.moduleAlias,
|
|
491
491
|
mode: "create",
|
|
492
|
-
onClose:
|
|
492
|
+
onClose: N(B).cancelEditor
|
|
493
493
|
}, {
|
|
494
|
-
form:
|
|
494
|
+
form: P(() => [E("form", {
|
|
495
495
|
class: "orchestration-form",
|
|
496
|
-
onSubmit:
|
|
496
|
+
onSubmit: F(X, ["prevent"])
|
|
497
497
|
}, [
|
|
498
|
-
|
|
499
|
-
value:
|
|
500
|
-
"onUpdate:value": f[1] ||= (e) =>
|
|
498
|
+
E("label", null, [f[24] ||= E("span", null, "实体 alias", -1), O(N(s), {
|
|
499
|
+
value: N(B).mainMetadataDraft.value.alias,
|
|
500
|
+
"onUpdate:value": f[1] ||= (e) => N(B).mainMetadataDraft.value.alias = e,
|
|
501
501
|
placeholder: "例如 customer"
|
|
502
502
|
}, null, 8, ["value"])]),
|
|
503
|
-
|
|
504
|
-
value:
|
|
505
|
-
"onUpdate:value": f[2] ||= (e) =>
|
|
503
|
+
E("label", null, [f[25] ||= E("span", null, "实体名称", -1), O(N(s), {
|
|
504
|
+
value: N(B).mainMetadataDraft.value.title,
|
|
505
|
+
"onUpdate:value": f[2] ||= (e) => N(B).mainMetadataDraft.value.title = e,
|
|
506
506
|
placeholder: "例如 客户"
|
|
507
507
|
}, null, 8, ["value"])]),
|
|
508
|
-
|
|
509
|
-
value:
|
|
510
|
-
"onUpdate:value": f[3] ||= (e) =>
|
|
508
|
+
E("label", null, [f[26] ||= E("span", null, "Schema(可选)", -1), O(N(s), {
|
|
509
|
+
value: N(B).mainMetadataDraft.value.schemaName,
|
|
510
|
+
"onUpdate:value": f[3] ||= (e) => N(B).mainMetadataDraft.value.schemaName = e,
|
|
511
511
|
placeholder: "默认 public"
|
|
512
512
|
}, null, 8, ["value"])]),
|
|
513
|
-
|
|
514
|
-
value:
|
|
515
|
-
"onUpdate:value": f[4] ||= (e) =>
|
|
513
|
+
E("label", null, [f[27] ||= E("span", null, "物理表名(可选)", -1), O(N(s), {
|
|
514
|
+
value: N(B).mainMetadataDraft.value.tableName,
|
|
515
|
+
"onUpdate:value": f[4] ||= (e) => N(B).mainMetadataDraft.value.tableName = e,
|
|
516
516
|
placeholder: "默认按应用和 alias 生成"
|
|
517
517
|
}, null, 8, ["value"])]),
|
|
518
|
-
|
|
519
|
-
checked:
|
|
520
|
-
"onUpdate:checked": f[5] ||= (e) =>
|
|
518
|
+
O(N(l), {
|
|
519
|
+
checked: N(B).mainMetadataDraft.value.dataScopeEnabled,
|
|
520
|
+
"onUpdate:checked": f[5] ||= (e) => N(B).mainMetadataDraft.value.dataScopeEnabled = e
|
|
521
521
|
}, {
|
|
522
|
-
default:
|
|
522
|
+
default: P(() => [...f[28] ||= [D(" 启用数据权限范围 ", -1)]]),
|
|
523
523
|
_: 1
|
|
524
524
|
}, 8, ["checked"])
|
|
525
525
|
], 32)]),
|
|
526
|
-
operation:
|
|
527
|
-
default:
|
|
526
|
+
operation: P(() => [O(N(g), null, {
|
|
527
|
+
default: P(() => [O(N(i), {
|
|
528
528
|
disabled: K.value,
|
|
529
|
-
onClick:
|
|
529
|
+
onClick: N(B).cancelEditor
|
|
530
530
|
}, {
|
|
531
|
-
default:
|
|
531
|
+
default: P(() => [...f[29] ||= [D("取消", -1)]]),
|
|
532
532
|
_: 1
|
|
533
|
-
}, 8, ["disabled", "onClick"]),
|
|
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:
|
|
539
|
+
default: P(() => [...f[30] ||= [D(" 创建 ", -1)]]),
|
|
540
540
|
_: 1
|
|
541
541
|
}, 8, ["loading"])]),
|
|
542
542
|
_: 1
|
|
@@ -548,100 +548,100 @@ var de = { class: "entity-overview" }, fe = { class: "field-section" }, W = { cl
|
|
|
548
548
|
"subtitle",
|
|
549
549
|
"onClose"
|
|
550
550
|
]),
|
|
551
|
-
|
|
552
|
-
open:
|
|
553
|
-
title:
|
|
554
|
-
container:
|
|
555
|
-
subtitle:
|
|
551
|
+
O(N(p), {
|
|
552
|
+
open: N(B).fieldEditorOpen.value,
|
|
553
|
+
title: N(B).mode.value === "edit-field" ? "编辑字段" : "新增字段",
|
|
554
|
+
container: W.value,
|
|
555
|
+
subtitle: N(B).selectedMetadata.value?.title,
|
|
556
556
|
mode: "create",
|
|
557
|
-
onClose:
|
|
557
|
+
onClose: N(B).cancelEditor
|
|
558
558
|
}, {
|
|
559
|
-
form:
|
|
559
|
+
form: P(() => [E("form", {
|
|
560
560
|
class: "orchestration-form",
|
|
561
|
-
onSubmit:
|
|
561
|
+
onSubmit: F(Z, ["prevent"])
|
|
562
562
|
}, [
|
|
563
|
-
|
|
564
|
-
value:
|
|
565
|
-
"onUpdate:value": f[6] ||= (e) =>
|
|
566
|
-
disabled: !!
|
|
563
|
+
E("label", null, [f[31] ||= E("span", null, "字段名称", -1), O(N(s), {
|
|
564
|
+
value: N(B).fieldDraft.value.fieldName,
|
|
565
|
+
"onUpdate:value": f[6] ||= (e) => N(B).fieldDraft.value.fieldName = e,
|
|
566
|
+
disabled: !!N(B).fieldDraft.value.id,
|
|
567
567
|
placeholder: "例如 customerName"
|
|
568
568
|
}, null, 8, ["value", "disabled"])]),
|
|
569
|
-
|
|
570
|
-
value:
|
|
571
|
-
"onUpdate:value": f[7] ||= (e) =>
|
|
572
|
-
disabled: !!
|
|
569
|
+
E("label", null, [f[32] ||= E("span", null, "物理列名", -1), O(N(s), {
|
|
570
|
+
value: N(B).fieldDraft.value.columnName,
|
|
571
|
+
"onUpdate:value": f[7] ||= (e) => N(B).fieldDraft.value.columnName = e,
|
|
572
|
+
disabled: !!N(B).fieldDraft.value.id,
|
|
573
573
|
placeholder: "例如 customer_name"
|
|
574
574
|
}, null, 8, ["value", "disabled"])]),
|
|
575
|
-
|
|
576
|
-
value:
|
|
577
|
-
"onUpdate:value": f[8] ||= (e) =>
|
|
575
|
+
E("label", null, [f[33] ||= E("span", null, "显示名称", -1), O(N(s), {
|
|
576
|
+
value: N(B).fieldDraft.value.title,
|
|
577
|
+
"onUpdate:value": f[8] ||= (e) => N(B).fieldDraft.value.title = e,
|
|
578
578
|
placeholder: "例如 客户名称"
|
|
579
579
|
}, null, 8, ["value"])]),
|
|
580
|
-
|
|
581
|
-
value:
|
|
582
|
-
"onUpdate:value": f[9] ||= (e) =>
|
|
583
|
-
options:
|
|
580
|
+
E("label", null, [f[34] ||= E("span", null, "字段规格", -1), O(N(c), {
|
|
581
|
+
value: N(B).fieldDraft.value.fieldSpecAlias,
|
|
582
|
+
"onUpdate:value": f[9] ||= (e) => N(B).fieldDraft.value.fieldSpecAlias = e,
|
|
583
|
+
options: N(B).fieldSpecOptions.value,
|
|
584
584
|
placeholder: "选择字段规格",
|
|
585
585
|
style: { width: "100%" }
|
|
586
586
|
}, null, 8, ["value", "options"])]),
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
checked:
|
|
590
|
-
"onUpdate:checked": f[10] ||= (e) =>
|
|
587
|
+
E("div", fe, [
|
|
588
|
+
O(N(l), {
|
|
589
|
+
checked: N(B).fieldDraft.value.required,
|
|
590
|
+
"onUpdate:checked": f[10] ||= (e) => N(B).fieldDraft.value.required = e
|
|
591
591
|
}, {
|
|
592
|
-
default:
|
|
592
|
+
default: P(() => [...f[35] ||= [D("必填", -1)]]),
|
|
593
593
|
_: 1
|
|
594
594
|
}, 8, ["checked"]),
|
|
595
|
-
|
|
596
|
-
checked:
|
|
597
|
-
"onUpdate:checked": f[11] ||= (e) =>
|
|
595
|
+
O(N(l), {
|
|
596
|
+
checked: N(B).fieldDraft.value.uniqueField,
|
|
597
|
+
"onUpdate:checked": f[11] ||= (e) => N(B).fieldDraft.value.uniqueField = e
|
|
598
598
|
}, {
|
|
599
|
-
default:
|
|
599
|
+
default: P(() => [...f[36] ||= [D("唯一", -1)]]),
|
|
600
600
|
_: 1
|
|
601
601
|
}, 8, ["checked"]),
|
|
602
|
-
|
|
603
|
-
checked:
|
|
604
|
-
"onUpdate:checked": f[12] ||= (e) =>
|
|
602
|
+
O(N(l), {
|
|
603
|
+
checked: N(B).fieldDraft.value.indexed,
|
|
604
|
+
"onUpdate:checked": f[12] ||= (e) => N(B).fieldDraft.value.indexed = e
|
|
605
605
|
}, {
|
|
606
|
-
default:
|
|
606
|
+
default: P(() => [...f[37] ||= [D("建立索引", -1)]]),
|
|
607
607
|
_: 1
|
|
608
608
|
}, 8, ["checked"]),
|
|
609
|
-
|
|
610
|
-
checked:
|
|
611
|
-
"onUpdate:checked": f[13] ||= (e) =>
|
|
609
|
+
O(N(l), {
|
|
610
|
+
checked: N(B).fieldDraft.value.sortableField,
|
|
611
|
+
"onUpdate:checked": f[13] ||= (e) => N(B).fieldDraft.value.sortableField = e
|
|
612
612
|
}, {
|
|
613
|
-
default:
|
|
613
|
+
default: P(() => [...f[38] ||= [D("排序字段", -1)]]),
|
|
614
614
|
_: 1
|
|
615
615
|
}, 8, ["checked"]),
|
|
616
|
-
|
|
617
|
-
checked:
|
|
618
|
-
"onUpdate:checked": f[14] ||= (e) =>
|
|
616
|
+
O(N(l), {
|
|
617
|
+
checked: N(B).fieldDraft.value.titleField,
|
|
618
|
+
"onUpdate:checked": f[14] ||= (e) => N(B).fieldDraft.value.titleField = e
|
|
619
619
|
}, {
|
|
620
|
-
default:
|
|
620
|
+
default: P(() => [...f[39] ||= [D("标题字段", -1)]]),
|
|
621
621
|
_: 1
|
|
622
622
|
}, 8, ["checked"]),
|
|
623
|
-
|
|
624
|
-
checked:
|
|
625
|
-
"onUpdate:checked": f[15] ||= (e) =>
|
|
623
|
+
O(N(e), {
|
|
624
|
+
checked: N(B).fieldDraft.value.enabled,
|
|
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:
|
|
632
|
-
default:
|
|
631
|
+
operation: P(() => [O(N(g), null, {
|
|
632
|
+
default: P(() => [O(N(i), {
|
|
633
633
|
disabled: K.value,
|
|
634
|
-
onClick:
|
|
634
|
+
onClick: N(B).cancelEditor
|
|
635
635
|
}, {
|
|
636
|
-
default:
|
|
636
|
+
default: P(() => [...f[40] ||= [D("取消", -1)]]),
|
|
637
637
|
_: 1
|
|
638
|
-
}, 8, ["disabled", "onClick"]),
|
|
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:
|
|
644
|
+
default: P(() => [...f[41] ||= [D("保存", -1)]]),
|
|
645
645
|
_: 1
|
|
646
646
|
}, 8, ["loading"])]),
|
|
647
647
|
_: 1
|