@epxing/business 0.0.0-stage → 5.3.0-beta.2

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 (861) hide show
  1. package/API.md +111 -0
  2. package/README.md +43 -2
  3. package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
  4. package/dist/_virtual/preload-helper.js +88 -0
  5. package/dist/assets/0-C_2vdOtO.png +0 -0
  6. package/dist/assets/1-CsiSr5nw.png +0 -0
  7. package/dist/assets/2-C9hZOTyC.png +0 -0
  8. package/dist/assets/ai-CcPHuAhD.jpg +0 -0
  9. package/dist/assets/app-DBNIokDP.png +0 -0
  10. package/dist/assets/approval-DGcBv-re.png +0 -0
  11. package/dist/assets/aurorablue-N56tat3G.png +0 -0
  12. package/dist/assets/basepage-BF4dvOT8.png +0 -0
  13. package/dist/assets/classicblue-BdgPGKXa.png +0 -0
  14. package/dist/assets/create_market_system-BH__UVbt.png +0 -0
  15. package/dist/assets/create_system-irg--ePh.png +0 -0
  16. package/dist/assets/custom-C-ujlHz1.png +0 -0
  17. package/dist/assets/data-BDvuB-m7.png +0 -0
  18. package/dist/assets/deepblue-B78G_DNb.png +0 -0
  19. package/dist/assets/default-icon-2193FMjv.png +0 -0
  20. package/dist/assets/ex_link-4fYPd9nh.png +0 -0
  21. package/dist/assets/forestgreen-B2YR4xgz.png +0 -0
  22. package/dist/assets/hall_banner-Dc5YRV5A.webp +0 -0
  23. package/dist/assets/import-tfKWbWVS.png +0 -0
  24. package/dist/assets/link-BeD2ZGO9.png +0 -0
  25. package/dist/assets/m_hall_banner-Cf1Qwhh3.webp +0 -0
  26. package/dist/assets/orange-wT0uHIyo.png +0 -0
  27. package/dist/assets/palevioletred-DZXBQKru.png +0 -0
  28. package/dist/assets/photo-uscRzRXF.png +0 -0
  29. package/dist/assets/purple-CXrRrENi.png +0 -0
  30. package/dist/assets/role_select-DTqRlFNz.webp +0 -0
  31. package/dist/assets/skyblue-DPPlKPXU.png +0 -0
  32. package/dist/assets/snapshot-history-BsVY9cVj.png +0 -0
  33. package/dist/assets/snapshot-manual-DBRfFHYI.png +0 -0
  34. package/dist/assets/snapshot-realtime-DjHnJI6C.png +0 -0
  35. package/dist/assets/sync_loading-D7LoNPFP.png +0 -0
  36. package/dist/assets/tiffanyblue-DkyBoUQf.png +0 -0
  37. package/dist/assets/topbg-C_5lVpoA.webp +0 -0
  38. package/dist/assets/zxmb-CkPnmDaV.png +0 -0
  39. package/dist/src/assets/customTranslate/customTranslate.js +11 -0
  40. package/dist/src/assets/customTranslate/translations.js +219 -0
  41. package/dist/src/assets/images/addmenu/basepage.png.js +4 -0
  42. package/dist/src/assets/images/addmenu/data.png.js +4 -0
  43. package/dist/src/assets/images/addmenu/link.png.js +4 -0
  44. package/dist/src/assets/images/addmenu/list.png.js +4 -0
  45. package/dist/src/assets/images/addmenu/menu.png.js +4 -0
  46. package/dist/src/assets/images/addmenu/zxmb.png.js +4 -0
  47. package/dist/src/assets/images/ai.jpg.js +4 -0
  48. package/dist/src/assets/images/app.png.js +4 -0
  49. package/dist/src/assets/images/approval.png.js +4 -0
  50. package/dist/src/assets/images/create_market_system.png.js +4 -0
  51. package/dist/src/assets/images/create_system.png.js +4 -0
  52. package/dist/src/assets/images/custom.png.js +4 -0
  53. package/dist/src/assets/images/default-icon.png.js +4 -0
  54. package/dist/src/assets/images/ex_link.png.js +4 -0
  55. package/dist/src/assets/images/hall_banner.webp.js +4 -0
  56. package/dist/src/assets/images/hr.png.js +4 -0
  57. package/dist/src/assets/images/import.png.js +4 -0
  58. package/dist/src/assets/images/m_hall_banner.webp.js +4 -0
  59. package/dist/src/assets/images/nav/0.png.js +4 -0
  60. package/dist/src/assets/images/nav/1.png.js +4 -0
  61. package/dist/src/assets/images/nav/2.png.js +4 -0
  62. package/dist/src/assets/images/nav/3.svg.js +4 -0
  63. package/dist/src/assets/images/photo.png.js +4 -0
  64. package/dist/src/assets/images/snapshot-history.png.js +4 -0
  65. package/dist/src/assets/images/snapshot-manual.png.js +4 -0
  66. package/dist/src/assets/images/snapshot-realtime.png.js +4 -0
  67. package/dist/src/assets/images/sync_loading.png.js +4 -0
  68. package/dist/src/assets/images/theme/aurorablue.png.js +4 -0
  69. package/dist/src/assets/images/theme/classicblue.png.js +4 -0
  70. package/dist/src/assets/images/theme/deepblue.png.js +4 -0
  71. package/dist/src/assets/images/theme/forestgreen.png.js +4 -0
  72. package/dist/src/assets/images/theme/orange.png.js +4 -0
  73. package/dist/src/assets/images/theme/palevioletred.png.js +4 -0
  74. package/dist/src/assets/images/theme/purple.png.js +4 -0
  75. package/dist/src/assets/images/theme/skyblue.png.js +4 -0
  76. package/dist/src/assets/images/theme/tiffanyblue.png.js +4 -0
  77. package/dist/src/base/AiPromptDesigner.js +685 -0
  78. package/dist/src/base/AiPromptView.js +363 -0
  79. package/dist/src/base/AiSkillEditor.js +1029 -0
  80. package/dist/src/base/AiSkillEditor.vue.js +1176 -0
  81. package/dist/src/base/AppConfigFormItem.js +8 -0
  82. package/dist/src/base/AppConfigFormItem.vue.js +407 -0
  83. package/dist/src/base/AppMarket.js +212 -0
  84. package/dist/src/base/AppMarketList.js +8 -0
  85. package/dist/src/base/AppMarketList.vue.js +214 -0
  86. package/dist/src/base/AppMarketSystemDetail.js +293 -0
  87. package/dist/src/base/AttributeSubAdd.js +26 -0
  88. package/dist/src/base/ChooseApplication.js +132 -0
  89. package/dist/src/base/ClientAppItem.js +190 -0
  90. package/dist/src/base/ClientApplication.js +360 -0
  91. package/dist/src/base/ClientApplicationList.js +126 -0
  92. package/dist/src/base/ClientModule.js +119 -0
  93. package/dist/src/base/ClientModuleIndex.js +295 -0
  94. package/dist/src/base/ClientSystemDetail.js +203 -0
  95. package/dist/src/base/ClientSystemList.js +8 -0
  96. package/dist/src/base/ClientSystemList.vue.js +450 -0
  97. package/dist/src/base/CommonFieldList.js +11 -0
  98. package/dist/src/base/CommonFieldList.vue.js +530 -0
  99. package/dist/src/base/CommonSearchList.js +5 -0
  100. package/dist/src/base/CommonSearchList.vue.js +253 -0
  101. package/dist/src/base/CompayDetail.js +116 -0
  102. package/dist/src/base/ComponentGlobalSet.js +8 -0
  103. package/dist/src/base/ComponentGlobalSet.vue.js +722 -0
  104. package/dist/src/base/ComponentParamsTree.js +335 -0
  105. package/dist/src/base/ConfigModuleIndex.js +135 -0
  106. package/dist/src/base/CurrentClientApplication.js +54 -0
  107. package/dist/src/base/CurrentVersionInfo.js +98 -0
  108. package/dist/src/base/EntityMatchCompare.js +533 -0
  109. package/dist/src/base/FieldRelationFormItem.js +8 -0
  110. package/dist/src/base/FieldRelationFormItem.vue.js +272 -0
  111. package/dist/src/base/HelpDocSet.js +363 -0
  112. package/dist/src/base/HelpDocSet.vue.js +685 -0
  113. package/dist/src/base/IndexFormItem.js +5 -0
  114. package/dist/src/base/IndexFormItem.vue.js +230 -0
  115. package/dist/src/base/JobFormItem.js +8 -0
  116. package/dist/src/base/JobFormItem.vue.js +131 -0
  117. package/dist/src/base/ManageAppNav.js +9 -0
  118. package/dist/src/base/ManageAppNav.vue.js +1178 -0
  119. package/dist/src/base/ManageMenu.js +916 -0
  120. package/dist/src/base/ManageMenuItem.js +551 -0
  121. package/dist/src/base/NoInstallSystemList.js +5 -0
  122. package/dist/src/base/NoInstallSystemList.vue.js +159 -0
  123. package/dist/src/base/PageList.js +48 -0
  124. package/dist/src/base/PasswordFormItem.js +8 -0
  125. package/dist/src/base/PasswordFormItem.vue.js +125 -0
  126. package/dist/src/base/ProcessFormItem.js +148 -0
  127. package/dist/src/base/PublishSystemApplyFormItem.js +5 -0
  128. package/dist/src/base/PublishSystemApplyFormItem.vue.js +104 -0
  129. package/dist/src/base/RequestLog.js +170 -0
  130. package/dist/src/base/RightRiskList.js +8 -0
  131. package/dist/src/base/RightRiskList.vue.js +224 -0
  132. package/dist/src/base/RoleAccredit.js +1087 -0
  133. package/dist/src/base/RoleRightList.js +8 -0
  134. package/dist/src/base/RoleRightList.vue.js +118 -0
  135. package/dist/src/base/RoleUserManage.js +8 -0
  136. package/dist/src/base/RoleUserManage.vue.js +146 -0
  137. package/dist/src/base/ServiceAccredit.js +1075 -0
  138. package/dist/src/base/ServiceMenu.js +399 -0
  139. package/dist/src/base/ServiceMenuFormItem.js +20 -0
  140. package/dist/src/base/ServiceOperate.js +1003 -0
  141. package/dist/src/base/SystemHelpTreeFind.js +44 -0
  142. package/dist/src/base/aiPromptMode.js +145 -0
  143. package/dist/src/base/data-check/DataChckDetail.js +243 -0
  144. package/dist/src/base/data-check/DataCheck.js +308 -0
  145. package/dist/src/base/data-check/DataCheckList.js +364 -0
  146. package/dist/src/base/data-check/DataCheckSubList.js +6 -0
  147. package/dist/src/base/data-check/DataCheckSubList.vue.js +195 -0
  148. package/dist/src/base/entity-view/EntityViewFormItem.js +5 -0
  149. package/dist/src/base/entity-view/EntityViewFormItem.vue.js +229 -0
  150. package/dist/src/base/entity-view/EntityViewSubList.js +5 -0
  151. package/dist/src/base/entity-view/EntityViewSubList.vue.js +181 -0
  152. package/dist/src/base/entity-view-config/BasicInfoDialog.js +208 -0
  153. package/dist/src/base/entity-view-config/FieldPanel.js +692 -0
  154. package/dist/src/base/entity-view-config/FieldPropForm.js +786 -0
  155. package/dist/src/base/entity-view-config/FormulaDialog.js +143 -0
  156. package/dist/src/base/entity-view-config/ObjectFieldDialog.js +271 -0
  157. package/dist/src/base/entity-view-config/RelationPanel.js +779 -0
  158. package/dist/src/base/entity-view-config/SourceManagerDialog.js +658 -0
  159. package/dist/src/base/entity-view-config/SqlPanel.js +62 -0
  160. package/dist/src/base/entity-view-config/SqlPanel.vue.js +43 -0
  161. package/dist/src/base/entity-view-config/UnionPanel.js +1082 -0
  162. package/dist/src/base/entity-view-config/ViewConfig.js +586 -0
  163. package/dist/src/base/entity-view-config/constants.js +146 -0
  164. package/dist/src/base/user-type/UserTypeFormItem.js +5 -0
  165. package/dist/src/base/user-type/UserTypeFormItem.vue.js +183 -0
  166. package/dist/src/components/AddPageFormItem.js +5 -0
  167. package/dist/src/components/AddPageFormItem.vue.js +92 -0
  168. package/dist/src/components/AddUsedInterface.js +214 -0
  169. package/dist/src/components/AiDocFormItem.js +6 -0
  170. package/dist/src/components/AiDocFormItem.vue.js +271 -0
  171. package/dist/src/components/AiList.js +8 -0
  172. package/dist/src/components/AiList.vue.js +93 -0
  173. package/dist/src/components/AiPermissionAssistant.js +284 -0
  174. package/dist/src/components/AppList.js +414 -0
  175. package/dist/src/components/Apply/AIApplyIndex.js +179 -0
  176. package/dist/src/components/Apply/ApplyIndex.js +282 -0
  177. package/dist/src/components/AttributeList.js +870 -0
  178. package/dist/src/components/Banner.js +26 -0
  179. package/dist/src/components/BatchAddFieldDialog.js +425 -0
  180. package/dist/src/components/CardO.js +47 -0
  181. package/dist/src/components/CheckForm.js +34 -0
  182. package/dist/src/components/ClientAdminFormItem.js +47 -0
  183. package/dist/src/components/ClientAdminList.js +9 -0
  184. package/dist/src/components/ClientAdminList.vue.js +221 -0
  185. package/dist/src/components/ClientFormItem.js +48 -0
  186. package/dist/src/components/ClientList.js +6 -0
  187. package/dist/src/components/ClientList.vue.js +216 -0
  188. package/dist/src/components/CodeDetail.js +454 -0
  189. package/dist/src/components/CodeManage.js +1030 -0
  190. package/dist/src/components/ComponentFind.js +210 -0
  191. package/dist/src/components/ComponentList.js +499 -0
  192. package/dist/src/components/ConfigParamFormItem.js +8 -0
  193. package/dist/src/components/ConfigParamFormItem.vue.js +389 -0
  194. package/dist/src/components/CreatePage.js +298 -0
  195. package/dist/src/components/DashboardCreate.js +106 -0
  196. package/dist/src/components/DataLog.js +169 -0
  197. package/dist/src/components/DataLogTimeline.js +111 -0
  198. package/dist/src/components/DataSnapshot.js +207 -0
  199. package/dist/src/components/DataSnapshotList.js +75 -0
  200. package/dist/src/components/DataSyncInit.js +173 -0
  201. package/dist/src/components/DblogList.js +6 -0
  202. package/dist/src/components/DblogList.vue.js +143 -0
  203. package/dist/src/components/DeptFind.js +8 -0
  204. package/dist/src/components/DeptFind.vue.js +109 -0
  205. package/dist/src/components/DynamicUserList.js +5 -0
  206. package/dist/src/components/DynamicUserList.vue.js +89 -0
  207. package/dist/src/components/EntityCheckboxFind.js +5 -0
  208. package/dist/src/components/EntityCheckboxFind.vue.js +97 -0
  209. package/dist/src/components/EntityRelationAdd.js +388 -0
  210. package/dist/src/components/EntityRelationAddFormItem.js +5 -0
  211. package/dist/src/components/EntityRelationAddFormItem.vue.js +284 -0
  212. package/dist/src/components/EntityRightFormItem.js +10 -0
  213. package/dist/src/components/EntityRightFormItem.vue.js +401 -0
  214. package/dist/src/components/EntityRightSubList.js +640 -0
  215. package/dist/src/components/EntityTagSubList.js +5 -0
  216. package/dist/src/components/EntityTagSubList.vue.js +103 -0
  217. package/dist/src/components/EntityTreeManage.js +865 -0
  218. package/dist/src/components/ExportSystemConfig.js +167 -0
  219. package/dist/src/components/FieldTreeFind.js +41 -0
  220. package/dist/src/components/FormulaEditor.js +8 -0
  221. package/dist/src/components/FormulaEditor.vue.js +1235 -0
  222. package/dist/src/components/GenTestData.js +638 -0
  223. package/dist/src/components/HallNav.js +6 -0
  224. package/dist/src/components/HallNav.vue.js +156 -0
  225. package/dist/src/components/HeaderNav.js +369 -0
  226. package/dist/src/components/IconCard.js +98 -0
  227. package/dist/src/components/IconFontLibrary.js +5 -0
  228. package/dist/src/components/IconFontLibrary.vue.js +67 -0
  229. package/dist/src/components/IconFontList.js +5 -0
  230. package/dist/src/components/IconFontList.vue.js +79 -0
  231. package/dist/src/components/IdentifyList.js +33 -0
  232. package/dist/src/components/ImportSystemConfig.js +303 -0
  233. package/dist/src/components/InterfaceSubList.js +320 -0
  234. package/dist/src/components/JsPanel.js +101 -0
  235. package/dist/src/components/LanguageImportPage.js +590 -0
  236. package/dist/src/components/LanguageSetting.js +545 -0
  237. package/dist/src/components/List/LinkItem.js +113 -0
  238. package/dist/src/components/List/List.js +18 -0
  239. package/dist/src/components/List/ListItem.js +31 -0
  240. package/dist/src/components/MenuTreeFind.js +8 -0
  241. package/dist/src/components/MenuTreeFind.vue.js +81 -0
  242. package/dist/src/components/MessageList.js +8 -0
  243. package/dist/src/components/MessageList.vue.js +101 -0
  244. package/dist/src/components/MessageRuleFormItem.js +60 -0
  245. package/dist/src/components/MessageRuleReceiverFormItem.js +224 -0
  246. package/dist/src/components/MessageTemplate.js +395 -0
  247. package/dist/src/components/MessageTemplate.vue.js +693 -0
  248. package/dist/src/components/MetaList.js +5 -0
  249. package/dist/src/components/MetaList.vue.js +100 -0
  250. package/dist/src/components/Nav.js +496 -0
  251. package/dist/src/components/NavFormCatalogItem.js +7 -0
  252. package/dist/src/components/NumList.js +60 -0
  253. package/dist/src/components/OperateLog.js +133 -0
  254. package/dist/src/components/PageCatalog.js +8 -0
  255. package/dist/src/components/PageCatalog.vue.js +292 -0
  256. package/dist/src/components/PageChart.js +213 -0
  257. package/dist/src/components/PageSwipes.js +132 -0
  258. package/dist/src/components/PersonFormItem.js +5 -0
  259. package/dist/src/components/PersonFormItem.vue.js +96 -0
  260. package/dist/src/components/Popup.js +239 -0
  261. package/dist/src/components/PrintFormList.js +9 -0
  262. package/dist/src/components/PrintFormList.vue.js +203 -0
  263. package/dist/src/components/PublishEntity.js +114 -0
  264. package/dist/src/components/RelyFieldTreeFind.js +52 -0
  265. package/dist/src/components/ReportFormList.js +236 -0
  266. package/dist/src/components/ReportList.js +9 -0
  267. package/dist/src/components/ReportList.vue.js +248 -0
  268. package/dist/src/components/RightSubList.js +8 -0
  269. package/dist/src/components/RightSubList.vue.js +150 -0
  270. package/dist/src/components/RoleAddUser.js +55 -0
  271. package/dist/src/components/RoleApplicationCard.js +138 -0
  272. package/dist/src/components/RoleApplicationList.js +937 -0
  273. package/dist/src/components/RoleApplicationSet.js +1001 -0
  274. package/dist/src/components/Search.js +254 -0
  275. package/dist/src/components/ServiceFormItem.js +33 -0
  276. package/dist/src/components/SnapshotDataList.js +73 -0
  277. package/dist/src/components/SystemAdminList.js +8 -0
  278. package/dist/src/components/SystemAdminList.vue.js +198 -0
  279. package/dist/src/components/SystemFormItem.js +8 -0
  280. package/dist/src/components/SystemFormItem.vue.js +170 -0
  281. package/dist/src/components/SystemNav.js +30 -0
  282. package/dist/src/components/TaskNumCard.js +23 -0
  283. package/dist/src/components/TimerRuleFormItem.js +333 -0
  284. package/dist/src/components/TodoList.js +8 -0
  285. package/dist/src/components/TodoList.vue.js +327 -0
  286. package/dist/src/components/UpdateSystemConfig.js +241 -0
  287. package/dist/src/components/UserCard.js +83 -0
  288. package/dist/src/components/UserFind.js +6 -0
  289. package/dist/src/components/UserFind.vue.js +592 -0
  290. package/dist/src/components/UserFormItem.js +9 -0
  291. package/dist/src/components/UserFormItem.vue.js +609 -0
  292. package/dist/src/components/UserList.js +5 -0
  293. package/dist/src/components/UserList.vue.js +23 -0
  294. package/dist/src/components/UserManage.js +802 -0
  295. package/dist/src/components/UserRoleList.js +579 -0
  296. package/dist/src/components/ValidateRuleFormItem.js +109 -0
  297. package/dist/src/components/ViewFieldDefine.js +747 -0
  298. package/dist/src/components/WikiSpaceList.js +5 -0
  299. package/dist/src/components/WikiSpaceList.vue.js +330 -0
  300. package/dist/src/components/WikiWorkbench.js +647 -0
  301. package/dist/src/components/authorization/AddApiPermiss.js +231 -0
  302. package/dist/src/components/authorization/AddAuthorization.js +161 -0
  303. package/dist/src/components/authorization/AddEntityFind.js +62 -0
  304. package/dist/src/components/authorization/AddNoApi.js +191 -0
  305. package/dist/src/components/authorization/AddRoleScope.js +337 -0
  306. package/dist/src/components/authorization/AiRolePlan.js +672 -0
  307. package/dist/src/components/authorization/ApiShareOtherList.js +397 -0
  308. package/dist/src/components/authorization/ApiSystemList.js +242 -0
  309. package/dist/src/components/authorization/AuthorizationInterface.js +622 -0
  310. package/dist/src/components/authorization/AuthorizationRoleSystem.js +850 -0
  311. package/dist/src/components/authorization/EntityConstraintFormItem.js +284 -0
  312. package/dist/src/components/authorization/OtherShareApiList.js +247 -0
  313. package/dist/src/components/authorization/PermissCommonRoleTabs.js +114 -0
  314. package/dist/src/components/authorization/PermissRoleAuthorization.js +1286 -0
  315. package/dist/src/components/authorization/PermissRoleTabs.js +113 -0
  316. package/dist/src/components/authorization/RoleLevel.js +5 -0
  317. package/dist/src/components/authorization/RoleLevel.vue.js +110 -0
  318. package/dist/src/components/authorization/RoleLevelScope.js +270 -0
  319. package/dist/src/components/authorization/SystemAddNoApi.js +187 -0
  320. package/dist/src/components/card/CardList.js +65 -0
  321. package/dist/src/components/card/CardListItem.js +97 -0
  322. package/dist/src/components/card/Title.js +42 -0
  323. package/dist/src/components/custom-bpmn/CustomContextPad.js +54 -0
  324. package/dist/src/components/custom-bpmn/CustomPalette.js +5 -0
  325. package/dist/src/components/custom-bpmn/CustomRenderer.js +5 -0
  326. package/dist/src/components/custom-bpmn/CustomRendererBpmn.js +88 -0
  327. package/dist/src/components/custom-bpmn/PropertiesView.js +12560 -0
  328. package/dist/src/components/custom-bpmn/components/AiModel.js +353 -0
  329. package/dist/src/components/custom-bpmn/components/Api.js +376 -0
  330. package/dist/src/components/custom-bpmn/components/BatchOperation.js +209 -0
  331. package/dist/src/components/custom-bpmn/components/Copy.js +653 -0
  332. package/dist/src/components/custom-bpmn/components/DataTransform.js +442 -0
  333. package/dist/src/components/custom-bpmn/components/Demo.js +63 -0
  334. package/dist/src/components/custom-bpmn/components/EditDiv.js +358 -0
  335. package/dist/src/components/custom-bpmn/components/GenScope.js +259 -0
  336. package/dist/src/components/custom-bpmn/components/GlobalParamsTree.js +76 -0
  337. package/dist/src/components/custom-bpmn/components/Knowledges.js +238 -0
  338. package/dist/src/components/custom-bpmn/components/Login.js +591 -0
  339. package/dist/src/components/custom-bpmn/components/MessageQueue.js +221 -0
  340. package/dist/src/components/custom-bpmn/components/MetaSelect.js +160 -0
  341. package/dist/src/components/custom-bpmn/components/NumStatistic.js +408 -0
  342. package/dist/src/components/custom-bpmn/components/ObjectTransform.js +789 -0
  343. package/dist/src/components/custom-bpmn/components/OutPut.js +395 -0
  344. package/dist/src/components/custom-bpmn/components/ParamsMachining.js +889 -0
  345. package/dist/src/components/custom-bpmn/components/ParamsOutput.js +161 -0
  346. package/dist/src/components/custom-bpmn/components/ProcessAudit.js +796 -0
  347. package/dist/src/components/custom-bpmn/components/SingleMultipleFind.js +1040 -0
  348. package/dist/src/components/custom-bpmn/components/TestDialog.js +861 -0
  349. package/dist/src/components/custom-bpmn/img/chaxun.png.js +4 -0
  350. package/dist/src/components/custom-bpmn/img/fasong.png.js +4 -0
  351. package/dist/src/components/custom-bpmn/img/gengxin.png.js +4 -0
  352. package/dist/src/components/custom-bpmn/img/jiagong.png.js +4 -0
  353. package/dist/src/components/custom-bpmn/img/jiekou.png.js +4 -0
  354. package/dist/src/components/custom-bpmn/img/shanchu.png.js +4 -0
  355. package/dist/src/components/custom-bpmn/img/tongbu.png.js +4 -0
  356. package/dist/src/components/custom-bpmn/img/xinzeng.png.js +4 -0
  357. package/dist/src/components/custom-bpmn/img/xunhuanend.png.js +4 -0
  358. package/dist/src/components/custom-bpmn/img/xunhuanstart.png.js +4 -0
  359. package/dist/src/components/custom-bpmn/img/ywgz.png.js +4 -0
  360. package/dist/src/components/custom-bpmn/index.js +5 -0
  361. package/dist/src/components/custom-bpmn/palette.js +13 -0
  362. package/dist/src/components/custom-bpmn/util.js +7 -0
  363. package/dist/src/components/dashboard-create.js +20 -0
  364. package/dist/src/components/entity-relation-diagram/Er.js +340 -0
  365. package/dist/src/components/entity-relation-diagram/renderErNode.js +36 -0
  366. package/dist/src/components/expand/AddForm.js +86 -0
  367. package/dist/src/components/expand/AddFormItem.js +149 -0
  368. package/dist/src/components/filter/Filter.js +720 -0
  369. package/dist/src/components/filter/FilterItem.js +493 -0
  370. package/dist/src/components/hall/AppCollect.js +121 -0
  371. package/dist/src/components/hall/AppList.js +480 -0
  372. package/dist/src/components/hall/AppVisitRecord.js +113 -0
  373. package/dist/src/components/hall/Banner.js +33 -0
  374. package/dist/src/components/hall/ServiceCard.js +124 -0
  375. package/dist/src/components/hall/UserCard.js +81 -0
  376. package/dist/src/components/permiss/AddApi.js +143 -0
  377. package/dist/src/components/permiss/AddNoEntityApi.js +180 -0
  378. package/dist/src/components/permiss/AddSystemPermiss.js +131 -0
  379. package/dist/src/components/permiss/AllocateRole.js +131 -0
  380. package/dist/src/components/permiss/ApiSubList.js +151 -0
  381. package/dist/src/components/permiss/CommonRoleMenu.js +591 -0
  382. package/dist/src/components/permiss/FieldScope.js +200 -0
  383. package/dist/src/components/permiss/PermissManage.js +88 -0
  384. package/dist/src/components/permiss/RoleAppList.js +36 -0
  385. package/dist/src/components/permiss/RoleMenu.js +518 -0
  386. package/dist/src/components/permiss/RoleSubList.js +5 -0
  387. package/dist/src/components/permiss/RoleSubList.vue.js +300 -0
  388. package/dist/src/components/permiss/jurisdiction.js +359 -0
  389. package/dist/src/components/process-healthcheck/HealthcheckChart.js +234 -0
  390. package/dist/src/components/process-healthcheck/HealthcheckChart.vue.js +348 -0
  391. package/dist/src/components/process-healthcheck/HealthcheckRenderer.js +36 -0
  392. package/dist/src/components/process-healthcheck/index.js +8 -0
  393. package/dist/src/components/report/Config.js +1708 -0
  394. package/dist/src/components/report/Design.js +4632 -0
  395. package/dist/src/components/report/StatList.js +217 -0
  396. package/dist/src/components/right/EntityOtherSystemList.js +82 -0
  397. package/dist/src/components/right/SystemInterfaceList.js +418 -0
  398. package/dist/src/components/right/SystemList.js +1017 -0
  399. package/dist/src/components/upLoad.js +71 -0
  400. package/dist/src/components/viewport/LookViewList.js +22 -0
  401. package/dist/src/components/viewport/ViewAddForm.js +142 -0
  402. package/dist/src/components/viewport/ViewDefineList.js +50 -0
  403. package/dist/src/components/viewport/ViewFiedList.js +723 -0
  404. package/dist/src/components/viewport/ViewScope.js +116 -0
  405. package/dist/src/components/wiki-workbench/WikiCites.js +301 -0
  406. package/dist/src/components/wiki-workbench/WikiIntake.js +308 -0
  407. package/dist/src/components/wiki-workbench/WikiIntake.vue.js +309 -0
  408. package/dist/src/components/wiki-workbench/WikiJobs.js +195 -0
  409. package/dist/src/components/wiki-workbench/WikiRevisions.js +229 -0
  410. package/dist/src/components/wiki-workbench/WikiSpaceSettings.js +59 -0
  411. package/dist/src/components/wiki-workbench/WikiSpaceSettings.vue.js +127 -0
  412. package/dist/src/components/wiki-workbench/codes.js +27 -0
  413. package/dist/src/components/wiki-workbench/index.js +13 -0
  414. package/dist/src/index.js +42 -0
  415. package/dist/src/popup.js +68 -0
  416. package/dist/src/public-components.js +20 -0
  417. package/dist/src/remote.entry.js +31 -0
  418. package/dist/src/route-components.js +12 -0
  419. package/dist/src/system.component.index.js +5 -0
  420. package/dist/src/system.component.js +342 -0
  421. package/dist/src/system.component.lazy.js +50 -0
  422. package/dist/src/views/Add.js +8 -0
  423. package/dist/src/views/Add.vue.js +734 -0
  424. package/dist/src/views/AiToolManager.js +2530 -0
  425. package/dist/src/views/App.js +48 -0
  426. package/dist/src/views/AppRoleSelect.js +233 -0
  427. package/dist/src/views/BatchEdit.js +256 -0
  428. package/dist/src/views/Bpmn.js +319 -0
  429. package/dist/src/views/Bpmn.vue.js +1196 -0
  430. package/dist/src/views/EntityCheckPage.js +49 -0
  431. package/dist/src/views/EntityDetailPage.js +5 -0
  432. package/dist/src/views/EntityDetailPage.vue.js +73 -0
  433. package/dist/src/views/EntityEditPage.js +10 -0
  434. package/dist/src/views/EntitySubListPage.js +41 -0
  435. package/dist/src/views/EntityTreePage.js +32 -0
  436. package/dist/src/views/Error.js +210 -0
  437. package/dist/src/views/ExcelDesign.js +2730 -0
  438. package/dist/src/views/ExcelDesign.vue.js +2165 -0
  439. package/dist/src/views/ExcelPreviewPage.js +166 -0
  440. package/dist/src/views/ExcelPreviewPage.vue.js +572 -0
  441. package/dist/src/views/ExportFilePage.js +21 -0
  442. package/dist/src/views/ExportPage.js +21 -0
  443. package/dist/src/views/FormDesign.js +1033 -0
  444. package/dist/src/views/FormDesign.vue.js +1564 -0
  445. package/dist/src/views/I18nWorkbench.js +521 -0
  446. package/dist/src/views/ImportFilePage.js +21 -0
  447. package/dist/src/views/ImportPage.js +21 -0
  448. package/dist/src/views/MEntityListPage.js +66 -0
  449. package/dist/src/views/MEntitySubListPage.js +41 -0
  450. package/dist/src/views/MinePage.js +16 -0
  451. package/dist/src/views/Module.js +173 -0
  452. package/dist/src/views/PageAttributeTreePage.js +421 -0
  453. package/dist/src/views/PageConfig.js +177 -0
  454. package/dist/src/views/Permission.js +742 -0
  455. package/dist/src/views/PersonalInfo.js +792 -0
  456. package/dist/src/views/QyWechat.js +62 -0
  457. package/dist/src/views/ReportFormListPage.js +77 -0
  458. package/dist/src/views/TaskPage.js +180 -0
  459. package/dist/src/views/WikiBinding.js +614 -0
  460. package/dist/src/views/client/AddForm.js +55 -0
  461. package/dist/src/views/client/AppMarket.js +290 -0
  462. package/dist/src/views/client/ClientIndex.js +209 -0
  463. package/dist/src/views/client/ClientModuleIndexPage.js +5 -0
  464. package/dist/src/views/client/ClientModuleIndexPage.vue.js +30 -0
  465. package/dist/src/views/client/CopySystem.js +136 -0
  466. package/dist/src/views/client/CreateAppFormItem.js +8 -0
  467. package/dist/src/views/client/CreateAppFormItem.vue.js +232 -0
  468. package/dist/src/views/client/CreateMethod.js +76 -0
  469. package/dist/src/views/client/InstallSystem.js +309 -0
  470. package/dist/src/views/client/ManageList.js +5 -0
  471. package/dist/src/views/client/ManageList.vue.js +211 -0
  472. package/dist/src/views/client/OpenClientManage.js +51 -0
  473. package/dist/src/views/client/OpenSystemManage.js +56 -0
  474. package/dist/src/views/client/PageTabsCyclic.js +92 -0
  475. package/dist/src/views/client/SelfBuiltSystem.js +444 -0
  476. package/dist/src/views/client/StandardProduct.js +233 -0
  477. package/dist/src/views/client/SystemAppAccredit.js +561 -0
  478. package/dist/src/views/client/SystemAppManager.js +293 -0
  479. package/dist/src/views/client/SystemAppManager.vue.js +559 -0
  480. package/dist/src/views/client/SystemManager.js +452 -0
  481. package/dist/src/views/client/SystemManager.vue.js +522 -0
  482. package/dist/src/views/i18n/I18nAiTaskHistoryDialog.js +230 -0
  483. package/dist/src/views/i18n/I18nPublishDialog.js +451 -0
  484. package/dist/src/views/i18n/I18nTranslationList.js +8 -0
  485. package/dist/src/views/i18n/I18nTranslationList.vue.js +247 -0
  486. package/dist/src/views/i18n/i18n-workbench-text.js +11 -0
  487. package/dist/src/views/layout/CardList.js +96 -0
  488. package/dist/src/views/layout/Grid.js +138 -0
  489. package/dist/src/views/match/AddTargetField.js +8 -0
  490. package/dist/src/views/match/AddTargetField.vue.js +127 -0
  491. package/dist/src/views/match/MatchAddFormItem.js +5 -0
  492. package/dist/src/views/match/MatchAddFormItem.vue.js +84 -0
  493. package/dist/src/views/match/conversion.js +805 -0
  494. package/dist/src/views/match/customize.js +391 -0
  495. package/dist/src/views/match/fieldMatch.js +8 -0
  496. package/dist/src/views/match/fieldMatch.vue.js +610 -0
  497. package/dist/src/views/report/AddFormItem.js +60 -0
  498. package/dist/src/views/report/DesignReport.js +1392 -0
  499. package/dist/src/views/report/ReportTreeFind.js +8 -0
  500. package/dist/src/views/report/ReportTreeFind.vue.js +166 -0
  501. package/dist/style.css +33364 -0
  502. package/package.json +133 -3
  503. package/src/base/AiPromptDesigner.vue +653 -0
  504. package/src/base/AiPromptView.vue +467 -0
  505. package/src/base/AiSkillEditor.vue +2125 -0
  506. package/src/base/AppConfigFormItem.vue +404 -0
  507. package/src/base/AppMarket.vue +264 -0
  508. package/src/base/AppMarketList.vue +233 -0
  509. package/src/base/AppMarketSystemDetail.vue +380 -0
  510. package/src/base/AttributeSubAdd.vue +29 -0
  511. package/src/base/ChooseApplication.vue +176 -0
  512. package/src/base/ClientAppItem.vue +247 -0
  513. package/src/base/ClientApplication.vue +447 -0
  514. package/src/base/ClientApplicationList.vue +180 -0
  515. package/src/base/ClientModule.vue +69 -0
  516. package/src/base/ClientModuleIndex.vue +437 -0
  517. package/src/base/ClientSystemDetail.vue +319 -0
  518. package/src/base/ClientSystemList.vue +435 -0
  519. package/src/base/CommonFieldList.vue +1397 -0
  520. package/src/base/CommonSearchList.vue +191 -0
  521. package/src/base/CompayDetail.vue +199 -0
  522. package/src/base/ComponentGlobalSet.vue +842 -0
  523. package/src/base/ComponentParamsTree.vue +310 -0
  524. package/src/base/ConfigModuleIndex.vue +121 -0
  525. package/src/base/CurrentClientApplication.vue +37 -0
  526. package/src/base/CurrentVersionInfo.vue +107 -0
  527. package/src/base/EntityMatchCompare.vue +442 -0
  528. package/src/base/FieldRelationFormItem.vue +260 -0
  529. package/src/base/HelpDocSet.vue +1217 -0
  530. package/src/base/IndexFormItem.vue +197 -0
  531. package/src/base/JobFormItem.vue +101 -0
  532. package/src/base/ManageAppNav.vue +1190 -0
  533. package/src/base/ManageMenu.vue +935 -0
  534. package/src/base/ManageMenuItem.vue +399 -0
  535. package/src/base/NoInstallSystemList.vue +114 -0
  536. package/src/base/PageList.vue +47 -0
  537. package/src/base/PasswordFormItem.vue +94 -0
  538. package/src/base/ProcessFormItem.vue +129 -0
  539. package/src/base/PublishSystemApplyFormItem.vue +87 -0
  540. package/src/base/RequestLog.vue +198 -0
  541. package/src/base/RightRiskList.vue +212 -0
  542. package/src/base/RoleAccredit.vue +961 -0
  543. package/src/base/RoleRightList.vue +159 -0
  544. package/src/base/RoleUserManage.vue +186 -0
  545. package/src/base/ServiceAccredit.vue +956 -0
  546. package/src/base/ServiceMenu.vue +420 -0
  547. package/src/base/ServiceMenuFormItem.vue +22 -0
  548. package/src/base/ServiceOperate.vue +929 -0
  549. package/src/base/SystemHelpTreeFind.vue +50 -0
  550. package/src/base/aiPromptMode.js +153 -0
  551. package/src/base/data-check/DataChckDetail.vue +281 -0
  552. package/src/base/data-check/DataCheck.vue +261 -0
  553. package/src/base/data-check/DataCheckList.vue +327 -0
  554. package/src/base/data-check/DataCheckSubList.vue +160 -0
  555. package/src/base/entity-view/EntityViewFormItem.vue +170 -0
  556. package/src/base/entity-view/EntityViewSubList.vue +149 -0
  557. package/src/base/entity-view-config/BasicInfoDialog.vue +156 -0
  558. package/src/base/entity-view-config/FieldPanel.vue +742 -0
  559. package/src/base/entity-view-config/FieldPropForm.vue +687 -0
  560. package/src/base/entity-view-config/FormulaDialog.vue +153 -0
  561. package/src/base/entity-view-config/ObjectFieldDialog.vue +367 -0
  562. package/src/base/entity-view-config/RelationPanel.vue +951 -0
  563. package/src/base/entity-view-config/SourceManagerDialog.vue +428 -0
  564. package/src/base/entity-view-config/SqlPanel.vue +138 -0
  565. package/src/base/entity-view-config/UnionPanel.vue +1037 -0
  566. package/src/base/entity-view-config/ViewConfig.vue +661 -0
  567. package/src/base/entity-view-config/constants.js +139 -0
  568. package/src/base/user-type/UserTypeFormItem.vue +134 -0
  569. package/src/components/AddPageFormItem.vue +82 -0
  570. package/src/components/AddUsedInterface.vue +154 -0
  571. package/src/components/AiDocFormItem.vue +293 -0
  572. package/src/components/AiList.vue +132 -0
  573. package/src/components/AiPermissionAssistant.vue +304 -0
  574. package/src/components/AppList.vue +330 -0
  575. package/src/components/Apply/AIApplyIndex.vue +458 -0
  576. package/src/components/Apply/ApplyIndex.vue +358 -0
  577. package/src/components/AttributeList.vue +667 -0
  578. package/src/components/Banner.vue +24 -0
  579. package/src/components/BatchAddFieldDialog.vue +590 -0
  580. package/src/components/CardO.vue +112 -0
  581. package/src/components/CheckForm.vue +32 -0
  582. package/src/components/ClientAdminFormItem.vue +49 -0
  583. package/src/components/ClientAdminList.vue +434 -0
  584. package/src/components/ClientFormItem.vue +49 -0
  585. package/src/components/ClientList.vue +155 -0
  586. package/src/components/CodeDetail.vue +465 -0
  587. package/src/components/CodeManage.vue +1004 -0
  588. package/src/components/ComponentFind.vue +222 -0
  589. package/src/components/ComponentList.vue +526 -0
  590. package/src/components/ConfigParamFormItem.vue +383 -0
  591. package/src/components/CreatePage.vue +348 -0
  592. package/src/components/DashboardCreate.vue +73 -0
  593. package/src/components/DataLog.vue +181 -0
  594. package/src/components/DataLogTimeline.vue +202 -0
  595. package/src/components/DataSnapshot.vue +264 -0
  596. package/src/components/DataSnapshotList.vue +79 -0
  597. package/src/components/DataSyncInit.vue +97 -0
  598. package/src/components/DblogList.vue +163 -0
  599. package/src/components/DeptFind.vue +203 -0
  600. package/src/components/DynamicUserList.vue +72 -0
  601. package/src/components/EntityCheckboxFind.vue +90 -0
  602. package/src/components/EntityRelationAdd.vue +201 -0
  603. package/src/components/EntityRelationAddFormItem.vue +235 -0
  604. package/src/components/EntityRightFormItem.vue +618 -0
  605. package/src/components/EntityRightSubList.vue +740 -0
  606. package/src/components/EntityTagSubList.vue +72 -0
  607. package/src/components/EntityTreeManage.vue +988 -0
  608. package/src/components/ExportSystemConfig.vue +131 -0
  609. package/src/components/FieldTreeFind.vue +48 -0
  610. package/src/components/FormulaEditor.vue +1220 -0
  611. package/src/components/GenTestData.vue +787 -0
  612. package/src/components/HallNav.vue +539 -0
  613. package/src/components/HeaderNav.vue +447 -0
  614. package/src/components/IconCard.vue +158 -0
  615. package/src/components/IconFontLibrary.vue +61 -0
  616. package/src/components/IconFontList.vue +75 -0
  617. package/src/components/IdentifyList.vue +33 -0
  618. package/src/components/ImportSystemConfig.vue +234 -0
  619. package/src/components/InterfaceSubList.vue +295 -0
  620. package/src/components/JsPanel.vue +111 -0
  621. package/src/components/LanguageImportPage.vue +601 -0
  622. package/src/components/LanguageSetting.vue +451 -0
  623. package/src/components/List/LinkItem.vue +98 -0
  624. package/src/components/List/List.vue +17 -0
  625. package/src/components/List/ListItem.vue +52 -0
  626. package/src/components/MenuTreeFind.vue +128 -0
  627. package/src/components/MessageList.vue +198 -0
  628. package/src/components/MessageRuleFormItem.vue +60 -0
  629. package/src/components/MessageRuleReceiverFormItem.vue +179 -0
  630. package/src/components/MessageTemplate.vue +949 -0
  631. package/src/components/MetaList.vue +108 -0
  632. package/src/components/Nav.vue +604 -0
  633. package/src/components/NavFormCatalogItem.vue +9 -0
  634. package/src/components/NumList.vue +108 -0
  635. package/src/components/OperateLog.vue +168 -0
  636. package/src/components/PageCatalog.vue +458 -0
  637. package/src/components/PageChart.vue +339 -0
  638. package/src/components/PageSwipes.vue +234 -0
  639. package/src/components/PersonFormItem.vue +94 -0
  640. package/src/components/Popup.vue +393 -0
  641. package/src/components/PrintFormList.vue +529 -0
  642. package/src/components/PublishEntity.vue +87 -0
  643. package/src/components/RelyFieldTreeFind.vue +57 -0
  644. package/src/components/ReportFormList.vue +247 -0
  645. package/src/components/ReportList.vue +647 -0
  646. package/src/components/RightSubList.vue +256 -0
  647. package/src/components/RoleAddUser.vue +56 -0
  648. package/src/components/RoleApplicationCard.vue +299 -0
  649. package/src/components/RoleApplicationList.vue +766 -0
  650. package/src/components/RoleApplicationSet.vue +845 -0
  651. package/src/components/Search.vue +272 -0
  652. package/src/components/ServiceFormItem.vue +35 -0
  653. package/src/components/SnapshotDataList.vue +78 -0
  654. package/src/components/SystemAdminList.vue +497 -0
  655. package/src/components/SystemFormItem.vue +125 -0
  656. package/src/components/SystemNav.vue +29 -0
  657. package/src/components/TaskNumCard.vue +26 -0
  658. package/src/components/TimerRuleFormItem.vue +227 -0
  659. package/src/components/TodoList.vue +424 -0
  660. package/src/components/UpdateSystemConfig.vue +200 -0
  661. package/src/components/UserCard.vue +110 -0
  662. package/src/components/UserFind.vue +702 -0
  663. package/src/components/UserFormItem.vue +762 -0
  664. package/src/components/UserList.vue +19 -0
  665. package/src/components/UserManage.vue +758 -0
  666. package/src/components/UserRoleList.vue +497 -0
  667. package/src/components/ValidateRuleFormItem.vue +90 -0
  668. package/src/components/ViewFieldDefine.vue +703 -0
  669. package/src/components/WikiSpaceList.vue +270 -0
  670. package/src/components/WikiWorkbench.vue +717 -0
  671. package/src/components/authorization/AddApiPermiss.vue +179 -0
  672. package/src/components/authorization/AddAuthorization.vue +135 -0
  673. package/src/components/authorization/AddEntityFind.vue +68 -0
  674. package/src/components/authorization/AddNoApi.vue +143 -0
  675. package/src/components/authorization/AddRoleScope.vue +291 -0
  676. package/src/components/authorization/AiRolePlan.vue +751 -0
  677. package/src/components/authorization/ApiShareOtherList.vue +353 -0
  678. package/src/components/authorization/ApiSystemList.vue +314 -0
  679. package/src/components/authorization/AuthorizationInterface.vue +668 -0
  680. package/src/components/authorization/AuthorizationRoleSystem.vue +713 -0
  681. package/src/components/authorization/EntityConstraintFormItem.vue +257 -0
  682. package/src/components/authorization/OtherShareApiList.vue +248 -0
  683. package/src/components/authorization/PermissCommonRoleTabs.vue +122 -0
  684. package/src/components/authorization/PermissRoleAuthorization.vue +1097 -0
  685. package/src/components/authorization/PermissRoleTabs.vue +121 -0
  686. package/src/components/authorization/RoleLevel.vue +113 -0
  687. package/src/components/authorization/RoleLevelScope.vue +247 -0
  688. package/src/components/authorization/SystemAddNoApi.vue +139 -0
  689. package/src/components/card/CardList.vue +78 -0
  690. package/src/components/card/CardListItem.vue +147 -0
  691. package/src/components/card/Title.vue +38 -0
  692. package/src/components/custom-bpmn/CustomContextPad.js +58 -0
  693. package/src/components/custom-bpmn/CustomPalette.js +1 -0
  694. package/src/components/custom-bpmn/CustomRenderer.js +1 -0
  695. package/src/components/custom-bpmn/CustomRendererBpmn.js +84 -0
  696. package/src/components/custom-bpmn/PropertiesView.vue +7879 -0
  697. package/src/components/custom-bpmn/components/AiModel.vue +373 -0
  698. package/src/components/custom-bpmn/components/Api.vue +290 -0
  699. package/src/components/custom-bpmn/components/BatchOperation.vue +145 -0
  700. package/src/components/custom-bpmn/components/Copy.vue +440 -0
  701. package/src/components/custom-bpmn/components/DataTransform.vue +260 -0
  702. package/src/components/custom-bpmn/components/Demo.vue +64 -0
  703. package/src/components/custom-bpmn/components/EditDiv.vue +466 -0
  704. package/src/components/custom-bpmn/components/GenScope.vue +252 -0
  705. package/src/components/custom-bpmn/components/GlobalParamsTree.vue +61 -0
  706. package/src/components/custom-bpmn/components/Knowledges.vue +182 -0
  707. package/src/components/custom-bpmn/components/Login.vue +372 -0
  708. package/src/components/custom-bpmn/components/MessageQueue.vue +167 -0
  709. package/src/components/custom-bpmn/components/MetaSelect.vue +136 -0
  710. package/src/components/custom-bpmn/components/NumStatistic.vue +245 -0
  711. package/src/components/custom-bpmn/components/ObjectTransform.vue +454 -0
  712. package/src/components/custom-bpmn/components/OutPut.vue +412 -0
  713. package/src/components/custom-bpmn/components/ParamsMachining.vue +644 -0
  714. package/src/components/custom-bpmn/components/ParamsOutput.vue +130 -0
  715. package/src/components/custom-bpmn/components/ProcessAudit.vue +443 -0
  716. package/src/components/custom-bpmn/components/SingleMultipleFind.vue +637 -0
  717. package/src/components/custom-bpmn/components/TestDialog.vue +1068 -0
  718. package/src/components/custom-bpmn/img/chaxun.png +0 -0
  719. package/src/components/custom-bpmn/img/fasong.png +0 -0
  720. package/src/components/custom-bpmn/img/gengxin.png +0 -0
  721. package/src/components/custom-bpmn/img/jiagong.png +0 -0
  722. package/src/components/custom-bpmn/img/jiekou.png +0 -0
  723. package/src/components/custom-bpmn/img/shanchu.png +0 -0
  724. package/src/components/custom-bpmn/img/tongbu.png +0 -0
  725. package/src/components/custom-bpmn/img/xinzeng.png +0 -0
  726. package/src/components/custom-bpmn/img/xunhuanend.png +0 -0
  727. package/src/components/custom-bpmn/img/xunhuanstart.png +0 -0
  728. package/src/components/custom-bpmn/img/ywgz.png +0 -0
  729. package/src/components/custom-bpmn/index.js +1 -0
  730. package/src/components/custom-bpmn/palette.js +18 -0
  731. package/src/components/custom-bpmn/util.js +5 -0
  732. package/src/components/dashboard-create.js +17 -0
  733. package/src/components/entity-relation-diagram/Er.vue +360 -0
  734. package/src/components/entity-relation-diagram/renderErNode.js +32 -0
  735. package/src/components/expand/AddForm.vue +91 -0
  736. package/src/components/expand/AddFormItem.vue +150 -0
  737. package/src/components/filter/Filter.vue +739 -0
  738. package/src/components/filter/FilterItem.vue +516 -0
  739. package/src/components/hall/AppCollect.vue +190 -0
  740. package/src/components/hall/AppList.vue +513 -0
  741. package/src/components/hall/AppVisitRecord.vue +171 -0
  742. package/src/components/hall/Banner.vue +21 -0
  743. package/src/components/hall/ServiceCard.vue +204 -0
  744. package/src/components/hall/UserCard.vue +114 -0
  745. package/src/components/permiss/AddApi.vue +119 -0
  746. package/src/components/permiss/AddNoEntityApi.vue +131 -0
  747. package/src/components/permiss/AddSystemPermiss.vue +107 -0
  748. package/src/components/permiss/AllocateRole.vue +107 -0
  749. package/src/components/permiss/ApiSubList.vue +193 -0
  750. package/src/components/permiss/CommonRoleMenu.vue +631 -0
  751. package/src/components/permiss/FieldScope.vue +138 -0
  752. package/src/components/permiss/PermissManage.vue +96 -0
  753. package/src/components/permiss/RoleAppList.vue +52 -0
  754. package/src/components/permiss/RoleMenu.vue +547 -0
  755. package/src/components/permiss/RoleSubList.vue +263 -0
  756. package/src/components/permiss/jurisdiction.vue +425 -0
  757. package/src/components/process-healthcheck/HealthcheckChart.vue +529 -0
  758. package/src/components/process-healthcheck/HealthcheckRenderer.js +41 -0
  759. package/src/components/process-healthcheck/index.js +8 -0
  760. package/src/components/report/Config.vue +1654 -0
  761. package/src/components/report/Design.vue +3528 -0
  762. package/src/components/report/StatList.vue +234 -0
  763. package/src/components/right/EntityOtherSystemList.vue +73 -0
  764. package/src/components/right/SystemInterfaceList.vue +413 -0
  765. package/src/components/right/SystemList.vue +848 -0
  766. package/src/components/upLoad.vue +69 -0
  767. package/src/components/viewport/LookViewList.vue +28 -0
  768. package/src/components/viewport/ViewAddForm.vue +151 -0
  769. package/src/components/viewport/ViewDefineList.vue +53 -0
  770. package/src/components/viewport/ViewFiedList.vue +646 -0
  771. package/src/components/viewport/ViewScope.vue +112 -0
  772. package/src/components/wiki-workbench/WikiCites.vue +234 -0
  773. package/src/components/wiki-workbench/WikiIntake.vue +505 -0
  774. package/src/components/wiki-workbench/WikiJobs.vue +175 -0
  775. package/src/components/wiki-workbench/WikiRevisions.vue +208 -0
  776. package/src/components/wiki-workbench/WikiSpaceSettings.vue +137 -0
  777. package/src/components/wiki-workbench/codes.js +43 -0
  778. package/src/components/wiki-workbench/index.js +15 -0
  779. package/src/index.js +20 -0
  780. package/src/popup.js +86 -0
  781. package/src/public-components.js +8 -0
  782. package/src/remote.entry.js +42 -0
  783. package/src/route-components.js +8 -0
  784. package/src/system.component.index.js +3 -0
  785. package/src/system.component.js +46 -0
  786. package/src/system.component.lazy.js +68 -0
  787. package/src/system.component.visual.js +18 -0
  788. package/src/views/Add.vue +827 -0
  789. package/src/views/AiToolManager.vue +2372 -0
  790. package/src/views/App.vue +53 -0
  791. package/src/views/AppRoleSelect.vue +334 -0
  792. package/src/views/BatchEdit.vue +238 -0
  793. package/src/views/Bpmn.vue +1713 -0
  794. package/src/views/EntityCheckPage.vue +52 -0
  795. package/src/views/EntityDetailPage.vue +79 -0
  796. package/src/views/EntityEditPage.vue +13 -0
  797. package/src/views/EntitySubListPage.vue +44 -0
  798. package/src/views/EntityTreePage.vue +37 -0
  799. package/src/views/Error.vue +63 -0
  800. package/src/views/ExcelDesign.vue +3350 -0
  801. package/src/views/ExcelPreviewPage.vue +590 -0
  802. package/src/views/ExportFilePage.vue +19 -0
  803. package/src/views/ExportPage.vue +19 -0
  804. package/src/views/FormDesign.vue +2301 -0
  805. package/src/views/I18nWorkbench.vue +508 -0
  806. package/src/views/ImportFilePage.vue +19 -0
  807. package/src/views/ImportPage.vue +19 -0
  808. package/src/views/MEntityListPage.vue +83 -0
  809. package/src/views/MEntitySubListPage.vue +44 -0
  810. package/src/views/MinePage.vue +18 -0
  811. package/src/views/Module.vue +210 -0
  812. package/src/views/PageAttributeTreePage.vue +437 -0
  813. package/src/views/PageConfig.vue +259 -0
  814. package/src/views/Permission.vue +695 -0
  815. package/src/views/PersonalInfo.vue +693 -0
  816. package/src/views/QyWechat.vue +69 -0
  817. package/src/views/ReportFormListPage.vue +82 -0
  818. package/src/views/TaskPage.vue +199 -0
  819. package/src/views/WikiBinding.vue +740 -0
  820. package/src/views/client/AddForm.vue +64 -0
  821. package/src/views/client/AppMarket.vue +380 -0
  822. package/src/views/client/ClientIndex.vue +261 -0
  823. package/src/views/client/ClientModuleIndexPage.vue +35 -0
  824. package/src/views/client/CopySystem.vue +179 -0
  825. package/src/views/client/CreateAppFormItem.vue +285 -0
  826. package/src/views/client/CreateMethod.vue +114 -0
  827. package/src/views/client/InstallSystem.vue +295 -0
  828. package/src/views/client/ManageList.vue +178 -0
  829. package/src/views/client/OpenClientManage.vue +54 -0
  830. package/src/views/client/OpenSystemManage.vue +57 -0
  831. package/src/views/client/PageTabsCyclic.vue +121 -0
  832. package/src/views/client/SelfBuiltSystem.vue +497 -0
  833. package/src/views/client/StandardProduct.vue +325 -0
  834. package/src/views/client/SystemAppAccredit.vue +607 -0
  835. package/src/views/client/SystemAppManager.vue +967 -0
  836. package/src/views/client/SystemManager.vue +998 -0
  837. package/src/views/i18n/I18nAiTaskHistoryDialog.vue +173 -0
  838. package/src/views/i18n/I18nPublishDialog.vue +360 -0
  839. package/src/views/i18n/I18nTranslationList.vue +195 -0
  840. package/src/views/i18n/i18n-workbench-text.js +7 -0
  841. package/src/views/layout/CardList.vue +122 -0
  842. package/src/views/layout/Grid.vue +176 -0
  843. package/src/views/match/AddTargetField.vue +136 -0
  844. package/src/views/match/MatchAddFormItem.vue +87 -0
  845. package/src/views/match/conversion.vue +740 -0
  846. package/src/views/match/customize.vue +374 -0
  847. package/src/views/match/fieldMatch.vue +734 -0
  848. package/src/views/report/AddFormItem.vue +66 -0
  849. package/src/views/report/DesignReport.vue +1229 -0
  850. package/src/views/report/ReportTreeFind.vue +195 -0
  851. package/types/dept-find.d.ts +1 -0
  852. package/types/entity-tree-manage.d.ts +1 -0
  853. package/types/excel-preview-page.d.ts +1 -0
  854. package/types/header-nav.d.ts +1 -0
  855. package/types/index.d.ts +14 -0
  856. package/types/page-catalog.d.ts +1 -0
  857. package/types/popup.d.ts +2 -0
  858. package/types/report-form-list-page.d.ts +1 -0
  859. package/types/report-form-list.d.ts +1 -0
  860. package/types/route-components.d.ts +1 -0
  861. package/types/user-find.d.ts +1 -0
