@ximatai/muyun-web-app 0.26.13 → 0.26.14
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/{BusinessActivityLogView-UC4rH4Fn.js → BusinessActivityLogView-BUg5WTm-.js} +1 -1
- package/dist/BusinessLogListDrawer-BOTE_7aT.js +825 -0
- package/dist/{LoginAuditLogView-Cjrp8MKX.js → LoginAuditLogView-DBNtvmIy.js} +1 -1
- package/dist/{ModuleActionManagementView-Dkb35QXc.js → ModuleActionManagementView-Bq1VO51Y.js} +165 -165
- package/dist/{ModuleGovernanceView-Dx43QvGf.js → ModuleGovernanceView-B8u4_erd.js} +3570 -2877
- package/dist/{RequestErrorLogView-WnGvMWiF.js → RequestErrorLogView-BrtH3ptj.js} +1 -1
- package/dist/{RoleDetailWorkspaceView-DPDb_QOn.js → RoleDetailWorkspaceView-6LW3tLA1.js} +276 -276
- package/dist/{RuntimeLogView-BRl4ZDkU.js → RuntimeLogView-s3X5CdHB.js} +47 -80
- package/dist/index.css +1 -1
- package/dist/index.js +400 -400
- package/dist/{moduleGovernanceWorkspaceView-4V_UW-Bt.js → moduleGovernanceWorkspaceView-BRgJbUjJ.js} +2 -2
- package/dist/{platform-components-1cvOeHmo.js → platform-components-Dt859Hbr.js} +3449 -2676
- package/dist/platform-workbench-DfqFnlm-.js +14701 -0
- package/dist/{http-B0TC0pJB.js → sse-mGbuCAax.js} +41 -11
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +218 -8
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +230 -18
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantSurface.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +110 -5
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +1 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -0
- package/dist/types/platform-components/QueryValueEditor.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +8 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -2
- package/dist/types/platform-components/index.d.ts +4 -1
- package/dist/types/platform-components/querySettlementController.d.ts +5 -0
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +7 -0
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +36 -0
- package/dist/types/platform-components/recordTreeQueryController.d.ts +18 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +2 -0
- package/dist/types/platform-workbench/AssistantMarkdownContent.vue.d.ts +6 -0
- package/dist/types/platform-workbench/AssistantSelectionCard.vue.d.ts +15 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +7 -2
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +12 -0
- package/dist/types/platform-workbench/assistantMarkdown.d.ts +1 -0
- package/dist/types/platform-workbench/index.d.ts +1 -0
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -0
- package/dist/types/views/BusinessLogRetentionControl.vue.d.ts +7 -0
- package/dist/types/views/businessLogClient.d.ts +3 -0
- package/dist/types/views/businessLogRetentionClient.d.ts +25 -0
- package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +122 -0
- package/dist/types/views/metadataModelChangeSetClient.d.ts +36 -0
- package/dist/types/views/metadataNaming.d.ts +4 -0
- package/dist/types/views/runtimeLogSse.d.ts +3 -13
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/web-contracts/assistant.d.ts +59 -0
- package/dist/types/web-contracts/index.d.ts +1 -0
- package/dist/types/web-core/assistantRuntime.d.ts +77 -0
- package/dist/types/web-core/assistantSurface.d.ts +92 -0
- package/dist/types/web-core/assistantTurnClient.d.ts +8 -0
- package/dist/types/web-core/index.d.ts +4 -0
- package/dist/types/web-core/sse.d.ts +9 -0
- package/dist/{workspaceViews-CCg6V0pr.js → workspaceViews-DijY4n32.js} +554 -554
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-BtaXVJKz.js +0 -564
- package/dist/platform-workbench-Cu14Xd9d.js +0 -10299
package/package.json
CHANGED
|
@@ -1,564 +0,0 @@
|
|
|
1
|
-
import { A as e, Pt as t, Rt as n, Ut as r, bn as i, kt as a, m as o, p as s, pn as c, rt as l, un as u, zt as d } from "./platform-components-1cvOeHmo.js";
|
|
2
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, normalizeClass as ee, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
|
|
3
|
-
//#region src/views/businessLogClient.ts
|
|
4
|
-
var D = {
|
|
5
|
-
activity: "/platform.business_activity_log",
|
|
6
|
-
"request-error": "/platform.request_error_log",
|
|
7
|
-
login: "/iam.login_audit_log"
|
|
8
|
-
};
|
|
9
|
-
function te(e, t) {
|
|
10
|
-
let n = D[t];
|
|
11
|
-
return {
|
|
12
|
-
async detail(t) {
|
|
13
|
-
return M(await e.request({ path: `${n}/${encodeURIComponent(t)}` }));
|
|
14
|
-
},
|
|
15
|
-
async operatorCandidates(t) {
|
|
16
|
-
return O(await e.request({
|
|
17
|
-
method: "POST",
|
|
18
|
-
path: `${n}/operator-candidates/query`,
|
|
19
|
-
body: {
|
|
20
|
-
keyword: t.keyword,
|
|
21
|
-
selectedIds: t.selectedIds,
|
|
22
|
-
tenantId: t.tenantId,
|
|
23
|
-
organizationId: t.organizationId,
|
|
24
|
-
departmentId: t.departmentId,
|
|
25
|
-
page: {
|
|
26
|
-
pageNum: t.pageNum ?? 1,
|
|
27
|
-
pageSize: t.pageSize ?? 20
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}));
|
|
31
|
-
},
|
|
32
|
-
...t === "activity" ? {
|
|
33
|
-
actionStatistics: async (t) => P(await e.request({
|
|
34
|
-
method: "POST",
|
|
35
|
-
path: `${n}/statistics/actions`,
|
|
36
|
-
body: t
|
|
37
|
-
})),
|
|
38
|
-
pageAccessStatistics: async (t) => P(await e.request({
|
|
39
|
-
method: "POST",
|
|
40
|
-
path: `${n}/statistics/page-access`,
|
|
41
|
-
body: t
|
|
42
|
-
}))
|
|
43
|
-
} : {},
|
|
44
|
-
...t === "request-error" ? { diagnostic: async (t) => {
|
|
45
|
-
let r = await e.request({ path: `${n}/${encodeURIComponent(t)}/diagnostic` });
|
|
46
|
-
return R(R(r).diagnostic ?? r);
|
|
47
|
-
} } : {}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function O(e) {
|
|
51
|
-
let t = R(e);
|
|
52
|
-
return {
|
|
53
|
-
records: j(t.records),
|
|
54
|
-
selectedRecords: j(t.selectedRecords),
|
|
55
|
-
total: V(t.total),
|
|
56
|
-
navigation: k(t.navigation)
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function k(e) {
|
|
60
|
-
let t = R(e);
|
|
61
|
-
if (Object.keys(t).length) return {
|
|
62
|
-
showTenantNavigation: H(t.showTenantNavigation) === !0,
|
|
63
|
-
tenants: A(t.tenants),
|
|
64
|
-
organizations: A(t.organizations),
|
|
65
|
-
departments: A(t.departments)
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function A(e) {
|
|
69
|
-
return Array.isArray(e) ? e.flatMap((e) => {
|
|
70
|
-
let t = R(e), n = B(t.id);
|
|
71
|
-
return n ? [{
|
|
72
|
-
id: n,
|
|
73
|
-
title: B(t.title) ?? n,
|
|
74
|
-
tenantId: B(t.tenantId),
|
|
75
|
-
organizationId: B(t.organizationId)
|
|
76
|
-
}] : [];
|
|
77
|
-
}) : [];
|
|
78
|
-
}
|
|
79
|
-
function j(e) {
|
|
80
|
-
if (!Array.isArray(e)) return [];
|
|
81
|
-
let t = [];
|
|
82
|
-
for (let n of e) {
|
|
83
|
-
let e = R(n), r = B(e.id);
|
|
84
|
-
if (!r) continue;
|
|
85
|
-
let i = {
|
|
86
|
-
id: r,
|
|
87
|
-
title: B(e.title) ?? r
|
|
88
|
-
};
|
|
89
|
-
[
|
|
90
|
-
"account",
|
|
91
|
-
"employeeName",
|
|
92
|
-
"organizationId",
|
|
93
|
-
"organizationName",
|
|
94
|
-
"departmentId",
|
|
95
|
-
"departmentName"
|
|
96
|
-
].forEach((t) => {
|
|
97
|
-
let n = B(e[t]);
|
|
98
|
-
n && (i[t] = n);
|
|
99
|
-
}), t.push(i);
|
|
100
|
-
}
|
|
101
|
-
return t;
|
|
102
|
-
}
|
|
103
|
-
function M(e) {
|
|
104
|
-
let t = R(e), n = R(t.event ?? t.record ?? e);
|
|
105
|
-
return {
|
|
106
|
-
...n,
|
|
107
|
-
eventId: B(n.eventId ?? n.id) ?? "",
|
|
108
|
-
eventType: B(n.eventType ?? n.type) ?? "",
|
|
109
|
-
occurredAt: B(n.occurredAt),
|
|
110
|
-
capturedAt: B(n.capturedAt),
|
|
111
|
-
traceId: B(n.traceId),
|
|
112
|
-
tenantId: B(n.tenantId),
|
|
113
|
-
operatorId: B(n.operatorId),
|
|
114
|
-
operatorOrganizationId: B(n.operatorOrganizationId),
|
|
115
|
-
operatorIdentity: L(n),
|
|
116
|
-
moduleAlias: B(n.moduleAlias),
|
|
117
|
-
actionCode: B(n.actionCode),
|
|
118
|
-
outcome: B(n.outcome ?? n.result ?? R(n.details).outcome),
|
|
119
|
-
loginAccount: N(n, R(n.details)),
|
|
120
|
-
summary: F(n, R(n.details)),
|
|
121
|
-
details: z(n.details)
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function N(e, t) {
|
|
125
|
-
return B(e.loginAccount) ?? B(t.confirmedAccount) ?? B(t.claimedAccount);
|
|
126
|
-
}
|
|
127
|
-
function P(e) {
|
|
128
|
-
let t = R(e);
|
|
129
|
-
return Array.isArray(t.pages) ? {
|
|
130
|
-
items: t.pages.map((e) => {
|
|
131
|
-
let t = R(e);
|
|
132
|
-
return {
|
|
133
|
-
key: B(t.pageKey) ?? "unknown-page",
|
|
134
|
-
title: B(t.pageKey) ?? "未知页面",
|
|
135
|
-
count: V(t.accessCount)
|
|
136
|
-
};
|
|
137
|
-
}),
|
|
138
|
-
complete: H(t.complete)
|
|
139
|
-
} : {
|
|
140
|
-
items: [
|
|
141
|
-
["executionCount", "执行次数"],
|
|
142
|
-
["successCount", "成功次数"],
|
|
143
|
-
["failureCount", "失败次数"],
|
|
144
|
-
["rejectedCount", "拒绝次数"],
|
|
145
|
-
["knownDurationCount", "含耗时记录数"],
|
|
146
|
-
["totalDurationMillis", "累计耗时(毫秒)"],
|
|
147
|
-
["knownAffectedRecordCount", "含影响数记录数"],
|
|
148
|
-
["totalAffectedRecordCount", "累计影响记录数"]
|
|
149
|
-
].map(([e, n]) => ({
|
|
150
|
-
key: e,
|
|
151
|
-
title: n,
|
|
152
|
-
count: V(t[e])
|
|
153
|
-
})),
|
|
154
|
-
complete: H(t.complete)
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
function F(e, t) {
|
|
158
|
-
return B(e.summary ?? e.message ?? e.description) ?? I(t.message) ?? I(t.responseSummary) ?? B(t.reasonCode) ?? B(t.failureStage) ?? B(t.pageKey) ?? B(t.errorCode) ?? B(t.authenticationMethod);
|
|
159
|
-
}
|
|
160
|
-
function I(e) {
|
|
161
|
-
return B(e) ?? B(R(e).value);
|
|
162
|
-
}
|
|
163
|
-
function L(e) {
|
|
164
|
-
let t = R(e.operatorIdentity), n = B(t.employeeName), r = B(t.username), i = B(t.organizationId), a = B(t.organizationName), o = B(t.departmentId), s = B(t.departmentName);
|
|
165
|
-
return n || r || i || a || o || s ? {
|
|
166
|
-
employeeName: n,
|
|
167
|
-
username: r,
|
|
168
|
-
organizationId: i,
|
|
169
|
-
organizationName: a,
|
|
170
|
-
departmentId: o,
|
|
171
|
-
departmentName: s
|
|
172
|
-
} : void 0;
|
|
173
|
-
}
|
|
174
|
-
function R(e) {
|
|
175
|
-
return typeof e == "object" && e && !Array.isArray(e) ? e : {};
|
|
176
|
-
}
|
|
177
|
-
function z(e) {
|
|
178
|
-
let t = R(e);
|
|
179
|
-
return Object.keys(t).length > 0 ? t : void 0;
|
|
180
|
-
}
|
|
181
|
-
function B(e) {
|
|
182
|
-
return typeof e == "string" && e.length > 0 ? e : void 0;
|
|
183
|
-
}
|
|
184
|
-
function V(e) {
|
|
185
|
-
return typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
186
|
-
}
|
|
187
|
-
function H(e) {
|
|
188
|
-
return typeof e == "boolean" ? e : void 0;
|
|
189
|
-
}
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/views/BusinessLogListDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
192
|
-
var U = {
|
|
193
|
-
key: 2,
|
|
194
|
-
class: "business-log-list__detail"
|
|
195
|
-
}, ne = {
|
|
196
|
-
key: 4,
|
|
197
|
-
class: "business-log-list__diagnostic"
|
|
198
|
-
}, re = {
|
|
199
|
-
key: 1,
|
|
200
|
-
class: "business-log-list__detail"
|
|
201
|
-
}, ie = {
|
|
202
|
-
key: 0,
|
|
203
|
-
class: "business-log-list__hint"
|
|
204
|
-
}, ae = {
|
|
205
|
-
key: 1,
|
|
206
|
-
class: "business-log-list__detail"
|
|
207
|
-
}, W = /*#__PURE__*/ c(/* @__PURE__ */ b({
|
|
208
|
-
name: "BusinessLogListDrawer",
|
|
209
|
-
__name: "BusinessLogListDrawer",
|
|
210
|
-
props: {
|
|
211
|
-
surface: {},
|
|
212
|
-
moduleAlias: {},
|
|
213
|
-
title: {}
|
|
214
|
-
},
|
|
215
|
-
setup(c) {
|
|
216
|
-
let b = c, D = i({ moduleAlias: b.moduleAlias }), O = te(D.http, b.surface), k = {
|
|
217
|
-
title: "选择操作用户",
|
|
218
|
-
placeholder: "按账号或用户 ID 搜索",
|
|
219
|
-
searchPlaceholder: "按账号或用户 ID 搜索",
|
|
220
|
-
mode: "dialog",
|
|
221
|
-
columns: o,
|
|
222
|
-
provider: s({
|
|
223
|
-
sourceIdentity: {
|
|
224
|
-
targetModuleAlias: "iam.user",
|
|
225
|
-
source: {
|
|
226
|
-
kind: "businessPurpose",
|
|
227
|
-
id: `${b.moduleAlias}:operators`
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
searchPage: async ({ keyword: e, pageNum: t, pageSize: n, scope: r }) => {
|
|
231
|
-
let i = await O.operatorCandidates({
|
|
232
|
-
keyword: e,
|
|
233
|
-
pageNum: t,
|
|
234
|
-
pageSize: n,
|
|
235
|
-
...r
|
|
236
|
-
});
|
|
237
|
-
return {
|
|
238
|
-
records: i.records,
|
|
239
|
-
total: i.total,
|
|
240
|
-
navigation: i.navigation
|
|
241
|
-
};
|
|
242
|
-
},
|
|
243
|
-
resolveUsers: async (e) => (await O.operatorCandidates({ selectedIds: e })).selectedRecords
|
|
244
|
-
})
|
|
245
|
-
}, A = S(), j = S(!1), M = S(), N = S(), P = S(!1), F = S(), I = S(!1), L = S(), R = S(), z = S(!1), B = S(), V = S(), H = p(() => xe[b.surface]), W = p(() => b.surface === "activity"), oe = p(() => b.surface === "request-error"), se = p(() => D.can("viewInternalDiagnostic") === !0), G = p(() => H.value.columns), ce = p(() => A.value ? ve(A.value) : []), le = p(() => X(N.value)), K = p(() => [...J("业务动作", L.value), ...J("页面访问", R.value)]), ue = p(() => L.value?.complete === !1 || R.value?.complete === !1);
|
|
246
|
-
async function q(e) {
|
|
247
|
-
let t = e, n = t.eventId;
|
|
248
|
-
if (n) {
|
|
249
|
-
A.value = t, M.value = void 0, N.value = void 0, F.value = void 0, j.value = !0;
|
|
250
|
-
try {
|
|
251
|
-
A.value = await O.detail(n);
|
|
252
|
-
} catch (e) {
|
|
253
|
-
M.value = $(e), a(e, {
|
|
254
|
-
source: "business-log-detail",
|
|
255
|
-
phase: "load"
|
|
256
|
-
});
|
|
257
|
-
} finally {
|
|
258
|
-
j.value = !1;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
async function de() {
|
|
263
|
-
if (W.value && !z.value) {
|
|
264
|
-
I.value = !0, z.value = !0, B.value = void 0;
|
|
265
|
-
try {
|
|
266
|
-
let e = V.value ?? me(), [t, n] = await Promise.all([O.actionStatistics?.(e), O.pageAccessStatistics?.(e)]);
|
|
267
|
-
L.value = t, R.value = n;
|
|
268
|
-
} catch (e) {
|
|
269
|
-
B.value = $(e), a(e, {
|
|
270
|
-
source: "business-log-statistics",
|
|
271
|
-
phase: "load"
|
|
272
|
-
});
|
|
273
|
-
} finally {
|
|
274
|
-
z.value = !1;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
async function fe() {
|
|
279
|
-
let e = A.value?.eventId;
|
|
280
|
-
if (O.diagnostic && e && !P.value) {
|
|
281
|
-
P.value = !0, F.value = void 0;
|
|
282
|
-
try {
|
|
283
|
-
N.value = await O.diagnostic(e);
|
|
284
|
-
} catch (e) {
|
|
285
|
-
F.value = $(e), a(e, {
|
|
286
|
-
source: "business-log-diagnostic",
|
|
287
|
-
phase: "load"
|
|
288
|
-
});
|
|
289
|
-
} finally {
|
|
290
|
-
P.value = !1;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
function pe(e) {
|
|
295
|
-
V.value = e, L.value = void 0, R.value = void 0;
|
|
296
|
-
}
|
|
297
|
-
function me() {
|
|
298
|
-
return {
|
|
299
|
-
page: {
|
|
300
|
-
pageNum: 1,
|
|
301
|
-
pageSize: 50
|
|
302
|
-
},
|
|
303
|
-
conditions: []
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
function he(e) {
|
|
307
|
-
return e.name === "operatorId" ? k : void 0;
|
|
308
|
-
}
|
|
309
|
-
function ge(e, t) {
|
|
310
|
-
switch (e) {
|
|
311
|
-
case "outcome": return _e(t.outcome);
|
|
312
|
-
case "employeeName": return t.operatorIdentity?.employeeName ?? "—";
|
|
313
|
-
case "username": return t.operatorIdentity?.username ?? t.operatorId ?? "—";
|
|
314
|
-
case "loginAccount": return Y(t) ?? "—";
|
|
315
|
-
case "organizationName": return t.operatorIdentity?.organizationName ?? "—";
|
|
316
|
-
case "departmentName": return t.operatorIdentity?.departmentName ?? "—";
|
|
317
|
-
case "errorCode": return Z(t.details?.errorCode) ?? "—";
|
|
318
|
-
case "httpStatus": return Z(t.details?.httpStatus) ?? "—";
|
|
319
|
-
default: return Q(t[e]);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
function _e(e) {
|
|
323
|
-
return {
|
|
324
|
-
SUCCESS: "成功",
|
|
325
|
-
FAILURE: "失败",
|
|
326
|
-
REJECTED: "拒绝"
|
|
327
|
-
}[e ?? ""] ?? e ?? "—";
|
|
328
|
-
}
|
|
329
|
-
function ve(e) {
|
|
330
|
-
return [
|
|
331
|
-
["发生时间", e.occurredAt],
|
|
332
|
-
["事件类型", e.eventType],
|
|
333
|
-
["结果", e.outcome],
|
|
334
|
-
["职员姓名", e.operatorIdentity?.employeeName],
|
|
335
|
-
["操作用户", e.operatorIdentity?.username ?? e.operatorId],
|
|
336
|
-
["登录账号", Y(e)],
|
|
337
|
-
["用户 ID", e.operatorId],
|
|
338
|
-
["机构", e.operatorIdentity?.organizationName],
|
|
339
|
-
["机构 ID", e.operatorIdentity?.organizationId ?? e.operatorOrganizationId],
|
|
340
|
-
["部门", e.operatorIdentity?.departmentName],
|
|
341
|
-
["部门 ID", e.operatorIdentity?.departmentId],
|
|
342
|
-
["业务模块", e.moduleAlias],
|
|
343
|
-
["动作", e.actionCode],
|
|
344
|
-
["追踪 ID", e.traceId],
|
|
345
|
-
...X(e.details).map((e) => [e.key, e.value])
|
|
346
|
-
].filter(([, e]) => e != null && e !== "").map(([e, t]) => ({
|
|
347
|
-
key: e,
|
|
348
|
-
value: Q(t)
|
|
349
|
-
}));
|
|
350
|
-
}
|
|
351
|
-
function J(e, t) {
|
|
352
|
-
return (t?.items ?? []).map((t) => ({
|
|
353
|
-
key: `${e}:${t.key}`,
|
|
354
|
-
kind: e,
|
|
355
|
-
title: t.title,
|
|
356
|
-
count: t.count
|
|
357
|
-
}));
|
|
358
|
-
}
|
|
359
|
-
function Y(e) {
|
|
360
|
-
if (e.eventType === "LOGIN") return e.loginAccount ?? Z(e.details?.confirmedAccount) ?? Z(e.details?.claimedAccount);
|
|
361
|
-
}
|
|
362
|
-
function ye() {
|
|
363
|
-
return [{
|
|
364
|
-
key: "detail",
|
|
365
|
-
title: "详情",
|
|
366
|
-
primary: !0,
|
|
367
|
-
iconName: "eye"
|
|
368
|
-
}];
|
|
369
|
-
}
|
|
370
|
-
function be(e, t) {
|
|
371
|
-
e.key === "detail" && q(t);
|
|
372
|
-
}
|
|
373
|
-
function X(e) {
|
|
374
|
-
return Object.entries(e ?? {}).map(([e, t]) => ({
|
|
375
|
-
key: e,
|
|
376
|
-
value: Q(t)
|
|
377
|
-
}));
|
|
378
|
-
}
|
|
379
|
-
function Z(e) {
|
|
380
|
-
return typeof e == "string" || typeof e == "number" ? String(e) : void 0;
|
|
381
|
-
}
|
|
382
|
-
function Q(e) {
|
|
383
|
-
return e == null || e === "" ? "—" : typeof e == "string" ? e : JSON.stringify(e, null, 2);
|
|
384
|
-
}
|
|
385
|
-
function $(e) {
|
|
386
|
-
return e instanceof Error ? e.message : "请求未完成,请稍后重试。";
|
|
387
|
-
}
|
|
388
|
-
let xe = {
|
|
389
|
-
login: { columns: [
|
|
390
|
-
{
|
|
391
|
-
key: "outcome",
|
|
392
|
-
title: "结果",
|
|
393
|
-
width: "96px"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
key: "occurredAt",
|
|
397
|
-
title: "发生时间",
|
|
398
|
-
width: "176px"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
key: "loginAccount",
|
|
402
|
-
title: "登录账号",
|
|
403
|
-
width: "200px"
|
|
404
|
-
}
|
|
405
|
-
] },
|
|
406
|
-
activity: { columns: [
|
|
407
|
-
{
|
|
408
|
-
key: "occurredAt",
|
|
409
|
-
title: "发生时间",
|
|
410
|
-
width: "176px"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
key: "username",
|
|
414
|
-
title: "操作用户",
|
|
415
|
-
width: "160px"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
key: "moduleAlias",
|
|
419
|
-
title: "业务模块",
|
|
420
|
-
width: "190px"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
key: "actionCode",
|
|
424
|
-
title: "动作",
|
|
425
|
-
width: "150px"
|
|
426
|
-
}
|
|
427
|
-
] },
|
|
428
|
-
"request-error": { columns: [
|
|
429
|
-
{
|
|
430
|
-
key: "occurredAt",
|
|
431
|
-
title: "发生时间",
|
|
432
|
-
width: "176px"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
key: "moduleAlias",
|
|
436
|
-
title: "业务模块",
|
|
437
|
-
width: "190px"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
key: "errorCode",
|
|
441
|
-
title: "错误码",
|
|
442
|
-
width: "150px"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
key: "httpStatus",
|
|
446
|
-
title: "HTTP 状态",
|
|
447
|
-
width: "112px"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
key: "summary",
|
|
451
|
-
title: "错误摘要",
|
|
452
|
-
width: "260px"
|
|
453
|
-
}
|
|
454
|
-
] }
|
|
455
|
-
};
|
|
456
|
-
return (i, a) => (x(), g(f, null, [
|
|
457
|
-
y(T(e), {
|
|
458
|
-
class: "business-log-list",
|
|
459
|
-
context: T(D),
|
|
460
|
-
title: c.title,
|
|
461
|
-
columns: G.value,
|
|
462
|
-
"row-key": "eventId",
|
|
463
|
-
"show-recycle-bin": !1,
|
|
464
|
-
"page-size": 50,
|
|
465
|
-
"page-size-options": [
|
|
466
|
-
20,
|
|
467
|
-
50,
|
|
468
|
-
100
|
|
469
|
-
],
|
|
470
|
-
"reference-picker-of": he,
|
|
471
|
-
"empty-description": "暂无符合条件的日志",
|
|
472
|
-
"row-actions-of": ye,
|
|
473
|
-
"row-actions-title": "操作",
|
|
474
|
-
"action-column-width": "88px",
|
|
475
|
-
onRecordActivate: q,
|
|
476
|
-
onRowAction: be,
|
|
477
|
-
onQueried: pe
|
|
478
|
-
}, {
|
|
479
|
-
toolbarActions: E(() => [W.value ? (x(), m(T(u), {
|
|
480
|
-
key: 0,
|
|
481
|
-
loading: z.value,
|
|
482
|
-
onClick: de
|
|
483
|
-
}, {
|
|
484
|
-
default: E(() => [...a[2] ||= [v(" 使用统计 ", -1)]]),
|
|
485
|
-
_: 1
|
|
486
|
-
}, 8, ["loading"])) : h("v-if", !0)]),
|
|
487
|
-
cell: E(({ column: e, record: n }) => [e.key === "occurredAt" ? (x(), m(T(t), {
|
|
488
|
-
key: 0,
|
|
489
|
-
value: n.occurredAt
|
|
490
|
-
}, null, 8, ["value"])) : (x(), g("span", {
|
|
491
|
-
key: 1,
|
|
492
|
-
class: ee({ "business-log-list__summary": e.key === "summary" })
|
|
493
|
-
}, w(ge(e.key, n)), 3))]),
|
|
494
|
-
_: 1
|
|
495
|
-
}, 8, [
|
|
496
|
-
"context",
|
|
497
|
-
"title",
|
|
498
|
-
"columns"
|
|
499
|
-
]),
|
|
500
|
-
y(T(l), {
|
|
501
|
-
open: !!A.value,
|
|
502
|
-
title: `${c.title}详情`,
|
|
503
|
-
"render-mode": "inline",
|
|
504
|
-
subtitle: A.value ? A.value.operatorIdentity?.employeeName ?? A.value.operatorIdentity?.username ?? A.value.operatorId : void 0,
|
|
505
|
-
"close-on-outside": !0,
|
|
506
|
-
onClose: a[0] ||= (e) => A.value = void 0
|
|
507
|
-
}, {
|
|
508
|
-
default: E(() => [j.value ? (x(), m(T(d), {
|
|
509
|
-
key: 0,
|
|
510
|
-
tip: "加载详情"
|
|
511
|
-
})) : M.value ? (x(), m(T(n), {
|
|
512
|
-
key: 1,
|
|
513
|
-
title: "日志详情加载失败",
|
|
514
|
-
message: M.value
|
|
515
|
-
}, null, 8, ["message"])) : A.value ? (x(), g("dl", U, [(x(!0), g(f, null, C(ce.value, (e) => (x(), g(f, { key: e.key }, [_("dt", null, w(e.key), 1), _("dd", null, [_("pre", null, w(e.value), 1)])], 64))), 128))])) : (x(), m(T(r), {
|
|
516
|
-
key: 3,
|
|
517
|
-
description: "未选择日志"
|
|
518
|
-
})), oe.value && A.value && se.value ? (x(), g("section", ne, [
|
|
519
|
-
y(T(u), {
|
|
520
|
-
loading: P.value,
|
|
521
|
-
onClick: fe
|
|
522
|
-
}, {
|
|
523
|
-
default: E(() => [...a[3] ||= [v("查看内部诊断", -1)]]),
|
|
524
|
-
_: 1
|
|
525
|
-
}, 8, ["loading"]),
|
|
526
|
-
a[4] ||= _("small", null, "仅具备平台范围的管理员可查看。", -1),
|
|
527
|
-
F.value ? (x(), m(T(n), {
|
|
528
|
-
key: 0,
|
|
529
|
-
title: "内部诊断不可用",
|
|
530
|
-
message: F.value
|
|
531
|
-
}, null, 8, ["message"])) : N.value ? (x(), g("dl", re, [(x(!0), g(f, null, C(le.value, (e) => (x(), g(f, { key: e.key }, [_("dt", null, w(e.key), 1), _("dd", null, [_("pre", null, w(e.value), 1)])], 64))), 128))])) : h("v-if", !0)
|
|
532
|
-
])) : h("v-if", !0)]),
|
|
533
|
-
_: 1
|
|
534
|
-
}, 8, [
|
|
535
|
-
"open",
|
|
536
|
-
"title",
|
|
537
|
-
"subtitle"
|
|
538
|
-
]),
|
|
539
|
-
y(T(l), {
|
|
540
|
-
open: I.value,
|
|
541
|
-
title: "业务活动使用统计",
|
|
542
|
-
"render-mode": "inline",
|
|
543
|
-
subtitle: "统计口径遵循当前标准查询条件与登录账号的数据范围。",
|
|
544
|
-
"close-on-outside": !0,
|
|
545
|
-
onClose: a[1] ||= (e) => I.value = !1
|
|
546
|
-
}, {
|
|
547
|
-
default: E(() => [z.value ? (x(), m(T(d), {
|
|
548
|
-
key: 0,
|
|
549
|
-
tip: "加载使用统计"
|
|
550
|
-
})) : B.value ? (x(), m(T(n), {
|
|
551
|
-
key: 1,
|
|
552
|
-
title: "使用统计加载失败",
|
|
553
|
-
message: B.value
|
|
554
|
-
}, null, 8, ["message"])) : (x(), g(f, { key: 2 }, [ue.value ? (x(), g("p", ie, "当前统计只覆盖可读取的最近日志。")) : h("v-if", !0), K.value.length > 0 ? (x(), g("dl", ae, [(x(!0), g(f, null, C(K.value, (e) => (x(), g(f, { key: e.key }, [_("dt", null, w(e.kind) + " · " + w(e.title), 1), _("dd", null, w(e.count), 1)], 64))), 128))])) : (x(), m(T(r), {
|
|
555
|
-
key: 2,
|
|
556
|
-
description: "暂无可统计的业务活动"
|
|
557
|
-
}))], 64))]),
|
|
558
|
-
_: 1
|
|
559
|
-
}, 8, ["open"])
|
|
560
|
-
], 64));
|
|
561
|
-
}
|
|
562
|
-
}), [["__scopeId", "data-v-ea9b2820"]]);
|
|
563
|
-
//#endregion
|
|
564
|
-
export { W as t };
|