@ximatai/muyun-web-app 0.26.21 → 0.26.23

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 (39) hide show
  1. package/dist/{BusinessActivityLogView-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
  3. package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
  4. package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
  5. package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
  6. package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
  7. package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
  8. package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
  10. package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
  11. package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
  12. package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
  13. package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
  14. package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +524 -550
  17. package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
  18. package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
  19. package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
  20. package/dist/record-read.js +2 -0
  21. package/dist/recordReadEntry-CxDHM44F.js +152 -0
  22. package/dist/types/consumer/recordRead.d.ts +6 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  27. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  29. package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
  30. package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
  31. package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
  32. package/dist/types/web-contracts/operation.d.ts +2 -0
  33. package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
  34. package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
  35. package/package.json +5 -1
  36. package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
  37. package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
  38. package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
  39. package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
@@ -1,5 +1,5 @@
1
- import { Xa as e } from "./platform-components-i2ONyZ8r.js";
2
- import { t } from "./BusinessLogListDrawer-C4iFnkE7.js";
1
+ import { Ya as e } from "./platform-components-D0T03KGl.js";
2
+ import { t } from "./BusinessLogListDrawer-UCsg6psI.js";
3
3
  import { createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
4
4
  //#endregion
5
5
  //#region src/views/BusinessActivityLogView.vue
@@ -1,4 +1,4 @@
1
- import { A as e, An as t, Cn as n, Da as r, Ht as i, Ka as a, Mn as o, Nn as s, On as c, Wn as l, Xa as ee, Ya as u, _n as d, da as f, fa as te, fr as p, j as m, kn as h, lr as g, pa as ne, q as _, qr as re, rr as v, wa as ie, zn as ae } from "./platform-components-i2ONyZ8r.js";
1
+ import { A as e, An as t, Ca as n, Cn as r, Ea as i, Ga as a, Ht as o, Ja as s, Kr as ee, Mn as c, Nn as te, On as l, Wn as u, Ya as ne, _n as d, da as re, fa as ie, fr as f, j as p, kn as m, lr as h, q as g, rr as _, ua as v, zn as ae } from "./platform-components-D0T03KGl.js";
2
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
3
  //#region src/views/businessLogClient.ts
4
4
  var I = {
@@ -161,7 +161,7 @@ function U(e) {
161
161
  }
162
162
  function se(e, t) {
163
163
  let n = e.titleSource;
164
- return n?.sourceKind === "CODE" && n.sourceId.startsWith("platform.log.statistic.") && u(n, e.title) ? t.t(n.sourceId, n.originalText) : e.title;
164
+ return n?.sourceKind === "CODE" && n.sourceId.startsWith("platform.log.statistic.") && s(n, e.title) ? t.t(n.sourceId, n.originalText) : e.title;
165
165
  }
166
166
  function W(e, t) {
167
167
  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);
@@ -233,29 +233,29 @@ var ue = {
233
233
  }, 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 = {
234
234
  key: 0,
235
235
  class: "business-log-retention-control__validation"
236
- }, Z = /*#__PURE__*/ p(/* @__PURE__ */ D({
236
+ }, Z = /*#__PURE__*/ f(/* @__PURE__ */ D({
237
237
  name: "BusinessLogRetentionControl",
238
238
  __name: "BusinessLogRetentionControl",
239
239
  props: { eventTypes: {} },
240
240
  setup(e) {
241
- let n = ee(), a = e, u = re({
241
+ let r = ne(), a = e, s = ee({
242
242
  moduleAlias: "platform.business_log_retention",
243
243
  runtimeAccess: "VIEW"
244
- }), p = le(u.http), m = A(!1), _ = A([]), D = A({}), O = A(!1), I = M(), oe = b(() => I.value ? ve(I.value) : void 0), L = A(), R = A(), z = b(() => u.can("viewRetentionPolicies") === !0), B = b(() => u.can("configureRetentionPolicy") === !0), V = b(() => u.can("purgeExpiredLogs") === !0), H = b(() => L.value !== void 0 || R.value !== void 0), U = b(() => {
244
+ }), f = le(s.http), p = A(!1), g = A([]), D = A({}), O = A(!1), I = M(), oe = b(() => I.value ? ve(I.value) : void 0), L = A(), R = A(), z = b(() => s.can("viewRetentionPolicies") === !0), B = b(() => s.can("configureRetentionPolicy") === !0), V = b(() => s.can("purgeExpiredLogs") === !0), H = b(() => L.value !== void 0 || R.value !== void 0), U = b(() => {
245
245
  let e = new Set(a.eventTypes);
246
- return _.value.filter((t) => e.has(t.eventType));
246
+ return g.value.filter((t) => e.has(t.eventType));
247
247
  }), se = b(() => U.value.some(Y));
248
248
  async function W() {
249
- z.value && (m.value = !0, await G());
249
+ z.value && (p.value = !0, await G());
250
250
  }
251
251
  async function G() {
252
252
  O.value = !0, I.value = void 0;
253
253
  try {
254
- let e = await p.policies(), t = new Set(a.eventTypes), n = e.filter((e) => t.has(e.eventType));
255
- _.value = n.map((e) => ({ ...e })), D.value = Object.fromEntries(n.map((e) => [e.eventType, { ...e }]));
254
+ let e = await f.policies(), t = new Set(a.eventTypes), n = e.filter((e) => t.has(e.eventType));
255
+ g.value = n.map((e) => ({ ...e })), D.value = Object.fromEntries(n.map((e) => [e.eventType, { ...e }]));
256
256
  } catch (e) {
257
257
  I.value = _e(e), d(e, {
258
- language: n,
258
+ language: r,
259
259
  source: "business-log-retention",
260
260
  phase: "load"
261
261
  });
@@ -264,19 +264,19 @@ var ue = {
264
264
  }
265
265
  }
266
266
  async function K() {
267
- return H.value ? (c(n.t("platform.screen.BusinessLogRetentionControl.a-cleanup-operation-is-in-progress-please-wait", "自动清理操作正在执行,请稍候。")), !1) : !se.value || t({
268
- title: n.t("platform.screen.BusinessLogRetentionControl.discard-unsaved-cleanup-settings", "放弃未保存的自动清理设置?"),
269
- content: n.t("platform.screen.BusinessLogRetentionControl.unsaved-changes-to-automatic-cleanup-and-retention-days-will-be", "关闭后,本次未保存的自动清理和保留天数修改将丢失。")
270
- }, n);
267
+ return H.value ? (l(r.t("platform.screen.BusinessLogRetentionControl.a-cleanup-operation-is-in-progress-please-wait", "自动清理操作正在执行,请稍候。")), !1) : !se.value || t({
268
+ title: r.t("platform.screen.BusinessLogRetentionControl.discard-unsaved-cleanup-settings", "放弃未保存的自动清理设置?"),
269
+ content: r.t("platform.screen.BusinessLogRetentionControl.unsaved-changes-to-automatic-cleanup-and-retention-days-will-be", "关闭后,本次未保存的自动清理和保留天数修改将丢失。")
270
+ }, r);
271
271
  }
272
272
  async function q(e) {
273
273
  if (Z(e.retentionDays) && Y(e) && !H.value) {
274
274
  L.value = e.eventType;
275
275
  try {
276
- J(await p.update(e)), h(n.t("platform.screen.BusinessLogRetentionControl.cleanup-settings-saved-for-value", "{value1}自动清理设置已保存", { value1: Q(e.eventType) }));
276
+ J(await f.update(e)), m(r.t("platform.screen.BusinessLogRetentionControl.cleanup-settings-saved-for-value", "{value1}自动清理设置已保存", { value1: Q(e.eventType) }));
277
277
  } catch (e) {
278
278
  d(e, {
279
- language: n,
279
+ language: r,
280
280
  source: "business-log-retention",
281
281
  phase: "action"
282
282
  });
@@ -287,25 +287,25 @@ var ue = {
287
287
  }
288
288
  async function ce(e) {
289
289
  if (Z(e.retentionDays) && !H.value && await t({
290
- title: n.t("platform.screen.BusinessLogRetentionControl.clean-up-value-now", "立即清理{value1}", { value1: Q(e.eventType) }),
291
- content: n.t("platform.screen.BusinessLogRetentionControl.logs-strictly-older-than-value-days-will-be-deleted-this", "将删除严格早于 {value1} 天的日志。本次清理不会保存对保留天数的修改,且操作不可恢复。", { value1: e.retentionDays }),
292
- requiredText: n.t("platform.screen.BusinessLogRetentionControl.clean-up-value", "清理{value1}", { value1: Q(e.eventType) }),
290
+ title: r.t("platform.screen.BusinessLogRetentionControl.clean-up-value-now", "立即清理{value1}", { value1: Q(e.eventType) }),
291
+ content: r.t("platform.screen.BusinessLogRetentionControl.logs-strictly-older-than-value-days-will-be-deleted-this", "将删除严格早于 {value1} 天的日志。本次清理不会保存对保留天数的修改,且操作不可恢复。", { value1: e.retentionDays }),
292
+ requiredText: r.t("platform.screen.BusinessLogRetentionControl.clean-up-value", "清理{value1}", { value1: Q(e.eventType) }),
293
293
  danger: !0
294
- }, n)) {
294
+ }, r)) {
295
295
  R.value = e.eventType;
296
296
  try {
297
- let t = await p.purge(e.eventType, e.retentionDays);
297
+ let t = await f.purge(e.eventType, e.retentionDays);
298
298
  if (t.result.status === "ALREADY_RUNNING") {
299
- c(n.t("platform.screen.BusinessLogRetentionControl.a-log-cleanup-task-is-already-running-this-request-was", "已有日志清理任务正在运行,本次未执行。"));
299
+ l(r.t("platform.screen.BusinessLogRetentionControl.a-log-cleanup-task-is-already-running-this-request-was", "已有日志清理任务正在运行,本次未执行。"));
300
300
  return;
301
301
  }
302
- h(t.result.status === "BATCH_LIMIT_REACHED" ? n.t("platform.screen.BusinessLogRetentionControl.deleted-value-records-in-this-run-remaining-records-will-be", "本轮已清理 {value1} 条,剩余数据将在后续批次继续处理", { value1: t.result.deletedCount }) : n.t("platform.screen.BusinessLogRetentionControl.deleted-value-records-from-value", "已清理 {value1} 条{value2}", {
302
+ m(t.result.status === "BATCH_LIMIT_REACHED" ? r.t("platform.screen.BusinessLogRetentionControl.deleted-value-records-in-this-run-remaining-records-will-be", "本轮已清理 {value1} 条,剩余数据将在后续批次继续处理", { value1: t.result.deletedCount }) : r.t("platform.screen.BusinessLogRetentionControl.deleted-value-records-from-value", "已清理 {value1} 条{value2}", {
303
303
  value1: t.result.deletedCount,
304
304
  value2: Q(e.eventType)
305
305
  }));
306
306
  } catch (e) {
307
307
  d(e, {
308
- language: n,
308
+ language: r,
309
309
  source: "business-log-retention",
310
310
  phase: "action"
311
311
  });
@@ -318,7 +318,7 @@ var ue = {
318
318
  D.value = {
319
319
  ...D.value,
320
320
  [e.eventType]: { ...e }
321
- }, _.value = _.value.map((t) => t.eventType === e.eventType ? { ...e } : t);
321
+ }, g.value = g.value.map((t) => t.eventType === e.eventType ? { ...e } : t);
322
322
  }
323
323
  function Y(e) {
324
324
  let t = D.value[e.eventType];
@@ -332,50 +332,50 @@ var ue = {
332
332
  }
333
333
  function Q(e) {
334
334
  return {
335
- LOGIN: n.t("platform.screen.BusinessLogRetentionControl.login-audit-logs", "登录日志"),
336
- ACTION: n.t("platform.screen.BusinessLogRetentionControl.action-logs", "动作日志"),
337
- REQUEST_ERROR: n.t("platform.screen.BusinessLogRetentionControl.error-logs", "异常日志"),
338
- PAGE_ACCESS: n.t("platform.screen.BusinessLogRetentionControl.page-access-logs", "页面访问日志")
335
+ LOGIN: r.t("platform.screen.BusinessLogRetentionControl.login-audit-logs", "登录日志"),
336
+ ACTION: r.t("platform.screen.BusinessLogRetentionControl.action-logs", "动作日志"),
337
+ REQUEST_ERROR: r.t("platform.screen.BusinessLogRetentionControl.error-logs", "异常日志"),
338
+ PAGE_ACCESS: r.t("platform.screen.BusinessLogRetentionControl.page-access-logs", "页面访问日志")
339
339
  }[e];
340
340
  }
341
341
  function _e(e) {
342
- return e instanceof Error ? e : new f(te(n, "platform.screen.BusinessLogRetentionControl.failed-to-load-automatic-cleanup-settings", "自动清理设置加载失败。"));
342
+ return e instanceof Error ? e : new v(re(r, "platform.screen.BusinessLogRetentionControl.failed-to-load-automatic-cleanup-settings", "自动清理设置加载失败。"));
343
343
  }
344
344
  function ve(e) {
345
- return e instanceof f ? ne(e, n) : r(ie(e), n);
345
+ return e instanceof v ? ie(e, r) : i(n(e), r);
346
346
  }
347
- return (e, t) => (k(), C(y, null, [z.value ? (k(), x(P(g), {
347
+ return (e, t) => (k(), C(y, null, [z.value ? (k(), x(P(h), {
348
348
  key: 0,
349
349
  onClick: W
350
350
  }, {
351
- default: F(() => [T(N(P(n).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理")), 1)]),
351
+ default: F(() => [T(N(P(r).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理")), 1)]),
352
352
  _: 1
353
- })) : S("v-if", !0), E(P(i), {
354
- open: m.value,
355
- title: P(n).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理"),
356
- subtitle: P(n).t("platform.screen.BusinessLogRetentionControl.configure-automatic-cleanup-and-retention-for-the-current-log-type", "配置当前日志类型的自动清理和保留期限。"),
353
+ })) : S("v-if", !0), E(P(o), {
354
+ open: p.value,
355
+ title: P(r).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理"),
356
+ subtitle: P(r).t("platform.screen.BusinessLogRetentionControl.configure-automatic-cleanup-and-retention-for-the-current-log-type", "配置当前日志类型的自动清理和保留期限。"),
357
357
  width: "standard",
358
358
  scope: "viewport",
359
359
  "before-close": K,
360
- onClose: t[0] ||= (e) => m.value = !1
360
+ onClose: t[0] ||= (e) => p.value = !1
361
361
  }, {
362
- default: F(() => [O.value ? (k(), x(P(s), {
362
+ default: F(() => [O.value ? (k(), x(P(te), {
363
363
  key: 0,
364
- tip: P(n).t("platform.screen.BusinessLogRetentionControl.loading-automatic-cleanup-settings", "加载自动清理设置")
365
- }, null, 8, ["tip"])) : oe.value ? (k(), x(P(o), {
364
+ tip: P(r).t("platform.screen.BusinessLogRetentionControl.loading-automatic-cleanup-settings", "加载自动清理设置")
365
+ }, null, 8, ["tip"])) : oe.value ? (k(), x(P(c), {
366
366
  key: 1,
367
- title: P(n).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup-settings-unavailable", "自动清理设置不可用"),
367
+ title: P(r).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup-settings-unavailable", "自动清理设置不可用"),
368
368
  message: oe.value
369
369
  }, null, 8, ["title", "message"])) : U.value.length === 0 ? (k(), x(P(ae), {
370
370
  key: 2,
371
- description: P(n).t("platform.screen.BusinessLogRetentionControl.no-automatic-cleanup-settings-available", "暂无可管理的自动清理设置")
371
+ description: P(r).t("platform.screen.BusinessLogRetentionControl.no-automatic-cleanup-settings-available", "暂无可管理的自动清理设置")
372
372
  }, null, 8, ["description"])) : (k(), C("section", ue, [(k(!0), C(y, null, j(U.value, (e) => (k(), C("article", { key: e.eventType }, [
373
- w("header", null, [w("div", null, [w("h3", null, N(Q(e.eventType)), 1), e.updatedAt ? (k(), C("small", de, [T(N(P(n).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(n).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理")), 1), E(P(l), {
373
+ w("header", null, [w("div", null, [w("h3", null, N(Q(e.eventType)), 1), e.updatedAt ? (k(), C("small", de, [T(N(P(r).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(r).t("platform.screen.BusinessLogRetentionControl.automatic-cleanup", "自动清理")), 1), E(P(u), {
374
374
  checked: e.automaticCleanupEnabled,
375
375
  "onUpdate:checked": (t) => e.automaticCleanupEnabled = t,
376
376
  disabled: !B.value || H.value,
377
- "checked-text": P(n).t("platform.screen.WorkflowWorkbenchView.enabled", "启用"),
378
- "unchecked-text": P(n).t("platform.screen.WorkflowWorkbenchView.disabled", "停用")
377
+ "checked-text": P(r).t("platform.screen.WorkflowWorkbenchView.enabled", "启用"),
378
+ "unchecked-text": P(r).t("platform.screen.WorkflowWorkbenchView.disabled", "停用")
379
379
  }, null, 8, [
380
380
  "checked",
381
381
  "onUpdate:checked",
@@ -384,42 +384,42 @@ var ue = {
384
384
  "unchecked-text"
385
385
  ])])]),
386
386
  w("div", pe, [w("label", me, [
387
- w("span", null, N(P(n).t("platform.screen.BusinessLogRetentionControl.retention-days", "保留天数")), 1),
388
- w("span", he, [E(P(v), {
387
+ w("span", null, N(P(r).t("platform.screen.BusinessLogRetentionControl.retention-days", "保留天数")), 1),
388
+ w("span", he, [E(P(_), {
389
389
  value: e.retentionDays,
390
390
  type: "number",
391
391
  disabled: !B.value || H.value,
392
- "aria-label": P(n).t("platform.screen.BusinessLogRetentionControl.retention-days-for-value", "{value1}保留天数", { value1: Q(e.eventType) }),
392
+ "aria-label": P(r).t("platform.screen.BusinessLogRetentionControl.retention-days-for-value", "{value1}保留天数", { value1: Q(e.eventType) }),
393
393
  "onUpdate:value": (t) => X(e, t)
394
394
  }, null, 8, [
395
395
  "value",
396
396
  "disabled",
397
397
  "aria-label",
398
398
  "onUpdate:value"
399
- ]), V.value ? (k(), x(P(g), {
399
+ ]), V.value ? (k(), x(P(h), {
400
400
  key: 0,
401
401
  intent: "danger",
402
402
  disabled: H.value || !Z(e.retentionDays),
403
403
  loading: R.value === e.eventType,
404
404
  onClick: (t) => ce(e)
405
405
  }, {
406
- default: F(() => [T(N(P(n).t("platform.screen.BusinessLogRetentionControl.clean-up-now", "立即清理")), 1)]),
406
+ default: F(() => [T(N(P(r).t("platform.screen.BusinessLogRetentionControl.clean-up-now", "立即清理")), 1)]),
407
407
  _: 1
408
408
  }, 8, [
409
409
  "disabled",
410
410
  "loading",
411
411
  "onClick"
412
412
  ])) : S("v-if", !0)]),
413
- Z(e.retentionDays) ? S("v-if", !0) : (k(), C("small", ge, N(P(n).t("platform.screen.BusinessLogRetentionControl.enter-an-integer-from-1-to-36500", "请输入 1 至 36500 之间的整数。")), 1))
413
+ Z(e.retentionDays) ? S("v-if", !0) : (k(), C("small", ge, N(P(r).t("platform.screen.BusinessLogRetentionControl.enter-an-integer-from-1-to-36500", "请输入 1 至 36500 之间的整数。")), 1))
414
414
  ])]),
415
- w("footer", null, [B.value ? (k(), x(P(g), {
415
+ w("footer", null, [B.value ? (k(), x(P(h), {
416
416
  key: 0,
417
417
  emphasis: "primary",
418
418
  disabled: H.value || !Z(e.retentionDays) || !Y(e),
419
419
  loading: L.value === e.eventType,
420
420
  onClick: (t) => q(e)
421
421
  }, {
422
- default: F(() => [T(N(P(n).t("platform.action.save", "保存")), 1)]),
422
+ default: F(() => [T(N(P(r).t("platform.action.save", "保存")), 1)]),
423
423
  _: 1
424
424
  }, 8, [
425
425
  "disabled",
@@ -449,7 +449,7 @@ var ue = {
449
449
  }, be = {
450
450
  key: 1,
451
451
  class: "business-log-list__detail"
452
- }, xe = /*#__PURE__*/ p(/* @__PURE__ */ D({
452
+ }, xe = /*#__PURE__*/ f(/* @__PURE__ */ D({
453
453
  name: "BusinessLogListDrawer",
454
454
  __name: "BusinessLogListDrawer",
455
455
  props: {
@@ -458,7 +458,7 @@ var ue = {
458
458
  title: {}
459
459
  },
460
460
  setup(t) {
461
- let a = ee(), c = t, l = re({ moduleAlias: c.moduleAlias }), u = oe(l.http, c.surface), p = {
461
+ let a = ne(), s = t, l = ee({ moduleAlias: s.moduleAlias }), u = oe(l.http, s.surface), f = {
462
462
  get title() {
463
463
  return a.t("platform.screen.BusinessLogListDrawer.select-an-operator", "选择操作用户");
464
464
  },
@@ -469,13 +469,13 @@ var ue = {
469
469
  return a.t("platform.screen.UserPicker.searchPlaceholder", "按账号或用户 ID 搜索");
470
470
  },
471
471
  mode: "dialog",
472
- columns: m,
472
+ columns: p,
473
473
  provider: e({
474
474
  sourceIdentity: {
475
475
  targetModuleAlias: "iam.user",
476
476
  source: {
477
477
  kind: "businessPurpose",
478
- id: `${c.moduleAlias}:operators`
478
+ id: `${s.moduleAlias}:operators`
479
479
  }
480
480
  },
481
481
  searchPage: async ({ keyword: e, pageNum: t, pageSize: n, scope: r }) => {
@@ -493,17 +493,17 @@ var ue = {
493
493
  },
494
494
  resolveUsers: async (e) => (await u.operatorCandidates({ selectedIds: e })).selectedRecords
495
495
  })
496
- }, 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[c.surface]), J = b(() => c.surface === "activity"), Y = b(() => c.surface === "request-error"), X = b(() => ({
496
+ }, m = A(), _ = 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(() => ({
497
497
  login: ["LOGIN"],
498
498
  activity: ["ACTION", "PAGE_ACCESS"],
499
499
  "request-error": ["REQUEST_ERROR"]
500
- })[c.surface]), le = b(() => l.can("viewInternalDiagnostic") === !0), ue = b(() => ce.value.columns), de = b(() => h.value ? Oe(h.value) : []), fe = b(() => Ne(L.value)), pe = b(() => [...ke(a.t("platform.workflow-task-editor.business-action", "业务动作"), H.value), ...ke(a.t("platform.screen.BusinessLogListDrawer.page-access", "页面访问"), U.value)]), me = b(() => H.value?.complete === !1 || U.value?.complete === !1);
500
+ })[s.surface]), le = b(() => l.can("viewInternalDiagnostic") === !0), ue = b(() => ce.value.columns), de = b(() => m.value ? Oe(m.value) : []), fe = b(() => Ne(L.value)), pe = b(() => [...ke(a.t("platform.workflow-task-editor.business-action", "业务动作"), H.value), ...ke(a.t("platform.screen.BusinessLogListDrawer.page-access", "页面访问"), U.value)]), me = b(() => H.value?.complete === !1 || U.value?.complete === !1);
501
501
  async function he(e) {
502
502
  let t = e, n = t.eventId;
503
503
  if (n) {
504
- h.value = t, D.value = void 0, L.value = void 0, z.value = void 0, v.value = !0;
504
+ m.value = t, D.value = void 0, L.value = void 0, z.value = void 0, _.value = !0;
505
505
  try {
506
- h.value = await u.detail(n);
506
+ m.value = await u.detail(n);
507
507
  } catch (e) {
508
508
  D.value = Fe(e), d(e, {
509
509
  language: a,
@@ -511,7 +511,7 @@ var ue = {
511
511
  phase: "load"
512
512
  });
513
513
  } finally {
514
- v.value = !1;
514
+ _.value = !1;
515
515
  }
516
516
  }
517
517
  }
@@ -533,7 +533,7 @@ var ue = {
533
533
  }
534
534
  }
535
535
  async function xe() {
536
- let e = h.value?.eventId;
536
+ let e = m.value?.eventId;
537
537
  if (u.diagnostic && e && !R.value) {
538
538
  R.value = !0, z.value = void 0;
539
539
  try {
@@ -562,7 +562,7 @@ var ue = {
562
562
  };
563
563
  }
564
564
  function we(e) {
565
- return e.name === "operatorId" ? p : void 0;
565
+ return e.name === "operatorId" ? f : void 0;
566
566
  }
567
567
  function Te(e, t) {
568
568
  switch (e) {
@@ -659,7 +659,7 @@ var ue = {
659
659
  return e == null || e === "" ? "—" : typeof e == "string" ? e : JSON.stringify(e, null, 2);
660
660
  }
661
661
  function Fe(e) {
662
- return e instanceof Error ? e : new f(te(a, "platform.screen.BusinessLogListDrawer.the-request-did-not-complete-try-again-later", "请求未完成,请稍后重试。"));
662
+ return e instanceof Error ? e : new v(re(a, "platform.screen.BusinessLogListDrawer.the-request-did-not-complete-try-again-later", "请求未完成,请稍后重试。"));
663
663
  }
664
664
  let Ie = b(() => ({
665
665
  login: { columns: [
@@ -745,10 +745,10 @@ var ue = {
745
745
  ] }
746
746
  }));
747
747
  function Le(e) {
748
- return e instanceof f ? ne(e, a) : r(ie(e), a);
748
+ return e instanceof v ? ie(e, a) : i(n(e), a);
749
749
  }
750
- return (e, r) => (k(), C(y, null, [
751
- E(P(_), {
750
+ return (e, n) => (k(), C(y, null, [
751
+ E(P(g), {
752
752
  class: "business-log-list",
753
753
  context: P(l),
754
754
  title: t.title,
@@ -770,7 +770,7 @@ var ue = {
770
770
  onRowAction: Me,
771
771
  onQueried: Se
772
772
  }, {
773
- operations: F(() => [J.value ? (k(), x(P(g), {
773
+ operations: F(() => [J.value ? (k(), x(P(h), {
774
774
  key: 0,
775
775
  loading: W.value,
776
776
  onClick: ge
@@ -778,7 +778,7 @@ var ue = {
778
778
  default: F(() => [T(N(P(a).t("platform.screen.BusinessLogListDrawer.usage-statistics", "使用统计")), 1)]),
779
779
  _: 1
780
780
  }, 8, ["loading"])) : S("v-if", !0), E(Z, { "event-types": X.value }, null, 8, ["event-types"])]),
781
- cell: F(({ column: e, record: t }) => [e.key === "occurredAt" ? (k(), x(P(n), {
781
+ cell: F(({ column: e, record: t }) => [e.key === "occurredAt" ? (k(), x(P(r), {
782
782
  key: 0,
783
783
  value: t.occurredAt
784
784
  }, null, 8, ["value"])) : (k(), C("span", {
@@ -793,26 +793,26 @@ var ue = {
793
793
  "empty-description",
794
794
  "row-actions-title"
795
795
  ]),
796
- E(P(i), {
797
- open: !!h.value,
796
+ E(P(o), {
797
+ open: !!m.value,
798
798
  title: P(a).t("platform.screen.BusinessLogListDrawer.value-details", "{value1}详情", { value1: t.title }),
799
799
  "render-mode": "inline",
800
- subtitle: h.value ? h.value.operatorIdentity?.employeeName ?? h.value.operatorIdentity?.username ?? h.value.operatorId : void 0,
800
+ subtitle: m.value ? m.value.operatorIdentity?.employeeName ?? m.value.operatorIdentity?.username ?? m.value.operatorId : void 0,
801
801
  "close-on-outside": !0,
802
- onClose: r[0] ||= (e) => h.value = void 0
802
+ onClose: n[0] ||= (e) => m.value = void 0
803
803
  }, {
804
- default: F(() => [v.value ? (k(), x(P(s), {
804
+ default: F(() => [_.value ? (k(), x(P(te), {
805
805
  key: 0,
806
806
  tip: P(a).t("platform.screen.BusinessLogListDrawer.loading-details", "加载详情")
807
- }, null, 8, ["tip"])) : I.value ? (k(), x(P(o), {
807
+ }, null, 8, ["tip"])) : I.value ? (k(), x(P(c), {
808
808
  key: 1,
809
809
  title: P(a).t("platform.screen.BusinessLogListDrawer.failed-to-load-log-details", "日志详情加载失败"),
810
810
  message: I.value
811
- }, 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(ae), {
811
+ }, null, 8, ["title", "message"])) : m.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(ae), {
812
812
  key: 3,
813
813
  description: P(a).t("platform.screen.BusinessLogListDrawer.no-log-selected", "未选择日志")
814
- }, null, 8, ["description"])), Y.value && h.value && le.value ? (k(), C("section", _e, [
815
- E(P(g), {
814
+ }, null, 8, ["description"])), Y.value && m.value && le.value ? (k(), C("section", _e, [
815
+ E(P(h), {
816
816
  loading: R.value,
817
817
  onClick: xe
818
818
  }, {
@@ -820,7 +820,7 @@ var ue = {
820
820
  _: 1
821
821
  }, 8, ["loading"]),
822
822
  w("small", null, N(P(a).t("platform.screen.BusinessLogListDrawer.only-administrators-with-platform-wide-scope-can-view-this-information", "仅具备平台范围的管理员可查看。")), 1),
823
- B.value ? (k(), x(P(o), {
823
+ B.value ? (k(), x(P(c), {
824
824
  key: 0,
825
825
  title: P(a).t("platform.screen.BusinessLogListDrawer.internal-diagnostics-unavailable", "内部诊断不可用"),
826
826
  message: B.value
@@ -832,18 +832,18 @@ var ue = {
832
832
  "title",
833
833
  "subtitle"
834
834
  ]),
835
- E(P(i), {
835
+ E(P(o), {
836
836
  open: V.value,
837
837
  title: P(a).t("platform.screen.BusinessLogListDrawer.business-activity-usage-statistics", "业务活动使用统计"),
838
838
  "render-mode": "inline",
839
839
  subtitle: P(a).t("platform.screen.BusinessLogListDrawer.statistics-follow-the-current-query-criteria-and-the-signed-in", "统计口径遵循当前标准查询条件与登录账号的数据范围。"),
840
840
  "close-on-outside": !0,
841
- onClose: r[1] ||= (e) => V.value = !1
841
+ onClose: n[1] ||= (e) => V.value = !1
842
842
  }, {
843
- default: F(() => [W.value ? (k(), x(P(s), {
843
+ default: F(() => [W.value ? (k(), x(P(te), {
844
844
  key: 0,
845
845
  tip: P(a).t("platform.screen.BusinessLogListDrawer.loading-usage-statistics", "加载使用统计")
846
- }, null, 8, ["tip"])) : K.value ? (k(), x(P(o), {
846
+ }, null, 8, ["tip"])) : K.value ? (k(), x(P(c), {
847
847
  key: 1,
848
848
  title: P(a).t("platform.screen.BusinessLogListDrawer.failed-to-load-usage-statistics", "使用统计加载失败"),
849
849
  message: K.value