@@ -0,0 +1,2372 @@
1
+ <template>
2
+ <div class="ai-tool-manager">
3
+ <!-- 技能 -->
4
+ <div class="tool-section">
5
+ <div class="section-header">
6
+ <span class="section-title">技能</span>
7
+ </div>
8
+ <div class="tool-cards">
9
+ <div
10
+ v-for="skill in skillTools"
11
+ :key="skill.ID"
12
+ class="tool-card skill-card"
13
+ @click="handleSkillClick(skill)"
14
+ >
15
+ <div class="card-header">
16
+ <div class="card-title-group">
17
+ <span class="card-title">{{ skill['SKILL|NAME'] || skill.NAME }}</span>
18
+ <span class="card-code">| {{ skill['SKILL|CODE'] }}</span>
19
+ </div>
20
+ <el-button
21
+ type="primary" link
22
+ icon="el-icon-delete-solid"
23
+ class="card-delete-btn"
24
+ @click.stop="handleDelete(skill)"
25
+ />
26
+ </div>
27
+ <div class="card-content">
28
+ <div class="card-line">技能描述:{{ skill['SKILL|DESC'] }}</div>
29
+ </div>
30
+ </div>
31
+ <div class="tool-card add-card" @click="handleAdd('skill')">
32
+ <div class="add-icon">+</div>
33
+ <div class="add-text">添加技能</div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ <!-- 对象接口工具 -->
39
+ <div class="tool-section">
40
+ <div class="section-header">
41
+ <span class="section-title">对象接口工具</span>
42
+ </div>
43
+ <div class="tool-cards">
44
+ <div
45
+ v-for="tool in interfaceTools"
46
+ :key="tool.ID"
47
+ class="tool-card interface-card clickable"
48
+ @click="handleApiClick(tool)"
49
+ >
50
+ <div class="card-header">
51
+ <div class="card-title-group">
52
+ <el-tag v-if="tool['API|FRAME_API']" size="small" type="warning">通用</el-tag>
53
+ <span class="card-title">{{ tool['API|LABEL'] || tool.NAME }}</span>
54
+ <span class="card-code">| {{ tool['API|NAME'] }}</span>
55
+ </div>
56
+ <el-button
57
+ type="primary" link
58
+ icon="el-icon-delete-solid"
59
+ class="card-delete-btn"
60
+ @click.stop="handleDelete(tool)"
61
+ />
62
+ </div>
63
+ <div class="card-content">
64
+ <div class="card-line">所属对象:{{ tool['API|ENTITY#'] || tool['META#'] }}</div>
65
+ <div class="card-line">接口说明:{{ tool['API|PARAM_EXPLAIN'] }}</div>
66
+ </div>
67
+ </div>
68
+ <div class="tool-card add-card" @click="handleAdd('interface')">
69
+ <div class="add-icon">+</div>
70
+ <div class="add-text">添加对象接口工具</div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <!-- 外部接口工具 -->
76
+ <div class="tool-section">
77
+ <div class="section-header">
78
+ <span class="section-title">外部接口工具</span>
79
+ </div>
80
+ <div class="tool-cards">
81
+ <div
82
+ v-for="tool in externalTools"
83
+ :key="tool.ID"
84
+ class="tool-card external-card"
85
+ >
86
+ <div class="card-header">
87
+ <div class="card-title-group">
88
+ <span class="card-title">{{ tool['OUT_API|NAME'] || tool.NAME }}</span>
89
+ </div>
90
+ <el-button
91
+ type="primary" link
92
+ icon="el-icon-delete-solid"
93
+ class="card-delete-btn"
94
+ @click.stop="handleDelete(tool)"
95
+ />
96
+ </div>
97
+ <div class="card-content">
98
+ <div class="card-line">接口说明:{{ tool['OUT_API|NOTICE'] }}</div>
99
+ </div>
100
+ </div>
101
+ <div class="tool-card add-card" @click="handleAdd('external')">
102
+ <div class="add-icon">+</div>
103
+ <div class="add-text">添加外部接口工具</div>
104
+ </div>
105
+ </div>
106
+ </div>
107
+
108
+ <!-- 内置工具 -->
109
+ <div class="tool-section">
110
+ <div class="section-header">
111
+ <span class="section-title">内置工具</span>
112
+ </div>
113
+ <div class="tool-cards">
114
+ <div
115
+ v-for="tool in sysTools"
116
+ :key="tool.ID"
117
+ class="tool-card sys-tool-card"
118
+ >
119
+ <div class="card-header">
120
+ <div class="card-title-group">
121
+ <span class="card-title">{{ tool['SYS_TOOL|NAME'] || tool.NAME }}</span>
122
+ <span class="card-code">| {{ tool['SYS_TOOL|CODE'] }}</span>
123
+ </div>
124
+ <el-button
125
+ type="text"
126
+ icon="el-icon-delete-solid"
127
+ class="card-delete-btn"
128
+ @click.stop="handleDelete(tool)"
129
+ />
130
+ </div>
131
+ <div class="card-content">
132
+ <div class="card-line">工具描述:{{ tool['SYS_TOOL|DESC'] }}</div>
133
+ </div>
134
+ </div>
135
+ <div class="tool-card add-card" @click="handleAdd('systool')">
136
+ <div class="add-icon">+</div>
137
+ <div class="add-text">添加内置工具</div>
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+ <!-- MCP工具 -->
143
+ <div class="tool-section">
144
+ <div class="section-header">
145
+ <span class="section-title">MCP工具</span>
146
+ </div>
147
+ <div class="tool-cards">
148
+ <div
149
+ v-for="tool in mcpTools"
150
+ :key="tool.ID"
151
+ class="tool-card mcp-card"
152
+ >
153
+ <div class="card-header">
154
+ <div class="card-title-group">
155
+ <span class="card-title">{{ tool['MCP|NAME'] || tool.NAME }}</span>
156
+ <span class="card-code">| {{ tool['MCP|CODE'] }}</span>
157
+ </div>
158
+ <el-button
159
+ type="primary" link
160
+ icon="el-icon-delete-solid"
161
+ class="card-delete-btn"
162
+ @click.stop="handleDelete(tool)"
163
+ />
164
+ </div>
165
+ <div class="card-content">
166
+ <div class="card-line">请求类型:{{ tool['MCP|TYPE'] }}</div>
167
+ <div class="card-line">地址/命令:{{ tool['MCP|URL'] || tool['MCP|COMMAND'] }}</div>
168
+ </div>
169
+ </div>
170
+ <div class="tool-card add-card" @click="handleAdd('mcp')">
171
+ <div class="add-icon">+</div>
172
+ <div class="add-text">添加MCP工具</div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ <!-- 子智能体工具 -->
178
+ <div class="tool-section">
179
+ <div class="section-header">
180
+ <span class="section-title">子智能体工具</span>
181
+ </div>
182
+ <draggable
183
+ v-model="subAgentTools"
184
+ class="tool-cards"
185
+ v-bind="subAgentDragOptions"
186
+ @end="handleSubAgentDragEnd"
187
+ >
188
+ <div
189
+ v-for="tool in subAgentTools"
190
+ :key="tool.ID"
191
+ class="tool-card subagent-card"
192
+ >
193
+ <div class="card-icon-wrapper">
194
+ <img :src="getSubAgentIcon(tool)" alt="icon" />
195
+ </div>
196
+ <div class="card-main">
197
+ <div class="card-header">
198
+ <div class="card-title-group">
199
+ <span class="card-title">{{ tool['SUB_AGENT|NAME'] || tool.NAME }}</span>
200
+ <span class="card-code">| {{ tool['SUB_AGENT|CODE'] }}</span>
201
+ </div>
202
+ <el-button
203
+ type="primary" link
204
+ icon="el-icon-delete-solid"
205
+ class="card-delete-btn"
206
+ @click.stop="handleDelete(tool)"
207
+ />
208
+ </div>
209
+ <div class="card-content">
210
+ <div class="card-line">应用简介:{{ tool['SUB_AGENT|AGENT_PROMPT'] }}</div>
211
+ </div>
212
+ </div>
213
+ </div>
214
+ <template v-slot:footer>
215
+ <div class="tool-card add-card" @click="handleAdd('subagent')">
216
+ <div class="add-icon">+</div>
217
+ <div class="add-text">添加子智能体</div>
218
+ </div>
219
+ </template>
220
+ </draggable>
221
+ </div>
222
+
223
+ <!-- 新增/编辑对话框 -->
224
+ <el-dialog
225
+ :title="dialogTitle"
226
+ v-model="dialogVisible"
227
+ width="600px"
228
+ :close-on-click-modal="false"
229
+ >
230
+ <el-form ref="toolForm" :model="formData" :rules="formRules" label-width="120px">
231
+ <el-form-item label="工具名称" prop="NAME">
232
+ <el-input v-model="formData.NAME" placeholder="请输入工具名称" />
233
+ </el-form-item>
234
+
235
+ <el-form-item label="工具类型" prop="TYPE">
236
+ <el-select v-model="formData.TYPE" placeholder="请选择工具类型" style="width: 100%" disabled>
237
+ <el-option label="对象接口工具" value="interface" />
238
+ <el-option label="外部接口工具" value="external" />
239
+ <el-option label="MCP工具" value="mcp" />
240
+ <el-option label="子智能体工具" value="subagent" />
241
+ </el-select>
242
+ </el-form-item>
243
+
244
+ <el-form-item label="工具描述" prop="DESC">
245
+ <el-input
246
+ v-model="formData.DESC"
247
+ type="textarea"
248
+ :rows="3"
249
+ placeholder="请输入工具描述"
250
+ />
251
+ </el-form-item>
252
+
253
+ <!-- 对象接口工具字段 -->
254
+ <template v-if="formData.TYPE === 'interface'">
255
+ <el-form-item label="对象接口" prop="ACTION">
256
+ <el-input v-model="formData.ACTION" placeholder="请选择对象接口" readonly>
257
+ <template v-slot:append><el-button icon="el-icon-search" @click="showApiDialog">选择接口</el-button></template>
258
+ </el-input>
259
+ </el-form-item>
260
+ <el-form-item label="对象" prop="META">
261
+ <el-input v-model="formData.META" placeholder="对象名称" readonly />
262
+ </el-form-item>
263
+ </template>
264
+
265
+ <!-- 外部接口工具字段 -->
266
+ <template v-if="formData.TYPE === 'external'">
267
+ <el-form-item label="外部接口" prop="API">
268
+ <el-input v-model="formData.API" placeholder="请输入外部接口地址" />
269
+ </el-form-item>
270
+ <el-form-item label="认证票据" prop="TOKEN">
271
+ <el-input v-model="formData.TOKEN" placeholder="请输入认证票据" />
272
+ </el-form-item>
273
+ </template>
274
+
275
+ <!-- MCP工具字段 -->
276
+ <template v-if="formData.TYPE === 'mcp'">
277
+ <el-form-item label="MCP地址" prop="MCP_URL">
278
+ <el-input v-model="formData.MCP_URL" placeholder="请输入MCP地址" />
279
+ </el-form-item>
280
+ </template>
281
+
282
+ <!-- 子智能体工具字段 -->
283
+ <template v-if="formData.TYPE === 'subagent'">
284
+ <el-form-item label="工作流" prop="WORKFLOW">
285
+ <el-input v-model="formData.WORKFLOW" type="textarea" :rows="3" placeholder="请输入工作流配置" />
286
+ </el-form-item>
287
+ <el-form-item label="Skills文件" prop="SKILL_FILE">
288
+ <el-upload
289
+ class="upload-demo"
290
+ action="#"
291
+ :auto-upload="false"
292
+ :on-change="handleFileChange"
293
+ :file-list="fileList"
294
+ >
295
+ <el-button size="small" type="primary">选择文件</el-button>
296
+ </el-upload>
297
+ </el-form-item>
298
+ </template>
299
+
300
+ <!-- 通用字段 -->
301
+ <el-form-item label="是否启用" prop="ENABLE">
302
+ <el-switch v-model="formData.ENABLE" :active-value="1" :inactive-value="0" />
303
+ </el-form-item>
304
+
305
+ <el-form-item label="需要用户确认" prop="CONFIRM">
306
+ <el-switch v-model="formData.CONFIRM" :active-value="1" :inactive-value="0" />
307
+ </el-form-item>
308
+
309
+ <el-form-item label="表单页面" prop="FORM_PAGE">
310
+ <el-input v-model="formData.FORM_PAGE" placeholder="请输入表单页面ID" />
311
+ </el-form-item>
312
+
313
+ <el-form-item label="结果页面" prop="RESULT_PAGE">
314
+ <el-input v-model="formData.RESULT_PAGE" placeholder="请输入结果页面ID" />
315
+ </el-form-item>
316
+
317
+ <el-form-item label="使用表单页面" prop="USE_FORM_PAGE">
318
+ <el-switch v-model="formData.USE_FORM_PAGE" :active-value="1" :inactive-value="0" />
319
+ </el-form-item>
320
+
321
+ <el-form-item label="使用结果页面" prop="USE_RESULT_PAGE">
322
+ <el-switch v-model="formData.USE_RESULT_PAGE" :active-value="1" :inactive-value="0" />
323
+ </el-form-item>
324
+ </el-form>
325
+
326
+ <template v-slot:footer><div class="dialog-footer">
327
+ <el-button @click="dialogVisible = false">取消</el-button>
328
+ <el-button type="primary" :loading="submitLoading" @click="handleSubmit">确定</el-button>
329
+ </div></template>
330
+ </el-dialog>
331
+
332
+ <!-- 对象接口选择对话框 -->
333
+ <el-dialog
334
+ title="添加对象接口工具"
335
+ v-model="apiDialogVisible"
336
+ width="1100px"
337
+ :close-on-click-modal="false"
338
+ class="api-select-dialog"
339
+ >
340
+ <div class="api-dialog-content">
341
+ <!-- 左侧:接口列表 -->
342
+ <div class="api-list-panel">
343
+ <el-tabs v-model="apiActiveTab" @tab-click="handleApiTabChange" class="api-tabs">
344
+ <!-- 通用接口标签页 -->
345
+ <el-tab-pane label="通用接口" name="frame">
346
+ <el-table
347
+ ref="frameApiTable"
348
+ :data="frameApiList"
349
+ height="380"
350
+ @selection-change="handleApiSelectionChange"
351
+ >
352
+ <el-table-column type="selection" width="50" align="center" />
353
+ <el-table-column type="index" label="序号" width="70" align="center" />
354
+ <el-table-column prop="LABEL" label="接口名称" min-width="140" show-overflow-tooltip>
355
+ <template v-slot="scope">
356
+ <el-link type="primary" :underline="false">{{ scope.row.LABEL }}</el-link>
357
+ </template>
358
+ </el-table-column>
359
+ <el-table-column prop="NAME" label="接口命令" width="120" show-overflow-tooltip />
360
+ <el-table-column prop="ENTITY#" label="所属对象" width="120" show-overflow-tooltip />
361
+ <el-table-column prop="PARAM_EXPLAIN" label="接口说明" min-width="220" show-overflow-tooltip />
362
+ </el-table>
363
+ <el-pagination
364
+ v-if="frameApiTotal > frameApiPageSize"
365
+ v-model:current-page="frameApiCurrentPage"
366
+ :page-size="frameApiPageSize"
367
+ layout="total, prev, pager, next"
368
+ :total="frameApiTotal"
369
+ @current-change="handleFrameApiPageChange"
370
+ style="margin-top: 12px; text-align: right;"
371
+ />
372
+ </el-tab-pane>
373
+
374
+ <!-- 对象接口标签页 -->
375
+ <el-tab-pane label="对象接口" name="entity">
376
+ <div class="filter-bar">
377
+ <div class="filter-item">
378
+ <label>选择对象:</label>
379
+ <epx-object
380
+ v-model="selectedEntity"
381
+ :fieldConfigs="{
382
+ attriLabel: '',
383
+ codeKey: 'FM_ENTITY',
384
+ state: 'EDIT',
385
+ placeholder: '请选择对象',
386
+ isMultiple: '0'
387
+ }"
388
+ @change="handleEntityChange"
389
+ />
390
+ </div>
391
+ </div>
392
+
393
+ <el-table
394
+ v-if="selectedEntity"
395
+ ref="apiTable"
396
+ :data="apiList"
397
+ height="330"
398
+ @selection-change="handleApiSelectionChange"
399
+ >
400
+ <el-table-column type="selection" width="50" align="center" />
401
+ <el-table-column type="index" label="序号" width="70" align="center" />
402
+ <el-table-column prop="LABEL" label="接口名称" min-width="140" show-overflow-tooltip>
403
+ <template v-slot="scope">
404
+ <el-link type="primary" :underline="false">{{ scope.row.LABEL }}</el-link>
405
+ </template>
406
+ </el-table-column>
407
+ <el-table-column prop="NAME" label="接口命令" width="120" show-overflow-tooltip />
408
+ <el-table-column prop="PARAM_EXPLAIN" label="接口说明" min-width="220" show-overflow-tooltip />
409
+ </el-table>
410
+
411
+ <div v-if="!selectedEntity" class="empty-table-tip">
412
+ <i class="el-icon-info"></i>
413
+ <p>请先选择对象</p>
414
+ </div>
415
+ </el-tab-pane>
416
+ </el-tabs>
417
+ </div>
418
+
419
+ <!-- 右侧:已选择列表 -->
420
+ <div class="api-selected-panel">
421
+ <div class="panel-header">
422
+ <span>已选择</span>
423
+ </div>
424
+ <div class="selected-list">
425
+ <div
426
+ v-for="(api, index) in selectedApis"
427
+ :key="api.ID"
428
+ class="selected-item"
429
+ >
430
+ <div class="item-header">
431
+ <el-tag v-if="api._isFrame" size="small" type="success" class="frame-tag">通用</el-tag>
432
+ <span class="item-title">{{ api.LABEL }} | {{ api.NAME }}</span>
433
+ <el-button
434
+ type="primary" link
435
+ icon="el-icon-delete-solid"
436
+ class="delete-btn"
437
+ @click="removeSelectedApi(index)"
438
+ />
439
+ </div>
440
+ <div class="item-content">
441
+ <div class="content-line">所属对象:{{ api['ENTITY#'] || (selectedEntity && selectedEntity.name) }}</div>
442
+ <div class="content-line">接口说明:{{ api.PARAM_EXPLAIN }}</div>
443
+ </div>
444
+ </div>
445
+ <div v-if="selectedApis.length === 0" class="empty-tip">
446
+ 请从左侧选择接口
447
+ </div>
448
+ </div>
449
+ <div class="panel-footer">
450
+ <span class="count-text">已选择 {{ selectedApis.length }} 个</span>
451
+ <div class="footer-actions">
452
+ <el-button size="small" @click="apiDialogVisible = false">取消</el-button>
453
+ <el-button size="small" type="primary" @click="confirmApiSelection">保存</el-button>
454
+ </div>
455
+ </div>
456
+ </div>
457
+ </div>
458
+ </el-dialog>
459
+
460
+ <!-- 外部接口选择对话框 -->
461
+ <el-dialog
462
+ title="添加外部接口工具"
463
+ v-model="externalApiDialogVisible"
464
+ width="1100px"
465
+ :close-on-click-modal="false"
466
+ class="api-select-dialog"
467
+ >
468
+ <div class="api-dialog-content">
469
+ <!-- 左侧:接口列表 -->
470
+ <div class="api-list-panel">
471
+ <el-table
472
+ ref="externalApiTable"
473
+ :data="externalApiList"
474
+ height="420"
475
+ @selection-change="handleExternalApiSelectionChange"
476
+ >
477
+ <el-table-column type="selection" width="50" align="center" />
478
+ <el-table-column type="index" label="序号" width="70" align="center" />
479
+ <el-table-column prop="NAME" label="接口名称" min-width="180" show-overflow-tooltip>
480
+ <template v-slot="scope">
481
+ <el-link type="primary" :underline="false">{{ scope.row.NAME }}</el-link>
482
+ </template>
483
+ </el-table-column>
484
+ <el-table-column prop="NOTICE" label="接口说明" min-width="300" show-overflow-tooltip />
485
+ </el-table>
486
+
487
+ <el-pagination
488
+ v-if="externalApiTotal > externalApiPageSize"
489
+ v-model:current-page="externalApiCurrentPage"
490
+ :page-size="externalApiPageSize"
491
+ layout="total, prev, pager, next"
492
+ :total="externalApiTotal"
493
+ @current-change="handleExternalApiPageChange"
494
+ style="margin-top: 12px; text-align: right;"
495
+ />
496
+ </div>
497
+
498
+ <!-- 右侧:已选择列表 -->
499
+ <div class="api-selected-panel">
500
+ <div class="panel-header">
501
+ <span>已选择</span>
502
+ </div>
503
+ <div class="selected-list">
504
+ <div
505
+ v-for="(api, index) in selectedExternalApis"
506
+ :key="api.ID"
507
+ class="selected-item"
508
+ >
509
+ <div class="item-header">
510
+ <span class="item-title">{{ api.NAME }}</span>
511
+ <el-button
512
+ type="primary" link
513
+ icon="el-icon-delete-solid"
514
+ class="delete-btn"
515
+ @click="removeSelectedExternalApi(index)"
516
+ />
517
+ </div>
518
+ <div class="item-content">
519
+ <div class="content-line">接口说明:{{ api.NOTICE }}</div>
520
+ </div>
521
+ </div>
522
+ <div v-if="selectedExternalApis.length === 0" class="empty-tip">
523
+ 请从左侧选择接口
524
+ </div>
525
+ </div>
526
+ <div class="panel-footer">
527
+ <span class="count-text">已选择 {{ selectedExternalApis.length }} 个</span>
528
+ <div class="footer-actions">
529
+ <el-button size="small" @click="externalApiDialogVisible = false">取消</el-button>
530
+ <el-button size="small" type="primary" @click="confirmExternalApiSelection">保存</el-button>
531
+ </div>
532
+ </div>
533
+ </div>
534
+ </div>
535
+ </el-dialog>
536
+
537
+ <!-- 子智能体选择对话框 -->
538
+ <el-dialog
539
+ title="添加子智能体工具"
540
+ v-model="subAgentDialogVisible"
541
+ width="1100px"
542
+ :close-on-click-modal="false"
543
+ class="api-select-dialog"
544
+ >
545
+ <div class="api-dialog-content">
546
+ <!-- 左侧:子智能体列表 -->
547
+ <div class="api-list-panel">
548
+ <el-table
549
+ ref="subAgentTable"
550
+ :data="subAgentList"
551
+ height="420"
552
+ @selection-change="handleSubAgentSelectionChange"
553
+ >
554
+ <el-table-column type="selection" width="50" align="center" />
555
+ <el-table-column type="index" label="序号" width="70" align="center" />
556
+ <el-table-column prop="NAME" label="应用名称" min-width="140" show-overflow-tooltip>
557
+ <template v-slot="scope">
558
+ <el-link type="primary" :underline="false">{{ scope.row.NAME }}</el-link>
559
+ </template>
560
+ </el-table-column>
561
+ <el-table-column prop="CODE" label="应用编号" width="120" show-overflow-tooltip />
562
+ <el-table-column prop="AGENT_PROMPT" label="应用简介" min-width="220" show-overflow-tooltip />
563
+ </el-table>
564
+
565
+ <el-pagination
566
+ v-if="subAgentTotal > subAgentPageSize"
567
+ v-model:current-page="subAgentCurrentPage"
568
+ :page-size="subAgentPageSize"
569
+ layout="total, prev, pager, next"
570
+ :total="subAgentTotal"
571
+ @current-change="handleSubAgentPageChange"
572
+ style="margin-top: 12px; text-align: right;"
573
+ />
574
+ </div>
575
+
576
+ <!-- 右侧:已选择列表 -->
577
+ <div class="api-selected-panel">
578
+ <div class="panel-header">
579
+ <span>已选择</span>
580
+ </div>
581
+ <div class="selected-list">
582
+ <div
583
+ v-for="(agent, index) in selectedSubAgents"
584
+ :key="agent.ID"
585
+ class="selected-item"
586
+ >
587
+ <div class="item-header">
588
+ <div class="item-header-left">
589
+ <div class="item-icon">
590
+ <img :src="getSelectedAgentIcon(agent)" alt="icon" />
591
+ </div>
592
+ <span class="item-title">{{ agent.NAME }}</span>
593
+ </div>
594
+ <el-button
595
+ type="primary" link
596
+ icon="el-icon-delete-solid"
597
+ class="delete-btn"
598
+ @click="removeSelectedSubAgent(index)"
599
+ />
600
+ </div>
601
+ <div class="item-content">
602
+ <div class="content-line">应用编号:{{ agent.CODE }}</div>
603
+ <div class="content-line">应用简介:{{ agent.AGENT_PROMPT }}</div>
604
+ </div>
605
+ </div>
606
+ <div v-if="selectedSubAgents.length === 0" class="empty-tip">
607
+ 请从左侧选择子智能体
608
+ </div>
609
+ </div>
610
+ <div class="panel-footer">
611
+ <span class="count-text">已选择 {{ selectedSubAgents.length }} 个</span>
612
+ <div class="footer-actions">
613
+ <el-button size="small" @click="subAgentDialogVisible = false">取消</el-button>
614
+ <el-button size="small" type="primary" @click="confirmSubAgentSelection">保存</el-button>
615
+ </div>
616
+ </div>
617
+ </div>
618
+ </div>
619
+ </el-dialog>
620
+
621
+ <!-- 技能选择对话框 -->
622
+ <el-dialog
623
+ title="添加技能"
624
+ v-model="skillDialogVisible"
625
+ width="1100px"
626
+ :close-on-click-modal="false"
627
+ class="api-select-dialog"
628
+ >
629
+ <div class="api-dialog-content">
630
+ <!-- 左侧:技能列表 -->
631
+ <div class="api-list-panel">
632
+ <el-tabs v-model="skillActiveTab" @tab-click="handleSkillTabChange" class="api-tabs">
633
+ <el-tab-pane label="系统技能" name="system" />
634
+ <el-tab-pane label="平台技能" name="platform" />
635
+ </el-tabs>
636
+ <el-table
637
+ ref="skillTable"
638
+ :data="skillList"
639
+ height="380"
640
+ @select="handleSkillSelect"
641
+ @select-all="handleSkillSelectAll"
642
+ >
643
+ <el-table-column type="selection" width="50" align="center" />
644
+ <el-table-column type="index" label="序号" width="70" align="center" />
645
+ <el-table-column prop="NAME" label="技能名称" min-width="140" show-overflow-tooltip>
646
+ <template v-slot="scope">
647
+ <el-link type="primary" :underline="false">{{ scope.row.NAME }}</el-link>
648
+ </template>
649
+ </el-table-column>
650
+ <el-table-column prop="CODE" label="编号" width="120" show-overflow-tooltip />
651
+ <el-table-column prop="DESC" label="技能描述" min-width="220" show-overflow-tooltip />
652
+ </el-table>
653
+
654
+ <el-pagination
655
+ v-if="skillTotal > skillPageSize"
656
+ v-model:current-page="skillCurrentPage"
657
+ :page-size="skillPageSize"
658
+ layout="total, prev, pager, next"
659
+ :total="skillTotal"
660
+ @current-change="handleSkillPageChange"
661
+ style="margin-top: 12px; text-align: right;"
662
+ />
663
+ </div>
664
+
665
+ <!-- 右侧:已选择列表 -->
666
+ <div class="api-selected-panel">
667
+ <div class="panel-header">
668
+ <span>已选择</span>
669
+ </div>
670
+ <div class="selected-list">
671
+ <div
672
+ v-for="(skill, index) in selectedSkills"
673
+ :key="skill.ID"
674
+ class="selected-item"
675
+ >
676
+ <div class="item-header">
677
+ <span class="item-title">{{ skill.NAME }}</span>
678
+ <el-button
679
+ type="primary" link
680
+ icon="el-icon-delete-solid"
681
+ class="delete-btn"
682
+ @click="removeSelectedSkill(index)"
683
+ />
684
+ </div>
685
+ <div class="item-content">
686
+ <div class="content-line">编号:{{ skill.CODE }}</div>
687
+ <div class="content-line">技能描述:{{ skill.DESC }}</div>
688
+ </div>
689
+ </div>
690
+ <div v-if="selectedSkills.length === 0" class="empty-tip">
691
+ 请从左侧选择技能
692
+ </div>
693
+ </div>
694
+ <div class="panel-footer">
695
+ <span class="count-text">已选择 {{ selectedSkills.length }} 个</span>
696
+ <div class="footer-actions">
697
+ <el-button size="small" @click="skillDialogVisible = false">取消</el-button>
698
+ <el-button size="small" type="primary" @click="confirmSkillSelection">保存</el-button>
699
+ </div>
700
+ </div>
701
+ </div>
702
+ </div>
703
+ </el-dialog>
704
+
705
+ <!-- 内置工具选择对话框 -->
706
+ <el-dialog
707
+ title="添加内置工具"
708
+ v-model="sysToolDialogVisible"
709
+ width="1100px"
710
+ :close-on-click-modal="false"
711
+ class="api-select-dialog"
712
+ >
713
+ <div class="api-dialog-content">
714
+ <!-- 左侧:内置工具列表 -->
715
+ <div class="api-list-panel">
716
+ <el-table
717
+ ref="sysToolTable"
718
+ :data="sysToolList"
719
+ height="420"
720
+ @selection-change="handleSysToolSelectionChange"
721
+ >
722
+ <el-table-column type="selection" width="50" align="center" />
723
+ <el-table-column type="index" label="序号" width="70" align="center" />
724
+ <el-table-column prop="NAME" label="名称" min-width="140" show-overflow-tooltip>
725
+ <template v-slot="scope">
726
+ <el-link type="primary" :underline="false">{{ scope.row.NAME }}</el-link>
727
+ </template>
728
+ </el-table-column>
729
+ <el-table-column prop="CODE" label="工具标识" width="160" show-overflow-tooltip />
730
+ <el-table-column prop="DESC" label="工具描述" min-width="220" show-overflow-tooltip />
731
+ </el-table>
732
+
733
+ <el-pagination
734
+ v-if="sysToolTotal > sysToolPageSize"
735
+ v-model:current-page="sysToolCurrentPage"
736
+ :page-size="sysToolPageSize"
737
+ layout="total, prev, pager, next"
738
+ :total="sysToolTotal"
739
+ @current-change="handleSysToolPageChange"
740
+ style="margin-top: 12px; text-align: right;"
741
+ />
742
+ </div>
743
+
744
+ <!-- 右侧:已选择列表 -->
745
+ <div class="api-selected-panel">
746
+ <div class="panel-header">
747
+ <span>已选择</span>
748
+ </div>
749
+ <div class="selected-list">
750
+ <div
751
+ v-for="(sysTool, index) in selectedSysTools"
752
+ :key="sysTool.ID"
753
+ class="selected-item"
754
+ >
755
+ <div class="item-header">
756
+ <span class="item-title">{{ sysTool.NAME }}</span>
757
+ <el-button
758
+ type="text"
759
+ icon="el-icon-delete-solid"
760
+ class="delete-btn"
761
+ @click="removeSelectedSysTool(index)"
762
+ />
763
+ </div>
764
+ <div class="item-content">
765
+ <div class="content-line">工具标识:{{ sysTool.CODE }}</div>
766
+ <div class="content-line">工具描述:{{ sysTool.DESC }}</div>
767
+ </div>
768
+ </div>
769
+ <div v-if="selectedSysTools.length === 0" class="empty-tip">
770
+ 请从左侧选择内置工具
771
+ </div>
772
+ </div>
773
+ <div class="panel-footer">
774
+ <span class="count-text">已选择 {{ selectedSysTools.length }} 个</span>
775
+ <div class="footer-actions">
776
+ <el-button size="small" @click="sysToolDialogVisible = false">取消</el-button>
777
+ <el-button size="small" type="primary" @click="confirmSysToolSelection">保存</el-button>
778
+ </div>
779
+ </div>
780
+ </div>
781
+ </div>
782
+ </el-dialog>
783
+
784
+ <!-- MCP选择对话框 -->
785
+ <el-dialog
786
+ title="添加MCP工具"
787
+ v-model="mcpDialogVisible"
788
+ width="1100px"
789
+ :close-on-click-modal="false"
790
+ class="api-select-dialog"
791
+ >
792
+ <div class="api-dialog-content">
793
+ <!-- 左侧:MCP列表 -->
794
+ <div class="api-list-panel">
795
+ <el-table
796
+ ref="mcpTable"
797
+ :data="mcpList"
798
+ height="420"
799
+ @selection-change="handleMcpSelectionChange"
800
+ >
801
+ <el-table-column type="selection" width="50" align="center" />
802
+ <el-table-column type="index" label="序号" width="70" align="center" />
803
+ <el-table-column prop="NAME" label="名称" min-width="140" show-overflow-tooltip>
804
+ <template v-slot="scope">
805
+ <el-link type="primary" :underline="false">{{ scope.row.NAME }}</el-link>
806
+ </template>
807
+ </el-table-column>
808
+ <el-table-column prop="CODE" label="编号" width="120" show-overflow-tooltip />
809
+ <el-table-column prop="TYPE" label="请求类型" width="100" show-overflow-tooltip />
810
+ <el-table-column prop="URL" label="地址" min-width="180" show-overflow-tooltip />
811
+ </el-table>
812
+
813
+ <el-pagination
814
+ v-if="mcpTotal > mcpPageSize"
815
+ v-model:current-page="mcpCurrentPage"
816
+ :page-size="mcpPageSize"
817
+ layout="total, prev, pager, next"
818
+ :total="mcpTotal"
819
+ @current-change="handleMcpPageChange"
820
+ style="margin-top: 12px; text-align: right;"
821
+ />
822
+ </div>
823
+
824
+ <!-- 右侧:已选择列表 -->
825
+ <div class="api-selected-panel">
826
+ <div class="panel-header">
827
+ <span>已选择</span>
828
+ </div>
829
+ <div class="selected-list">
830
+ <div
831
+ v-for="(mcp, index) in selectedMcps"
832
+ :key="mcp.ID"
833
+ class="selected-item"
834
+ >
835
+ <div class="item-header">
836
+ <span class="item-title">{{ mcp.NAME }}</span>
837
+ <el-button
838
+ type="primary" link
839
+ icon="el-icon-delete-solid"
840
+ class="delete-btn"
841
+ @click="removeSelectedMcp(index)"
842
+ />
843
+ </div>
844
+ <div class="item-content">
845
+ <div class="content-line">编号:{{ mcp.CODE }}</div>
846
+ <div class="content-line">请求类型:{{ mcp.TYPE }}</div>
847
+ <div class="content-line">地址:{{ mcp.URL }}</div>
848
+ </div>
849
+ </div>
850
+ <div v-if="selectedMcps.length === 0" class="empty-tip">
851
+ 请从左侧选择MCP
852
+ </div>
853
+ </div>
854
+ <div class="panel-footer">
855
+ <span class="count-text">已选择 {{ selectedMcps.length }} 个</span>
856
+ <div class="footer-actions">
857
+ <el-button size="small" @click="mcpDialogVisible = false">取消</el-button>
858
+ <el-button size="small" type="primary" @click="confirmMcpSelection">保存</el-button>
859
+ </div>
860
+ </div>
861
+ </div>
862
+ </div>
863
+ </el-dialog>
864
+ </div>
865
+ </template>
866
+
867
+ <script>
868
+ import draggable from '@epxing/core/src/components/draggable'
869
+ import component from '@epxing/core/src/mixins/component'
870
+ export default {
871
+ name: 'epx-ai-tool-manager',
872
+ mixins: [component],
873
+ components: {
874
+ draggable
875
+ },
876
+ computed: {
877
+ // 子智能体拖拽配置:仅卡片可拖,删除按钮不触发拖拽
878
+ subAgentDragOptions () {
879
+ return {
880
+ animation: 200,
881
+ draggable: '.subagent-card',
882
+ filter: '.card-delete-btn',
883
+ preventOnFilter: false,
884
+ ghostClass: 'subagent-ghost'
885
+ }
886
+ },
887
+ // 获取子智能体图标URL
888
+ getSubAgentIcon () {
889
+ return (tool) => {
890
+ const imageId = tool['SUB_AGENT|IMAGE']
891
+ if (imageId) {
892
+ return this.$util.getFileUrl(imageId)
893
+ }
894
+ return require('@/assets/images/app.png')
895
+ }
896
+ },
897
+ // 获取已选择子智能体图标URL
898
+ getSelectedAgentIcon () {
899
+ return (agent) => {
900
+ if (agent.IMAGE) {
901
+ return this.$util.getFileUrl(agent.IMAGE)
902
+ }
903
+ return require('@/assets/images/app.png')
904
+ }
905
+ }
906
+ },
907
+ data () {
908
+ return {
909
+ interfaceTools: [],
910
+ externalTools: [],
911
+ mcpTools: [],
912
+ subAgentTools: [],
913
+ skillTools: [],
914
+ sysTools: [],
915
+ dialogVisible: false,
916
+ dialogTitle: '新增工具',
917
+ isEdit: false,
918
+ submitLoading: false,
919
+ fileList: [],
920
+ // 对象接口选择对话框
921
+ apiDialogVisible: false,
922
+ apiActiveTab: 'frame',
923
+ apiList: [],
924
+ apiTotal: 0,
925
+ apiCurrentPage: 1,
926
+ apiPageSize: 10,
927
+ apiSearchKeyword: '',
928
+ selectedApis: [],
929
+ selectedEntity: null,
930
+ // 通用接口
931
+ frameApiList: [],
932
+ frameApiTotal: 0,
933
+ frameApiCurrentPage: 1,
934
+ frameApiPageSize: 10,
935
+ // 外部接口选择对话框
936
+ externalApiDialogVisible: false,
937
+ externalApiList: [],
938
+ externalApiTotal: 0,
939
+ externalApiCurrentPage: 1,
940
+ externalApiPageSize: 10,
941
+ selectedExternalApis: [],
942
+ // 子智能体选择对话框
943
+ subAgentDialogVisible: false,
944
+ subAgentList: [],
945
+ subAgentTotal: 0,
946
+ subAgentCurrentPage: 1,
947
+ subAgentPageSize: 10,
948
+ selectedSubAgents: [],
949
+ // 技能选择对话框
950
+ skillDialogVisible: false,
951
+ skillActiveTab: 'system',
952
+ skillList: [],
953
+ skillTotal: 0,
954
+ skillCurrentPage: 1,
955
+ skillPageSize: 10,
956
+ selectedSkills: [],
957
+ // MCP选择对话框
958
+ mcpDialogVisible: false,
959
+ mcpList: [],
960
+ mcpTotal: 0,
961
+ mcpCurrentPage: 1,
962
+ mcpPageSize: 10,
963
+ selectedMcps: [],
964
+ // 内置工具选择对话框
965
+ sysToolDialogVisible: false,
966
+ sysToolList: [],
967
+ sysToolTotal: 0,
968
+ sysToolCurrentPage: 1,
969
+ sysToolPageSize: 10,
970
+ selectedSysTools: [],
971
+ formData: {
972
+ ID: '',
973
+ NAME: '',
974
+ TYPE: '',
975
+ DESC: '',
976
+ ACTION: '',
977
+ META: '',
978
+ API: '',
979
+ TOKEN: '',
980
+ MCP_URL: '',
981
+ WORKFLOW: '',
982
+ SKILL_FILE: '',
983
+ ENABLE: 1,
984
+ CONFIRM: 0,
985
+ FORM_PAGE: '',
986
+ RESULT_PAGE: '',
987
+ USE_FORM_PAGE: 0,
988
+ USE_RESULT_PAGE: 0
989
+ },
990
+ formRules: {
991
+ NAME: [
992
+ { required: true, message: '请输入工具名称', trigger: 'blur' }
993
+ ],
994
+ TYPE: [
995
+ { required: true, message: '请选择工具类型', trigger: 'change' }
996
+ ],
997
+ DESC: [
998
+ { required: true, message: '请输入工具描述', trigger: 'blur' }
999
+ ]
1000
+ }
1001
+ }
1002
+ },
1003
+ mounted () {
1004
+ this.loadTools()
1005
+ },
1006
+ methods: {
1007
+ // 加载工具列表
1008
+ loadTools () {
1009
+ this.$http.list({
1010
+ action: 'list',
1011
+ entityId: 'FM_AI_TOOL',
1012
+ 'scope.AGENT': this.$query.id,
1013
+ order_field: 'ORDER',
1014
+ order_mode: 'asc',
1015
+ columnFieldNames: 'ID,NAME#,TYPE,DESC,ORDER,ACTION,META#,API,TOKEN,MCP_URL,WORKFLOW,SKILL_FILE,ENABLE,CONFIRM,FORM_PAGE,RESULT_PAGE,USE_FORM_PAGE,USE_RESULT_PAGE,API|LABEL,API|NAME,API|ENTITY#,API|PARAM_EXPLAIN,API|FRAME_API,OUT_API|NOTICE,SUB_AGENT|NAME,SUB_AGENT|AGENT_PROMPT,SUB_AGENT|CODE,SUB_AGENT|IMAGE,SKILL,SKILL|NAME,SKILL|CODE,SKILL|DESC,MCP,MCP|NAME,MCP|CODE,MCP|TYPE,MCP|URL,MCP|COMMAND,SYS_TOOL,SYS_TOOL|NAME,SYS_TOOL|CODE,SYS_TOOL|DESC'
1016
+ })
1017
+ .then(data => {
1018
+ const tools = data.entitys || []
1019
+ this.interfaceTools = tools.filter(t => t.TYPE === 'function')
1020
+ this.externalTools = tools.filter(t => t.TYPE === 'api')
1021
+ this.mcpTools = tools.filter(t => t.TYPE === 'mcp')
1022
+ this.subAgentTools = tools.filter(t => t.TYPE === 'subagent')
1023
+ this.skillTools = tools.filter(t => t.TYPE === 'skills')
1024
+ this.sysTools = tools.filter(t => t.TYPE === 'sys_tool')
1025
+ })
1026
+ .catch(err => {
1027
+ this.$message.error(err.message || '加载工具列表失败')
1028
+ })
1029
+ },
1030
+
1031
+ // 新增工具
1032
+ handleAdd (type) {
1033
+ if (type === 'interface') {
1034
+ // 对象接口工具直接打开接口选择对话框
1035
+ this.showApiDialog()
1036
+ } else if (type === 'external') {
1037
+ // 外部接口工具打开外部接口选择对话框
1038
+ this.showExternalApiDialog()
1039
+ } else if (type === 'subagent') {
1040
+ // 子智能体工具打开子智能体选择对话框
1041
+ this.showSubAgentDialog()
1042
+ } else if (type === 'skill') {
1043
+ // 技能打开技能选择对话框
1044
+ this.showSkillDialog()
1045
+ } else if (type === 'mcp') {
1046
+ // MCP工具打开MCP选择对话框
1047
+ this.showMcpDialog()
1048
+ } else if (type === 'systool') {
1049
+ // 内置工具打开内置工具选择对话框
1050
+ this.showSysToolDialog()
1051
+ } else {
1052
+ // 其他类型打开表单对话框
1053
+ this.isEdit = false
1054
+ this.dialogTitle = '新增工具'
1055
+ this.dialogVisible = true
1056
+ this.fileList = []
1057
+ this.formData = {
1058
+ ID: '',
1059
+ NAME: '',
1060
+ TYPE: type,
1061
+ DESC: '',
1062
+ ACTION: '',
1063
+ META: '',
1064
+ API: '',
1065
+ TOKEN: '',
1066
+ MCP_URL: '',
1067
+ WORKFLOW: '',
1068
+ SKILL_FILE: '',
1069
+ ENABLE: 1,
1070
+ CONFIRM: 0,
1071
+ FORM_PAGE: '',
1072
+ RESULT_PAGE: '',
1073
+ USE_FORM_PAGE: 0,
1074
+ USE_RESULT_PAGE: 0
1075
+ }
1076
+ }
1077
+ },
1078
+
1079
+ // 编辑工具
1080
+ handleEdit (tool) {
1081
+ this.isEdit = true
1082
+ this.dialogTitle = '编辑工具'
1083
+ this.dialogVisible = true
1084
+ this.fileList = tool.SKILL_FILE ? [{ name: tool.SKILL_FILE }] : []
1085
+ this.formData = { ...tool }
1086
+ },
1087
+
1088
+ // 删除工具
1089
+ handleDelete (tool) {
1090
+ this.$confirm('确定要删除该工具吗?', '提示', {
1091
+ confirmButtonText: '确定',
1092
+ cancelButtonText: '取消',
1093
+ type: 'warning'
1094
+ }).then(() => {
1095
+ this.$http.removeMulti({
1096
+ entityId: 'FM_AI_TOOL',
1097
+ ids: tool.ID
1098
+ })
1099
+ .then(() => {
1100
+ this.$message.success('删除成功')
1101
+ this.loadTools()
1102
+ })
1103
+ .catch(err => {
1104
+ this.$message.error(err.message || '删除失败')
1105
+ })
1106
+ }).catch(() => {})
1107
+ },
1108
+
1109
+ // 下拉菜单命令
1110
+ handleCommand (command, tool) {
1111
+ if (command === 'edit') {
1112
+ this.handleEdit(tool)
1113
+ } else if (command === 'delete') {
1114
+ this.handleDelete(tool)
1115
+ }
1116
+ },
1117
+
1118
+ // 文件上传
1119
+ handleFileChange (file, fileList) {
1120
+ this.fileList = fileList
1121
+ this.formData.SKILL_FILE = file.name
1122
+ },
1123
+
1124
+ // 显示对象接口选择对话框
1125
+ showApiDialog () {
1126
+ this.apiDialogVisible = true
1127
+ this.apiSearchKeyword = ''
1128
+ this.apiCurrentPage = 1
1129
+ this.selectedApis = []
1130
+ this.selectedEntity = null
1131
+ this.apiList = []
1132
+ this.apiTotal = 0
1133
+ this.apiActiveTab = 'frame'
1134
+ this.frameApiCurrentPage = 1
1135
+ this.frameApiList = []
1136
+ this.frameApiTotal = 0
1137
+ this.loadFrameApiList()
1138
+ },
1139
+
1140
+ // 标签页切换
1141
+ handleApiTabChange (tab) {
1142
+ if (tab.name === 'frame' && this.frameApiList.length === 0) {
1143
+ this.loadFrameApiList()
1144
+ }
1145
+ },
1146
+
1147
+ // 加载通用接口列表
1148
+ loadFrameApiList () {
1149
+ this.$http.list({
1150
+ action: 'list',
1151
+ entityId: 'FM_ENTITY_API',
1152
+ page: this.frameApiCurrentPage,
1153
+ limit: this.frameApiPageSize,
1154
+ 'scope.FRAME_API': '1',
1155
+ columnFieldNames: 'ID,ENTITY#,NAME,LABEL#,PARAM_EXPLAIN,FRAME_API'
1156
+ })
1157
+ .then(data => {
1158
+ this.frameApiList = data.entitys || []
1159
+ this.frameApiTotal = data.total || 0
1160
+ })
1161
+ .catch(err => {
1162
+ this.$message.error(err.message || '加载通用接口列表失败')
1163
+ })
1164
+ },
1165
+
1166
+ // 通用接口分页切换
1167
+ handleFrameApiPageChange (page) {
1168
+ this.frameApiCurrentPage = page
1169
+ this.loadFrameApiList()
1170
+ },
1171
+
1172
+ // 对象选择变化
1173
+ handleEntityChange (value) {
1174
+ this.selectedEntity = value
1175
+ this.apiCurrentPage = 1
1176
+ this.loadApiList()
1177
+ },
1178
+
1179
+ // 加载对象接口列表
1180
+ loadApiList () {
1181
+ // 如果没有选择对象,不加载列表
1182
+ if (!this.selectedEntity) {
1183
+ this.apiList = []
1184
+ this.apiTotal = 0
1185
+ return
1186
+ }
1187
+
1188
+ const params = {
1189
+ action: 'getEntityAllApi',
1190
+ entityId: 'FM_ENTITY_API',
1191
+ metaId: this.selectedEntity.id || this.selectedEntity
1192
+ }
1193
+
1194
+ this.$http.list(params)
1195
+ .then(data => {
1196
+ this.apiList = data.entitys || []
1197
+ this.apiTotal = this.apiList.length
1198
+ })
1199
+ .catch(err => {
1200
+ this.$message.error(err.message || '加载接口列表失败')
1201
+ })
1202
+ },
1203
+
1204
+ // 搜索接口
1205
+ handleApiSearch () {
1206
+ this.apiCurrentPage = 1
1207
+ this.loadApiList()
1208
+ },
1209
+
1210
+ // 分页切换
1211
+ handleApiPageChange (page) {
1212
+ this.apiCurrentPage = page
1213
+ this.loadApiList()
1214
+ },
1215
+
1216
+ // 接口选择变化
1217
+ handleApiSelectionChange (selection) {
1218
+ // 保留不同标签页的已选项,合并去重
1219
+ const isFrame = this.apiActiveTab === 'frame'
1220
+ // 给选中项打标记
1221
+ const tagged = selection.map(item => ({ ...item, _isFrame: isFrame }))
1222
+ // 过滤掉当前标签页的旧选项,保留另一标签页的选项
1223
+ const otherTab = this.selectedApis.filter(a => a._isFrame !== isFrame)
1224
+ this.selectedApis = [...otherTab, ...tagged]
1225
+ },
1226
+
1227
+ // 移除已选择的接口
1228
+ removeSelectedApi (index) {
1229
+ this.selectedApis.splice(index, 1)
1230
+ // 同步更新表格选中状态
1231
+ this.$refs.apiTable.clearSelection()
1232
+ this.selectedApis.forEach(api => {
1233
+ const row = this.apiList.find(item => item.ID === api.ID)
1234
+ if (row) {
1235
+ this.$refs.apiTable.toggleRowSelection(row, true)
1236
+ }
1237
+ })
1238
+ },
1239
+
1240
+ // 确认接口选择
1241
+ confirmApiSelection () {
1242
+ if (this.selectedApis.length === 0) {
1243
+ this.$message.warning('请至少选择一个接口')
1244
+ return
1245
+ }
1246
+
1247
+ // 批量创建工具
1248
+ const promises = this.selectedApis.map(api => {
1249
+ const toolData = {
1250
+ NAME: api.LABEL,
1251
+ TYPE: 'function',
1252
+ DESC: api.PARAM_EXPLAIN || api.LABEL,
1253
+ ACTION: api.ID,
1254
+ META: api.ENTITY || this.selectedEntity.id,
1255
+ AGENT: this.$query.id,
1256
+ CLIENT: this.CLIENT,
1257
+ SYSTEM: this.SYSTEM,
1258
+ ENABLE: '1'
1259
+ }
1260
+
1261
+ return this.$http.save({
1262
+ action: 'save',
1263
+ entityId: 'FM_AI_TOOL',
1264
+ bean: toolData
1265
+ })
1266
+ })
1267
+
1268
+ Promise.all(promises)
1269
+ .then(() => {
1270
+ this.$message.success(`成功创建 ${this.selectedApis.length} 个工具`)
1271
+ this.apiDialogVisible = false
1272
+ this.loadTools()
1273
+ })
1274
+ .catch(err => {
1275
+ this.$message.error(err.message || '创建工具失败')
1276
+ })
1277
+ },
1278
+
1279
+ // 显示外部接口选择对话框
1280
+ showExternalApiDialog () {
1281
+ this.externalApiDialogVisible = true
1282
+ this.externalApiCurrentPage = 1
1283
+ this.selectedExternalApis = []
1284
+ this.loadExternalApiList()
1285
+ },
1286
+
1287
+ // 加载外部接口列表
1288
+ loadExternalApiList () {
1289
+ const params = {
1290
+ action: 'list',
1291
+ entityId: 'FM_API_IN',
1292
+ page: this.externalApiCurrentPage,
1293
+ limit: this.externalApiPageSize,
1294
+ columnFieldNames: 'ID,CLIENT#,SYSTEM#,ENV#,NAME#,URL,NOTICE,METHOD,CONTENT_TYPE,ENABLE_RETRY,RETRY_COUNT,REQUEST_TIMEOUT,ASSERTION,ERROR_MSG,API_TYPE#,NEED_AUTH'
1295
+ }
1296
+
1297
+ this.$http.list(params)
1298
+ .then(data => {
1299
+ this.externalApiList = data.entitys || []
1300
+ this.externalApiTotal = data.total || 0
1301
+ })
1302
+ .catch(err => {
1303
+ this.$message.error(err.message || '加载外部接口列表失败')
1304
+ })
1305
+ },
1306
+
1307
+ // 外部接口分页切换
1308
+ handleExternalApiPageChange (page) {
1309
+ this.externalApiCurrentPage = page
1310
+ this.loadExternalApiList()
1311
+ },
1312
+
1313
+ // 外部接口选择变化
1314
+ handleExternalApiSelectionChange (selection) {
1315
+ this.selectedExternalApis = selection
1316
+ },
1317
+
1318
+ // 移除已选择的外部接口
1319
+ removeSelectedExternalApi (index) {
1320
+ this.selectedExternalApis.splice(index, 1)
1321
+ // 同步更新表格选中状态
1322
+ this.$refs.externalApiTable.clearSelection()
1323
+ this.selectedExternalApis.forEach(api => {
1324
+ const row = this.externalApiList.find(item => item.ID === api.ID)
1325
+ if (row) {
1326
+ this.$refs.externalApiTable.toggleRowSelection(row, true)
1327
+ }
1328
+ })
1329
+ },
1330
+
1331
+ // 确认外部接口选择
1332
+ confirmExternalApiSelection () {
1333
+ if (this.selectedExternalApis.length === 0) {
1334
+ this.$message.warning('请至少选择一个接口')
1335
+ return
1336
+ }
1337
+
1338
+ // 批量创建工具
1339
+ const promises = this.selectedExternalApis.map(api => {
1340
+ const toolData = {
1341
+ NAME: api.NAME,
1342
+ TYPE: 'api',
1343
+ DESC: api.NOTICE || api.NAME,
1344
+ API: api.ID,
1345
+ AGENT: this.$query.id,
1346
+ CLIENT: this.CLIENT,
1347
+ SYSTEM: this.SYSTEM,
1348
+ ENABLE: '1'
1349
+ }
1350
+
1351
+ return this.$http.save({
1352
+ action: 'save',
1353
+ entityId: 'FM_AI_TOOL',
1354
+ bean: toolData
1355
+ })
1356
+ })
1357
+
1358
+ Promise.all(promises)
1359
+ .then(() => {
1360
+ this.$message.success(`成功创建 ${this.selectedExternalApis.length} 个工具`)
1361
+ this.externalApiDialogVisible = false
1362
+ this.loadTools()
1363
+ })
1364
+ .catch(err => {
1365
+ this.$message.error(err.message || '创建工具失败')
1366
+ })
1367
+ },
1368
+
1369
+ // 显示子智能体选择对话框
1370
+ showSubAgentDialog () {
1371
+ this.subAgentDialogVisible = true
1372
+ this.subAgentCurrentPage = 1
1373
+ this.selectedSubAgents = []
1374
+ this.loadSubAgentList()
1375
+ },
1376
+
1377
+ // 加载子智能体列表
1378
+ loadSubAgentList () {
1379
+ const params = {
1380
+ action: 'list',
1381
+ entityId: 'FM_SERVICE',
1382
+ page: this.subAgentCurrentPage,
1383
+ limit: this.subAgentPageSize,
1384
+ 'scope.TYPE': 'agent',
1385
+ columnFieldNames: 'ID,CLIENT#,SYSTEM#,NAME#,CODE,STATUS#,AGENT_PROMPT,AGENT_TYPE,IMAGE'
1386
+ }
1387
+
1388
+ this.$http.list(params)
1389
+ .then(data => {
1390
+ this.subAgentList = data.entitys || []
1391
+ this.subAgentTotal = data.total || 0
1392
+ })
1393
+ .catch(err => {
1394
+ this.$message.error(err.message || '加载子智能体列表失败')
1395
+ })
1396
+ },
1397
+
1398
+ // 子智能体分页切换
1399
+ handleSubAgentPageChange (page) {
1400
+ this.subAgentCurrentPage = page
1401
+ this.loadSubAgentList()
1402
+ },
1403
+
1404
+ // 子智能体拖拽排序结束,保存新的排序号
1405
+ handleSubAgentDragEnd (evt) {
1406
+ if (evt.oldIndex === evt.newIndex) return
1407
+ const orderString = this.subAgentTools.reduce((str, tool, index) => (str += tool.ID + ':' + (index + 1) + ','), '')
1408
+ this.$http.$post({
1409
+ action: 'moveList',
1410
+ entityId: 'FM_AI_TOOL',
1411
+ orderString
1412
+ })
1413
+ .then(() => {
1414
+ this.$message.success('排序成功')
1415
+ this.loadTools()
1416
+ })
1417
+ .catch(err => {
1418
+ this.$message.error(err.message || '排序失败')
1419
+ this.loadTools()
1420
+ })
1421
+ },
1422
+
1423
+ // 子智能体选择变化
1424
+ handleSubAgentSelectionChange (selection) {
1425
+ this.selectedSubAgents = selection
1426
+ },
1427
+
1428
+ // 移除已选择的子智能体
1429
+ removeSelectedSubAgent (index) {
1430
+ this.selectedSubAgents.splice(index, 1)
1431
+ // 同步更新表格选中状态
1432
+ this.$refs.subAgentTable.clearSelection()
1433
+ this.selectedSubAgents.forEach(agent => {
1434
+ const row = this.subAgentList.find(item => item.ID === agent.ID)
1435
+ if (row) {
1436
+ this.$refs.subAgentTable.toggleRowSelection(row, true)
1437
+ }
1438
+ })
1439
+ },
1440
+
1441
+ // 确认子智能体选择
1442
+ confirmSubAgentSelection () {
1443
+ if (this.selectedSubAgents.length === 0) {
1444
+ this.$message.warning('请至少选择一个子智能体')
1445
+ return
1446
+ }
1447
+
1448
+ // 批量创建工具
1449
+ const promises = this.selectedSubAgents.map(agent => {
1450
+ const toolData = {
1451
+ NAME: agent.NAME,
1452
+ TYPE: 'subagent',
1453
+ DESC: agent.AGENT_PROMPT || agent.NAME,
1454
+ SUB_AGENT: agent.ID,
1455
+ AGENT: this.$query.id,
1456
+ CLIENT: this.CLIENT,
1457
+ SYSTEM: this.SYSTEM,
1458
+ ENABLE: '1'
1459
+ }
1460
+
1461
+ return this.$http.save({
1462
+ action: 'save',
1463
+ entityId: 'FM_AI_TOOL',
1464
+ bean: toolData
1465
+ })
1466
+ })
1467
+
1468
+ Promise.all(promises)
1469
+ .then(() => {
1470
+ this.$message.success(`成功创建 ${this.selectedSubAgents.length} 个工具`)
1471
+ this.subAgentDialogVisible = false
1472
+ this.loadTools()
1473
+ })
1474
+ .catch(err => {
1475
+ this.$message.error(err.message || '创建工具失败')
1476
+ })
1477
+ },
1478
+
1479
+ // 显示技能选择对话框
1480
+ showSkillDialog () {
1481
+ this.skillDialogVisible = true
1482
+ this.skillActiveTab = 'system'
1483
+ this.skillCurrentPage = 1
1484
+ this.selectedSkills = []
1485
+ this.loadSkillList()
1486
+ },
1487
+
1488
+ // 加载技能列表
1489
+ loadSkillList () {
1490
+ const params = {
1491
+ action: 'list',
1492
+ entityId: 'FM_AI_SKILL',
1493
+ page: this.skillCurrentPage,
1494
+ limit: this.skillPageSize,
1495
+ 'scope.STATUS': '1',
1496
+ columnFieldNames: 'ID,NAME#,CODE,TYPE#,DESC,STATUS'
1497
+ }
1498
+ if (this.skillActiveTab === 'platform') {
1499
+ params['scope.SYSTEM|CODE'] = window.BASE_SYSTEM_ID
1500
+ } else {
1501
+ params['scope.SYSTEM'] = this.SYSTEM
1502
+ }
1503
+ this.$http.list(params)
1504
+ .then(data => {
1505
+ this.skillList = data.entitys || []
1506
+ this.skillTotal = data.total || 0
1507
+ this.$nextTick(() => this.syncSkillTableSelection())
1508
+ })
1509
+ .catch(err => {
1510
+ this.$message.error(err.message || '加载技能列表失败')
1511
+ })
1512
+ },
1513
+
1514
+ // 同步表格选中状态(保留跨标签页/分页的已选项)
1515
+ syncSkillTableSelection () {
1516
+ if (!this.$refs.skillTable) return
1517
+ this.$refs.skillTable.clearSelection()
1518
+ this.selectedSkills.forEach(skill => {
1519
+ const row = this.skillList.find(item => item.ID === skill.ID)
1520
+ if (row) {
1521
+ this.$refs.skillTable.toggleRowSelection(row, true)
1522
+ }
1523
+ })
1524
+ },
1525
+
1526
+ // 技能标签页切换
1527
+ handleSkillTabChange () {
1528
+ this.skillCurrentPage = 1
1529
+ this.loadSkillList()
1530
+ },
1531
+
1532
+ // 技能分页切换
1533
+ handleSkillPageChange (page) {
1534
+ this.skillCurrentPage = page
1535
+ this.loadSkillList()
1536
+ },
1537
+
1538
+ // 单行勾选/取消勾选
1539
+ handleSkillSelect (selection, row) {
1540
+ const isSelected = selection.includes(row)
1541
+ const idx = this.selectedSkills.findIndex(s => s.ID === row.ID)
1542
+ if (isSelected) {
1543
+ if (idx === -1) {
1544
+ this.selectedSkills.push({ ...row, _tab: this.skillActiveTab })
1545
+ }
1546
+ } else if (idx >= 0) {
1547
+ this.selectedSkills.splice(idx, 1)
1548
+ }
1549
+ },
1550
+
1551
+ // 全选/取消全选(仅影响当前列表内的项)
1552
+ handleSkillSelectAll (selection) {
1553
+ const currentTab = this.skillActiveTab
1554
+ const currentIds = this.skillList.map(item => item.ID)
1555
+ const others = this.selectedSkills.filter(s => !currentIds.includes(s.ID))
1556
+ const tagged = selection.map(item => ({ ...item, _tab: currentTab }))
1557
+ this.selectedSkills = [...others, ...tagged]
1558
+ },
1559
+
1560
+ // 移除已选择的技能
1561
+ removeSelectedSkill (index) {
1562
+ this.selectedSkills.splice(index, 1)
1563
+ this.syncSkillTableSelection()
1564
+ },
1565
+
1566
+ // 确认技能选择
1567
+ confirmSkillSelection () {
1568
+ if (this.selectedSkills.length === 0) {
1569
+ this.$message.warning('请至少选择一个技能')
1570
+ return
1571
+ }
1572
+
1573
+ const promises = this.selectedSkills.map(skill => {
1574
+ const toolData = {
1575
+ NAME: skill.NAME,
1576
+ TYPE: 'skills',
1577
+ DESC: skill.DESC || skill.NAME,
1578
+ SKILL: skill.ID,
1579
+ AGENT: this.$query.id,
1580
+ CLIENT: this.CLIENT,
1581
+ SYSTEM: this.SYSTEM,
1582
+ ENABLE: '1'
1583
+ }
1584
+
1585
+ return this.$http.save({
1586
+ action: 'save',
1587
+ entityId: 'FM_AI_TOOL',
1588
+ bean: toolData
1589
+ })
1590
+ })
1591
+
1592
+ Promise.all(promises)
1593
+ .then(() => {
1594
+ this.$message.success(`成功创建 ${this.selectedSkills.length} 个技能`)
1595
+ this.skillDialogVisible = false
1596
+ this.loadTools()
1597
+ })
1598
+ .catch(err => {
1599
+ this.$message.error(err.message || '创建技能失败')
1600
+ })
1601
+ },
1602
+
1603
+ // 显示MCP选择对话框
1604
+ showMcpDialog () {
1605
+ this.mcpDialogVisible = true
1606
+ this.mcpCurrentPage = 1
1607
+ this.selectedMcps = []
1608
+ this.loadMcpList()
1609
+ },
1610
+
1611
+ // 加载MCP列表
1612
+ loadMcpList () {
1613
+ this.$http.list({
1614
+ action: 'list',
1615
+ entityId: 'FM_AI_MCP',
1616
+ page: this.mcpCurrentPage,
1617
+ limit: this.mcpPageSize,
1618
+ 'scope.ENABLE': '1',
1619
+ columnFieldNames: 'ID,NAME#,CODE,TYPE#,URL,COMMAND,TOKEN,ENABLE'
1620
+ })
1621
+ .then(data => {
1622
+ this.mcpList = data.entitys || []
1623
+ this.mcpTotal = data.total || 0
1624
+ })
1625
+ .catch(err => {
1626
+ this.$message.error(err.message || '加载MCP列表失败')
1627
+ })
1628
+ },
1629
+
1630
+ // MCP分页切换
1631
+ handleMcpPageChange (page) {
1632
+ this.mcpCurrentPage = page
1633
+ this.loadMcpList()
1634
+ },
1635
+
1636
+ // MCP选择变化
1637
+ handleMcpSelectionChange (selection) {
1638
+ this.selectedMcps = selection
1639
+ },
1640
+
1641
+ // 移除已选择的MCP
1642
+ removeSelectedMcp (index) {
1643
+ this.selectedMcps.splice(index, 1)
1644
+ this.$refs.mcpTable.clearSelection()
1645
+ this.selectedMcps.forEach(mcp => {
1646
+ const row = this.mcpList.find(item => item.ID === mcp.ID)
1647
+ if (row) {
1648
+ this.$refs.mcpTable.toggleRowSelection(row, true)
1649
+ }
1650
+ })
1651
+ },
1652
+
1653
+ // 确认MCP选择
1654
+ confirmMcpSelection () {
1655
+ if (this.selectedMcps.length === 0) {
1656
+ this.$message.warning('请至少选择一个MCP')
1657
+ return
1658
+ }
1659
+
1660
+ const promises = this.selectedMcps.map(mcp => {
1661
+ const toolData = {
1662
+ NAME: mcp.NAME,
1663
+ TYPE: 'mcp',
1664
+ DESC: mcp.NAME,
1665
+ MCP: mcp.ID,
1666
+ AGENT: this.$query.id,
1667
+ CLIENT: this.CLIENT,
1668
+ SYSTEM: this.SYSTEM,
1669
+ ENABLE: '1'
1670
+ }
1671
+
1672
+ return this.$http.save({
1673
+ action: 'save',
1674
+ entityId: 'FM_AI_TOOL',
1675
+ bean: toolData
1676
+ })
1677
+ })
1678
+
1679
+ Promise.all(promises)
1680
+ .then(() => {
1681
+ this.$message.success(`成功创建 ${this.selectedMcps.length} 个MCP工具`)
1682
+ this.mcpDialogVisible = false
1683
+ this.loadTools()
1684
+ })
1685
+ .catch(err => {
1686
+ this.$message.error(err.message || '创建MCP工具失败')
1687
+ })
1688
+ },
1689
+
1690
+ // 显示内置工具选择对话框
1691
+ showSysToolDialog () {
1692
+ this.sysToolDialogVisible = true
1693
+ this.sysToolCurrentPage = 1
1694
+ this.selectedSysTools = []
1695
+ this.loadSysToolList()
1696
+ },
1697
+
1698
+ // 加载内置工具列表
1699
+ loadSysToolList () {
1700
+ this.$http.list({
1701
+ action: 'list',
1702
+ entityId: 'FM_AI_SYS_TOOL',
1703
+ page: this.sysToolCurrentPage,
1704
+ limit: this.sysToolPageSize,
1705
+ 'scope.ENABLE': '1',
1706
+ columnFieldNames: 'ID,NAME,CODE,DESC,ENABLE'
1707
+ })
1708
+ .then(data => {
1709
+ this.sysToolList = data.entitys || []
1710
+ this.sysToolTotal = data.total || 0
1711
+ })
1712
+ .catch(err => {
1713
+ this.$message.error(err.message || '加载内置工具列表失败')
1714
+ })
1715
+ },
1716
+
1717
+ // 内置工具分页切换
1718
+ handleSysToolPageChange (page) {
1719
+ this.sysToolCurrentPage = page
1720
+ this.loadSysToolList()
1721
+ },
1722
+
1723
+ // 内置工具选择变化
1724
+ handleSysToolSelectionChange (selection) {
1725
+ this.selectedSysTools = selection
1726
+ },
1727
+
1728
+ // 移除已选择的内置工具
1729
+ removeSelectedSysTool (index) {
1730
+ this.selectedSysTools.splice(index, 1)
1731
+ this.$refs.sysToolTable.clearSelection()
1732
+ this.selectedSysTools.forEach(sysTool => {
1733
+ const row = this.sysToolList.find(item => item.ID === sysTool.ID)
1734
+ if (row) {
1735
+ this.$refs.sysToolTable.toggleRowSelection(row, true)
1736
+ }
1737
+ })
1738
+ },
1739
+
1740
+ // 确认内置工具选择
1741
+ confirmSysToolSelection () {
1742
+ if (this.selectedSysTools.length === 0) {
1743
+ this.$message.warning('请至少选择一个内置工具')
1744
+ return
1745
+ }
1746
+
1747
+ const promises = this.selectedSysTools.map(sysTool => {
1748
+ const toolData = {
1749
+ NAME: sysTool.NAME,
1750
+ TYPE: 'sys_tool',
1751
+ DESC: sysTool.DESC || sysTool.NAME,
1752
+ SYS_TOOL: sysTool.ID,
1753
+ AGENT: this.$query.id,
1754
+ CLIENT: this.CLIENT,
1755
+ SYSTEM: this.SYSTEM,
1756
+ ENABLE: '1'
1757
+ }
1758
+
1759
+ return this.$http.save({
1760
+ action: 'save',
1761
+ entityId: 'FM_AI_TOOL',
1762
+ bean: toolData
1763
+ })
1764
+ })
1765
+
1766
+ Promise.all(promises)
1767
+ .then(() => {
1768
+ this.$message.success(`成功创建 ${this.selectedSysTools.length} 个内置工具`)
1769
+ this.sysToolDialogVisible = false
1770
+ this.loadTools()
1771
+ })
1772
+ .catch(err => {
1773
+ this.$message.error(err.message || '创建内置工具失败')
1774
+ })
1775
+ },
1776
+
1777
+ // 提交表单
1778
+ handleSubmit () {
1779
+ this.$refs.toolForm.validate(valid => {
1780
+ if (valid) {
1781
+ this.submitLoading = true
1782
+ const action = this.isEdit ? 'update' : 'save'
1783
+ this.$http[action]({
1784
+ action,
1785
+ entityId: 'FM_AI_TOOL',
1786
+ entity: JSON.stringify(this.formData)
1787
+ })
1788
+ .then(() => {
1789
+ this.$message.success(this.isEdit ? '更新成功' : '新增成功')
1790
+ this.dialogVisible = false
1791
+ this.loadTools()
1792
+ })
1793
+ .catch(err => {
1794
+ this.$message.error(err.message || '操作失败')
1795
+ })
1796
+ .finally(() => {
1797
+ this.submitLoading = false
1798
+ })
1799
+ }
1800
+ })
1801
+ },
1802
+
1803
+ // 点击技能卡片打开页面弹窗
1804
+ handleSkillClick (skill) {
1805
+ if (!this.$configs.skillPageId) {
1806
+ this.$message.warning('未配置技能页面')
1807
+ return
1808
+ }
1809
+ this.goPage({
1810
+ pageId: this.$configs.skillPageId,
1811
+ openMode: '2',
1812
+ params: {
1813
+ id: skill.SKILL
1814
+ }
1815
+ })
1816
+ },
1817
+
1818
+ // 点击对象接口查看接口文档
1819
+ handleApiClick (tool) {
1820
+ if (!this.$configs.apiPageId) {
1821
+ this.$message.warning('未配置接口文档页面')
1822
+ return
1823
+ }
1824
+ this.goPage({
1825
+ pageId: this.$configs.apiPageId,
1826
+ openMode: '2',
1827
+ params: {
1828
+ metaId: tool['API|ENTITY'] || tool.META,
1829
+ api: tool['API|NAME']
1830
+ }
1831
+ })
1832
+ }
1833
+ }
1834
+ }
1835
+ </script>
1836
+
1837
+ <style lang="scss" scoped>
1838
+ .ai-tool-manager {
1839
+ padding: 10px 0;
1840
+ background: var(--epx-bg);
1841
+ min-height: 100vh;
1842
+ }
1843
+
1844
+ .tool-section {
1845
+ margin-bottom: 20px;
1846
+ background: var(--epx-bg-card);
1847
+ padding: 20px;
1848
+ border-radius: var(--epx-radius-l);
1849
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
1850
+ }
1851
+
1852
+ .section-header {
1853
+ margin-bottom: 16px;
1854
+ padding-left: 12px;
1855
+ border-left: 3px solid #409eff;
1856
+ }
1857
+
1858
+ .section-title {
1859
+ font-size: var(--epx-font-size-l);
1860
+ font-weight: 600;
1861
+ color: var(--epx-text);
1862
+ }
1863
+
1864
+ .tool-cards {
1865
+ display: grid;
1866
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
1867
+ gap: 16px;
1868
+ }
1869
+
1870
+ .tool-card {
1871
+ background: #F1FAFF;
1872
+ border: 1px solid var(--epx-border);
1873
+ border-radius: var(--epx-radius-l);
1874
+ padding: 12px 16px;
1875
+ transition: all 0.3s;
1876
+ cursor: pointer;
1877
+ }
1878
+
1879
+ .tool-card.skill-card {
1880
+ background: #FFF0F8;
1881
+ }
1882
+
1883
+ .tool-card.interface-card {
1884
+ background: #F1FAFF;
1885
+ }
1886
+
1887
+ .tool-card.mcp-card {
1888
+ background: #E6F8EB;
1889
+ }
1890
+
1891
+ .tool-card.sys-tool-card {
1892
+ background: #FFF8E1;
1893
+ }
1894
+
1895
+ .tool-card.subagent-card {
1896
+ display: flex;
1897
+ align-items: center;
1898
+ gap: 12px;
1899
+ padding: 16px;
1900
+ background: #F1F0FF;
1901
+ border-color: var(--epx-border);
1902
+ cursor: move;
1903
+ }
1904
+
1905
+ /* 拖拽排序时的占位卡片 */
1906
+ .tool-card.subagent-ghost {
1907
+ opacity: 0.5;
1908
+ border: 1px dashed #409eff;
1909
+ }
1910
+
1911
+ .tool-card.external-card {
1912
+ background: #FFF6ED;
1913
+ border-color: var(--epx-border);
1914
+ }
1915
+
1916
+ .card-icon-wrapper {
1917
+ width: 40px;
1918
+ height: 40px;
1919
+ flex-shrink: 0;
1920
+ border-radius: var(--epx-radius-l);
1921
+ overflow: hidden;
1922
+ display: flex;
1923
+ align-items: center;
1924
+ justify-content: center;
1925
+ background: var(--epx-bg-card);
1926
+ }
1927
+
1928
+ .card-icon-wrapper img {
1929
+ width: 32px;
1930
+ height: 32px;
1931
+ object-fit: contain;
1932
+ }
1933
+
1934
+ .card-main {
1935
+ flex: 1;
1936
+ display: flex;
1937
+ flex-direction: column;
1938
+ min-width: 0;
1939
+ }
1940
+
1941
+ .tool-card:hover {
1942
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
1943
+ }
1944
+
1945
+ .tool-card:hover .card-delete-btn {
1946
+ opacity: 1;
1947
+ }
1948
+
1949
+ .tool-card.clickable:hover {
1950
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1951
+ border-color: #409eff;
1952
+ }
1953
+
1954
+ .card-header {
1955
+ display: flex;
1956
+ justify-content: space-between;
1957
+ align-items: flex-start;
1958
+ margin-bottom: 8px;
1959
+ }
1960
+
1961
+ .card-header-left {
1962
+ display: flex;
1963
+ align-items: center;
1964
+ flex: 1;
1965
+ gap: 8px;
1966
+ }
1967
+
1968
+ .card-icon {
1969
+ width: 32px;
1970
+ height: 32px;
1971
+ flex-shrink: 0;
1972
+ border-radius: var(--epx-radius-base);
1973
+ overflow: hidden;
1974
+ display: flex;
1975
+ align-items: center;
1976
+ justify-content: center;
1977
+ background: var(--epx-bg-card);
1978
+ }
1979
+
1980
+ .card-icon img {
1981
+ width: 100%;
1982
+ height: 100%;
1983
+ object-fit: cover;
1984
+ }
1985
+
1986
+ .card-title {
1987
+ font-size: var(--epx-font-size-base);
1988
+ font-weight: 600;
1989
+ color: var(--epx-text);
1990
+ line-height: 1.5;
1991
+ overflow: hidden;
1992
+ text-overflow: ellipsis;
1993
+ white-space: nowrap;
1994
+ max-width: 200px;
1995
+ }
1996
+
1997
+ .card-code {
1998
+ font-size: var(--epx-font-size-base);
1999
+ font-weight: 400;
2000
+ color: var(--epx-text-secondary);
2001
+ margin-left: 4px;
2002
+ flex-shrink: 0;
2003
+ }
2004
+
2005
+ .card-title-group {
2006
+ display: flex;
2007
+ align-items: center;
2008
+ flex: 1;
2009
+ min-width: 0;
2010
+ gap: 4px;
2011
+ }
2012
+
2013
+ .card-delete-btn {
2014
+ padding: 0 !important;
2015
+ margin-left: 12px;
2016
+ font-size: var(--epx-font-size-l);
2017
+ color: #f56c6c;
2018
+ flex-shrink: 0;
2019
+ opacity: 0;
2020
+ transition: opacity 0.3s;
2021
+ min-width: auto;
2022
+ }
2023
+
2024
+ .card-delete-btn:hover {
2025
+ color: #f56c6c;
2026
+ }
2027
+
2028
+ .card-delete-btn :deep(i) {
2029
+ font-size: var(--epx-font-size-l);
2030
+ }
2031
+
2032
+ .card-tag-frame {
2033
+ margin-right: 6px;
2034
+ flex-shrink: 0;
2035
+ }
2036
+
2037
+ .card-content .card-line {
2038
+ font-size: var(--epx-font-size-base);
2039
+ line-height: 1.5;
2040
+ color: var(--epx-text);
2041
+ margin-bottom: 4px;
2042
+ overflow: hidden;
2043
+ text-overflow: ellipsis;
2044
+ display: -webkit-box;
2045
+ -webkit-line-clamp: 2;
2046
+ -webkit-box-orient: vertical;
2047
+ word-break: break-all;
2048
+ }
2049
+
2050
+ .card-content .card-line:last-child {
2051
+ margin-bottom: 0;
2052
+ }
2053
+
2054
+ .tool-card.add-card {
2055
+ display: flex;
2056
+ flex-direction: column;
2057
+ align-items: center;
2058
+ justify-content: center;
2059
+ min-height: 102px;
2060
+ border: 2px dashed var(--epx-border);
2061
+ background: transparent;
2062
+ }
2063
+
2064
+ .tool-card.add-card:hover {
2065
+ border-color: #409eff;
2066
+ background: transparent;
2067
+ }
2068
+
2069
+ .add-icon {
2070
+ font-size: 48px;
2071
+ color: var(--epx-text-secondary);
2072
+ margin-bottom: 8px;
2073
+ line-height: 1;
2074
+ }
2075
+
2076
+ .add-text {
2077
+ font-size: var(--epx-font-size-base);
2078
+ color: var(--epx-text);
2079
+ }
2080
+
2081
+ /* 当前页面所有弹窗的统一样式 */
2082
+ .ai-tool-manager :deep(.el-dialog) {
2083
+ border-radius: var(--epx-radius-l);
2084
+ overflow: hidden;
2085
+ }
2086
+
2087
+ .ai-tool-manager :deep(.el-dialog__header) {
2088
+ padding: 16px 20px;
2089
+ border-bottom: 1px solid var(--epx-border);
2090
+ }
2091
+
2092
+ .ai-tool-manager :deep(.el-dialog__title) {
2093
+ font-size: var(--epx-font-size-l);
2094
+ font-weight: 500;
2095
+ }
2096
+
2097
+ .ai-tool-manager :deep(.el-dialog__headerbtn) {
2098
+ top: 16px;
2099
+ right: 20px;
2100
+ }
2101
+
2102
+ .ai-tool-manager :deep(.el-dialog__body) {
2103
+ max-height: 80vh;
2104
+ overflow-y: auto;
2105
+ padding: 0;
2106
+ }
2107
+
2108
+ /* 对象接口选择对话框特殊样式 */
2109
+ .api-select-dialog :deep(.el-dialog__body) {
2110
+ padding: 0;
2111
+ }
2112
+
2113
+ .api-select-dialog :deep(.el-dialog__footer) {
2114
+ display: none;
2115
+ }
2116
+
2117
+ .api-dialog-content {
2118
+ display: flex;
2119
+ gap: 0;
2120
+ height: 500px;
2121
+ }
2122
+
2123
+ .api-list-panel {
2124
+ flex: 1;
2125
+ display: flex;
2126
+ flex-direction: column;
2127
+ padding: 16px 12px 16px 16px;
2128
+ background: var(--epx-bg-card);
2129
+ }
2130
+
2131
+ .filter-bar {
2132
+ margin-bottom: 12px;
2133
+ }
2134
+
2135
+ .filter-item {
2136
+ display: flex;
2137
+ align-items: center;
2138
+ }
2139
+
2140
+ .filter-item label {
2141
+ font-size: var(--epx-font-size-base);
2142
+ color: var(--epx-text);
2143
+ margin-right: 8px;
2144
+ white-space: nowrap;
2145
+ }
2146
+
2147
+ .filter-item :deep(.epx-object) {
2148
+ flex: 1;
2149
+ }
2150
+
2151
+ .api-list-panel :deep(.el-table) {
2152
+ font-size: 13px;
2153
+ }
2154
+
2155
+ .api-list-panel :deep(.el-table th) {
2156
+ background: transparent;
2157
+ color: var(--epx-text);
2158
+ font-weight: 600;
2159
+ padding: 8px 0;
2160
+ border-bottom: 1px solid var(--epx-border);
2161
+ }
2162
+
2163
+ .api-list-panel :deep(.el-table td) {
2164
+ padding: 8px 0;
2165
+ border-bottom: 1px solid var(--epx-border);
2166
+ }
2167
+
2168
+ .api-list-panel :deep(.el-table .el-table__header-wrapper .el-checkbox .el-checkbox__inner) {
2169
+ border-color: var(--epx-border);
2170
+ }
2171
+
2172
+ .api-list-panel :deep(.el-table::before) {
2173
+ display: none;
2174
+ }
2175
+
2176
+ .api-list-panel :deep(.el-table .el-table__row:hover) {
2177
+ background: var(--epx-bg);
2178
+ }
2179
+
2180
+ .api-list-panel :deep(.el-table .el-table__body tr.current-row > td) {
2181
+ background-color: transparent !important;
2182
+ }
2183
+
2184
+ .api-list-panel :deep(.el-pagination) {
2185
+ padding: 8px 0 0;
2186
+ }
2187
+
2188
+ .empty-table-tip {
2189
+ display: flex;
2190
+ flex-direction: column;
2191
+ align-items: center;
2192
+ justify-content: center;
2193
+ height: 360px;
2194
+ color: var(--epx-text-secondary);
2195
+ }
2196
+
2197
+ .empty-table-tip i {
2198
+ font-size: 48px;
2199
+ margin-bottom: 12px;
2200
+ }
2201
+
2202
+ .empty-table-tip p {
2203
+ font-size: var(--epx-font-size-base);
2204
+ margin: 0;
2205
+ }
2206
+
2207
+ .api-tabs :deep(.el-tabs__header) {
2208
+ margin-bottom: 12px;
2209
+ }
2210
+
2211
+ .api-tabs :deep(.el-tabs__item) {
2212
+ font-size: var(--epx-font-size-base);
2213
+ }
2214
+
2215
+ .frame-tag {
2216
+ margin-right: 6px;
2217
+ flex-shrink: 0;
2218
+ }
2219
+
2220
+ .item-header {
2221
+ display: flex;
2222
+ align-items: center;
2223
+ margin-bottom: 10px;
2224
+ }
2225
+
2226
+ .api-selected-panel {
2227
+ width: 340px;
2228
+ border-left: 1px solid var(--epx-border);
2229
+ display: flex;
2230
+ flex-direction: column;
2231
+ background: var(--epx-bg-card);
2232
+ }
2233
+
2234
+ .panel-header {
2235
+ padding: 10px 16px;
2236
+ background: var(--epx-bg-card);
2237
+ border-bottom: 1px solid var(--epx-border);
2238
+ font-weight: 500;
2239
+ font-size: var(--epx-font-size-base);
2240
+ color: var(--epx-text);
2241
+ }
2242
+
2243
+ .selected-list {
2244
+ flex: 1;
2245
+ overflow-y: auto;
2246
+ padding: 16px;
2247
+ background: var(--epx-bg-card);
2248
+ }
2249
+
2250
+ .selected-item {
2251
+ background: rgba(64, 158, 255, 0.1);
2252
+ border: 1px solid var(--epx-border);
2253
+ border-radius: var(--epx-radius-base);
2254
+ padding: 10px;
2255
+ margin-bottom: 12px;
2256
+ transition: all 0.3s;
2257
+ cursor: pointer;
2258
+ }
2259
+
2260
+ .selected-item:last-child {
2261
+ margin-bottom: 0;
2262
+ }
2263
+
2264
+ .selected-item:hover {
2265
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
2266
+ }
2267
+
2268
+ .selected-item:hover .delete-btn {
2269
+ opacity: 1;
2270
+ }
2271
+
2272
+ .item-header {
2273
+ display: flex;
2274
+ justify-content: space-between;
2275
+ align-items: flex-start;
2276
+ margin-bottom: 10px;
2277
+ }
2278
+
2279
+ .item-header-left {
2280
+ display: flex;
2281
+ align-items: center;
2282
+ flex: 1;
2283
+ gap: 8px;
2284
+ }
2285
+
2286
+ .item-icon {
2287
+ width: 28px;
2288
+ height: 28px;
2289
+ flex-shrink: 0;
2290
+ border-radius: var(--epx-radius-base);
2291
+ overflow: hidden;
2292
+ display: flex;
2293
+ align-items: center;
2294
+ justify-content: center;
2295
+ background: var(--epx-bg-card);
2296
+ }
2297
+
2298
+ .item-icon img {
2299
+ width: 100%;
2300
+ height: 100%;
2301
+ object-fit: cover;
2302
+ }
2303
+
2304
+ .item-title {
2305
+ font-size: var(--epx-font-size-base);
2306
+ font-weight: 500;
2307
+ color: var(--epx-text);
2308
+ flex: 1;
2309
+ line-height: 1.5;
2310
+ }
2311
+
2312
+ .delete-btn {
2313
+ padding: 0;
2314
+ margin-left: 12px;
2315
+ font-size: var(--epx-font-size-l);
2316
+ color: #f56c6c;
2317
+ flex-shrink: 0;
2318
+ opacity: 0;
2319
+ transition: opacity 0.3s;
2320
+ }
2321
+
2322
+ .delete-btn:hover {
2323
+ color: #f56c6c;
2324
+ }
2325
+
2326
+ .delete-btn i {
2327
+ font-size: var(--epx-font-size-l);
2328
+ }
2329
+
2330
+ .item-content .content-line {
2331
+ font-size: var(--epx-font-size-s);
2332
+ line-height: 1.8;
2333
+ color: var(--epx-text);
2334
+ margin-bottom: 6px;
2335
+ overflow: hidden;
2336
+ text-overflow: ellipsis;
2337
+ display: -webkit-box;
2338
+ -webkit-line-clamp: 2;
2339
+ -webkit-box-orient: vertical;
2340
+ word-break: break-all;
2341
+ }
2342
+
2343
+ .item-content .content-line:last-child {
2344
+ margin-bottom: 0;
2345
+ }
2346
+
2347
+ .empty-tip {
2348
+ text-align: center;
2349
+ color: var(--epx-text-secondary);
2350
+ font-size: var(--epx-font-size-base);
2351
+ padding: 60px 0;
2352
+ }
2353
+
2354
+ .panel-footer {
2355
+ padding: 10px 16px;
2356
+ background: var(--epx-bg-card);
2357
+ border-top: 1px solid var(--epx-border);
2358
+ display: flex;
2359
+ justify-content: space-between;
2360
+ align-items: center;
2361
+ }
2362
+
2363
+ .count-text {
2364
+ font-size: 13px;
2365
+ color: var(--epx-text);
2366
+ }
2367
+
2368
+ .footer-actions {
2369
+ display: flex;
2370
+ gap: 8px;
2371
+ }
2372
+ </style>