@ximatai/muyun-web-app 0.26.15 → 0.26.17

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 (295) hide show
  1. package/dist/BusinessActivityLogView-9RrW-RKb.js +18 -0
  2. package/dist/BusinessLogListDrawer-DYVx9tiQ.js +864 -0
  3. package/dist/ConfigurationTranslationView-Bh_ekuMP.js +197 -0
  4. package/dist/LoginAuditLogView-DG6iBXEn.js +18 -0
  5. package/dist/ModuleActionManagementView-DgHqhoMN.js +755 -0
  6. package/dist/{ModuleGovernanceView-LkWCtops.js → ModuleGovernanceView-C53RnUzc.js} +6903 -6493
  7. package/dist/RequestErrorLogView-Ba5p0hLE.js +18 -0
  8. package/dist/RoleDetailWorkspaceView-C3TBqksY.js +1435 -0
  9. package/dist/RuntimeLogView-BFEABm8G.js +316 -0
  10. package/dist/WorkflowAdministrationView-BOHG2e-I.js +650 -0
  11. package/dist/WorkflowConfigurationView-A0m5tBX9.js +1097 -0
  12. package/dist/WorkflowWorkbenchView-DGpNDt5V.js +759 -0
  13. package/dist/es-BST-ixpj.js +22621 -0
  14. package/dist/index.css +1 -1
  15. package/dist/index.js +874 -741
  16. package/dist/moduleGovernanceWorkspaceView-DNKzYX0x.js +667 -0
  17. package/dist/platform-components-BBfyINHa.js +29912 -0
  18. package/dist/{platform-workbench-C-kE-Yqq.js → platform-workbench-C1hmkOUD.js} +7960 -7561
  19. package/dist/rolldown-runtime-BAC7EHh5.js +20 -0
  20. package/dist/types/app/ChangeOwnPasswordDialog.vue.d.ts +1 -1
  21. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +2 -2
  22. package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +3 -0
  23. package/dist/types/app/businessNotificationNavigation.d.ts +4 -0
  24. package/dist/types/app/menuRouteCompiler.d.ts +3 -0
  25. package/dist/types/app/platformMessage.d.ts +3 -6
  26. package/dist/types/app/themeSkinPreference.d.ts +3 -2
  27. package/dist/types/app/useAssistantAvailability.d.ts +8 -0
  28. package/dist/types/app/useCurrentUserProfile.d.ts +12 -0
  29. package/dist/types/app/workbenchRouteSync.d.ts +2 -0
  30. package/dist/types/app/workbenchStartup.d.ts +8 -4
  31. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -3
  32. package/dist/types/consumer/index.d.ts +3 -1
  33. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -1
  34. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -1
  35. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +54 -1310
  36. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
  37. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +611 -1712
  38. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -1
  39. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +15 -1
  40. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +1 -1
  41. package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +1 -1
  42. package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +1 -1
  43. package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +1 -1
  44. package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +1 -0
  45. package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +2 -2
  46. package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +4 -3
  47. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +11 -1303
  48. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -1
  49. package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +1 -1
  50. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +13 -4
  51. package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +3 -10
  52. package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +2 -1
  53. package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +2 -1
  54. package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +2 -1
  55. package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +2 -1
  56. package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +7 -3
  57. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +5 -4
  58. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +3 -0
  59. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +1 -1
  60. package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +1 -1
  61. package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +2 -1
  62. package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +2 -2
  63. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +39 -1307
  64. package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +17 -0
  65. package/dist/types/main.d.ts +0 -1
  66. package/dist/types/platform-admin-runtime/backendHttp.d.ts +2 -1
  67. package/dist/types/platform-admin-runtime/index.d.ts +3 -1
  68. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +4 -4
  69. package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +2 -1
  70. package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +11 -7
  71. package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +16 -7
  72. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +4 -3
  73. package/dist/types/platform-admin-runtime/pageRealtime.d.ts +0 -1
  74. package/dist/types/platform-admin-runtime/realtime.d.ts +0 -3
  75. package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +4 -1
  76. package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +3 -1
  77. package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +2 -0
  78. package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +1 -5
  79. package/dist/types/platform-components/BusinessContentGenerationPanel.vue.d.ts +22 -0
  80. package/dist/types/platform-components/BusinessContentQueryNotice.vue.d.ts +17 -0
  81. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +34 -1
  82. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +6 -6
  83. package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
  84. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
  85. package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +4 -4
  86. package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +1 -1
  87. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +6 -6
  88. package/dist/types/platform-components/FileSizeText.vue.d.ts +1 -1
  89. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  90. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +7 -7
  91. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
  92. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -2
  93. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +1 -1
  94. package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +3 -3
  95. package/dist/types/platform-components/QueryValueEditor.vue.d.ts +1 -1
  96. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  97. package/dist/types/platform-components/RecordContentSourceField.vue.d.ts +22 -0
  98. package/dist/types/platform-components/RecordContentTranslationField.vue.d.ts +26 -0
  99. package/dist/types/platform-components/RecordDataExchangeSurface.vue.d.ts +26 -0
  100. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +2 -2
  101. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +4 -3
  102. package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +2 -2
  103. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +1 -1
  104. package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -4
  105. package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +1 -1
  106. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
  107. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -4
  108. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  109. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +1 -1
  110. package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +1 -1
  111. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  112. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -0
  113. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +7 -7
  114. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +3 -3
  115. package/dist/types/{dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts → platform-components/RecordQuerySortSelector.vue.d.ts} +5 -9
  116. package/dist/types/platform-components/RecordRelationValue.vue.d.ts +2 -0
  117. package/dist/types/platform-components/ReferencePicker.vue.d.ts +3 -3
  118. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +1 -1
  119. package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +1 -1
  120. package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +1 -1
  121. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +7 -2
  122. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -5
  123. package/dist/types/platform-components/UserPicker.vue.d.ts +2 -2
  124. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
  125. package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +36 -0
  126. package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +40 -0
  127. package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +24 -0
  128. package/dist/types/platform-components/WorkflowParticipantEditor.vue.d.ts +18 -0
  129. package/dist/types/platform-components/WorkflowRecordPanel.vue.d.ts +32 -0
  130. package/dist/types/platform-components/WorkflowTimeline.vue.d.ts +23 -0
  131. package/dist/types/platform-components/crudRecordListModel.d.ts +3 -1
  132. package/dist/types/platform-components/fileTransferUpload.d.ts +10 -0
  133. package/dist/types/platform-components/index.d.ts +9 -2
  134. package/dist/types/platform-components/loadExplorerRecords.d.ts +3 -0
  135. package/dist/types/platform-components/optionFieldOptions.d.ts +7 -2
  136. package/dist/types/platform-components/platformDateTime.d.ts +2 -0
  137. package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -1
  138. package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +10 -2
  139. package/dist/types/platform-components/recordActionBarModel.d.ts +4 -1
  140. package/dist/types/platform-components/recordDetailFieldModel.d.ts +4 -0
  141. package/dist/types/platform-components/recordFormFieldModel.d.ts +5 -3
  142. package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -1
  143. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +5 -1
  144. package/dist/types/platform-components/recordQueryListQueryController.d.ts +2 -0
  145. package/dist/types/platform-components/recordSurfaceActivity.d.ts +3 -0
  146. package/dist/types/platform-components/recycleBinState.d.ts +4 -2
  147. package/dist/types/platform-components/referencePickerModel.d.ts +13 -1
  148. package/dist/types/platform-components/referencePickerReadError.d.ts +11 -3
  149. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +2 -2
  150. package/dist/types/platform-components/scopedTreePickerModel.d.ts +4 -0
  151. package/dist/types/platform-components/softDeletedConflictHandler.d.ts +3 -1
  152. package/dist/types/platform-components/staticCrudManagementState.d.ts +9 -8
  153. package/dist/types/platform-components/treeRecordModel.d.ts +2 -1
  154. package/dist/types/platform-components/userSessionPresentation.d.ts +4 -3
  155. package/dist/types/platform-components/workflowAccountOptions.d.ts +4 -0
  156. package/dist/types/platform-components/workflowDesignEditing.d.ts +11 -0
  157. package/dist/types/platform-components/workflowDiagramModel.d.ts +41 -0
  158. package/dist/types/platform-components/workflowParticipantPolicy.d.ts +11 -0
  159. package/dist/types/platform-components/workflowPresentation.d.ts +11 -0
  160. package/dist/types/platform-workbench/LanguageSelector.vue.d.ts +6 -0
  161. package/dist/types/platform-workbench/Workbench.vue.d.ts +10 -5
  162. package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +1 -1
  163. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +16 -0
  164. package/dist/types/platform-workbench/WorkbenchLanguageSettings.vue.d.ts +11 -0
  165. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
  166. package/dist/types/platform-workbench/WorkbenchPageTitle.vue.d.ts +10 -0
  167. package/dist/types/platform-workbench/assistantControlText.d.ts +19 -0
  168. package/dist/types/platform-workbench/configurationCollaboration.d.ts +2 -2
  169. package/dist/types/platform-workbench/constructionDelivery.d.ts +2 -2
  170. package/dist/types/platform-workbench/constructionFields.d.ts +2 -2
  171. package/dist/types/platform-workbench/constructionInitialization.d.ts +2 -2
  172. package/dist/types/platform-workbench/constructionPlanGuard.d.ts +2 -1
  173. package/dist/types/platform-workbench/constructionPlanSession.d.ts +12 -4
  174. package/dist/types/platform-workbench/constructionPresentation.d.ts +6 -0
  175. package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +2 -2
  176. package/dist/types/platform-workbench/index.d.ts +2 -1
  177. package/dist/types/platform-workbench/menuGroupLayout.d.ts +5 -0
  178. package/dist/types/platform-workbench/menuNavigation.d.ts +7 -3
  179. package/dist/types/platform-workbench/menuTreeModel.d.ts +3 -3
  180. package/dist/types/platform-workbench/realtimeStatus.d.ts +2 -1
  181. package/dist/types/platform-workbench/useAssistantConversation.d.ts +106 -14
  182. package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +7 -14
  183. package/dist/types/platform-workbench/useLanguagePreferenceSelection.d.ts +7 -0
  184. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -5
  185. package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -2
  186. package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -0
  187. package/dist/types/platform-workbench/workspaceViewContract.d.ts +4 -0
  188. package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +5 -0
  189. package/dist/types/platform-workbench/workspaceViewHost.d.ts +1 -1
  190. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +1 -1
  191. package/dist/types/platform-workbench/workspaceViews.d.ts +3 -2
  192. package/dist/types/views/ConfigurationTranslationView.vue.d.ts +3 -0
  193. package/dist/types/views/MetadataSourceTree.vue.d.ts +0 -2
  194. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +2 -2
  195. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +6 -6
  196. package/dist/types/views/RoleAuthorizationView.vue.d.ts +1 -1
  197. package/dist/types/views/WorkflowAdministrationView.vue.d.ts +3 -0
  198. package/dist/types/views/WorkflowConfigurationView.vue.d.ts +7 -0
  199. package/dist/types/views/WorkflowSelectionFields.vue.d.ts +28 -0
  200. package/dist/types/views/WorkflowWorkbenchView.vue.d.ts +3 -0
  201. package/dist/types/views/businessLogClient.d.ts +5 -2
  202. package/dist/types/views/businessRuleAssistantSurface.d.ts +3 -3
  203. package/dist/types/views/businessRuleEditor.d.ts +2 -1
  204. package/dist/types/views/businessRuleGovernance.d.ts +14 -4
  205. package/dist/types/views/businessRuleSession.d.ts +4 -3
  206. package/dist/types/views/businessRuleWorkspace.d.ts +6 -2
  207. package/dist/types/views/configurationEditorNavigation.d.ts +2 -1
  208. package/dist/types/views/configurationTranslationWorkspace.d.ts +69 -0
  209. package/dist/types/views/dictionaryRadioEligibility.d.ts +2 -1
  210. package/dist/types/views/metadataChangeSetSubmission.d.ts +4 -3
  211. package/dist/types/views/metadataEditorSession.d.ts +19 -9
  212. package/dist/types/views/metadataGovernanceEditor.d.ts +4 -0
  213. package/dist/types/views/metadataModelEditSession.d.ts +3 -2
  214. package/dist/types/views/metadataModelTree.d.ts +2 -1
  215. package/dist/types/views/metadataNaming.d.ts +5 -2
  216. package/dist/types/views/metadataOrchestrationState.d.ts +13 -9
  217. package/dist/types/views/metadataSourceTree.d.ts +3 -2
  218. package/dist/types/views/metadataWorkspace.d.ts +34 -19
  219. package/dist/types/views/moduleRuntimeActivation.d.ts +3 -3
  220. package/dist/types/views/pageCompositionAssistantSurface.d.ts +2 -0
  221. package/dist/types/views/pageCompositionCandidate.d.ts +2 -1
  222. package/dist/types/views/pageCompositionComponents.d.ts +5 -4
  223. package/dist/types/views/pageCompositionDraftState.d.ts +21 -7
  224. package/dist/types/views/pageCompositionMode.d.ts +26 -2
  225. package/dist/types/views/pageCompositionPublication.d.ts +2 -0
  226. package/dist/types/views/pageCompositionSession.d.ts +48 -15
  227. package/dist/types/views/pageCompositionWorkspace.d.ts +90 -29
  228. package/dist/types/views/runtimeLogClient.d.ts +2 -2
  229. package/dist/types/views/usePageCompositionComponents.d.ts +2 -1
  230. package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +5 -0
  231. package/dist/types/vue-ui-antdv/blockingOverlays.d.ts +9 -0
  232. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
  233. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +2 -2
  234. package/dist/types/vue-ui-antdv/components/UiDropdown.vue.d.ts +1 -0
  235. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  236. package/dist/types/vue-ui-antdv/components/UiLanguageProvider.vue.d.ts +18 -0
  237. package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +10 -7
  238. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
  239. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +1 -1
  240. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  241. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +3 -0
  242. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +7 -7
  243. package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +7 -7
  244. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +1 -1
  245. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  246. package/dist/types/vue-ui-antdv/confirm.d.ts +3 -2
  247. package/dist/types/vue-ui-antdv/index.d.ts +3 -0
  248. package/dist/types/vue-ui-antdv/languageGlobalScope.d.ts +3 -0
  249. package/dist/types/vue-ui-antdv/languageLocales.d.ts +4 -0
  250. package/dist/types/vue-ui-antdv/theme.d.ts +2 -0
  251. package/dist/types/vue-ui-antdv/types.d.ts +4 -0
  252. package/dist/types/vue-ui-antdv/typography.d.ts +25 -0
  253. package/dist/types/web-contracts/constructionPlan.d.ts +4 -3
  254. package/dist/types/web-contracts/index.d.ts +177 -0
  255. package/dist/types/web-contracts/workflow.d.ts +356 -0
  256. package/dist/types/web-core/actionResult.d.ts +3 -0
  257. package/dist/types/web-core/assistantConfirmation.d.ts +3 -2
  258. package/dist/types/web-core/assistantConversationClient.d.ts +8 -0
  259. package/dist/types/web-core/assistantSurface.d.ts +4 -3
  260. package/dist/types/web-core/assistantTurnClient.d.ts +2 -0
  261. package/dist/types/web-core/businessContent.d.ts +38 -0
  262. package/dist/types/web-core/businessContentLanguage.d.ts +18 -0
  263. package/dist/types/web-core/errors.d.ts +8 -4
  264. package/dist/types/web-core/index.d.ts +11 -0
  265. package/dist/types/web-core/language.d.ts +54 -0
  266. package/dist/types/web-core/languagePreference.d.ts +8 -0
  267. package/dist/types/web-core/module/dataExchangeClient.d.ts +85 -2
  268. package/dist/types/web-core/module/index.d.ts +1 -0
  269. package/dist/types/web-core/module/moduleContext.d.ts +4 -0
  270. package/dist/types/web-core/module/pageActionEntries.d.ts +3 -2
  271. package/dist/types/web-core/module/runtimeContext.d.ts +15 -2
  272. package/dist/types/web-core/module/staticModuleClient.d.ts +9 -3
  273. package/dist/types/web-core/operationConfirmation.d.ts +5 -1
  274. package/dist/types/web-core/operationErrors.d.ts +15 -1
  275. package/dist/types/web-core/presentationTexts.d.ts +21 -0
  276. package/dist/types/web-core/recordReadRefreshGuard.d.ts +7 -0
  277. package/dist/types/web-core/sha256.d.ts +2 -0
  278. package/dist/types/web-core/useBusinessContentGenerationBatch.d.ts +36 -0
  279. package/dist/types/web-core/useBusinessContentReading.d.ts +30 -0
  280. package/dist/types/web-core/workflow.d.ts +71 -0
  281. package/dist/types/web-core/workspaceUnsavedState.d.ts +6 -0
  282. package/dist/workspaceViews-BpH71LKQ.js +3437 -0
  283. package/package.json +2 -4
  284. package/dist/BusinessActivityLogView-DVzrZW1X.js +0 -16
  285. package/dist/BusinessLogListDrawer-D-R3wnWr.js +0 -825
  286. package/dist/LoginAuditLogView-BP1eaEPw.js +0 -16
  287. package/dist/ModuleActionManagementView-D17iKVQv.js +0 -691
  288. package/dist/RequestErrorLogView-LzN94-Tk.js +0 -16
  289. package/dist/RoleDetailWorkspaceView-BXA-bzFu.js +0 -1406
  290. package/dist/RuntimeLogView-DUpu2q2w.js +0 -297
  291. package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +0 -639
  292. package/dist/platform-components-Hs3DrTqE.js +0 -19770
  293. package/dist/rolldown-runtime-DPVXH0ON.js +0 -17
  294. package/dist/sse-Q1wa3p_k.js +0 -187
  295. package/dist/workspaceViews-CHsgLFwY.js +0 -3217
