@hkyhy/marsun-components-core 0.1.115 → 0.1.117
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/agent-hub.js +131 -126
- package/dist/agent-hub.js.map +1 -1
- package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/index.d.ts +1 -1
- package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/index.js.map +1 -1
- package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/style.module.scss.js +9 -9
- package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/index.d.ts +2 -2
- package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/index.js.map +1 -1
- package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/style.module.scss.js +3 -3
- package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/index.d.ts +20 -0
- package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/index.js +155 -0
- package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/style.module.scss.js +19 -0
- package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.d.ts +2 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js +59 -55
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js.map +1 -1
- package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/index.d.ts +19 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/index.js +122 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/style.module.scss.js +8 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/index.d.ts +4 -0
- package/dist/components/Audit/AuditLogList.d.ts +2 -0
- package/dist/components/Audit/AuditLogList.js +179 -170
- package/dist/components/Audit/AuditLogList.js.map +1 -1
- package/dist/components/Audit/labels.d.ts +6 -2
- package/dist/components/Audit/labels.js +19 -16
- package/dist/components/Audit/labels.js.map +1 -1
- package/dist/components/Audit/labels.json.d.ts +47 -1
- package/dist/components/Audit/labels.json.js +124 -32
- package/dist/components/Audit/labels.json.js.map +1 -1
- package/dist/components/Audit/style.module.scss.js +26 -22
- package/dist/components/Audit/style.module.scss.js.map +1 -1
- package/dist/components/Icons/ZoomIn.d.ts +1 -0
- package/dist/components/Icons/ZoomIn.js +7 -0
- package/dist/components/Icons/ZoomIn.js.map +1 -0
- package/dist/components/Icons/ZoomOut.d.ts +1 -0
- package/dist/components/Icons/ZoomOut.js +7 -0
- package/dist/components/Icons/ZoomOut.js.map +1 -0
- package/dist/components/Icons/index.d.ts +2 -0
- package/dist/components/Icons/registry.d.ts +1 -1
- package/dist/components/Icons/registry.js +58 -52
- package/dist/components/Icons/registry.js.map +1 -1
- package/dist/components/Stat/StatCardList.js +16 -16
- package/dist/components/Stat/StatCardList.js.map +1 -1
- package/dist/components/Tools/ActionTracking/ActionTrackingShell.d.ts +27 -0
- package/dist/components/Tools/ActionTracking/ActionTrackingShell.js +43 -0
- package/dist/components/Tools/ActionTracking/ActionTrackingShell.js.map +1 -0
- package/dist/components/Tools/ActionTracking/index.d.ts +2 -0
- package/dist/components/Tools/ActionTracking/style.module.scss.js +7 -0
- package/dist/components/Tools/ActionTracking/style.module.scss.js.map +1 -0
- package/dist/components/Tools/index.d.ts +2 -0
- package/dist/components/Tour/AppTour/index.js +1 -1
- package/dist/components/Tour/AppTour/index.js.map +1 -1
- package/dist/components/Tour/index.d.ts +1 -0
- package/dist/components/Tour/resolveTourTarget.d.ts +7 -0
- package/dist/components/Tour/resolveTourTarget.js +16 -0
- package/dist/components/Tour/resolveTourTarget.js.map +1 -0
- package/dist/index.js +785 -771
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/package.json +1 -1
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { copyText as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useMemo as
|
|
7
|
-
import { AuditDayStatsBar as
|
|
8
|
-
import { AuditWaterfall as
|
|
9
|
-
import { computeDetailKpi as
|
|
10
|
-
import { formatAuditJson as
|
|
11
|
-
import { buildAuditReplayCurl as
|
|
12
|
-
import { displayActionLabel as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
return
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { copyText as z } from "../../utils/copyText.js";
|
|
3
|
+
import { Typography as d, Empty as E, Button as U, message as M, Space as j, Collapse as Y } from "antd";
|
|
4
|
+
import R from "classnames";
|
|
5
|
+
import q from "dayjs";
|
|
6
|
+
import { useMemo as v } from "react";
|
|
7
|
+
import { AuditDayStatsBar as G } from "./AuditDayStatsBar.js";
|
|
8
|
+
import { AuditWaterfall as K } from "./AuditWaterfall.js";
|
|
9
|
+
import { computeDetailKpi as Q, isErrorStep as D } from "./detailKpi.js";
|
|
10
|
+
import { formatAuditJson as V, isTruncatedAuditText as W } from "./formatAuditJson.js";
|
|
11
|
+
import { buildAuditReplayCurl as _, readBrowserReplaySession as $ } from "./formatAuditCurl.js";
|
|
12
|
+
import { displayActionLabel as I, labelOfAction as J, displaySummary as X } from "./labels.js";
|
|
13
|
+
import i from "./style.module.scss.js";
|
|
14
|
+
import S, { SEMANTIC_COLORS as m } from "../Tag/SemanticTag.js";
|
|
15
|
+
import N from "../InfoPage/InfoPage/index.js";
|
|
16
|
+
import Z from "../Stat/StatCardList.js";
|
|
17
|
+
import tt from "../Descriptions/CommonDescriptions.js";
|
|
18
|
+
import et from "../Table/Table.js";
|
|
19
|
+
import H from "../VirtualScrollbar/VirtualScrollbar/index.js";
|
|
20
|
+
function k(t) {
|
|
21
|
+
const r = q(t);
|
|
22
|
+
return r.isValid() ? r.format("YYYY-MM-DD HH:mm:ss") : t;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function F(t) {
|
|
25
25
|
return t === "success" ? "成功" : t === "fail" || t === "error" ? "失败" : t;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return t === "success" ?
|
|
27
|
+
function O(t) {
|
|
28
|
+
return t === "success" ? m.SUCCESS : t === "fail" || t === "error" ? m.DANGER : m.DEFAULT;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function P(t) {
|
|
31
31
|
return t === "TRACE" ? "请求线路" : t === "SYSTEM" ? "系统" : t === "OPERATION" || !t ? "业务操作" : t;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return t >= 500 ?
|
|
33
|
+
function rt(t) {
|
|
34
|
+
return t >= 500 ? m.DANGER : t >= 400 ? m.WARNING : t >= 200 && t < 300 ? m.SUCCESS : m.DEFAULT;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function nt(t) {
|
|
37
37
|
if (!t || typeof t != "object" || Array.isArray(t)) return null;
|
|
38
|
-
const
|
|
39
|
-
if (typeof
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
return Number.isFinite(
|
|
38
|
+
const r = t.httpStatus;
|
|
39
|
+
if (typeof r == "number" && Number.isFinite(r)) return r;
|
|
40
|
+
if (r != null && String(r).trim() !== "") {
|
|
41
|
+
const a = Number(r);
|
|
42
|
+
return Number.isFinite(a) ? a : null;
|
|
43
43
|
}
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
var
|
|
48
|
-
return !!((
|
|
46
|
+
function lt(t) {
|
|
47
|
+
var r;
|
|
48
|
+
return !!((r = t.actionLabel) != null && r.trim()) || !!J(t.action);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const L = ({
|
|
51
51
|
value: t,
|
|
52
|
-
maxHeight:
|
|
52
|
+
maxHeight: r = 360
|
|
53
53
|
}) => {
|
|
54
|
-
const
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */ e(
|
|
54
|
+
const a = V(t), s = W(t) || a.includes("…[truncated]");
|
|
55
|
+
return /* @__PURE__ */ o("div", { className: i.jsonWrap, children: [
|
|
56
|
+
s ? /* @__PURE__ */ e("div", { className: i.truncateHint, children: "内容已截断(采集侧 body 上限),以下为可读展开" }) : null,
|
|
57
|
+
/* @__PURE__ */ e(H, { className: i.jsonScroll, style: { maxHeight: r }, children: /* @__PURE__ */ e("pre", { className: i.jsonBlock, children: a }) })
|
|
58
58
|
] });
|
|
59
59
|
};
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
62
|
-
if (t === "output" && typeof
|
|
63
|
-
const
|
|
64
|
-
delete
|
|
65
|
-
const
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
|
|
68
|
-
/* @__PURE__ */ e("div", { className:
|
|
69
|
-
/* @__PURE__ */ e(
|
|
60
|
+
function B(t, r) {
|
|
61
|
+
if (r == null) return null;
|
|
62
|
+
if (t === "output" && typeof r == "object" && !Array.isArray(r) && r !== null && ("httpStatus" in r || "body" in r)) {
|
|
63
|
+
const a = r, s = { ...a };
|
|
64
|
+
delete s.httpStatus, delete s.body;
|
|
65
|
+
const f = Object.keys(s).length > 0;
|
|
66
|
+
return /* @__PURE__ */ o(b, { children: [
|
|
67
|
+
a.body !== void 0 ? /* @__PURE__ */ o(b, { children: [
|
|
68
|
+
/* @__PURE__ */ e("div", { className: i.blockLabel, children: "响应体" }),
|
|
69
|
+
/* @__PURE__ */ e(L, { value: a.body, maxHeight: 420 })
|
|
70
70
|
] }) : null,
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */ e("div", { className:
|
|
73
|
-
/* @__PURE__ */ e(
|
|
71
|
+
f ? /* @__PURE__ */ o(b, { children: [
|
|
72
|
+
/* @__PURE__ */ e("div", { className: i.blockLabel, children: "其它" }),
|
|
73
|
+
/* @__PURE__ */ e(L, { value: s })
|
|
74
74
|
] }) : null
|
|
75
75
|
] });
|
|
76
76
|
}
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */ e("div", { className:
|
|
79
|
-
/* @__PURE__ */ e(
|
|
77
|
+
return /* @__PURE__ */ o(b, { children: [
|
|
78
|
+
/* @__PURE__ */ e("div", { className: i.blockLabel, children: t }),
|
|
79
|
+
/* @__PURE__ */ e(L, { value: r })
|
|
80
80
|
] });
|
|
81
81
|
}
|
|
82
|
-
const
|
|
83
|
-
var
|
|
84
|
-
const
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
t.stepType ? /* @__PURE__ */ e(
|
|
88
|
-
|
|
82
|
+
const ot = ({ step: t }) => {
|
|
83
|
+
var a;
|
|
84
|
+
const r = nt(t.output);
|
|
85
|
+
return /* @__PURE__ */ o("div", { className: i.stepBody, children: [
|
|
86
|
+
/* @__PURE__ */ o("div", { className: i.stepMeta, children: [
|
|
87
|
+
t.stepType ? /* @__PURE__ */ e(S, { color: m.DEFAULT, children: t.stepType }) : null,
|
|
88
|
+
r != null ? /* @__PURE__ */ o(S, { color: rt(r), children: [
|
|
89
89
|
"HTTP ",
|
|
90
|
-
|
|
90
|
+
r
|
|
91
91
|
] }) : null,
|
|
92
|
-
t.occurredAt ? /* @__PURE__ */ e(
|
|
93
|
-
typeof t.durationMs == "number" ? /* @__PURE__ */
|
|
92
|
+
t.occurredAt ? /* @__PURE__ */ e(d.Text, { type: "secondary", children: k(t.occurredAt) }) : null,
|
|
93
|
+
typeof t.durationMs == "number" ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
|
|
94
94
|
t.durationMs,
|
|
95
95
|
" ms"
|
|
96
96
|
] }) : null
|
|
97
97
|
] }),
|
|
98
|
-
t.sqlText ? /* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */ e("div", { className:
|
|
100
|
-
/* @__PURE__ */ e(
|
|
98
|
+
t.sqlText ? /* @__PURE__ */ o(b, { children: [
|
|
99
|
+
/* @__PURE__ */ e("div", { className: i.blockLabel, children: "SQL" }),
|
|
100
|
+
/* @__PURE__ */ e(H, { className: i.jsonScroll, style: { maxHeight: 200 }, children: /* @__PURE__ */ e("pre", { className: i.jsonBlock, children: t.sqlText }) })
|
|
101
101
|
] }) : null,
|
|
102
|
-
(
|
|
102
|
+
(a = t.tables) != null && a.length ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
|
|
103
103
|
"表:",
|
|
104
104
|
t.tables.join(", ")
|
|
105
105
|
] }) : null,
|
|
106
|
-
t.errorMessage ? /* @__PURE__ */ e(
|
|
107
|
-
t.errorCode ? /* @__PURE__ */
|
|
106
|
+
t.errorMessage ? /* @__PURE__ */ e(d.Text, { type: "danger", children: t.errorMessage }) : null,
|
|
107
|
+
t.errorCode ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
|
|
108
108
|
"错误码:",
|
|
109
109
|
t.errorCode
|
|
110
110
|
] }) : null,
|
|
111
|
-
t.input != null ?
|
|
112
|
-
t.output != null ?
|
|
111
|
+
t.input != null ? B("请求体", t.input) : null,
|
|
112
|
+
t.output != null ? B("output", t.output) : null
|
|
113
113
|
] });
|
|
114
|
-
},
|
|
115
|
-
var
|
|
116
|
-
const
|
|
117
|
-
const
|
|
114
|
+
}, Lt = ({ detail: t, loading: r, emptyDescription: a = "暂无明细", className: s, getAuthToken: f }) => {
|
|
115
|
+
var T, h, g;
|
|
116
|
+
const u = v(() => Q(t), [t]), A = v(() => {
|
|
117
|
+
const l = u.slowestStep != null ? `${u.slowestStep.title} (${u.slowestStep.durationMs}ms)` : "—";
|
|
118
118
|
return [
|
|
119
119
|
{
|
|
120
120
|
title: "总耗时",
|
|
121
|
-
value:
|
|
122
|
-
suffix:
|
|
121
|
+
value: u.durationMs ?? "—",
|
|
122
|
+
suffix: u.durationMs != null ? "ms" : void 0,
|
|
123
123
|
tone: "blue",
|
|
124
124
|
color: "#1677ff"
|
|
125
125
|
},
|
|
126
|
-
{ title: "步数", value:
|
|
127
|
-
{ title: "SQL 步", value:
|
|
128
|
-
{ title: "最慢步", value:
|
|
126
|
+
{ title: "步数", value: u.stepCount, tone: "lilac", color: "#722ed1" },
|
|
127
|
+
{ title: "SQL 步", value: u.sqlCount, tone: "mint", color: "#0d9f8a" },
|
|
128
|
+
{ title: "最慢步", value: l, tone: "peach", color: "#d46b08" }
|
|
129
129
|
];
|
|
130
|
-
}, [
|
|
131
|
-
if (
|
|
132
|
-
return /* @__PURE__ */ e(
|
|
130
|
+
}, [u]);
|
|
131
|
+
if (r)
|
|
132
|
+
return /* @__PURE__ */ e(d.Text, { type: "secondary", children: "加载中…" });
|
|
133
133
|
if (!t)
|
|
134
|
-
return /* @__PURE__ */ e(
|
|
135
|
-
const
|
|
134
|
+
return /* @__PURE__ */ e(E, { description: a });
|
|
135
|
+
const p = t.steps || [], y = I(t.action, t.actionLabel), C = p.map((l, n) => D(l) ? String(n) : null).filter((l) => l != null), x = [
|
|
136
136
|
{
|
|
137
137
|
label: "操作人",
|
|
138
|
-
value: (
|
|
138
|
+
value: (T = t.actorName) != null && T.trim() ? t.actorName : "—"
|
|
139
139
|
},
|
|
140
|
-
{ label: "时间", value:
|
|
140
|
+
{ label: "时间", value: k(t.createdAt) },
|
|
141
141
|
{
|
|
142
142
|
label: "方法",
|
|
143
|
-
value: (
|
|
143
|
+
value: (h = t.httpMethod) != null && h.trim() ? t.httpMethod : "—"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
label: "状态",
|
|
147
|
-
value: /* @__PURE__ */ e(
|
|
147
|
+
value: /* @__PURE__ */ e(S, { color: O(t.status), children: F(t.status) })
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
label: "类别",
|
|
151
|
-
value: t.category ?
|
|
151
|
+
value: t.category ? P(t.category) : "—"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
label: "耗时",
|
|
@@ -156,167 +156,176 @@ const nt = ({ step: t }) => {
|
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
label: "路径",
|
|
159
|
-
value: (
|
|
159
|
+
value: (g = t.path) != null && g.trim() ? /* @__PURE__ */ e(d.Text, { code: !0, copyable: { text: t.path }, children: t.path }) : "—",
|
|
160
160
|
span: 2
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
label: "traceId",
|
|
164
|
-
value: t.traceId ? /* @__PURE__ */ e(
|
|
164
|
+
value: t.traceId ? /* @__PURE__ */ e(d.Text, { copyable: { text: t.traceId }, children: t.traceId }) : "—",
|
|
165
165
|
span: 1
|
|
166
166
|
},
|
|
167
|
-
...
|
|
167
|
+
...lt(t) ? [{ label: "动作码", value: /* @__PURE__ */ e(d.Text, { code: !0, children: t.action }) }] : []
|
|
168
168
|
];
|
|
169
|
-
return /* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
|
|
169
|
+
return /* @__PURE__ */ o(N, { className: R(i.detail, s), children: [
|
|
170
|
+
/* @__PURE__ */ o(
|
|
171
|
+
N.Part,
|
|
172
172
|
{
|
|
173
|
-
title: /* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */ e("span", { children:
|
|
175
|
-
|
|
173
|
+
title: /* @__PURE__ */ o(j, { size: 8, wrap: !0, children: [
|
|
174
|
+
/* @__PURE__ */ e("span", { children: y }),
|
|
175
|
+
y !== t.action ? /* @__PURE__ */ e(d.Text, { type: "secondary", className: i.actionCode, children: t.action }) : null
|
|
176
176
|
] }),
|
|
177
177
|
subtitle: "事件摘要",
|
|
178
178
|
extra: t.path || t.requestCurl ? /* @__PURE__ */ e(
|
|
179
|
-
|
|
179
|
+
U,
|
|
180
180
|
{
|
|
181
181
|
size: "small",
|
|
182
182
|
type: "primary",
|
|
183
183
|
onClick: async () => {
|
|
184
184
|
try {
|
|
185
|
-
const
|
|
186
|
-
await
|
|
187
|
-
} catch (
|
|
188
|
-
|
|
185
|
+
const l = _(t, $(f));
|
|
186
|
+
await z(l) ? M.success("已复制 curl") : M.error("复制失败");
|
|
187
|
+
} catch (l) {
|
|
188
|
+
M.error(l instanceof Error ? l.message : "无法生成 curl");
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
children: "复制 curl"
|
|
192
192
|
}
|
|
193
193
|
) : void 0,
|
|
194
194
|
children: [
|
|
195
|
-
/* @__PURE__ */ e("div", { className:
|
|
196
|
-
/* @__PURE__ */ e(
|
|
195
|
+
/* @__PURE__ */ e("div", { className: i.kpiBlock, children: /* @__PURE__ */ e(Z, { items: A, inline: !0, fontSize: 20, gutter: [12, 8] }) }),
|
|
196
|
+
/* @__PURE__ */ e(tt, { content: x, column: 3, bordered: !0, size: "small" })
|
|
197
197
|
]
|
|
198
198
|
}
|
|
199
199
|
),
|
|
200
|
-
/* @__PURE__ */ e(
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
t.stepsTruncated ? /* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ e(N.Part, { title: "耗时瀑布", subtitle: "逐步 durationMs(无 SQL 原文)", children: /* @__PURE__ */ e(K, { steps: p }) }),
|
|
201
|
+
/* @__PURE__ */ o(N.Part, { title: "执行流程", subtitle: "默认折叠;失败步展开;展开后见 SQL/正文", children: [
|
|
202
|
+
t.stepsTruncated ? /* @__PURE__ */ o("div", { className: i.truncateNote, children: [
|
|
203
203
|
"步骤已截断:展示 ",
|
|
204
|
-
|
|
204
|
+
p.length,
|
|
205
205
|
" / ",
|
|
206
|
-
t.stepsTotal ??
|
|
206
|
+
t.stepsTotal ?? p.length
|
|
207
207
|
] }) : null,
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
p.length === 0 ? /* @__PURE__ */ e(E, { description: "无流程步骤" }) : /* @__PURE__ */ e(
|
|
209
|
+
Y,
|
|
210
210
|
{
|
|
211
|
-
defaultActiveKey:
|
|
212
|
-
items:
|
|
213
|
-
key: String(
|
|
214
|
-
label: /* @__PURE__ */
|
|
215
|
-
/* @__PURE__ */ e("span", { children:
|
|
216
|
-
typeof
|
|
217
|
-
|
|
211
|
+
defaultActiveKey: C,
|
|
212
|
+
items: p.map((l, n) => ({
|
|
213
|
+
key: String(n),
|
|
214
|
+
label: /* @__PURE__ */ o(j, { size: 8, wrap: !0, children: [
|
|
215
|
+
/* @__PURE__ */ e("span", { children: l.title || l.stepType }),
|
|
216
|
+
typeof l.durationMs == "number" ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
|
|
217
|
+
l.durationMs,
|
|
218
218
|
" ms"
|
|
219
219
|
] }) : null,
|
|
220
|
-
|
|
220
|
+
D(l) ? /* @__PURE__ */ e(S, { color: m.DANGER, children: "失败" }) : null
|
|
221
221
|
] }),
|
|
222
|
-
children: /* @__PURE__ */ e(
|
|
222
|
+
children: /* @__PURE__ */ e(ot, { step: l })
|
|
223
223
|
}))
|
|
224
224
|
}
|
|
225
225
|
)
|
|
226
226
|
] })
|
|
227
227
|
] });
|
|
228
|
-
},
|
|
228
|
+
}, vt = ({
|
|
229
229
|
mode: t = "app",
|
|
230
|
-
dataSource:
|
|
231
|
-
loading:
|
|
232
|
-
onRowClick:
|
|
233
|
-
filterSlot:
|
|
234
|
-
dayStats:
|
|
230
|
+
dataSource: r,
|
|
231
|
+
loading: a,
|
|
232
|
+
onRowClick: s,
|
|
233
|
+
filterSlot: f,
|
|
234
|
+
dayStats: u,
|
|
235
235
|
dayStatsLoading: A,
|
|
236
|
-
dayStatsError:
|
|
237
|
-
onExport:
|
|
238
|
-
exportLoading:
|
|
239
|
-
pagination:
|
|
240
|
-
className:
|
|
236
|
+
dayStatsError: p,
|
|
237
|
+
onExport: y,
|
|
238
|
+
exportLoading: C,
|
|
239
|
+
pagination: x,
|
|
240
|
+
className: T,
|
|
241
|
+
systemAppNames: h
|
|
241
242
|
}) => {
|
|
242
|
-
const
|
|
243
|
-
const
|
|
243
|
+
const g = v(() => {
|
|
244
|
+
const l = [
|
|
244
245
|
{
|
|
245
246
|
title: "时间",
|
|
246
247
|
dataIndex: "createdAt",
|
|
247
248
|
width: 180,
|
|
248
|
-
render: (
|
|
249
|
+
render: (n) => k(n)
|
|
249
250
|
},
|
|
250
251
|
{
|
|
251
252
|
title: "类别",
|
|
252
253
|
dataIndex: "category",
|
|
253
254
|
width: 96,
|
|
254
|
-
render: (
|
|
255
|
+
render: (n) => P(n)
|
|
255
256
|
},
|
|
256
257
|
{
|
|
257
258
|
title: "方法",
|
|
258
259
|
dataIndex: "httpMethod",
|
|
259
260
|
width: 72,
|
|
260
|
-
render: (
|
|
261
|
+
render: (n) => n && String(n).trim() ? n : "—"
|
|
261
262
|
},
|
|
262
263
|
{
|
|
263
264
|
title: "操作人",
|
|
264
265
|
dataIndex: "actorName",
|
|
265
266
|
width: 100,
|
|
266
267
|
ellipsis: !0,
|
|
267
|
-
render: (
|
|
268
|
+
render: (n) => n && String(n).trim() ? n : "—"
|
|
268
269
|
},
|
|
269
270
|
{
|
|
270
271
|
title: "动作",
|
|
271
272
|
dataIndex: "action",
|
|
272
273
|
width: 160,
|
|
273
274
|
ellipsis: !0,
|
|
274
|
-
render: (
|
|
275
|
+
render: (n, c) => I(c.action, c.actionLabel)
|
|
275
276
|
},
|
|
276
277
|
{
|
|
277
278
|
title: "摘要",
|
|
278
279
|
dataIndex: "summary",
|
|
279
280
|
ellipsis: !0,
|
|
280
|
-
render: (
|
|
281
|
+
render: (n, c) => X(c.summary, I(c.action, c.actionLabel), {
|
|
282
|
+
httpMethod: c.httpMethod,
|
|
283
|
+
path: c.path
|
|
284
|
+
})
|
|
281
285
|
},
|
|
282
286
|
{
|
|
283
287
|
title: "状态",
|
|
284
288
|
dataIndex: "status",
|
|
285
289
|
width: 90,
|
|
286
|
-
render: (
|
|
290
|
+
render: (n) => /* @__PURE__ */ e(S, { color: O(n), children: F(n) })
|
|
287
291
|
},
|
|
288
292
|
{ title: "耗时ms", dataIndex: "durationMs", width: 80 },
|
|
289
293
|
{ title: "路径", dataIndex: "path", ellipsis: !0 }
|
|
290
294
|
];
|
|
291
|
-
return t === "platform" &&
|
|
295
|
+
return t === "platform" && l.splice(2, 0, {
|
|
292
296
|
title: "系统",
|
|
293
297
|
dataIndex: "systemAppId",
|
|
294
298
|
width: 140,
|
|
295
|
-
ellipsis: !0
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
ellipsis: !0,
|
|
300
|
+
render: (n) => {
|
|
301
|
+
var w;
|
|
302
|
+
const c = n && String(n).trim() ? String(n) : "";
|
|
303
|
+
return c ? ((w = h == null ? void 0 : h[c]) == null ? void 0 : w.trim()) || c : "—";
|
|
304
|
+
}
|
|
305
|
+
}), l;
|
|
306
|
+
}, [t, h]);
|
|
307
|
+
return /* @__PURE__ */ o("div", { className: R(i.wrap, T), children: [
|
|
308
|
+
f ? /* @__PURE__ */ e("div", { className: i.filter, children: f }) : null,
|
|
309
|
+
u !== void 0 || y ? /* @__PURE__ */ e(
|
|
310
|
+
G,
|
|
302
311
|
{
|
|
303
|
-
stats:
|
|
312
|
+
stats: u ?? null,
|
|
304
313
|
loading: A,
|
|
305
|
-
error:
|
|
306
|
-
onExport:
|
|
307
|
-
exportLoading:
|
|
314
|
+
error: p,
|
|
315
|
+
onExport: y,
|
|
316
|
+
exportLoading: C
|
|
308
317
|
}
|
|
309
318
|
) : null,
|
|
310
319
|
/* @__PURE__ */ e(
|
|
311
|
-
|
|
320
|
+
et,
|
|
312
321
|
{
|
|
313
322
|
rowKey: "id",
|
|
314
|
-
loading:
|
|
315
|
-
columns:
|
|
316
|
-
dataSource:
|
|
317
|
-
pagination:
|
|
318
|
-
onRow:
|
|
319
|
-
onClick: () =>
|
|
323
|
+
loading: a,
|
|
324
|
+
columns: g,
|
|
325
|
+
dataSource: r,
|
|
326
|
+
pagination: x === void 0 ? !1 : x,
|
|
327
|
+
onRow: s ? (l) => ({
|
|
328
|
+
onClick: () => s(l),
|
|
320
329
|
style: { cursor: "pointer" }
|
|
321
330
|
}) : void 0
|
|
322
331
|
}
|
|
@@ -324,8 +333,8 @@ const nt = ({ step: t }) => {
|
|
|
324
333
|
] });
|
|
325
334
|
};
|
|
326
335
|
export {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
336
|
+
Lt as AuditEventDetailView,
|
|
337
|
+
vt as AuditLogList,
|
|
338
|
+
ot as AuditStepContent
|
|
330
339
|
};
|
|
331
340
|
//# sourceMappingURL=AuditLogList.js.map
|