@yuku123/z-meta-component 0.0.0-stage → 0.1.1
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/MetaApp-DCN9NQdA.js +559 -0
- package/dist/index.js +5 -0
- package/dist/pages.js +936 -0
- package/dist/z-meta-component.css +1 -0
- package/package.json +43 -4
- package/README.md +0 -3
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
import oe, { useState as le, useEffect as de } from "react";
|
|
2
|
+
import { Routes as ce, Route as x, Navigate as ue } from "react-router-dom";
|
|
3
|
+
import { Tag as l, Alert as pe, Table as W, Tooltip as fe, Typography as me } from "antd";
|
|
4
|
+
import { createRequest as _e } from "@yuku123/z-frontend-common";
|
|
5
|
+
import { PagedTable as k } from "@yuku123/z-frontend-common/ui";
|
|
6
|
+
const p = _e({ baseURL: "/meta" });
|
|
7
|
+
function Se(t) {
|
|
8
|
+
t && t.apiBase !== void 0 && (p.defaults.baseURL = t.apiBase);
|
|
9
|
+
}
|
|
10
|
+
var R = { exports: {} }, T = {};
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-jsx-runtime.production.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
var D;
|
|
21
|
+
function xe() {
|
|
22
|
+
if (D) return T;
|
|
23
|
+
D = 1;
|
|
24
|
+
var t = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
|
|
25
|
+
function c(u, d, f) {
|
|
26
|
+
var E = null;
|
|
27
|
+
if (f !== void 0 && (E = "" + f), d.key !== void 0 && (E = "" + d.key), "key" in d) {
|
|
28
|
+
f = {};
|
|
29
|
+
for (var g in d)
|
|
30
|
+
g !== "key" && (f[g] = d[g]);
|
|
31
|
+
} else f = d;
|
|
32
|
+
return d = f.ref, {
|
|
33
|
+
$$typeof: t,
|
|
34
|
+
type: u,
|
|
35
|
+
key: E,
|
|
36
|
+
ref: d !== void 0 ? d : null,
|
|
37
|
+
props: f
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return T.Fragment = a, T.jsx = c, T.jsxs = c, T;
|
|
41
|
+
}
|
|
42
|
+
var w = {};
|
|
43
|
+
/**
|
|
44
|
+
* @license React
|
|
45
|
+
* react-jsx-runtime.development.js
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the MIT license found in the
|
|
50
|
+
* LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/
|
|
52
|
+
var G;
|
|
53
|
+
function ye() {
|
|
54
|
+
return G || (G = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
55
|
+
function t(e) {
|
|
56
|
+
if (e == null) return null;
|
|
57
|
+
if (typeof e == "function")
|
|
58
|
+
return e.$$typeof === ne ? null : e.displayName || e.name || null;
|
|
59
|
+
if (typeof e == "string") return e;
|
|
60
|
+
switch (e) {
|
|
61
|
+
case b:
|
|
62
|
+
return "Fragment";
|
|
63
|
+
case X:
|
|
64
|
+
return "Profiler";
|
|
65
|
+
case V:
|
|
66
|
+
return "StrictMode";
|
|
67
|
+
case Q:
|
|
68
|
+
return "Suspense";
|
|
69
|
+
case ee:
|
|
70
|
+
return "SuspenseList";
|
|
71
|
+
case re:
|
|
72
|
+
return "Activity";
|
|
73
|
+
case ae:
|
|
74
|
+
return "ViewTransition";
|
|
75
|
+
}
|
|
76
|
+
if (typeof e == "object")
|
|
77
|
+
switch (typeof e.tag == "number" && console.error(
|
|
78
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
79
|
+
), e.$$typeof) {
|
|
80
|
+
case J:
|
|
81
|
+
return "Portal";
|
|
82
|
+
case Z:
|
|
83
|
+
return e.displayName || "Context";
|
|
84
|
+
case H:
|
|
85
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
86
|
+
case K:
|
|
87
|
+
var n = e.render;
|
|
88
|
+
return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
89
|
+
case te:
|
|
90
|
+
return n = e.displayName || null, n !== null ? n : t(e.type) || "Memo";
|
|
91
|
+
case v:
|
|
92
|
+
n = e._payload, e = e._init;
|
|
93
|
+
try {
|
|
94
|
+
return t(e(n));
|
|
95
|
+
} catch {
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
function a(e) {
|
|
101
|
+
return "" + e;
|
|
102
|
+
}
|
|
103
|
+
function c(e) {
|
|
104
|
+
try {
|
|
105
|
+
a(e);
|
|
106
|
+
var n = !1;
|
|
107
|
+
} catch {
|
|
108
|
+
n = !0;
|
|
109
|
+
}
|
|
110
|
+
if (n) {
|
|
111
|
+
n = console;
|
|
112
|
+
var i = n.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
113
|
+
return i.call(
|
|
114
|
+
n,
|
|
115
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
116
|
+
s
|
|
117
|
+
), a(e);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function u(e) {
|
|
121
|
+
if (e === b) return "<>";
|
|
122
|
+
if (typeof e == "object" && e !== null && e.$$typeof === v)
|
|
123
|
+
return "<...>";
|
|
124
|
+
try {
|
|
125
|
+
var n = t(e);
|
|
126
|
+
return n ? "<" + n + ">" : "<...>";
|
|
127
|
+
} catch {
|
|
128
|
+
return "<...>";
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function d() {
|
|
132
|
+
var e = I.A;
|
|
133
|
+
return e === null ? null : e.getOwner();
|
|
134
|
+
}
|
|
135
|
+
function f() {
|
|
136
|
+
return Error("react-stack-top-frame");
|
|
137
|
+
}
|
|
138
|
+
function E(e) {
|
|
139
|
+
if (L.call(e, "key")) {
|
|
140
|
+
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
141
|
+
if (n && n.isReactWarning) return !1;
|
|
142
|
+
}
|
|
143
|
+
return e.key !== void 0;
|
|
144
|
+
}
|
|
145
|
+
function g(e, n) {
|
|
146
|
+
function i() {
|
|
147
|
+
Y || (Y = !0, console.error(
|
|
148
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
149
|
+
n
|
|
150
|
+
));
|
|
151
|
+
}
|
|
152
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
153
|
+
get: i,
|
|
154
|
+
configurable: !0
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function q() {
|
|
158
|
+
var e = t(this.type);
|
|
159
|
+
return $[e] || ($[e] = !0, console.error(
|
|
160
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
161
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
162
|
+
}
|
|
163
|
+
function B(e, n, i, s, _, m) {
|
|
164
|
+
var o = i.ref;
|
|
165
|
+
return e = {
|
|
166
|
+
$$typeof: C,
|
|
167
|
+
type: e,
|
|
168
|
+
key: n,
|
|
169
|
+
props: i,
|
|
170
|
+
_owner: s
|
|
171
|
+
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
172
|
+
enumerable: !1,
|
|
173
|
+
get: q
|
|
174
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
175
|
+
configurable: !1,
|
|
176
|
+
enumerable: !1,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: 0
|
|
179
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: null
|
|
184
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
185
|
+
configurable: !1,
|
|
186
|
+
enumerable: !1,
|
|
187
|
+
writable: !0,
|
|
188
|
+
value: _
|
|
189
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
190
|
+
configurable: !1,
|
|
191
|
+
enumerable: !1,
|
|
192
|
+
writable: !0,
|
|
193
|
+
value: m
|
|
194
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
195
|
+
}
|
|
196
|
+
function O(e, n, i, s, _, m) {
|
|
197
|
+
var o = n.children;
|
|
198
|
+
if (o !== void 0)
|
|
199
|
+
if (s)
|
|
200
|
+
if (ie(o)) {
|
|
201
|
+
for (s = 0; s < o.length; s++)
|
|
202
|
+
S(o[s]);
|
|
203
|
+
Object.freeze && Object.freeze(o);
|
|
204
|
+
} else
|
|
205
|
+
console.error(
|
|
206
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
207
|
+
);
|
|
208
|
+
else S(o);
|
|
209
|
+
if (L.call(n, "key")) {
|
|
210
|
+
o = t(e);
|
|
211
|
+
var h = Object.keys(n).filter(function(se) {
|
|
212
|
+
return se !== "key";
|
|
213
|
+
});
|
|
214
|
+
s = 0 < h.length ? "{key: someKey, " + h.join(": ..., ") + ": ...}" : "{key: someKey}", F[o + s] || (h = 0 < h.length ? "{" + h.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
215
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
216
|
+
let props = %s;
|
|
217
|
+
<%s {...props} />
|
|
218
|
+
React keys must be passed directly to JSX without using spread:
|
|
219
|
+
let props = %s;
|
|
220
|
+
<%s key={someKey} {...props} />`,
|
|
221
|
+
s,
|
|
222
|
+
o,
|
|
223
|
+
h,
|
|
224
|
+
o
|
|
225
|
+
), F[o + s] = !0);
|
|
226
|
+
}
|
|
227
|
+
if (o = null, i !== void 0 && (c(i), o = "" + i), E(n) && (c(n.key), o = "" + n.key), "key" in n) {
|
|
228
|
+
i = {};
|
|
229
|
+
for (var A in n)
|
|
230
|
+
A !== "key" && (i[A] = n[A]);
|
|
231
|
+
} else i = n;
|
|
232
|
+
return o && g(
|
|
233
|
+
i,
|
|
234
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
235
|
+
), B(
|
|
236
|
+
e,
|
|
237
|
+
o,
|
|
238
|
+
i,
|
|
239
|
+
d(),
|
|
240
|
+
_,
|
|
241
|
+
m
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
function S(e) {
|
|
245
|
+
N(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === v && (e._payload.status === "fulfilled" ? N(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
246
|
+
}
|
|
247
|
+
function N(e) {
|
|
248
|
+
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
249
|
+
}
|
|
250
|
+
var j = oe, C = Symbol.for("react.transitional.element"), J = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), X = Symbol.for("react.profiler"), H = Symbol.for("react.consumer"), Z = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), re = Symbol.for("react.activity"), ae = Symbol.for("react.view_transition"), ne = Symbol.for("react.client.reference"), I = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, ie = Array.isArray, P = console.createTask ? console.createTask : function() {
|
|
251
|
+
return null;
|
|
252
|
+
};
|
|
253
|
+
j = {
|
|
254
|
+
react_stack_bottom_frame: function(e) {
|
|
255
|
+
return e();
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
var Y, $ = {}, M = j.react_stack_bottom_frame.bind(
|
|
259
|
+
j,
|
|
260
|
+
f
|
|
261
|
+
)(), z = P(u(f)), F = {};
|
|
262
|
+
w.Fragment = b, w.jsx = function(e, n, i) {
|
|
263
|
+
var s = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
264
|
+
if (s) {
|
|
265
|
+
var _ = Error.stackTraceLimit;
|
|
266
|
+
Error.stackTraceLimit = 10;
|
|
267
|
+
var m = Error("react-stack-top-frame");
|
|
268
|
+
Error.stackTraceLimit = _;
|
|
269
|
+
} else m = M;
|
|
270
|
+
return O(
|
|
271
|
+
e,
|
|
272
|
+
n,
|
|
273
|
+
i,
|
|
274
|
+
!1,
|
|
275
|
+
m,
|
|
276
|
+
s ? P(u(e)) : z
|
|
277
|
+
);
|
|
278
|
+
}, w.jsxs = function(e, n, i) {
|
|
279
|
+
var s = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
280
|
+
if (s) {
|
|
281
|
+
var _ = Error.stackTraceLimit;
|
|
282
|
+
Error.stackTraceLimit = 10;
|
|
283
|
+
var m = Error("react-stack-top-frame");
|
|
284
|
+
Error.stackTraceLimit = _;
|
|
285
|
+
} else m = M;
|
|
286
|
+
return O(
|
|
287
|
+
e,
|
|
288
|
+
n,
|
|
289
|
+
i,
|
|
290
|
+
!0,
|
|
291
|
+
m,
|
|
292
|
+
s ? P(u(e)) : z
|
|
293
|
+
);
|
|
294
|
+
};
|
|
295
|
+
})()), w;
|
|
296
|
+
}
|
|
297
|
+
var U;
|
|
298
|
+
function he() {
|
|
299
|
+
return U || (U = 1, process.env.NODE_ENV === "production" ? R.exports = xe() : R.exports = ye()), R.exports;
|
|
300
|
+
}
|
|
301
|
+
var r = he();
|
|
302
|
+
const y = {
|
|
303
|
+
appPage: (t, a) => p.get("/meta-app/list", { params: { pageNum: t, pageSize: a } }),
|
|
304
|
+
appGet: (t) => p.get("/meta-app/get", { params: { id: t } }),
|
|
305
|
+
tenantPage: (t, a) => p.get("/meta-tenant/list", { params: { pageNum: t, pageSize: a } }),
|
|
306
|
+
dictTypePage: (t, a, c) => p.get("/dict/type/list", { params: { pageNum: t, pageSize: a, dictName: c } }),
|
|
307
|
+
dictItemsByCode: (t) => p.get("/dict/items/get", { params: { dictCode: t } }),
|
|
308
|
+
dictItemsByTypeId: (t) => p.get("/dict/item/list", { params: { dictId: t } }),
|
|
309
|
+
interfacePage: (t, a) => p.get("/interface/list", { params: { pageNum: t, pageSize: a } }),
|
|
310
|
+
interfaceByApp: (t) => p.get("/interface/app/list", { params: { appId: t } }),
|
|
311
|
+
privateConfigPage: (t, a) => p.get("/private-config/list", { params: { pageNum: t, pageSize: a } }),
|
|
312
|
+
bizModels: () => p.get("/meta/models")
|
|
313
|
+
}, ke = (t) => t === 1 ? /* @__PURE__ */ r.jsx(l, { color: "success", children: "启用" }) : /* @__PURE__ */ r.jsx(l, { color: "default", children: "停用" });
|
|
314
|
+
function Ee() {
|
|
315
|
+
return /* @__PURE__ */ r.jsx(
|
|
316
|
+
k,
|
|
317
|
+
{
|
|
318
|
+
title: "应用元数据",
|
|
319
|
+
description: "z-meta 登记在册的应用(数据源 GET /api/meta-app/list)",
|
|
320
|
+
load: (t, a) => y.appPage(t, a),
|
|
321
|
+
columns: [
|
|
322
|
+
{ title: "应用编码", dataIndex: "app_code", key: "app_code", width: 180 },
|
|
323
|
+
{ title: "应用名称", dataIndex: "app_name", key: "app_name" },
|
|
324
|
+
{ title: "类型", dataIndex: "app_type", key: "app_type", width: 100, render: (t) => /* @__PURE__ */ r.jsx(l, { children: t }) },
|
|
325
|
+
{
|
|
326
|
+
title: "入口地址",
|
|
327
|
+
dataIndex: "base_url",
|
|
328
|
+
key: "base_url",
|
|
329
|
+
ellipsis: !0,
|
|
330
|
+
render: (t) => t || "-"
|
|
331
|
+
},
|
|
332
|
+
{ title: "负责人", dataIndex: "owner", key: "owner", width: 110 },
|
|
333
|
+
{ title: "状态", dataIndex: "status", key: "status", width: 90, render: ke },
|
|
334
|
+
{ title: "描述", dataIndex: "description", key: "description", ellipsis: !0 },
|
|
335
|
+
{ title: "创建时间", dataIndex: "gmt_create", key: "gmt_create", width: 170 }
|
|
336
|
+
]
|
|
337
|
+
}
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
function ge() {
|
|
341
|
+
return /* @__PURE__ */ r.jsx(
|
|
342
|
+
k,
|
|
343
|
+
{
|
|
344
|
+
title: "租户管理",
|
|
345
|
+
description: "z-meta 租户台账(数据源 GET /api/meta-tenant/list)",
|
|
346
|
+
load: (t, a) => y.tenantPage(t, a),
|
|
347
|
+
columns: [
|
|
348
|
+
{ title: "租户编码", dataIndex: "tenant_code", key: "tenant_code", width: 160 },
|
|
349
|
+
{ title: "租户名称", dataIndex: "tenant_name", key: "tenant_name" },
|
|
350
|
+
{
|
|
351
|
+
title: "类型",
|
|
352
|
+
dataIndex: "tenant_type",
|
|
353
|
+
key: "tenant_type",
|
|
354
|
+
width: 110,
|
|
355
|
+
render: (t) => t ? /* @__PURE__ */ r.jsx(l, { children: t }) : "-"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
title: "状态",
|
|
359
|
+
dataIndex: "status",
|
|
360
|
+
key: "status",
|
|
361
|
+
width: 90,
|
|
362
|
+
render: (t) => t === 1 ? /* @__PURE__ */ r.jsx(l, { color: "success", children: "正常" }) : /* @__PURE__ */ r.jsx(l, { children: "停用" })
|
|
363
|
+
},
|
|
364
|
+
{ title: "到期时间", dataIndex: "expire_time", key: "expire_time", width: 170, render: (t) => t || "长期" },
|
|
365
|
+
{ title: "描述", dataIndex: "description", key: "description", ellipsis: !0 },
|
|
366
|
+
{ title: "创建时间", dataIndex: "gmt_create", key: "gmt_create", width: 170 }
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
function Te({ dictCode: t }) {
|
|
372
|
+
const [a, c] = le({ loading: !0, rows: [], error: null });
|
|
373
|
+
return de(() => {
|
|
374
|
+
let u = !1;
|
|
375
|
+
return c({ loading: !0, rows: [], error: null }), y.dictItemsByCode(t).then((d) => {
|
|
376
|
+
u || c({ loading: !1, rows: d || [], error: null });
|
|
377
|
+
}).catch((d) => {
|
|
378
|
+
u || c({ loading: !1, rows: [], error: d });
|
|
379
|
+
}), () => {
|
|
380
|
+
u = !0;
|
|
381
|
+
};
|
|
382
|
+
}, [t]), a.error ? /* @__PURE__ */ r.jsx(
|
|
383
|
+
pe,
|
|
384
|
+
{
|
|
385
|
+
type: "error",
|
|
386
|
+
showIcon: !0,
|
|
387
|
+
message: `字典项加载失败:${a.error.message || a.error}`
|
|
388
|
+
}
|
|
389
|
+
) : /* @__PURE__ */ r.jsx(
|
|
390
|
+
W,
|
|
391
|
+
{
|
|
392
|
+
size: "small",
|
|
393
|
+
rowKey: "id",
|
|
394
|
+
loading: a.loading,
|
|
395
|
+
dataSource: a.rows,
|
|
396
|
+
pagination: !1,
|
|
397
|
+
columns: [
|
|
398
|
+
{ title: "项编码", dataIndex: "item_code", key: "item_code", width: 180 },
|
|
399
|
+
{ title: "项名称", dataIndex: "item_name", key: "item_name" },
|
|
400
|
+
{ title: "值", dataIndex: "item_value", key: "item_value", width: 120 },
|
|
401
|
+
{ title: "排序", dataIndex: "sort_order", key: "sort_order", width: 80 },
|
|
402
|
+
{
|
|
403
|
+
title: "状态",
|
|
404
|
+
dataIndex: "status",
|
|
405
|
+
key: "status",
|
|
406
|
+
width: 90,
|
|
407
|
+
render: (u) => u === 1 ? /* @__PURE__ */ r.jsx(l, { color: "success", children: "启用" }) : /* @__PURE__ */ r.jsx(l, { children: "停用" })
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
locale: { emptyText: `字典 ${t} 下暂无字典项` }
|
|
411
|
+
}
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
function we() {
|
|
415
|
+
return /* @__PURE__ */ r.jsx(
|
|
416
|
+
k,
|
|
417
|
+
{
|
|
418
|
+
title: "数据字典",
|
|
419
|
+
description: "字典类型台账;展开行按 dict_code 实时拉取字典项(GET /api/dict/type/list + /api/dict/items/get)",
|
|
420
|
+
load: (t, a) => y.dictTypePage(t, a),
|
|
421
|
+
columns: [
|
|
422
|
+
{ title: "字典编码", dataIndex: "dict_code", key: "dict_code", width: 200 },
|
|
423
|
+
{ title: "字典名称", dataIndex: "dict_name", key: "dict_name" },
|
|
424
|
+
{
|
|
425
|
+
title: "值类型",
|
|
426
|
+
dataIndex: "dict_type",
|
|
427
|
+
key: "dict_type",
|
|
428
|
+
width: 110,
|
|
429
|
+
render: (t) => t ? /* @__PURE__ */ r.jsx(l, { children: t }) : "-"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
title: "状态",
|
|
433
|
+
dataIndex: "status",
|
|
434
|
+
key: "status",
|
|
435
|
+
width: 90,
|
|
436
|
+
render: (t) => t === 1 ? /* @__PURE__ */ r.jsx(l, { color: "success", children: "启用" }) : /* @__PURE__ */ r.jsx(l, { children: "停用" })
|
|
437
|
+
},
|
|
438
|
+
{ title: "描述", dataIndex: "description", key: "description", ellipsis: !0 },
|
|
439
|
+
{ title: "更新时间", dataIndex: "gmt_modified", key: "gmt_modified", width: 170 }
|
|
440
|
+
],
|
|
441
|
+
expandable: {
|
|
442
|
+
expandedRowRender: (t) => /* @__PURE__ */ r.jsx(Te, { dictCode: t.dict_code }),
|
|
443
|
+
rowExpandable: (t) => !!t.dict_code
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
function je() {
|
|
449
|
+
return /* @__PURE__ */ r.jsx(
|
|
450
|
+
k,
|
|
451
|
+
{
|
|
452
|
+
title: "接口台账",
|
|
453
|
+
description: "z-meta 登记的业务接口清单(数据源 GET /api/interface/list)",
|
|
454
|
+
load: (t, a) => y.interfacePage(t, a),
|
|
455
|
+
columns: [
|
|
456
|
+
{ title: "接口名称", dataIndex: "api_name", key: "api_name" },
|
|
457
|
+
{ title: "方法", dataIndex: "api_method", key: "api_method", width: 90, render: (t) => /* @__PURE__ */ r.jsx(l, { children: t }) },
|
|
458
|
+
{ title: "路径", dataIndex: "api_path", key: "api_path", ellipsis: !0 },
|
|
459
|
+
{ title: "版本", dataIndex: "api_version", key: "api_version", width: 90 },
|
|
460
|
+
{ title: "鉴权", dataIndex: "auth_type", key: "auth_type", width: 120 },
|
|
461
|
+
{
|
|
462
|
+
title: "状态",
|
|
463
|
+
key: "status",
|
|
464
|
+
width: 120,
|
|
465
|
+
render: (t, a) => a.deprecated === 1 ? /* @__PURE__ */ r.jsx(l, { color: "warning", children: "已废弃" }) : a.status === 1 ? /* @__PURE__ */ r.jsx(l, { color: "success", children: "启用" }) : /* @__PURE__ */ r.jsx(l, { children: "停用" })
|
|
466
|
+
},
|
|
467
|
+
{ title: "描述", dataIndex: "description", key: "description", ellipsis: !0 }
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
function Re() {
|
|
473
|
+
return /* @__PURE__ */ r.jsx(
|
|
474
|
+
k,
|
|
475
|
+
{
|
|
476
|
+
title: "私有配置",
|
|
477
|
+
description: "应用私有键值配置(数据源 GET /api/private-config/list)",
|
|
478
|
+
load: (t, a) => y.privateConfigPage(t, a),
|
|
479
|
+
columns: [
|
|
480
|
+
{ title: "配置键", dataIndex: "config_key", key: "config_key", width: 240 },
|
|
481
|
+
{
|
|
482
|
+
title: "配置值",
|
|
483
|
+
dataIndex: "config_value",
|
|
484
|
+
key: "config_value",
|
|
485
|
+
ellipsis: !0,
|
|
486
|
+
render: (t) => t ? /* @__PURE__ */ r.jsx(fe, { title: t, children: /* @__PURE__ */ r.jsx(me.Text, { code: !0, copyable: { text: t }, children: t }) }) : "-"
|
|
487
|
+
},
|
|
488
|
+
{ title: "描述", dataIndex: "description", key: "description", ellipsis: !0 },
|
|
489
|
+
{ title: "更新时间", dataIndex: "gmt_modified", key: "gmt_modified", width: 170 }
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
function be() {
|
|
495
|
+
return /* @__PURE__ */ r.jsx(
|
|
496
|
+
k,
|
|
497
|
+
{
|
|
498
|
+
title: "业务模型",
|
|
499
|
+
description: "z-meta 的结构化业务模型清单(数据源 GET /api/meta/models,字段随模型一次性返回)",
|
|
500
|
+
load: () => y.bizModels(),
|
|
501
|
+
rowKey: "code",
|
|
502
|
+
columns: [
|
|
503
|
+
{ title: "模型编码", dataIndex: "code", key: "code", width: 200 },
|
|
504
|
+
{ title: "模型名称", dataIndex: "name", key: "name", width: 180 },
|
|
505
|
+
{
|
|
506
|
+
title: "所属模块",
|
|
507
|
+
dataIndex: "module",
|
|
508
|
+
key: "module",
|
|
509
|
+
width: 160,
|
|
510
|
+
render: (t) => /* @__PURE__ */ r.jsx(l, { color: "blue", children: t })
|
|
511
|
+
},
|
|
512
|
+
{ title: "实体类", dataIndex: "class_name", key: "class_name", ellipsis: !0 },
|
|
513
|
+
{
|
|
514
|
+
title: "字段数",
|
|
515
|
+
key: "fieldCount",
|
|
516
|
+
width: 90,
|
|
517
|
+
render: (t, a) => (a.fields || []).length
|
|
518
|
+
},
|
|
519
|
+
{ title: "描述", dataIndex: "description", key: "description", ellipsis: !0 }
|
|
520
|
+
],
|
|
521
|
+
expandable: {
|
|
522
|
+
rowExpandable: (t) => (t.fields || []).length > 0,
|
|
523
|
+
expandedRowRender: (t) => /* @__PURE__ */ r.jsx(
|
|
524
|
+
W,
|
|
525
|
+
{
|
|
526
|
+
size: "small",
|
|
527
|
+
rowKey: (a) => `${t.code}:${a.field_name}`,
|
|
528
|
+
dataSource: t.fields || [],
|
|
529
|
+
pagination: !1,
|
|
530
|
+
columns: [
|
|
531
|
+
{ title: "字段名", dataIndex: "name", key: "name", width: 160 },
|
|
532
|
+
{ title: "属性", dataIndex: "field_name", key: "field_name", width: 200 },
|
|
533
|
+
{ title: "类型", dataIndex: "type", key: "type", width: 120, render: (a) => /* @__PURE__ */ r.jsx(l, { children: a }) },
|
|
534
|
+
{ title: "关联模型", dataIndex: "ref_model", key: "ref_model", render: (a) => a || "-" },
|
|
535
|
+
{ title: "字典", dataIndex: "dict_code", key: "dict_code", render: (a) => a || "-" }
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
)
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
function Ne() {
|
|
544
|
+
return /* @__PURE__ */ r.jsxs(ce, { children: [
|
|
545
|
+
/* @__PURE__ */ r.jsx(x, { index: !0, element: /* @__PURE__ */ r.jsx(ue, { to: "app", replace: !0 }) }),
|
|
546
|
+
/* @__PURE__ */ r.jsx(x, { path: "app", element: /* @__PURE__ */ r.jsx(Ee, {}) }),
|
|
547
|
+
/* @__PURE__ */ r.jsx(x, { path: "tenant", element: /* @__PURE__ */ r.jsx(ge, {}) }),
|
|
548
|
+
/* @__PURE__ */ r.jsx(x, { path: "dict", element: /* @__PURE__ */ r.jsx(we, {}) }),
|
|
549
|
+
/* @__PURE__ */ r.jsx(x, { path: "interface", element: /* @__PURE__ */ r.jsx(je, {}) }),
|
|
550
|
+
/* @__PURE__ */ r.jsx(x, { path: "private-config", element: /* @__PURE__ */ r.jsx(Re, {}) }),
|
|
551
|
+
/* @__PURE__ */ r.jsx(x, { path: "models", element: /* @__PURE__ */ r.jsx(be, {}) })
|
|
552
|
+
] });
|
|
553
|
+
}
|
|
554
|
+
export {
|
|
555
|
+
Ne as M,
|
|
556
|
+
Se as c,
|
|
557
|
+
r as j,
|
|
558
|
+
p as r
|
|
559
|
+
};
|