@@ -1,825 +0,0 @@
1
- import { $t as e, A as t, Dn as n, Jt as r, Kt as i, Pn as a, Qt as o, Vt as s, Xt as c, Yt as l, bn as ee, cn as u, ht as d, m as f, p, rn as m, wn as h } from "./platform-components-Hs3DrTqE.js";
2
- import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeClass as T, openBlock as E, ref as D, renderList as O, toDisplayString as k, unref as A, withCtx as j } from "vue";
3
- //#region src/views/businessLogClient.ts
4
- var M = {
5
- activity: "/platform.business_activity_log",
6
- "request-error": "/platform.request_error_log",
7
- login: "/iam.login_audit_log"
8
- };
9
- function N(e, t) {
10
- let n = M[t];
11
- return {
12
- async detail(t) {
13
- return R(await e.request({ path: `${n}/${encodeURIComponent(t)}` }));
14
- },
15
- async operatorCandidates(t) {
16
- return P(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) => B(await e.request({
34
- method: "POST",
35
- path: `${n}/statistics/actions`,
36
- body: t
37
- })),
38
- pageAccessStatistics: async (t) => B(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 W(W(r).diagnostic ?? r);
47
- } } : {}
48
- };
49
- }
50
- function P(e) {
51
- let t = W(e);
52
- return {
53
- records: L(t.records),
54
- selectedRecords: L(t.selectedRecords),
55
- total: q(t.total),
56
- navigation: F(t.navigation)
57
- };
58
- }
59
- function F(e) {
60
- let t = W(e);
61
- if (Object.keys(t).length) return {
62
- showTenantNavigation: J(t.showTenantNavigation) === !0,
63
- tenants: I(t.tenants),
64
- organizations: I(t.organizations),
65
- departments: I(t.departments)
66
- };
67
- }
68
- function I(e) {
69
- return Array.isArray(e) ? e.flatMap((e) => {
70
- let t = W(e), n = K(t.id);
71
- return n ? [{
72
- id: n,
73
- title: K(t.title) ?? n,
74
- tenantId: K(t.tenantId),
75
- organizationId: K(t.organizationId)
76
- }] : [];
77
- }) : [];
78
- }
79
- function L(e) {
80
- if (!Array.isArray(e)) return [];
81
- let t = [];
82
- for (let n of e) {
83
- let e = W(n), r = K(e.id);
84
- if (!r) continue;
85
- let i = {
86
- id: r,
87
- title: K(e.title) ?? r
88
- };
89
- [
90
- "account",
91
- "employeeName",
92
- "organizationId",
93
- "organizationName",
94
- "departmentId",
95
- "departmentName"
96
- ].forEach((t) => {
97
- let n = K(e[t]);
98
- n && (i[t] = n);
99
- }), t.push(i);
100
- }
101
- return t;
102
- }
103
- function R(e) {
104
- let t = W(e), n = W(t.event ?? t.record ?? e);
105
- return {
106
- ...n,
107
- eventId: K(n.eventId ?? n.id) ?? "",
108
- eventType: K(n.eventType ?? n.type) ?? "",
109
- occurredAt: K(n.occurredAt),
110
- capturedAt: K(n.capturedAt),
111
- traceId: K(n.traceId),
112
- tenantId: K(n.tenantId),
113
- operatorId: K(n.operatorId),
114
- operatorOrganizationId: K(n.operatorOrganizationId),
115
- operatorIdentity: U(n),
116
- moduleAlias: K(n.moduleAlias),
117
- actionCode: K(n.actionCode),
118
- entityAlias: K(n.entityAlias ?? W(n.details).entityAlias),
119
- recordId: K(n.recordId ?? W(n.details).recordId),
120
- mutationSource: K(n.mutationSource ?? W(n.details).mutationSource),
121
- outcome: K(n.outcome ?? n.result ?? W(n.details).outcome),
122
- loginAccount: z(n, W(n.details)),
123
- summary: V(n, W(n.details)),
124
- details: G(n.details)
125
- };
126
- }
127
- function z(e, t) {
128
- return K(e.loginAccount) ?? K(t.confirmedAccount) ?? K(t.claimedAccount);
129
- }
130
- function B(e) {
131
- let t = W(e);
132
- return Array.isArray(t.pages) ? {
133
- items: t.pages.map((e) => {
134
- let t = W(e);
135
- return {
136
- key: K(t.pageKey) ?? "unknown-page",
137
- title: K(t.pageKey) ?? "未知页面",
138
- count: q(t.accessCount)
139
- };
140
- }),
141
- complete: J(t.complete)
142
- } : {
143
- items: [
144
- ["executionCount", "执行次数"],
145
- ["successCount", "成功次数"],
146
- ["failureCount", "失败次数"],
147
- ["rejectedCount", "拒绝次数"],
148
- ["knownDurationCount", "含耗时记录数"],
149
- ["totalDurationMillis", "累计耗时(毫秒)"],
150
- ["knownAffectedRecordCount", "含影响数记录数"],
151
- ["totalAffectedRecordCount", "累计影响记录数"]
152
- ].map(([e, n]) => ({
153
- key: e,
154
- title: n,
155
- count: q(t[e])
156
- })),
157
- complete: J(t.complete)
158
- };
159
- }
160
- function V(e, t) {
161
- return K(e.summary ?? e.message ?? e.description) ?? H(t.message) ?? H(t.responseSummary) ?? K(t.reasonCode) ?? K(t.failureStage) ?? K(t.pageKey) ?? K(t.errorCode) ?? K(t.authenticationMethod);
162
- }
163
- function H(e) {
164
- return K(e) ?? K(W(e).value);
165
- }
166
- function U(e) {
167
- let t = W(e.operatorIdentity), n = K(t.employeeName), r = K(t.username), i = K(t.organizationId), a = K(t.organizationName), o = K(t.departmentId), s = K(t.departmentName);
168
- return n || r || i || a || o || s ? {
169
- employeeName: n,
170
- username: r,
171
- organizationId: i,
172
- organizationName: a,
173
- departmentId: o,
174
- departmentName: s
175
- } : void 0;
176
- }
177
- function W(e) {
178
- return typeof e == "object" && e && !Array.isArray(e) ? e : {};
179
- }
180
- function G(e) {
181
- let t = W(e);
182
- return Object.keys(t).length > 0 ? t : void 0;
183
- }
184
- function K(e) {
185
- return typeof e == "string" && e.length > 0 ? e : void 0;
186
- }
187
- function q(e) {
188
- return typeof e == "number" && Number.isFinite(e) ? e : 0;
189
- }
190
- function J(e) {
191
- return typeof e == "boolean" ? e : void 0;
192
- }
193
- //#endregion
194
- //#region src/views/businessLogRetentionClient.ts
195
- function te(e) {
196
- let t = "/platform.business_log_retention";
197
- return {
198
- async policies() {
199
- let n = await e.request({ path: `${t}/policies` });
200
- return Array.isArray(n) ? n : [];
201
- },
202
- async update(n) {
203
- return await e.request({
204
- method: "POST",
205
- path: `${t}/policies/${n.eventType}`,
206
- body: {
207
- automaticCleanupEnabled: n.automaticCleanupEnabled,
208
- retentionDays: n.retentionDays,
209
- version: n.version
210
- }
211
- });
212
- },
213
- async purge(n, r) {
214
- return await e.request({
215
- method: "POST",
216
- path: `${t}/policies/${n}/purge`,
217
- body: { retentionDays: r }
218
- });
219
- }
220
- };
221
- }
222
- //#endregion
223
- //#region src/views/BusinessLogRetentionControl.vue?vue&type=script&setup=true&lang.ts
224
- var ne = {
225
- key: 3,
226
- class: "business-log-retention-control__policies"
227
- }, Y = { key: 0 }, re = { class: "business-log-retention-control__automatic-cleanup" }, X = { class: "business-log-retention-control__content" }, ie = { class: "business-log-retention-control__retention-days" }, ae = { class: "business-log-retention-control__retention-row" }, oe = {
228
- key: 0,
229
- class: "business-log-retention-control__validation"
230
- }, se = /*#__PURE__*/ n(/* @__PURE__ */ w({
231
- name: "BusinessLogRetentionControl",
232
- __name: "BusinessLogRetentionControl",
233
- props: { eventTypes: {} },
234
- setup(t) {
235
- let n = t, i = a({
236
- moduleAlias: "platform.business_log_retention",
237
- runtimeAccess: "VIEW"
238
- }), f = te(i.http), p = D(!1), w = D([]), T = D({}), M = D(!1), N = D(), P = D(), F = D(), I = _(() => i.can("viewRetentionPolicies") === !0), L = _(() => i.can("configureRetentionPolicy") === !0), R = _(() => i.can("purgeExpiredLogs") === !0), z = _(() => P.value !== void 0 || F.value !== void 0), B = _(() => {
239
- let e = new Set(n.eventTypes);
240
- return w.value.filter((t) => e.has(t.eventType));
241
- }), V = _(() => B.value.some(J));
242
- async function H() {
243
- I.value && (p.value = !0, await U());
244
- }
245
- async function U() {
246
- M.value = !0, N.value = void 0;
247
- try {
248
- let e = await f.policies(), t = new Set(n.eventTypes), r = e.filter((e) => t.has(e.eventType));
249
- w.value = r.map((e) => ({ ...e })), T.value = Object.fromEntries(r.map((e) => [e.eventType, { ...e }]));
250
- } catch (e) {
251
- N.value = ce(e), s(e, {
252
- source: "business-log-retention",
253
- phase: "load"
254
- });
255
- } finally {
256
- M.value = !1;
257
- }
258
- }
259
- async function W() {
260
- return z.value ? (r("自动清理操作正在执行,请稍候。"), !1) : !V.value || c({
261
- title: "放弃未保存的自动清理设置?",
262
- content: "关闭后,本次未保存的自动清理和保留天数修改将丢失。"
263
- });
264
- }
265
- async function G(e) {
266
- if (Z(e.retentionDays) && J(e) && !z.value) {
267
- P.value = e.eventType;
268
- try {
269
- q(await f.update(e)), l(`${Q(e.eventType)}自动清理设置已保存`);
270
- } catch (e) {
271
- s(e, {
272
- source: "business-log-retention",
273
- phase: "action"
274
- });
275
- } finally {
276
- P.value = void 0;
277
- }
278
- }
279
- }
280
- async function K(e) {
281
- if (Z(e.retentionDays) && !z.value && await c({
282
- title: `立即清理${Q(e.eventType)}`,
283
- content: `将删除严格早于 ${e.retentionDays} 天的日志。本次清理不会保存对保留天数的修改,且操作不可恢复。`,
284
- requiredText: `清理${Q(e.eventType)}`,
285
- danger: !0
286
- })) {
287
- F.value = e.eventType;
288
- try {
289
- let t = await f.purge(e.eventType, e.retentionDays);
290
- if (t.result.status === "ALREADY_RUNNING") {
291
- r("已有日志清理任务正在运行,本次未执行。");
292
- return;
293
- }
294
- l(t.result.status === "BATCH_LIMIT_REACHED" ? `本轮已清理 ${t.result.deletedCount} 条,剩余数据将在后续批次继续处理` : `已清理 ${t.result.deletedCount} 条${Q(e.eventType)}`);
295
- } catch (e) {
296
- s(e, {
297
- source: "business-log-retention",
298
- phase: "action"
299
- });
300
- } finally {
301
- F.value = void 0;
302
- }
303
- }
304
- }
305
- function q(e) {
306
- T.value = {
307
- ...T.value,
308
- [e.eventType]: { ...e }
309
- }, w.value = w.value.map((t) => t.eventType === e.eventType ? { ...e } : t);
310
- }
311
- function J(e) {
312
- let t = T.value[e.eventType];
313
- return !t || t.retentionDays !== e.retentionDays || t.automaticCleanupEnabled !== e.automaticCleanupEnabled;
314
- }
315
- function se(e, t) {
316
- e.retentionDays = Number(t);
317
- }
318
- function Z(e) {
319
- return Number.isInteger(e) && e >= 1 && e <= 36500;
320
- }
321
- function Q(e) {
322
- return {
323
- LOGIN: "登录日志",
324
- ACTION: "动作日志",
325
- REQUEST_ERROR: "异常日志",
326
- PAGE_ACCESS: "页面访问日志"
327
- }[e];
328
- }
329
- function ce(e) {
330
- return e instanceof Error ? e.message : "自动清理设置加载失败。";
331
- }
332
- return (t, n) => (E(), b(g, null, [I.value ? (E(), v(A(h), {
333
- key: 0,
334
- onClick: H
335
- }, {
336
- default: j(() => [...n[1] ||= [S("自动清理", -1)]]),
337
- _: 1
338
- })) : y("v-if", !0), C(A(d), {
339
- open: p.value,
340
- title: "自动清理",
341
- subtitle: "配置当前日志类型的自动清理和保留期限。",
342
- width: "standard",
343
- scope: "viewport",
344
- "before-close": W,
345
- onClose: n[0] ||= (e) => p.value = !1
346
- }, {
347
- default: j(() => [M.value ? (E(), v(A(e), {
348
- key: 0,
349
- tip: "加载自动清理设置"
350
- })) : N.value ? (E(), v(A(o), {
351
- key: 1,
352
- title: "自动清理设置不可用",
353
- message: N.value
354
- }, null, 8, ["message"])) : B.value.length === 0 ? (E(), v(A(m), {
355
- key: 2,
356
- description: "暂无可管理的自动清理设置"
357
- })) : (E(), b("section", ne, [(E(!0), b(g, null, O(B.value, (e) => (E(), b("article", { key: e.eventType }, [
358
- x("header", null, [x("div", null, [x("h3", null, k(Q(e.eventType)), 1), e.updatedAt ? (E(), b("small", Y, [S(" 最近更新:" + k(e.updatedAt), 1), e.updatedBy ? (E(), b(g, { key: 0 }, [S(" · " + k(e.updatedBy), 1)], 64)) : y("v-if", !0)])) : y("v-if", !0)]), x("label", re, [n[2] ||= x("span", null, "自动清理", -1), C(A(u), {
359
- checked: e.automaticCleanupEnabled,
360
- "onUpdate:checked": (t) => e.automaticCleanupEnabled = t,
361
- disabled: !L.value || z.value,
362
- "checked-text": "启用",
363
- "unchecked-text": "停用"
364
- }, null, 8, [
365
- "checked",
366
- "onUpdate:checked",
367
- "disabled"
368
- ])])]),
369
- x("div", X, [x("label", ie, [
370
- n[4] ||= x("span", null, "保留天数", -1),
371
- x("span", ae, [C(A(ee), {
372
- value: e.retentionDays,
373
- type: "number",
374
- disabled: !L.value || z.value,
375
- "aria-label": `${Q(e.eventType)}保留天数`,
376
- "onUpdate:value": (t) => se(e, t)
377
- }, null, 8, [
378
- "value",
379
- "disabled",
380
- "aria-label",
381
- "onUpdate:value"
382
- ]), R.value ? (E(), v(A(h), {
383
- key: 0,
384
- intent: "danger",
385
- disabled: z.value || !Z(e.retentionDays),
386
- loading: F.value === e.eventType,
387
- onClick: (t) => K(e)
388
- }, {
389
- default: j(() => [...n[3] ||= [S(" 立即清理 ", -1)]]),
390
- _: 1
391
- }, 8, [
392
- "disabled",
393
- "loading",
394
- "onClick"
395
- ])) : y("v-if", !0)]),
396
- Z(e.retentionDays) ? y("v-if", !0) : (E(), b("small", oe, " 请输入 1 至 36500 之间的整数。 "))
397
- ])]),
398
- x("footer", null, [L.value ? (E(), v(A(h), {
399
- key: 0,
400
- emphasis: "primary",
401
- disabled: z.value || !Z(e.retentionDays) || !J(e),
402
- loading: P.value === e.eventType,
403
- onClick: (t) => G(e)
404
- }, {
405
- default: j(() => [...n[5] ||= [S(" 保存 ", -1)]]),
406
- _: 1
407
- }, 8, [
408
- "disabled",
409
- "loading",
410
- "onClick"
411
- ])) : y("v-if", !0)])
412
- ]))), 128))]))]),
413
- _: 1
414
- }, 8, ["open"])], 64));
415
- }
416
- }), [["__scopeId", "data-v-f75c1238"]]), Z = {
417
- key: 2,
418
- class: "business-log-list__detail"
419
- }, Q = {
420
- key: 4,
421
- class: "business-log-list__diagnostic"
422
- }, ce = {
423
- key: 1,
424
- class: "business-log-list__detail"
425
- }, le = {
426
- key: 0,
427
- class: "business-log-list__hint"
428
- }, ue = {
429
- key: 1,
430
- class: "business-log-list__detail"
431
- }, de = /*#__PURE__*/ n(/* @__PURE__ */ w({
432
- name: "BusinessLogListDrawer",
433
- __name: "BusinessLogListDrawer",
434
- props: {
435
- surface: {},
436
- moduleAlias: {},
437
- title: {}
438
- },
439
- setup(n) {
440
- let r = n, c = a({ moduleAlias: r.moduleAlias }), l = N(c.http, r.surface), ee = {
441
- title: "选择操作用户",
442
- placeholder: "按账号或用户 ID 搜索",
443
- searchPlaceholder: "按账号或用户 ID 搜索",
444
- mode: "dialog",
445
- columns: f,
446
- provider: p({
447
- sourceIdentity: {
448
- targetModuleAlias: "iam.user",
449
- source: {
450
- kind: "businessPurpose",
451
- id: `${r.moduleAlias}:operators`
452
- }
453
- },
454
- searchPage: async ({ keyword: e, pageNum: t, pageSize: n, scope: r }) => {
455
- let i = await l.operatorCandidates({
456
- keyword: e,
457
- pageNum: t,
458
- pageSize: n,
459
- ...r
460
- });
461
- return {
462
- records: i.records,
463
- total: i.total,
464
- navigation: i.navigation
465
- };
466
- },
467
- resolveUsers: async (e) => (await l.operatorCandidates({ selectedIds: e })).selectedRecords
468
- })
469
- }, u = D(), w = D(!1), M = D(), P = D(), F = D(!1), I = D(), L = D(!1), R = D(), z = D(), B = D(!1), V = D(), H = D(), U = _(() => we[r.surface]), W = _(() => r.surface === "activity"), G = _(() => r.surface === "request-error"), K = _(() => ({
470
- login: ["LOGIN"],
471
- activity: ["ACTION", "PAGE_ACCESS"],
472
- "request-error": ["REQUEST_ERROR"]
473
- })[r.surface]), q = _(() => c.can("viewInternalDiagnostic") === !0), J = _(() => U.value.columns), te = _(() => u.value ? ge(u.value) : []), ne = _(() => xe(P.value)), Y = _(() => [..._e("业务动作", R.value), ..._e("页面访问", z.value)]), re = _(() => R.value?.complete === !1 || z.value?.complete === !1);
474
- async function X(e) {
475
- let t = e, n = t.eventId;
476
- if (n) {
477
- u.value = t, M.value = void 0, P.value = void 0, I.value = void 0, w.value = !0;
478
- try {
479
- u.value = await l.detail(n);
480
- } catch (e) {
481
- M.value = Ce(e), s(e, {
482
- source: "business-log-detail",
483
- phase: "load"
484
- });
485
- } finally {
486
- w.value = !1;
487
- }
488
- }
489
- }
490
- async function ie() {
491
- if (W.value && !B.value) {
492
- L.value = !0, B.value = !0, V.value = void 0;
493
- try {
494
- let e = H.value ?? de(), [t, n] = await Promise.all([l.actionStatistics?.(e), l.pageAccessStatistics?.(e)]);
495
- R.value = t, z.value = n;
496
- } catch (e) {
497
- V.value = Ce(e), s(e, {
498
- source: "business-log-statistics",
499
- phase: "load"
500
- });
501
- } finally {
502
- B.value = !1;
503
- }
504
- }
505
- }
506
- async function ae() {
507
- let e = u.value?.eventId;
508
- if (l.diagnostic && e && !F.value) {
509
- F.value = !0, I.value = void 0;
510
- try {
511
- P.value = await l.diagnostic(e);
512
- } catch (e) {
513
- I.value = Ce(e), s(e, {
514
- source: "business-log-diagnostic",
515
- phase: "load"
516
- });
517
- } finally {
518
- F.value = !1;
519
- }
520
- }
521
- }
522
- function oe(e) {
523
- H.value = e, R.value = void 0, z.value = void 0;
524
- }
525
- function de() {
526
- return {
527
- page: {
528
- pageNum: 1,
529
- pageSize: 50
530
- },
531
- conditions: []
532
- };
533
- }
534
- function fe(e) {
535
- return e.name === "operatorId" ? ee : void 0;
536
- }
537
- function pe(e, t) {
538
- switch (e) {
539
- case "outcome": return he(t.outcome);
540
- case "mutationSource": return me(t.mutationSource);
541
- case "employeeName": return t.operatorIdentity?.employeeName ?? "—";
542
- case "username": return t.operatorIdentity?.username ?? t.operatorId ?? "—";
543
- case "loginAccount": return ve(t) ?? "—";
544
- case "organizationName": return t.operatorIdentity?.organizationName ?? "—";
545
- case "departmentName": return t.operatorIdentity?.departmentName ?? "—";
546
- case "errorCode": return $(t.details?.errorCode) ?? "—";
547
- case "httpStatus": return $(t.details?.httpStatus) ?? "—";
548
- default: return Se(t[e]);
549
- }
550
- }
551
- function me(e) {
552
- return {
553
- BUSINESS: "业务写入",
554
- ACTION: "业务动作",
555
- SYSTEM: "系统处理",
556
- WRITE_BACK: "平台回写"
557
- }[e ?? ""] ?? e ?? "—";
558
- }
559
- function he(e) {
560
- return {
561
- SUCCESS: "成功",
562
- FAILURE: "失败",
563
- REJECTED: "拒绝"
564
- }[e ?? ""] ?? e ?? "—";
565
- }
566
- function ge(e) {
567
- return [
568
- ["发生时间", e.occurredAt],
569
- ["事件类型", e.eventType],
570
- ["结果", e.outcome],
571
- ["职员姓名", e.operatorIdentity?.employeeName],
572
- ["操作用户", e.operatorIdentity?.username ?? e.operatorId],
573
- ["登录账号", ve(e)],
574
- ["用户 ID", e.operatorId],
575
- ["机构", e.operatorIdentity?.organizationName],
576
- ["机构 ID", e.operatorIdentity?.organizationId ?? e.operatorOrganizationId],
577
- ["部门", e.operatorIdentity?.departmentName],
578
- ["部门 ID", e.operatorIdentity?.departmentId],
579
- ["业务模块", e.moduleAlias],
580
- ["动作", e.actionCode],
581
- ["实体", e.entityAlias],
582
- ["记录 ID", e.recordId],
583
- ["变更来源", me(e.mutationSource)],
584
- ["追踪 ID", e.traceId],
585
- ...xe(e.details, [
586
- "outcome",
587
- "entityAlias",
588
- "recordId",
589
- "mutationSource"
590
- ]).map((e) => [e.key, e.value])
591
- ].filter(([, e]) => e != null && e !== "").map(([e, t]) => ({
592
- key: e,
593
- value: Se(t)
594
- }));
595
- }
596
- function _e(e, t) {
597
- return (t?.items ?? []).map((t) => ({
598
- key: `${e}:${t.key}`,
599
- kind: e,
600
- title: t.title,
601
- count: t.count
602
- }));
603
- }
604
- function ve(e) {
605
- if (e.eventType === "LOGIN") return e.loginAccount ?? $(e.details?.confirmedAccount) ?? $(e.details?.claimedAccount);
606
- }
607
- function ye() {
608
- return [{
609
- key: "detail",
610
- title: "详情",
611
- primary: !0,
612
- iconName: "eye"
613
- }];
614
- }
615
- function be(e, t) {
616
- e.key === "detail" && X(t);
617
- }
618
- function xe(e, t = []) {
619
- let n = new Set(t);
620
- return Object.entries(e ?? {}).filter(([e]) => !n.has(e)).map(([e, t]) => ({
621
- key: e,
622
- value: Se(t)
623
- }));
624
- }
625
- function $(e) {
626
- return typeof e == "string" || typeof e == "number" ? String(e) : void 0;
627
- }
628
- function Se(e) {
629
- return e == null || e === "" ? "—" : typeof e == "string" ? e : JSON.stringify(e, null, 2);
630
- }
631
- function Ce(e) {
632
- return e instanceof Error ? e.message : "请求未完成,请稍后重试。";
633
- }
634
- let we = {
635
- login: { columns: [
636
- {
637
- key: "outcome",
638
- title: "结果",
639
- width: "96px"
640
- },
641
- {
642
- key: "occurredAt",
643
- title: "发生时间",
644
- width: "176px"
645
- },
646
- {
647
- key: "loginAccount",
648
- title: "登录账号",
649
- width: "200px"
650
- }
651
- ] },
652
- activity: { columns: [
653
- {
654
- key: "outcome",
655
- title: "结果",
656
- width: "96px"
657
- },
658
- {
659
- key: "occurredAt",
660
- title: "发生时间",
661
- width: "176px"
662
- },
663
- {
664
- key: "username",
665
- title: "操作用户",
666
- width: "160px"
667
- },
668
- {
669
- key: "moduleAlias",
670
- title: "业务模块",
671
- width: "190px"
672
- },
673
- {
674
- key: "actionCode",
675
- title: "动作",
676
- width: "150px"
677
- },
678
- {
679
- key: "recordId",
680
- title: "记录 ID",
681
- width: "170px"
682
- },
683
- {
684
- key: "mutationSource",
685
- title: "变更来源",
686
- width: "120px"
687
- }
688
- ] },
689
- "request-error": { columns: [
690
- {
691
- key: "occurredAt",
692
- title: "发生时间",
693
- width: "176px"
694
- },
695
- {
696
- key: "moduleAlias",
697
- title: "业务模块",
698
- width: "190px"
699
- },
700
- {
701
- key: "errorCode",
702
- title: "错误码",
703
- width: "150px"
704
- },
705
- {
706
- key: "httpStatus",
707
- title: "HTTP 状态",
708
- width: "112px"
709
- },
710
- {
711
- key: "summary",
712
- title: "错误摘要",
713
- width: "260px"
714
- }
715
- ] }
716
- };
717
- return (r, a) => (E(), b(g, null, [
718
- C(A(t), {
719
- class: "business-log-list",
720
- context: A(c),
721
- title: n.title,
722
- columns: J.value,
723
- "row-key": "eventId",
724
- "show-recycle-bin": !1,
725
- "page-size": 50,
726
- "page-size-options": [
727
- 20,
728
- 50,
729
- 100
730
- ],
731
- "reference-picker-of": fe,
732
- "empty-description": "暂无符合条件的日志",
733
- "row-actions-of": ye,
734
- "row-actions-title": "操作",
735
- "action-column-width": "88px",
736
- onRecordActivate: X,
737
- onRowAction: be,
738
- onQueried: oe
739
- }, {
740
- operations: j(() => [W.value ? (E(), v(A(h), {
741
- key: 0,
742
- loading: B.value,
743
- onClick: ie
744
- }, {
745
- default: j(() => [...a[2] ||= [S(" 使用统计 ", -1)]]),
746
- _: 1
747
- }, 8, ["loading"])) : y("v-if", !0), C(se, { "event-types": K.value }, null, 8, ["event-types"])]),
748
- cell: j(({ column: e, record: t }) => [e.key === "occurredAt" ? (E(), v(A(i), {
749
- key: 0,
750
- value: t.occurredAt
751
- }, null, 8, ["value"])) : (E(), b("span", {
752
- key: 1,
753
- class: T({ "business-log-list__summary": e.key === "summary" })
754
- }, k(pe(e.key, t)), 3))]),
755
- _: 1
756
- }, 8, [
757
- "context",
758
- "title",
759
- "columns"
760
- ]),
761
- C(A(d), {
762
- open: !!u.value,
763
- title: `${n.title}详情`,
764
- "render-mode": "inline",
765
- subtitle: u.value ? u.value.operatorIdentity?.employeeName ?? u.value.operatorIdentity?.username ?? u.value.operatorId : void 0,
766
- "close-on-outside": !0,
767
- onClose: a[0] ||= (e) => u.value = void 0
768
- }, {
769
- default: j(() => [w.value ? (E(), v(A(e), {
770
- key: 0,
771
- tip: "加载详情"
772
- })) : M.value ? (E(), v(A(o), {
773
- key: 1,
774
- title: "日志详情加载失败",
775
- message: M.value
776
- }, null, 8, ["message"])) : u.value ? (E(), b("dl", Z, [(E(!0), b(g, null, O(te.value, (e) => (E(), b(g, { key: e.key }, [x("dt", null, k(e.key), 1), x("dd", null, [x("pre", null, k(e.value), 1)])], 64))), 128))])) : (E(), v(A(m), {
777
- key: 3,
778
- description: "未选择日志"
779
- })), G.value && u.value && q.value ? (E(), b("section", Q, [
780
- C(A(h), {
781
- loading: F.value,
782
- onClick: ae
783
- }, {
784
- default: j(() => [...a[3] ||= [S("查看内部诊断", -1)]]),
785
- _: 1
786
- }, 8, ["loading"]),
787
- a[4] ||= x("small", null, "仅具备平台范围的管理员可查看。", -1),
788
- I.value ? (E(), v(A(o), {
789
- key: 0,
790
- title: "内部诊断不可用",
791
- message: I.value
792
- }, null, 8, ["message"])) : P.value ? (E(), b("dl", ce, [(E(!0), b(g, null, O(ne.value, (e) => (E(), b(g, { key: e.key }, [x("dt", null, k(e.key), 1), x("dd", null, [x("pre", null, k(e.value), 1)])], 64))), 128))])) : y("v-if", !0)
793
- ])) : y("v-if", !0)]),
794
- _: 1
795
- }, 8, [
796
- "open",
797
- "title",
798
- "subtitle"
799
- ]),
800
- C(A(d), {
801
- open: L.value,
802
- title: "业务活动使用统计",
803
- "render-mode": "inline",
804
- subtitle: "统计口径遵循当前标准查询条件与登录账号的数据范围。",
805
- "close-on-outside": !0,
806
- onClose: a[1] ||= (e) => L.value = !1
807
- }, {
808
- default: j(() => [B.value ? (E(), v(A(e), {
809
- key: 0,
810
- tip: "加载使用统计"
811
- })) : V.value ? (E(), v(A(o), {
812
- key: 1,
813
- title: "使用统计加载失败",
814
- message: V.value
815
- }, null, 8, ["message"])) : (E(), b(g, { key: 2 }, [re.value ? (E(), b("p", le, "当前统计只覆盖可读取的最近日志。")) : y("v-if", !0), Y.value.length > 0 ? (E(), b("dl", ue, [(E(!0), b(g, null, O(Y.value, (e) => (E(), b(g, { key: e.key }, [x("dt", null, k(e.kind) + " · " + k(e.title), 1), x("dd", null, k(e.count), 1)], 64))), 128))])) : (E(), v(A(m), {
816
- key: 2,
817
- description: "暂无可统计的业务活动"
818
- }))], 64))]),
819
- _: 1
820
- }, 8, ["open"])
821
- ], 64));
822
- }
823
- }), [["__scopeId", "data-v-dbe6e7b1"]]);
824
- //#endregion
825
- export { de as t };