@ximatai/muyun-web-app 0.26.27 → 0.26.29

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.
Files changed (71) hide show
  1. package/dist/{BusinessActivityLogView-Bbe-GbNG.js → BusinessActivityLogView-fzxP3P68.js} +2 -2
  2. package/dist/BusinessLogListDrawer-C7wb2R6q.js +868 -0
  3. package/dist/CodeConfigurationView-DXrXp7kg.js +2333 -0
  4. package/dist/{ConfigurationTranslationView-B3Cr9Wes.js → ConfigurationTranslationView-CNWJhB8C.js} +49 -49
  5. package/dist/{LoginAuditLogView-DOwkqtVB.js → LoginAuditLogView-D2q4WT8W.js} +2 -2
  6. package/dist/{ModuleActionManagementView-DNXAhdXk.js → ModuleActionManagementView-Xd8uB3iR.js} +191 -191
  7. package/dist/{ModuleGovernanceView-g5W2R_Zl.js → ModuleGovernanceView-BFCfy5wB.js} +3403 -3421
  8. package/dist/{RequestErrorLogView-9GIz2mkQ.js → RequestErrorLogView-C-dZhHvD.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-BmtEBE0r.js +1435 -0
  10. package/dist/{RuntimeLogView-C5i19Z-u.js → RuntimeLogView-BuFuboQh.js} +51 -51
  11. package/dist/{WorkflowAdministrationView-CnoTudpI.js → WorkflowAdministrationView-Cb6RnlGU.js} +57 -57
  12. package/dist/WorkflowConfigurationView-VLObweIg.js +2227 -0
  13. package/dist/{WorkflowWorkbenchView-DbWqspEB.js → WorkflowWorkbenchView-CbZervUv.js} +248 -248
  14. package/dist/{codeConfiguration-Bno8cWxB.js → codeConfiguration-DbUEhnW7.js} +66 -49
  15. package/dist/configurationEditorNavigation-DZeBbg3z.js +15 -0
  16. package/dist/formulaReferences-CKkkdA_R.js +23 -0
  17. package/dist/index.css +1 -1
  18. package/dist/index.js +727 -727
  19. package/dist/{moduleMenuWorkspace-DW13bHG5.js → moduleMenuWorkspace-COanAuqc.js} +237 -248
  20. package/dist/{platform-components-D3NvMY3T.js → platform-components-5joS6YaR.js} +4677 -4489
  21. package/dist/{platform-workbench-C4OFiuG5.js → platform-workbench-le7pFe4d.js} +5457 -5296
  22. package/dist/types/consumer/index.d.ts +2 -1
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +32 -26
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +60 -29
  25. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +13 -4
  27. package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
  28. package/dist/types/dynamic-page-runtime/modulePageActionControls.d.ts +12 -0
  29. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +18 -5
  30. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +3 -1
  31. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
  32. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +16 -13
  33. package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -1
  34. package/dist/types/platform-components/ActionControlHost.vue.d.ts +16 -0
  35. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +3 -0
  36. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
  37. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +10 -0
  38. package/dist/types/platform-components/actionControl.d.ts +28 -0
  39. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +4 -2
  40. package/dist/types/platform-components/index.d.ts +3 -2
  41. package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
  42. package/dist/types/platform-components/recordActionBarModel.d.ts +5 -0
  43. package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
  44. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +13 -1
  45. package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
  46. package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
  47. package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
  48. package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
  49. package/dist/types/views/businessRuleGovernance.d.ts +1 -2
  50. package/dist/types/views/codeConfiguration.d.ts +29 -1
  51. package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
  52. package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
  53. package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
  54. package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
  55. package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
  56. package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
  57. package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
  58. package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
  59. package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
  60. package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
  61. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  62. package/dist/types/web-core/formulaReferences.d.ts +2 -0
  63. package/dist/types/web-core/workflow.d.ts +11 -1
  64. package/dist/useWorkflowConfigurationContext-B9GigSF8.js +78 -0
  65. package/dist/{workspaceViews-D2Uh4KAq.js → workspaceViews-8-LaaGxD.js} +680 -680
  66. package/package.json +1 -1
  67. package/dist/BusinessLogListDrawer-BmF-14We.js +0 -868
  68. package/dist/CodeConfigurationView-DdPfBjoC.js +0 -1667
  69. package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +0 -1435
  70. package/dist/WorkflowConfigurationView-Cku-F1Fm.js +0 -980
  71. package/dist/useWorkflowConfigurationContext-eQKyqe6_.js +0 -66
@@ -0,0 +1,868 @@
1
+ import { A as e, Fn as t, Gn as n, Ia as r, In as i, Kt as a, Na as o, Pn as s, Rn as c, Sa as ee, Sn as l, Xn as u, Y as d, _r as f, ao as te, ba as p, br as m, dr as ne, io as h, j as g, kn as _, ti as re, to as v, xa as ie, zn as ae } from "./platform-components-5joS6YaR.js";
2
+ import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineComponent as D, normalizeClass as O, openBlock as k, ref as A, renderList as j, shallowRef as M, toDisplayString as N, unref as P, withCtx as F } from "vue";
3
+ //#region src/views/businessLogClient.ts
4
+ var I = {
5
+ activity: "/platform.business_activity_log",
6
+ "request-error": "/platform.request_error_log",
7
+ login: "/iam.login_audit_log"
8
+ };
9
+ function oe(e, t) {
10
+ let n = I[t];
11
+ return {
12
+ async detail(t) {
13
+ return V(await e.request({ path: `${n}/${encodeURIComponent(t)}` }));
14
+ },
15
+ async operatorCandidates(t) {
16
+ return L(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) => U(await e.request({
34
+ method: "POST",
35
+ path: `${n}/statistics/actions`,
36
+ body: t
37
+ })),
38
+ pageAccessStatistics: async (t) => U(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 q(q(r).diagnostic ?? r);
47
+ } } : {}
48
+ };
49
+ }
50
+ function L(e) {
51
+ let t = q(e);
52
+ return {
53
+ records: B(t.records),
54
+ selectedRecords: B(t.selectedRecords),
55
+ total: Y(t.total),
56
+ navigation: R(t.navigation)
57
+ };
58
+ }
59
+ function R(e) {
60
+ let t = q(e);
61
+ if (Object.keys(t).length) return {
62
+ showTenantNavigation: X(t.showTenantNavigation) === !0,
63
+ tenants: z(t.tenants),
64
+ organizations: z(t.organizations),
65
+ departments: z(t.departments)
66
+ };
67
+ }
68
+ function z(e) {
69
+ return Array.isArray(e) ? e.flatMap((e) => {
70
+ let t = q(e), n = J(t.id);
71
+ return n ? [{
72
+ id: n,
73
+ title: J(t.title) ?? n,
74
+ tenantId: J(t.tenantId),
75
+ organizationId: J(t.organizationId)
76
+ }] : [];
77
+ }) : [];
78
+ }
79
+ function B(e) {
80
+ if (!Array.isArray(e)) return [];
81
+ let t = [];
82
+ for (let n of e) {
83
+ let e = q(n), r = J(e.id);
84
+ if (!r) continue;
85
+ let i = {
86
+ id: r,
87
+ title: J(e.title) ?? r
88
+ };
89
+ [
90
+ "account",
91
+ "employeeName",
92
+ "organizationId",
93
+ "organizationName",
94
+ "departmentId",
95
+ "departmentName"
96
+ ].forEach((t) => {
97
+ let n = J(e[t]);
98
+ n && (i[t] = n);
99
+ }), t.push(i);
100
+ }
101
+ return t;
102
+ }
103
+ function V(e) {
104
+ let t = q(e), n = q(t.event ?? t.record ?? e);
105
+ return {
106
+ ...n,
107
+ eventId: J(n.eventId ?? n.id) ?? "",
108
+ eventType: J(n.eventType ?? n.type) ?? "",
109
+ occurredAt: J(n.occurredAt),
110
+ capturedAt: J(n.capturedAt),
111
+ traceId: J(n.traceId),
112
+ tenantId: J(n.tenantId),
113
+ operatorId: J(n.operatorId),
114
+ operatorOrganizationId: J(n.operatorOrganizationId),
115
+ authenticationMethod: J(n.authenticationMethod),
116
+ authenticationCredentialId: J(n.authenticationCredentialId),
117
+ operatorIdentity: K(n),
118
+ moduleAlias: J(n.moduleAlias),
119
+ actionCode: J(n.actionCode),
120
+ entityAlias: J(n.entityAlias ?? q(n.details).entityAlias),
121
+ recordId: J(n.recordId ?? q(n.details).recordId),
122
+ mutationSource: J(n.mutationSource ?? q(n.details).mutationSource),
123
+ outcome: J(n.outcome ?? n.result ?? q(n.details).outcome),
124
+ loginAccount: H(n, q(n.details)),
125
+ summary: W(n, q(n.details)),
126
+ details: ce(n.details)
127
+ };
128
+ }
129
+ function H(e, t) {
130
+ return J(e.loginAccount) ?? J(t.confirmedAccount) ?? J(t.claimedAccount);
131
+ }
132
+ function U(e) {
133
+ let t = q(e);
134
+ return Array.isArray(t.pages) ? {
135
+ items: t.pages.map((e) => {
136
+ let t = q(e);
137
+ return {
138
+ key: J(t.pageKey) ?? "unknown-page",
139
+ title: J(t.pageKey) ?? "未知页面",
140
+ ...J(t.pageKey) ? {} : { titleSource: v("platform.log.statistic.unknown-page") },
141
+ count: Y(t.accessCount)
142
+ };
143
+ }),
144
+ complete: X(t.complete)
145
+ } : {
146
+ items: [
147
+ ["executionCount", "执行次数"],
148
+ ["successCount", "成功次数"],
149
+ ["failureCount", "失败次数"],
150
+ ["rejectedCount", "拒绝次数"],
151
+ ["knownDurationCount", "含耗时记录数"],
152
+ ["totalDurationMillis", "累计耗时(毫秒)"],
153
+ ["knownAffectedRecordCount", "含影响数记录数"],
154
+ ["totalAffectedRecordCount", "累计影响记录数"]
155
+ ].map(([e, n]) => ({
156
+ key: e,
157
+ title: n,
158
+ titleSource: v(`platform.log.statistic.${e}`),
159
+ count: Y(t[e])
160
+ })),
161
+ complete: X(t.complete)
162
+ };
163
+ }
164
+ function se(e, t) {
165
+ let n = e.titleSource;
166
+ return n?.sourceKind === "CODE" && n.sourceId.startsWith("platform.log.statistic.") && h(n, e.title) ? t.t(n.sourceId, n.originalText) : e.title;
167
+ }
168
+ function W(e, t) {
169
+ return J(e.summary ?? e.message ?? e.description) ?? G(t.message) ?? G(t.responseSummary) ?? J(t.reasonCode) ?? J(t.failureStage) ?? J(t.pageKey) ?? J(t.errorCode) ?? J(t.authenticationMethod);
170
+ }
171
+ function G(e) {
172
+ return J(e) ?? J(q(e).value);
173
+ }
174
+ function K(e) {
175
+ let t = q(e.operatorIdentity), n = J(t.employeeName), r = J(t.username), i = J(t.organizationId), a = J(t.organizationName), o = J(t.departmentId), s = J(t.departmentName);
176
+ return n || r || i || a || o || s ? {
177
+ employeeName: n,
178
+ username: r,
179
+ organizationId: i,
180
+ organizationName: a,
181
+ departmentId: o,
182
+ departmentName: s
183
+ } : void 0;
184
+ }
185
+ function q(e) {
186
+ return typeof e == "object" && e && !Array.isArray(e) ? e : {};
187
+ }
188
+ function ce(e) {
189
+ let t = q(e);
190
+ return Object.keys(t).length > 0 ? t : void 0;
191
+ }
192
+ function J(e) {
193
+ return typeof e == "string" && e.length > 0 ? e : void 0;
194
+ }
195
+ function Y(e) {
196
+ return typeof e == "number" && Number.isFinite(e) ? e : 0;
197
+ }
198
+ function X(e) {
199
+ return typeof e == "boolean" ? e : void 0;
200
+ }
201
+ //#endregion
202
+ //#region src/views/businessLogRetentionClient.ts
203
+ function le(e) {
204
+ let t = "/platform.business_log_retention";
205
+ return {
206
+ async policies() {
207
+ let n = await e.request({ path: `${t}/policies` });
208
+ return Array.isArray(n) ? n : [];
209
+ },
210
+ async update(n) {
211
+ return await e.request({
212
+ method: "POST",
213
+ path: `${t}/policies/${n.eventType}`,
214
+ body: {
215
+ automaticCleanupEnabled: n.automaticCleanupEnabled,
216
+ retentionDays: n.retentionDays,
217
+ version: n.version
218
+ }
219
+ });
220
+ },
221
+ async purge(n, r) {
222
+ return await e.request({
223
+ method: "POST",
224
+ path: `${t}/policies/${n}/purge`,
225
+ body: { retentionDays: r }
226
+ });
227
+ }
228
+ };
229
+ }
230
+ //#endregion
231
+ //#region src/views/BusinessLogRetentionControl.vue?vue&type=script&setup=true&lang.ts
232
+ var ue = {
233
+ key: 3,
234
+ class: "business-log-retention-control__policies"
235
+ }, de = { key: 0 }, fe = { class: "business-log-retention-control__automatic-cleanup" }, pe = { class: "business-log-retention-control__content" }, me = { class: "business-log-retention-control__retention-days" }, he = { class: "business-log-retention-control__retention-row" }, ge = {
236
+ key: 0,
237
+ class: "business-log-retention-control__validation"
238
+ }, Z = /*#__PURE__*/ m(/* @__PURE__ */ D({
239
+ name: "BusinessLogRetentionControl",
240
+ __name: "BusinessLogRetentionControl",
241
+ props: { eventTypes: {} },
242
+ setup(e) {
243
+ let d = te(), m = e, h = re({
244
+ moduleAlias: "platform.business_log_retention",
245
+ runtimeAccess: "VIEW"
246
+ }), g = le(h.http), _ = A(!1), v = A([]), D = A({}), O = A(!1), I = M(), oe = b(() => I.value ? ve(I.value) : void 0), L = A(), R = A(), z = b(() => h.can("viewRetentionPolicies") === !0), B = b(() => h.can("configureRetentionPolicy") === !0), V = b(() => h.can("purgeExpiredLogs") === !0), H = b(() => L.value !== void 0 || R.value !== void 0), U = b(() => {
247
+ let e = new Set(m.eventTypes);
248
+ return v.value.filter((t) => e.has(t.eventType));
249
+ }), se = b(() => U.value.some(Y));
250
+ async function W() {
251
+ z.value && (_.value = !0, await G());
252
+ }
253
+ async function G() {
254
+ O.value = !0, I.value = void 0;
255
+ try {
256
+ let e = await g.policies(), t = new Set(m.eventTypes), n = e.filter((e) => t.has(e.eventType));
257
+ v.value = n.map((e) => ({ ...e })), D.value = Object.fromEntries(n.map((e) => [e.eventType, { ...e }]));
258
+ } catch (e) {
259
+ I.value = _e(e), l(e, {
260
+ language: d,
261
+ source: "business-log-retention",
262
+ phase: "load"
263
+ });
264
+ } finally {
265
+ O.value = !1;
266
+ }
267
+ }
268
+ async function K() {
269
+ return H.value ? (s(d.t("platform.screen.BusinessLogRetentionControl.a-cleanup-operation-is-in-progress-please-wait", "自动清理操作正在执行,请稍候。")), !1) : !se.value || i({
270
+ title: d.t("platform.screen.BusinessLogRetentionControl.discard-unsaved-cleanup-settings", "放弃未保存的自动清理设置?"),
271
+ content: d.t("platform.screen.BusinessLogRetentionControl.unsaved-changes-to-automatic-cleanup-and-retention-days-will-be", "关闭后,本次未保存的自动清理和保留天数修改将丢失。")
272
+ }, d);
273
+ }
274
+ async function q(e) {
275
+ if (Z(e.retentionDays) && Y(e) && !H.value) {
276
+ L.value = e.eventType;
277
+ try {
278
+ J(await g.update(e)), t(d.t("platform.screen.BusinessLogRetentionControl.cleanup-settings-saved-for-value", "{value1}自动清理设置已保存", { value1: Q(e.eventType) }));
279
+ } catch (e) {
280
+ l(e, {
281
+ language: d,
282
+ source: "business-log-retention",
283
+ phase: "action"
284
+ });
285
+ } finally {
286
+ L.value = void 0;
287
+ }
288
+ }
289
+ }
290
+ async function ce(e) {
291
+ if (Z(e.retentionDays) && !H.value && await i({
292
+ title: d.t("platform.screen.BusinessLogRetentionControl.clean-up-value-now", "立即清理{value1}", { value1: Q(e.eventType) }),
293
+ content: d.t("platform.screen.BusinessLogRetentionControl.logs-strictly-older-than-value-days-will-be-deleted-this", "将删除严格早于 {value1} 天的日志。本次清理不会保存对保留天数的修改,且操作不可恢复。", { value1: e.retentionDays }),
294
+ requiredText: d.t("platform.screen.BusinessLogRetentionControl.clean-up-value", "清理{value1}", { value1: Q(e.eventType) }),
295
+ danger: !0
296
+ }, d)) {
297
+ R.value = e.eventType;
298
+ try {
299
+ let n = await g.purge(e.eventType, e.retentionDays);
300
+ if (n.result.status === "ALREADY_RUNNING") {
301
+ s(d.t("platform.screen.BusinessLogRetentionControl.a-log-cleanup-task-is-already-running-this-request-was", "已有日志清理任务正在运行,本次未执行。"));
302
+ return;
303
+ }
304
+ t(n.result.status === "BATCH_LIMIT_REACHED" ? d.t("platform.screen.BusinessLogRetentionControl.deleted-value-records-in-this-run-remaining-records-will-be", "本轮已清理 {value1} 条,剩余数据将在后续批次继续处理", { value1: n.result.deletedCount }) : d.t("platform.screen.BusinessLogRetentionControl.deleted-value-records-from-value", "已清理 {value1} 条{value2}", {
305
+ value1: n.result.deletedCount,
306
+ value2: Q(e.eventType)
307
+ }));
308
+ } catch (e) {
309
+ l(e, {
310
+ language: d,
311
+ source: "business-log-retention",
312
+ phase: "action"
313
+ });
314
+ } finally {
315
+ R.value = void 0;
316
+ }
317
+ }
318
+ }
319
+ function J(e) {
320
+ D.value = {
321
+ ...D.value,
322
+ [e.eventType]: { ...e }
323
+ }, v.value = v.value.map((t) => t.eventType === e.eventType ? { ...e } : t);
324
+ }
325
+ function Y(e) {
326
+ let t = D.value[e.eventType];
327
+ return !t || t.retentionDays !== e.retentionDays || t.automaticCleanupEnabled !== e.automaticCleanupEnabled;
328
+ }
329
+ function X(e, t) {
330
+ e.retentionDays = Number(t);
331
+ }
332
+ function Z(e) {
333
+ return Number.isInteger(e) && e >= 1 && e <= 36500;
334
+ }
335
+ function Q(e) {
336
+ return {
337
+ LOGIN: d.t("platform.screen.BusinessLogRetentionControl.login-audit-logs", "登录日志"),
338
+ ACTION: d.t("platform.screen.BusinessLogRetentionControl.action-logs", "动作日志"),
339
+ REQUEST_ERROR: d.t("platform.screen.BusinessLogRetentionControl.error-logs", "异常日志"),
340
+ PAGE_ACCESS: d.t("platform.screen.BusinessLogRetentionControl.page-access-logs", "页面访问日志")
341
+ }[e];
342
+ }
343
+ function _e(e) {
344
+ return e instanceof Error ? e : new p(ie(d, "platform.screen.BusinessLogRetentionControl.failed-to-load-automatic-cleanup-settings", "自动清理设置加载失败。"));
345
+ }
346
+ function ve(e) {
347
+ return e instanceof p ? ee(e, d) : r(o(e), d);
348
+ }
349
+ return (e, t) => (k(), C(y, null, [z.value ? (k(), x(P(f), {
350
+ key: 0,
351
+ onClick: W
352
+ }, {
353
+ default: F(() => [T(N(P(d).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理")), 1)]),
354
+ _: 1
355
+ })) : S("v-if", !0), E(P(a), {
356
+ open: _.value,
357
+ title: P(d).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理"),
358
+ subtitle: P(d).t("platform.screen.BusinessLogRetentionControl.configure-automatic-cleanup-and-retention-for-the-current-log-type", "配置当前日志类型的自动清理和保留期限。"),
359
+ width: "standard",
360
+ scope: "viewport",
361
+ "before-close": K,
362
+ onClose: t[0] ||= (e) => _.value = !1
363
+ }, {
364
+ default: F(() => [O.value ? (k(), x(P(ae), {
365
+ key: 0,
366
+ tip: P(d).t("platform.screen.BusinessLogRetentionControl.loading-automatic-cleanup-settings", "加载自动清理设置")
367
+ }, null, 8, ["tip"])) : oe.value ? (k(), x(P(c), {
368
+ key: 1,
369
+ title: P(d).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup-settings-unavailable", "自动清理设置不可用"),
370
+ message: oe.value
371
+ }, null, 8, ["title", "message"])) : U.value.length === 0 ? (k(), x(P(n), {
372
+ key: 2,
373
+ description: P(d).t("platform.screen.BusinessLogRetentionControl.no-automatic-cleanup-settings-available", "暂无可管理的自动清理设置")
374
+ }, null, 8, ["description"])) : (k(), C("section", ue, [(k(!0), C(y, null, j(U.value, (e) => (k(), C("article", { key: e.eventType }, [
375
+ w("header", null, [w("div", null, [w("h3", null, N(Q(e.eventType)), 1), e.updatedAt ? (k(), C("small", de, [T(N(P(d).t("platform.screen.BusinessLogRetentionControl.last-updated", "最近更新:")) + N(e.updatedAt), 1), e.updatedBy ? (k(), C(y, { key: 0 }, [T(" · " + N(e.updatedBy), 1)], 64)) : S("v-if", !0)])) : S("v-if", !0)]), w("label", fe, [w("span", null, N(P(d).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理")), 1), E(P(u), {
376
+ checked: e.automaticCleanupEnabled,
377
+ "onUpdate:checked": (t) => e.automaticCleanupEnabled = t,
378
+ disabled: !B.value || H.value,
379
+ "checked-text": P(d).t("platform.screen.WorkflowWorkbenchView.enabled", "启用"),
380
+ "unchecked-text": P(d).t("platform.screen.WorkflowWorkbenchView.disabled", "停用")
381
+ }, null, 8, [
382
+ "checked",
383
+ "onUpdate:checked",
384
+ "disabled",
385
+ "checked-text",
386
+ "unchecked-text"
387
+ ])])]),
388
+ w("div", pe, [w("label", me, [
389
+ w("span", null, N(P(d).t("platform.screen.BusinessLogRetentionControl.retention-days", "保留天数")), 1),
390
+ w("span", he, [E(P(ne), {
391
+ value: e.retentionDays,
392
+ type: "number",
393
+ disabled: !B.value || H.value,
394
+ "aria-label": P(d).t("platform.screen.BusinessLogRetentionControl.retention-days-for-value", "{value1}保留天数", { value1: Q(e.eventType) }),
395
+ "onUpdate:value": (t) => X(e, t)
396
+ }, null, 8, [
397
+ "value",
398
+ "disabled",
399
+ "aria-label",
400
+ "onUpdate:value"
401
+ ]), V.value ? (k(), x(P(f), {
402
+ key: 0,
403
+ intent: "danger",
404
+ disabled: H.value || !Z(e.retentionDays),
405
+ loading: R.value === e.eventType,
406
+ onClick: (t) => ce(e)
407
+ }, {
408
+ default: F(() => [T(N(P(d).t("platform.screen.BusinessLogRetentionControl.clean-up-now", "立即清理")), 1)]),
409
+ _: 1
410
+ }, 8, [
411
+ "disabled",
412
+ "loading",
413
+ "onClick"
414
+ ])) : S("v-if", !0)]),
415
+ Z(e.retentionDays) ? S("v-if", !0) : (k(), C("small", ge, N(P(d).t("platform.screen.BusinessLogRetentionControl.enter-an-integer-from-1-to-36500", "请输入 1 至 36500 之间的整数。")), 1))
416
+ ])]),
417
+ w("footer", null, [B.value ? (k(), x(P(f), {
418
+ key: 0,
419
+ emphasis: "primary",
420
+ disabled: H.value || !Z(e.retentionDays) || !Y(e),
421
+ loading: L.value === e.eventType,
422
+ onClick: (t) => q(e)
423
+ }, {
424
+ default: F(() => [T(N(P(d).t("platform.action.save", "保存")), 1)]),
425
+ _: 1
426
+ }, 8, [
427
+ "disabled",
428
+ "loading",
429
+ "onClick"
430
+ ])) : S("v-if", !0)])
431
+ ]))), 128))]))]),
432
+ _: 1
433
+ }, 8, [
434
+ "open",
435
+ "title",
436
+ "subtitle"
437
+ ])], 64));
438
+ }
439
+ }), [["__scopeId", "data-v-88f9267c"]]), Q = {
440
+ key: 2,
441
+ class: "business-log-list__detail"
442
+ }, _e = {
443
+ key: 4,
444
+ class: "business-log-list__diagnostic"
445
+ }, ve = {
446
+ key: 1,
447
+ class: "business-log-list__detail"
448
+ }, ye = {
449
+ key: 0,
450
+ class: "business-log-list__hint"
451
+ }, be = {
452
+ key: 1,
453
+ class: "business-log-list__detail"
454
+ }, xe = /*#__PURE__*/ m(/* @__PURE__ */ D({
455
+ name: "BusinessLogListDrawer",
456
+ __name: "BusinessLogListDrawer",
457
+ props: {
458
+ surface: {},
459
+ moduleAlias: {},
460
+ title: {}
461
+ },
462
+ setup(t) {
463
+ let i = te(), s = t, u = re({ moduleAlias: s.moduleAlias }), m = oe(u.http, s.surface), ne = {
464
+ get title() {
465
+ return i.t("platform.screen.BusinessLogListDrawer.select-an-operator", "选择操作用户");
466
+ },
467
+ get placeholder() {
468
+ return i.t("platform.screen.UserPicker.searchPlaceholder", "按账号或用户 ID 搜索");
469
+ },
470
+ get searchPlaceholder() {
471
+ return i.t("platform.screen.UserPicker.searchPlaceholder", "按账号或用户 ID 搜索");
472
+ },
473
+ mode: "dialog",
474
+ columns: g,
475
+ provider: e({
476
+ sourceIdentity: {
477
+ targetModuleAlias: "iam.user",
478
+ source: {
479
+ kind: "businessPurpose",
480
+ id: `${s.moduleAlias}:operators`
481
+ }
482
+ },
483
+ searchPage: async ({ keyword: e, pageNum: t, pageSize: n, scope: r }) => {
484
+ let i = await m.operatorCandidates({
485
+ keyword: e,
486
+ pageNum: t,
487
+ pageSize: n,
488
+ ...r
489
+ });
490
+ return {
491
+ records: i.records,
492
+ total: i.total,
493
+ navigation: i.navigation
494
+ };
495
+ },
496
+ resolveUsers: async (e) => (await m.operatorCandidates({ selectedIds: e })).selectedRecords
497
+ })
498
+ }, h = A(), v = A(!1), D = M(), I = b(() => D.value ? Le(D.value) : void 0), L = A(), R = A(!1), z = M(), B = b(() => z.value ? Le(z.value) : void 0), V = A(!1), H = A(), U = A(), W = A(!1), G = M(), K = b(() => G.value ? Le(G.value) : void 0), q = A(), ce = b(() => Ie.value[s.surface]), J = b(() => s.surface === "activity"), Y = b(() => s.surface === "request-error"), X = b(() => ({
499
+ login: ["LOGIN"],
500
+ activity: ["ACTION", "PAGE_ACCESS"],
501
+ "request-error": ["REQUEST_ERROR"]
502
+ })[s.surface]), le = b(() => u.can("viewInternalDiagnostic") === !0), ue = b(() => ce.value.columns), de = b(() => h.value ? Oe(h.value) : []), fe = b(() => Ne(L.value)), pe = b(() => [...ke(i.t("platform.workflow-task-editor.business-action", "业务动作"), H.value), ...ke(i.t("platform.screen.BusinessLogListDrawer.page-access", "页面访问"), U.value)]), me = b(() => H.value?.complete === !1 || U.value?.complete === !1);
503
+ async function he(e) {
504
+ let t = e, n = t.eventId;
505
+ if (n) {
506
+ h.value = t, D.value = void 0, L.value = void 0, z.value = void 0, v.value = !0;
507
+ try {
508
+ h.value = await m.detail(n);
509
+ } catch (e) {
510
+ D.value = Fe(e), l(e, {
511
+ language: i,
512
+ source: "business-log-detail",
513
+ phase: "load"
514
+ });
515
+ } finally {
516
+ v.value = !1;
517
+ }
518
+ }
519
+ }
520
+ async function ge() {
521
+ if (J.value && !W.value) {
522
+ V.value = !0, W.value = !0, G.value = void 0;
523
+ try {
524
+ let e = q.value ?? Ce(), [t, n] = await Promise.all([m.actionStatistics?.(e), m.pageAccessStatistics?.(e)]);
525
+ H.value = t, U.value = n;
526
+ } catch (e) {
527
+ G.value = Fe(e), l(e, {
528
+ language: i,
529
+ source: "business-log-statistics",
530
+ phase: "load"
531
+ });
532
+ } finally {
533
+ W.value = !1;
534
+ }
535
+ }
536
+ }
537
+ async function xe() {
538
+ let e = h.value?.eventId;
539
+ if (m.diagnostic && e && !R.value) {
540
+ R.value = !0, z.value = void 0;
541
+ try {
542
+ L.value = await m.diagnostic(e);
543
+ } catch (e) {
544
+ z.value = Fe(e), l(e, {
545
+ language: i,
546
+ source: "business-log-diagnostic",
547
+ phase: "load"
548
+ });
549
+ } finally {
550
+ R.value = !1;
551
+ }
552
+ }
553
+ }
554
+ function Se(e) {
555
+ q.value = e, H.value = void 0, U.value = void 0;
556
+ }
557
+ function Ce() {
558
+ return {
559
+ page: {
560
+ pageNum: 1,
561
+ pageSize: 50
562
+ },
563
+ conditions: []
564
+ };
565
+ }
566
+ function we(e) {
567
+ return e.name === "operatorId" ? ne : void 0;
568
+ }
569
+ function Te(e, t) {
570
+ switch (e) {
571
+ case "outcome": return De(t.outcome);
572
+ case "mutationSource": return Ee(t.mutationSource);
573
+ case "employeeName": return t.operatorIdentity?.employeeName ?? "—";
574
+ case "username": return t.operatorIdentity?.username ?? t.operatorId ?? "—";
575
+ case "loginAccount": return Ae(t) ?? "—";
576
+ case "organizationName": return t.operatorIdentity?.organizationName ?? "—";
577
+ case "departmentName": return t.operatorIdentity?.departmentName ?? "—";
578
+ case "errorCode": return $(t.details?.errorCode) ?? "—";
579
+ case "httpStatus": return $(t.details?.httpStatus) ?? "—";
580
+ default: return Pe(t[e]);
581
+ }
582
+ }
583
+ function Ee(e) {
584
+ return {
585
+ BUSINESS: i.t("platform.screen.BusinessLogListDrawer.business-data-write", "业务写入"),
586
+ ACTION: i.t("platform.workflow-task-editor.business-action", "业务动作"),
587
+ SYSTEM: i.t("platform.screen.BusinessLogListDrawer.system-processing", "系统处理"),
588
+ WRITE_BACK: i.t("platform.screen.BusinessLogListDrawer.platform-write-back", "平台回写")
589
+ }[e ?? ""] ?? e ?? "—";
590
+ }
591
+ function De(e) {
592
+ return {
593
+ SUCCESS: i.t("platform.screen.BusinessLogListDrawer.success", "成功"),
594
+ FAILURE: i.t("platform.screen.BusinessLogListDrawer.failure", "失败"),
595
+ REJECTED: i.t("platform.screen.BusinessLogListDrawer.rejected", "拒绝")
596
+ }[e ?? ""] ?? e ?? "—";
597
+ }
598
+ function Oe(e) {
599
+ return [
600
+ [i.t("platform.screen.BusinessLogListDrawer.occurred-at", "发生时间"), e.occurredAt],
601
+ [i.t("platform.screen.BusinessLogListDrawer.event-type", "事件类型"), e.eventType],
602
+ [i.t("platform.screen.BusinessLogListDrawer.outcome", "结果"), e.outcome],
603
+ [i.t("platform.user-picker.column.employee-name", "职员姓名"), e.operatorIdentity?.employeeName],
604
+ [i.t("platform.screen.BusinessLogListDrawer.operator", "操作用户"), e.operatorIdentity?.username ?? e.operatorId],
605
+ [i.t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号"), Ae(e)],
606
+ [i.t("platform.screen.BusinessLogListDrawer.user-id", "用户 ID"), e.operatorId],
607
+ [i.t("platform.user-picker.axis.organization", "机构"), e.operatorIdentity?.organizationName],
608
+ [i.t("platform.screen.BusinessLogListDrawer.organization-id", "机构 ID"), e.operatorIdentity?.organizationId ?? e.operatorOrganizationId],
609
+ [i.t("platform.user-picker.axis.department", "部门"), e.operatorIdentity?.departmentName],
610
+ [i.t("platform.screen.BusinessLogListDrawer.department-id", "部门 ID"), e.operatorIdentity?.departmentId],
611
+ [i.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块"), e.moduleAlias],
612
+ [i.t("platform.governance.tab.actions", "动作"), e.actionCode],
613
+ [i.t("platform.screen.BusinessLogListDrawer.entity", "实体"), e.entityAlias],
614
+ [i.t("platform.screen.BusinessLogListDrawer.record-id", "记录 ID"), e.recordId],
615
+ [i.t("platform.screen.BusinessLogListDrawer.change-source", "变更来源"), Ee(e.mutationSource)],
616
+ [i.t("platform.access-tokens.auth-method", "认证方式"), e.authenticationMethod],
617
+ [i.t("platform.access-tokens.credential-id", "凭据 ID"), e.authenticationCredentialId],
618
+ [i.t("platform.screen.BusinessLogListDrawer.trace-id", "追踪 ID"), e.traceId],
619
+ ...Ne(e.details, [
620
+ "outcome",
621
+ "entityAlias",
622
+ "recordId",
623
+ "mutationSource"
624
+ ]).map((e) => [e.key, e.value])
625
+ ].filter(([, e]) => e != null && e !== "").map(([e, t]) => ({
626
+ key: e,
627
+ value: Pe(t)
628
+ }));
629
+ }
630
+ function ke(e, t) {
631
+ return (t?.items ?? []).map((t) => ({
632
+ key: `${e}:${t.key}`,
633
+ kind: e,
634
+ title: se(t, i),
635
+ count: t.count
636
+ }));
637
+ }
638
+ function Ae(e) {
639
+ if (e.eventType === "LOGIN") return e.loginAccount ?? $(e.details?.confirmedAccount) ?? $(e.details?.claimedAccount);
640
+ }
641
+ function je() {
642
+ return [{
643
+ key: "detail",
644
+ title: i.t("platform.screen.PageCompositionEditor.details", "详情"),
645
+ primary: !0,
646
+ iconName: "eye"
647
+ }];
648
+ }
649
+ function Me(e, t) {
650
+ e.key === "detail" && he(t);
651
+ }
652
+ function Ne(e, t = []) {
653
+ let n = new Set(t);
654
+ return Object.entries(e ?? {}).filter(([e]) => !n.has(e)).map(([e, t]) => ({
655
+ key: e,
656
+ value: Pe(t)
657
+ }));
658
+ }
659
+ function $(e) {
660
+ return typeof e == "string" || typeof e == "number" ? String(e) : void 0;
661
+ }
662
+ function Pe(e) {
663
+ return e == null || e === "" ? "—" : typeof e == "string" ? e : JSON.stringify(e, null, 2);
664
+ }
665
+ function Fe(e) {
666
+ return e instanceof Error ? e : new p(ie(i, "platform.screen.BusinessLogListDrawer.the-request-did-not-complete-try-again-later", "请求未完成,请稍后重试。"));
667
+ }
668
+ let Ie = b(() => ({
669
+ login: { columns: [
670
+ {
671
+ key: "outcome",
672
+ title: i.t("platform.screen.BusinessLogListDrawer.outcome", "结果"),
673
+ width: "96px"
674
+ },
675
+ {
676
+ key: "occurredAt",
677
+ title: i.t("platform.screen.BusinessLogListDrawer.occurred-at", "发生时间"),
678
+ width: "176px"
679
+ },
680
+ {
681
+ key: "loginAccount",
682
+ title: i.t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号"),
683
+ width: "200px"
684
+ }
685
+ ] },
686
+ activity: { columns: [
687
+ {
688
+ key: "outcome",
689
+ title: i.t("platform.screen.BusinessLogListDrawer.outcome", "结果"),
690
+ width: "96px"
691
+ },
692
+ {
693
+ key: "occurredAt",
694
+ title: i.t("platform.screen.BusinessLogListDrawer.occurred-at", "发生时间"),
695
+ width: "176px"
696
+ },
697
+ {
698
+ key: "username",
699
+ title: i.t("platform.screen.BusinessLogListDrawer.operator", "操作用户"),
700
+ width: "160px"
701
+ },
702
+ {
703
+ key: "moduleAlias",
704
+ title: i.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块"),
705
+ width: "190px"
706
+ },
707
+ {
708
+ key: "actionCode",
709
+ title: i.t("platform.governance.tab.actions", "动作"),
710
+ width: "150px"
711
+ },
712
+ {
713
+ key: "recordId",
714
+ title: i.t("platform.screen.BusinessLogListDrawer.record-id", "记录 ID"),
715
+ width: "170px"
716
+ },
717
+ {
718
+ key: "mutationSource",
719
+ title: i.t("platform.screen.BusinessLogListDrawer.change-source", "变更来源"),
720
+ width: "120px"
721
+ }
722
+ ] },
723
+ "request-error": { columns: [
724
+ {
725
+ key: "occurredAt",
726
+ title: i.t("platform.screen.BusinessLogListDrawer.occurred-at", "发生时间"),
727
+ width: "176px"
728
+ },
729
+ {
730
+ key: "moduleAlias",
731
+ title: i.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块"),
732
+ width: "190px"
733
+ },
734
+ {
735
+ key: "errorCode",
736
+ title: i.t("platform.screen.BusinessLogListDrawer.error-code", "错误码"),
737
+ width: "150px"
738
+ },
739
+ {
740
+ key: "httpStatus",
741
+ title: i.t("platform.screen.BusinessLogListDrawer.http-status", "HTTP 状态"),
742
+ width: "112px"
743
+ },
744
+ {
745
+ key: "summary",
746
+ title: i.t("platform.screen.BusinessLogListDrawer.error-summary", "错误摘要"),
747
+ width: "260px"
748
+ }
749
+ ] }
750
+ }));
751
+ function Le(e) {
752
+ return e instanceof p ? ee(e, i) : r(o(e), i);
753
+ }
754
+ return (e, r) => (k(), C(y, null, [
755
+ E(P(d), {
756
+ class: "business-log-list",
757
+ context: P(u),
758
+ title: t.title,
759
+ columns: ue.value,
760
+ "row-key": "eventId",
761
+ "show-recycle-bin": !1,
762
+ "page-size": 50,
763
+ "page-size-options": [
764
+ 20,
765
+ 50,
766
+ 100
767
+ ],
768
+ "reference-picker-of": we,
769
+ "empty-description": P(i).t("platform.screen.BusinessLogListDrawer.no-logs-match-the-criteria", "暂无符合条件的日志"),
770
+ "row-actions-of": je,
771
+ "row-actions-title": P(i).t("platform.screen.RecordPermissionDialog.operation", "操作"),
772
+ "action-column-width": "88px",
773
+ onRecordActivate: he,
774
+ onRowAction: Me,
775
+ onQueried: Se
776
+ }, {
777
+ operations: F(() => [J.value ? (k(), x(P(f), {
778
+ key: 0,
779
+ loading: W.value,
780
+ onClick: ge
781
+ }, {
782
+ default: F(() => [T(N(P(i).t("platform.screen.BusinessLogListDrawer.usage-statistics", "使用统计")), 1)]),
783
+ _: 1
784
+ }, 8, ["loading"])) : S("v-if", !0), E(Z, { "event-types": X.value }, null, 8, ["event-types"])]),
785
+ cell: F(({ column: e, record: t }) => [e.key === "occurredAt" ? (k(), x(P(_), {
786
+ key: 0,
787
+ value: t.occurredAt
788
+ }, null, 8, ["value"])) : (k(), C("span", {
789
+ key: 1,
790
+ class: O({ "business-log-list__summary": e.key === "summary" })
791
+ }, N(Te(e.key, t)), 3))]),
792
+ _: 1
793
+ }, 8, [
794
+ "context",
795
+ "title",
796
+ "columns",
797
+ "empty-description",
798
+ "row-actions-title"
799
+ ]),
800
+ E(P(a), {
801
+ open: !!h.value,
802
+ title: P(i).t("platform.screen.BusinessLogListDrawer.value-details", "{value1}详情", { value1: t.title }),
803
+ "render-mode": "inline",
804
+ subtitle: h.value ? h.value.operatorIdentity?.employeeName ?? h.value.operatorIdentity?.username ?? h.value.operatorId : void 0,
805
+ "close-on-outside": !0,
806
+ onClose: r[0] ||= (e) => h.value = void 0
807
+ }, {
808
+ default: F(() => [v.value ? (k(), x(P(ae), {
809
+ key: 0,
810
+ tip: P(i).t("platform.screen.BusinessLogListDrawer.loading-details", "加载详情")
811
+ }, null, 8, ["tip"])) : I.value ? (k(), x(P(c), {
812
+ key: 1,
813
+ title: P(i).t("platform.screen.BusinessLogListDrawer.failed-to-load-log-details", "日志详情加载失败"),
814
+ message: I.value
815
+ }, null, 8, ["title", "message"])) : h.value ? (k(), C("dl", Q, [(k(!0), C(y, null, j(de.value, (e) => (k(), C(y, { key: e.key }, [w("dt", null, N(e.key), 1), w("dd", null, [w("pre", null, N(e.value), 1)])], 64))), 128))])) : (k(), x(P(n), {
816
+ key: 3,
817
+ description: P(i).t("platform.screen.BusinessLogListDrawer.no-log-selected", "未选择日志")
818
+ }, null, 8, ["description"])), Y.value && h.value && le.value ? (k(), C("section", _e, [
819
+ E(P(f), {
820
+ loading: R.value,
821
+ onClick: xe
822
+ }, {
823
+ default: F(() => [T(N(P(i).t("platform.screen.BusinessLogListDrawer.view-internal-diagnostics", "查看内部诊断")), 1)]),
824
+ _: 1
825
+ }, 8, ["loading"]),
826
+ w("small", null, N(P(i).t("platform.screen.BusinessLogListDrawer.only-administrators-with-platform-wide-scope-can-view-this-information", "仅具备平台范围的管理员可查看。")), 1),
827
+ B.value ? (k(), x(P(c), {
828
+ key: 0,
829
+ title: P(i).t("platform.screen.BusinessLogListDrawer.internal-diagnostics-unavailable", "内部诊断不可用"),
830
+ message: B.value
831
+ }, null, 8, ["title", "message"])) : L.value ? (k(), C("dl", ve, [(k(!0), C(y, null, j(fe.value, (e) => (k(), C(y, { key: e.key }, [w("dt", null, N(e.key), 1), w("dd", null, [w("pre", null, N(e.value), 1)])], 64))), 128))])) : S("v-if", !0)
832
+ ])) : S("v-if", !0)]),
833
+ _: 1
834
+ }, 8, [
835
+ "open",
836
+ "title",
837
+ "subtitle"
838
+ ]),
839
+ E(P(a), {
840
+ open: V.value,
841
+ title: P(i).t("platform.screen.BusinessLogListDrawer.business-activity-usage-statistics", "业务活动使用统计"),
842
+ "render-mode": "inline",
843
+ subtitle: P(i).t("platform.screen.BusinessLogListDrawer.statistics-follow-the-current-query-criteria-and-the-signed-in", "统计口径遵循当前标准查询条件与登录账号的数据范围。"),
844
+ "close-on-outside": !0,
845
+ onClose: r[1] ||= (e) => V.value = !1
846
+ }, {
847
+ default: F(() => [W.value ? (k(), x(P(ae), {
848
+ key: 0,
849
+ tip: P(i).t("platform.screen.BusinessLogListDrawer.loading-usage-statistics", "加载使用统计")
850
+ }, null, 8, ["tip"])) : K.value ? (k(), x(P(c), {
851
+ key: 1,
852
+ title: P(i).t("platform.screen.BusinessLogListDrawer.failed-to-load-usage-statistics", "使用统计加载失败"),
853
+ message: K.value
854
+ }, null, 8, ["title", "message"])) : (k(), C(y, { key: 2 }, [me.value ? (k(), C("p", ye, N(P(i).t("platform.screen.BusinessLogListDrawer.these-statistics-cover-only-the-most-recent-accessible-logs", "当前统计只覆盖可读取的最近日志。")), 1)) : S("v-if", !0), pe.value.length > 0 ? (k(), C("dl", be, [(k(!0), C(y, null, j(pe.value, (e) => (k(), C(y, { key: e.key }, [w("dt", null, N(e.kind) + " · " + N(e.title), 1), w("dd", null, N(e.count), 1)], 64))), 128))])) : (k(), x(P(n), {
855
+ key: 2,
856
+ description: P(i).t("platform.screen.BusinessLogListDrawer.no-business-activity-available-for-statistics", "暂无可统计的业务活动")
857
+ }, null, 8, ["description"]))], 64))]),
858
+ _: 1
859
+ }, 8, [
860
+ "open",
861
+ "title",
862
+ "subtitle"
863
+ ])
864
+ ], 64));
865
+ }
866
+ }), [["__scopeId", "data-v-ed2c89e3"]]);
867
+ //#endregion
868
+ export { xe as t };