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

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 +110 -0
  2. package/README.md +42 -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 +684 -0
  78. package/dist/src/base/AiPromptView.js +362 -0
  79. package/dist/src/base/AiSkillEditor.js +1028 -0
  80. package/dist/src/base/AiSkillEditor.vue.js +1176 -0
  81. package/dist/src/base/AppConfigFormItem.js +7 -0
  82. package/dist/src/base/AppConfigFormItem.vue.js +407 -0
  83. package/dist/src/base/AppMarket.js +211 -0
  84. package/dist/src/base/AppMarketList.js +7 -0
  85. package/dist/src/base/AppMarketList.vue.js +214 -0
  86. package/dist/src/base/AppMarketSystemDetail.js +292 -0
  87. package/dist/src/base/AttributeSubAdd.js +25 -0
  88. package/dist/src/base/ChooseApplication.js +131 -0
  89. package/dist/src/base/ClientAppItem.js +189 -0
  90. package/dist/src/base/ClientApplication.js +359 -0
  91. package/dist/src/base/ClientApplicationList.js +125 -0
  92. package/dist/src/base/ClientModule.js +118 -0
  93. package/dist/src/base/ClientModuleIndex.js +294 -0
  94. package/dist/src/base/ClientSystemDetail.js +202 -0
  95. package/dist/src/base/ClientSystemList.js +7 -0
  96. package/dist/src/base/ClientSystemList.vue.js +450 -0
  97. package/dist/src/base/CommonFieldList.js +10 -0
  98. package/dist/src/base/CommonFieldList.vue.js +530 -0
  99. package/dist/src/base/CommonSearchList.js +4 -0
  100. package/dist/src/base/CommonSearchList.vue.js +253 -0
  101. package/dist/src/base/CompayDetail.js +115 -0
  102. package/dist/src/base/ComponentGlobalSet.js +7 -0
  103. package/dist/src/base/ComponentGlobalSet.vue.js +722 -0
  104. package/dist/src/base/ComponentParamsTree.js +334 -0
  105. package/dist/src/base/ConfigModuleIndex.js +134 -0
  106. package/dist/src/base/CurrentClientApplication.js +53 -0
  107. package/dist/src/base/CurrentVersionInfo.js +97 -0
  108. package/dist/src/base/EntityMatchCompare.js +532 -0
  109. package/dist/src/base/FieldRelationFormItem.js +7 -0
  110. package/dist/src/base/FieldRelationFormItem.vue.js +272 -0
  111. package/dist/src/base/HelpDocSet.js +362 -0
  112. package/dist/src/base/HelpDocSet.vue.js +685 -0
  113. package/dist/src/base/IndexFormItem.js +4 -0
  114. package/dist/src/base/IndexFormItem.vue.js +230 -0
  115. package/dist/src/base/JobFormItem.js +7 -0
  116. package/dist/src/base/JobFormItem.vue.js +131 -0
  117. package/dist/src/base/ManageAppNav.js +8 -0
  118. package/dist/src/base/ManageAppNav.vue.js +1178 -0
  119. package/dist/src/base/ManageMenu.js +915 -0
  120. package/dist/src/base/ManageMenuItem.js +550 -0
  121. package/dist/src/base/NoInstallSystemList.js +4 -0
  122. package/dist/src/base/NoInstallSystemList.vue.js +159 -0
  123. package/dist/src/base/PageList.js +47 -0
  124. package/dist/src/base/PasswordFormItem.js +7 -0
  125. package/dist/src/base/PasswordFormItem.vue.js +125 -0
  126. package/dist/src/base/ProcessFormItem.js +147 -0
  127. package/dist/src/base/PublishSystemApplyFormItem.js +4 -0
  128. package/dist/src/base/PublishSystemApplyFormItem.vue.js +104 -0
  129. package/dist/src/base/RequestLog.js +169 -0
  130. package/dist/src/base/RightRiskList.js +7 -0
  131. package/dist/src/base/RightRiskList.vue.js +224 -0
  132. package/dist/src/base/RoleAccredit.js +1086 -0
  133. package/dist/src/base/RoleRightList.js +7 -0
  134. package/dist/src/base/RoleRightList.vue.js +118 -0
  135. package/dist/src/base/RoleUserManage.js +7 -0
  136. package/dist/src/base/RoleUserManage.vue.js +146 -0
  137. package/dist/src/base/ServiceAccredit.js +1074 -0
  138. package/dist/src/base/ServiceMenu.js +398 -0
  139. package/dist/src/base/ServiceMenuFormItem.js +19 -0
  140. package/dist/src/base/ServiceOperate.js +1002 -0
  141. package/dist/src/base/SystemHelpTreeFind.js +43 -0
  142. package/dist/src/base/aiPromptMode.js +144 -0
  143. package/dist/src/base/data-check/DataChckDetail.js +242 -0
  144. package/dist/src/base/data-check/DataCheck.js +307 -0
  145. package/dist/src/base/data-check/DataCheckList.js +363 -0
  146. package/dist/src/base/data-check/DataCheckSubList.js +5 -0
  147. package/dist/src/base/data-check/DataCheckSubList.vue.js +195 -0
  148. package/dist/src/base/entity-view/EntityViewFormItem.js +4 -0
  149. package/dist/src/base/entity-view/EntityViewFormItem.vue.js +229 -0
  150. package/dist/src/base/entity-view/EntityViewSubList.js +4 -0
  151. package/dist/src/base/entity-view/EntityViewSubList.vue.js +181 -0
  152. package/dist/src/base/entity-view-config/BasicInfoDialog.js +207 -0
  153. package/dist/src/base/entity-view-config/FieldPanel.js +691 -0
  154. package/dist/src/base/entity-view-config/FieldPropForm.js +785 -0
  155. package/dist/src/base/entity-view-config/FormulaDialog.js +142 -0
  156. package/dist/src/base/entity-view-config/ObjectFieldDialog.js +270 -0
  157. package/dist/src/base/entity-view-config/RelationPanel.js +778 -0
  158. package/dist/src/base/entity-view-config/SourceManagerDialog.js +657 -0
  159. package/dist/src/base/entity-view-config/SqlPanel.js +61 -0
  160. package/dist/src/base/entity-view-config/SqlPanel.vue.js +43 -0
  161. package/dist/src/base/entity-view-config/UnionPanel.js +1081 -0
  162. package/dist/src/base/entity-view-config/ViewConfig.js +585 -0
  163. package/dist/src/base/entity-view-config/constants.js +145 -0
  164. package/dist/src/base/user-type/UserTypeFormItem.js +4 -0
  165. package/dist/src/base/user-type/UserTypeFormItem.vue.js +183 -0
  166. package/dist/src/components/AddPageFormItem.js +4 -0
  167. package/dist/src/components/AddPageFormItem.vue.js +92 -0
  168. package/dist/src/components/AddUsedInterface.js +213 -0
  169. package/dist/src/components/AiDocFormItem.js +5 -0
  170. package/dist/src/components/AiDocFormItem.vue.js +271 -0
  171. package/dist/src/components/AiList.js +7 -0
  172. package/dist/src/components/AiList.vue.js +93 -0
  173. package/dist/src/components/AiPermissionAssistant.js +283 -0
  174. package/dist/src/components/AppList.js +413 -0
  175. package/dist/src/components/Apply/AIApplyIndex.js +178 -0
  176. package/dist/src/components/Apply/ApplyIndex.js +281 -0
  177. package/dist/src/components/AttributeList.js +869 -0
  178. package/dist/src/components/Banner.js +25 -0
  179. package/dist/src/components/BatchAddFieldDialog.js +424 -0
  180. package/dist/src/components/CardO.js +46 -0
  181. package/dist/src/components/CheckForm.js +33 -0
  182. package/dist/src/components/ClientAdminFormItem.js +46 -0
  183. package/dist/src/components/ClientAdminList.js +8 -0
  184. package/dist/src/components/ClientAdminList.vue.js +221 -0
  185. package/dist/src/components/ClientFormItem.js +47 -0
  186. package/dist/src/components/ClientList.js +5 -0
  187. package/dist/src/components/ClientList.vue.js +216 -0
  188. package/dist/src/components/CodeDetail.js +453 -0
  189. package/dist/src/components/CodeManage.js +1029 -0
  190. package/dist/src/components/ComponentFind.js +209 -0
  191. package/dist/src/components/ComponentList.js +498 -0
  192. package/dist/src/components/ConfigParamFormItem.js +7 -0
  193. package/dist/src/components/ConfigParamFormItem.vue.js +389 -0
  194. package/dist/src/components/CreatePage.js +297 -0
  195. package/dist/src/components/DashboardCreate.js +105 -0
  196. package/dist/src/components/DataLog.js +168 -0
  197. package/dist/src/components/DataLogTimeline.js +110 -0
  198. package/dist/src/components/DataSnapshot.js +206 -0
  199. package/dist/src/components/DataSnapshotList.js +74 -0
  200. package/dist/src/components/DataSyncInit.js +172 -0
  201. package/dist/src/components/DblogList.js +5 -0
  202. package/dist/src/components/DblogList.vue.js +143 -0
  203. package/dist/src/components/DeptFind.js +7 -0
  204. package/dist/src/components/DeptFind.vue.js +109 -0
  205. package/dist/src/components/DynamicUserList.js +4 -0
  206. package/dist/src/components/DynamicUserList.vue.js +89 -0
  207. package/dist/src/components/EntityCheckboxFind.js +4 -0
  208. package/dist/src/components/EntityCheckboxFind.vue.js +97 -0
  209. package/dist/src/components/EntityRelationAdd.js +387 -0
  210. package/dist/src/components/EntityRelationAddFormItem.js +4 -0
  211. package/dist/src/components/EntityRelationAddFormItem.vue.js +284 -0
  212. package/dist/src/components/EntityRightFormItem.js +9 -0
  213. package/dist/src/components/EntityRightFormItem.vue.js +401 -0
  214. package/dist/src/components/EntityRightSubList.js +639 -0
  215. package/dist/src/components/EntityTagSubList.js +4 -0
  216. package/dist/src/components/EntityTagSubList.vue.js +103 -0
  217. package/dist/src/components/EntityTreeManage.js +864 -0
  218. package/dist/src/components/ExportSystemConfig.js +166 -0
  219. package/dist/src/components/FieldTreeFind.js +40 -0
  220. package/dist/src/components/FormulaEditor.js +7 -0
  221. package/dist/src/components/FormulaEditor.vue.js +1235 -0
  222. package/dist/src/components/GenTestData.js +637 -0
  223. package/dist/src/components/HallNav.js +5 -0
  224. package/dist/src/components/HallNav.vue.js +156 -0
  225. package/dist/src/components/HeaderNav.js +368 -0
  226. package/dist/src/components/IconCard.js +97 -0
  227. package/dist/src/components/IconFontLibrary.js +4 -0
  228. package/dist/src/components/IconFontLibrary.vue.js +67 -0
  229. package/dist/src/components/IconFontList.js +4 -0
  230. package/dist/src/components/IconFontList.vue.js +79 -0
  231. package/dist/src/components/IdentifyList.js +32 -0
  232. package/dist/src/components/ImportSystemConfig.js +302 -0
  233. package/dist/src/components/InterfaceSubList.js +319 -0
  234. package/dist/src/components/JsPanel.js +100 -0
  235. package/dist/src/components/LanguageImportPage.js +589 -0
  236. package/dist/src/components/LanguageSetting.js +544 -0
  237. package/dist/src/components/List/LinkItem.js +112 -0
  238. package/dist/src/components/List/List.js +17 -0
  239. package/dist/src/components/List/ListItem.js +30 -0
  240. package/dist/src/components/MenuTreeFind.js +7 -0
  241. package/dist/src/components/MenuTreeFind.vue.js +81 -0
  242. package/dist/src/components/MessageList.js +7 -0
  243. package/dist/src/components/MessageList.vue.js +101 -0
  244. package/dist/src/components/MessageRuleFormItem.js +59 -0
  245. package/dist/src/components/MessageRuleReceiverFormItem.js +223 -0
  246. package/dist/src/components/MessageTemplate.js +394 -0
  247. package/dist/src/components/MessageTemplate.vue.js +693 -0
  248. package/dist/src/components/MetaList.js +4 -0
  249. package/dist/src/components/MetaList.vue.js +100 -0
  250. package/dist/src/components/Nav.js +495 -0
  251. package/dist/src/components/NavFormCatalogItem.js +6 -0
  252. package/dist/src/components/NumList.js +59 -0
  253. package/dist/src/components/OperateLog.js +132 -0
  254. package/dist/src/components/PageCatalog.js +7 -0
  255. package/dist/src/components/PageCatalog.vue.js +292 -0
  256. package/dist/src/components/PageChart.js +212 -0
  257. package/dist/src/components/PageSwipes.js +131 -0
  258. package/dist/src/components/PersonFormItem.js +4 -0
  259. package/dist/src/components/PersonFormItem.vue.js +96 -0
  260. package/dist/src/components/Popup.js +238 -0
  261. package/dist/src/components/PrintFormList.js +8 -0
  262. package/dist/src/components/PrintFormList.vue.js +203 -0
  263. package/dist/src/components/PublishEntity.js +113 -0
  264. package/dist/src/components/RelyFieldTreeFind.js +51 -0
  265. package/dist/src/components/ReportFormList.js +235 -0
  266. package/dist/src/components/ReportList.js +8 -0
  267. package/dist/src/components/ReportList.vue.js +248 -0
  268. package/dist/src/components/RightSubList.js +7 -0
  269. package/dist/src/components/RightSubList.vue.js +150 -0
  270. package/dist/src/components/RoleAddUser.js +54 -0
  271. package/dist/src/components/RoleApplicationCard.js +137 -0
  272. package/dist/src/components/RoleApplicationList.js +936 -0
  273. package/dist/src/components/RoleApplicationSet.js +1000 -0
  274. package/dist/src/components/Search.js +253 -0
  275. package/dist/src/components/ServiceFormItem.js +32 -0
  276. package/dist/src/components/SnapshotDataList.js +72 -0
  277. package/dist/src/components/SystemAdminList.js +7 -0
  278. package/dist/src/components/SystemAdminList.vue.js +198 -0
  279. package/dist/src/components/SystemFormItem.js +7 -0
  280. package/dist/src/components/SystemFormItem.vue.js +170 -0
  281. package/dist/src/components/SystemNav.js +29 -0
  282. package/dist/src/components/TaskNumCard.js +22 -0
  283. package/dist/src/components/TimerRuleFormItem.js +332 -0
  284. package/dist/src/components/TodoList.js +7 -0
  285. package/dist/src/components/TodoList.vue.js +327 -0
  286. package/dist/src/components/UpdateSystemConfig.js +240 -0
  287. package/dist/src/components/UserCard.js +82 -0
  288. package/dist/src/components/UserFind.js +5 -0
  289. package/dist/src/components/UserFind.vue.js +592 -0
  290. package/dist/src/components/UserFormItem.js +8 -0
  291. package/dist/src/components/UserFormItem.vue.js +609 -0
  292. package/dist/src/components/UserList.js +4 -0
  293. package/dist/src/components/UserList.vue.js +23 -0
  294. package/dist/src/components/UserManage.js +801 -0
  295. package/dist/src/components/UserRoleList.js +578 -0
  296. package/dist/src/components/ValidateRuleFormItem.js +108 -0
  297. package/dist/src/components/ViewFieldDefine.js +746 -0
  298. package/dist/src/components/WikiSpaceList.js +4 -0
  299. package/dist/src/components/WikiSpaceList.vue.js +330 -0
  300. package/dist/src/components/WikiWorkbench.js +646 -0
  301. package/dist/src/components/authorization/AddApiPermiss.js +230 -0
  302. package/dist/src/components/authorization/AddAuthorization.js +160 -0
  303. package/dist/src/components/authorization/AddEntityFind.js +61 -0
  304. package/dist/src/components/authorization/AddNoApi.js +190 -0
  305. package/dist/src/components/authorization/AddRoleScope.js +336 -0
  306. package/dist/src/components/authorization/AiRolePlan.js +671 -0
  307. package/dist/src/components/authorization/ApiShareOtherList.js +396 -0
  308. package/dist/src/components/authorization/ApiSystemList.js +241 -0
  309. package/dist/src/components/authorization/AuthorizationInterface.js +621 -0
  310. package/dist/src/components/authorization/AuthorizationRoleSystem.js +849 -0
  311. package/dist/src/components/authorization/EntityConstraintFormItem.js +283 -0
  312. package/dist/src/components/authorization/OtherShareApiList.js +246 -0
  313. package/dist/src/components/authorization/PermissCommonRoleTabs.js +113 -0
  314. package/dist/src/components/authorization/PermissRoleAuthorization.js +1285 -0
  315. package/dist/src/components/authorization/PermissRoleTabs.js +112 -0
  316. package/dist/src/components/authorization/RoleLevel.js +4 -0
  317. package/dist/src/components/authorization/RoleLevel.vue.js +110 -0
  318. package/dist/src/components/authorization/RoleLevelScope.js +269 -0
  319. package/dist/src/components/authorization/SystemAddNoApi.js +186 -0
  320. package/dist/src/components/card/CardList.js +64 -0
  321. package/dist/src/components/card/CardListItem.js +96 -0
  322. package/dist/src/components/card/Title.js +41 -0
  323. package/dist/src/components/custom-bpmn/CustomContextPad.js +53 -0
  324. package/dist/src/components/custom-bpmn/CustomPalette.js +4 -0
  325. package/dist/src/components/custom-bpmn/CustomRenderer.js +4 -0
  326. package/dist/src/components/custom-bpmn/CustomRendererBpmn.js +87 -0
  327. package/dist/src/components/custom-bpmn/PropertiesView.js +12559 -0
  328. package/dist/src/components/custom-bpmn/components/AiModel.js +352 -0
  329. package/dist/src/components/custom-bpmn/components/Api.js +375 -0
  330. package/dist/src/components/custom-bpmn/components/BatchOperation.js +208 -0
  331. package/dist/src/components/custom-bpmn/components/Copy.js +652 -0
  332. package/dist/src/components/custom-bpmn/components/DataTransform.js +441 -0
  333. package/dist/src/components/custom-bpmn/components/Demo.js +62 -0
  334. package/dist/src/components/custom-bpmn/components/EditDiv.js +357 -0
  335. package/dist/src/components/custom-bpmn/components/GenScope.js +258 -0
  336. package/dist/src/components/custom-bpmn/components/GlobalParamsTree.js +75 -0
  337. package/dist/src/components/custom-bpmn/components/Knowledges.js +237 -0
  338. package/dist/src/components/custom-bpmn/components/Login.js +590 -0
  339. package/dist/src/components/custom-bpmn/components/MessageQueue.js +220 -0
  340. package/dist/src/components/custom-bpmn/components/MetaSelect.js +159 -0
  341. package/dist/src/components/custom-bpmn/components/NumStatistic.js +407 -0
  342. package/dist/src/components/custom-bpmn/components/ObjectTransform.js +788 -0
  343. package/dist/src/components/custom-bpmn/components/OutPut.js +394 -0
  344. package/dist/src/components/custom-bpmn/components/ParamsMachining.js +888 -0
  345. package/dist/src/components/custom-bpmn/components/ParamsOutput.js +160 -0
  346. package/dist/src/components/custom-bpmn/components/ProcessAudit.js +795 -0
  347. package/dist/src/components/custom-bpmn/components/SingleMultipleFind.js +1039 -0
  348. package/dist/src/components/custom-bpmn/components/TestDialog.js +860 -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 +4 -0
  361. package/dist/src/components/custom-bpmn/palette.js +12 -0
  362. package/dist/src/components/custom-bpmn/util.js +6 -0
  363. package/dist/src/components/dashboard-create.js +19 -0
  364. package/dist/src/components/entity-relation-diagram/Er.js +339 -0
  365. package/dist/src/components/entity-relation-diagram/renderErNode.js +35 -0
  366. package/dist/src/components/expand/AddForm.js +85 -0
  367. package/dist/src/components/expand/AddFormItem.js +148 -0
  368. package/dist/src/components/filter/Filter.js +719 -0
  369. package/dist/src/components/filter/FilterItem.js +492 -0
  370. package/dist/src/components/hall/AppCollect.js +120 -0
  371. package/dist/src/components/hall/AppList.js +479 -0
  372. package/dist/src/components/hall/AppVisitRecord.js +112 -0
  373. package/dist/src/components/hall/Banner.js +32 -0
  374. package/dist/src/components/hall/ServiceCard.js +123 -0
  375. package/dist/src/components/hall/UserCard.js +80 -0
  376. package/dist/src/components/permiss/AddApi.js +142 -0
  377. package/dist/src/components/permiss/AddNoEntityApi.js +179 -0
  378. package/dist/src/components/permiss/AddSystemPermiss.js +130 -0
  379. package/dist/src/components/permiss/AllocateRole.js +130 -0
  380. package/dist/src/components/permiss/ApiSubList.js +150 -0
  381. package/dist/src/components/permiss/CommonRoleMenu.js +590 -0
  382. package/dist/src/components/permiss/FieldScope.js +199 -0
  383. package/dist/src/components/permiss/PermissManage.js +87 -0
  384. package/dist/src/components/permiss/RoleAppList.js +35 -0
  385. package/dist/src/components/permiss/RoleMenu.js +517 -0
  386. package/dist/src/components/permiss/RoleSubList.js +4 -0
  387. package/dist/src/components/permiss/RoleSubList.vue.js +300 -0
  388. package/dist/src/components/permiss/jurisdiction.js +358 -0
  389. package/dist/src/components/process-healthcheck/HealthcheckChart.js +233 -0
  390. package/dist/src/components/process-healthcheck/HealthcheckChart.vue.js +348 -0
  391. package/dist/src/components/process-healthcheck/HealthcheckRenderer.js +35 -0
  392. package/dist/src/components/process-healthcheck/index.js +7 -0
  393. package/dist/src/components/report/Config.js +1707 -0
  394. package/dist/src/components/report/Design.js +4631 -0
  395. package/dist/src/components/report/StatList.js +216 -0
  396. package/dist/src/components/right/EntityOtherSystemList.js +81 -0
  397. package/dist/src/components/right/SystemInterfaceList.js +417 -0
  398. package/dist/src/components/right/SystemList.js +1016 -0
  399. package/dist/src/components/upLoad.js +70 -0
  400. package/dist/src/components/viewport/LookViewList.js +21 -0
  401. package/dist/src/components/viewport/ViewAddForm.js +141 -0
  402. package/dist/src/components/viewport/ViewDefineList.js +49 -0
  403. package/dist/src/components/viewport/ViewFiedList.js +722 -0
  404. package/dist/src/components/viewport/ViewScope.js +115 -0
  405. package/dist/src/components/wiki-workbench/WikiCites.js +300 -0
  406. package/dist/src/components/wiki-workbench/WikiIntake.js +307 -0
  407. package/dist/src/components/wiki-workbench/WikiIntake.vue.js +309 -0
  408. package/dist/src/components/wiki-workbench/WikiJobs.js +194 -0
  409. package/dist/src/components/wiki-workbench/WikiRevisions.js +228 -0
  410. package/dist/src/components/wiki-workbench/WikiSpaceSettings.js +58 -0
  411. package/dist/src/components/wiki-workbench/WikiSpaceSettings.vue.js +127 -0
  412. package/dist/src/components/wiki-workbench/codes.js +26 -0
  413. package/dist/src/components/wiki-workbench/index.js +12 -0
  414. package/dist/src/index.js +41 -0
  415. package/dist/src/popup.js +67 -0
  416. package/dist/src/public-components.js +19 -0
  417. package/dist/src/remote.entry.js +30 -0
  418. package/dist/src/route-components.js +11 -0
  419. package/dist/src/system.component.index.js +4 -0
  420. package/dist/src/system.component.js +341 -0
  421. package/dist/src/system.component.lazy.js +49 -0
  422. package/dist/src/views/Add.js +7 -0
  423. package/dist/src/views/Add.vue.js +734 -0
  424. package/dist/src/views/AiToolManager.js +2529 -0
  425. package/dist/src/views/App.js +47 -0
  426. package/dist/src/views/AppRoleSelect.js +232 -0
  427. package/dist/src/views/BatchEdit.js +255 -0
  428. package/dist/src/views/Bpmn.js +318 -0
  429. package/dist/src/views/Bpmn.vue.js +1196 -0
  430. package/dist/src/views/EntityCheckPage.js +48 -0
  431. package/dist/src/views/EntityDetailPage.js +4 -0
  432. package/dist/src/views/EntityDetailPage.vue.js +73 -0
  433. package/dist/src/views/EntityEditPage.js +9 -0
  434. package/dist/src/views/EntitySubListPage.js +40 -0
  435. package/dist/src/views/EntityTreePage.js +31 -0
  436. package/dist/src/views/Error.js +209 -0
  437. package/dist/src/views/ExcelDesign.js +2729 -0
  438. package/dist/src/views/ExcelDesign.vue.js +2165 -0
  439. package/dist/src/views/ExcelPreviewPage.js +165 -0
  440. package/dist/src/views/ExcelPreviewPage.vue.js +572 -0
  441. package/dist/src/views/ExportFilePage.js +20 -0
  442. package/dist/src/views/ExportPage.js +20 -0
  443. package/dist/src/views/FormDesign.js +1032 -0
  444. package/dist/src/views/FormDesign.vue.js +1564 -0
  445. package/dist/src/views/I18nWorkbench.js +520 -0
  446. package/dist/src/views/ImportFilePage.js +20 -0
  447. package/dist/src/views/ImportPage.js +20 -0
  448. package/dist/src/views/MEntityListPage.js +65 -0
  449. package/dist/src/views/MEntitySubListPage.js +40 -0
  450. package/dist/src/views/MinePage.js +15 -0
  451. package/dist/src/views/Module.js +172 -0
  452. package/dist/src/views/PageAttributeTreePage.js +420 -0
  453. package/dist/src/views/PageConfig.js +176 -0
  454. package/dist/src/views/Permission.js +741 -0
  455. package/dist/src/views/PersonalInfo.js +791 -0
  456. package/dist/src/views/QyWechat.js +61 -0
  457. package/dist/src/views/ReportFormListPage.js +76 -0
  458. package/dist/src/views/TaskPage.js +179 -0
  459. package/dist/src/views/WikiBinding.js +613 -0
  460. package/dist/src/views/client/AddForm.js +54 -0
  461. package/dist/src/views/client/AppMarket.js +289 -0
  462. package/dist/src/views/client/ClientIndex.js +208 -0
  463. package/dist/src/views/client/ClientModuleIndexPage.js +4 -0
  464. package/dist/src/views/client/ClientModuleIndexPage.vue.js +30 -0
  465. package/dist/src/views/client/CopySystem.js +135 -0
  466. package/dist/src/views/client/CreateAppFormItem.js +7 -0
  467. package/dist/src/views/client/CreateAppFormItem.vue.js +232 -0
  468. package/dist/src/views/client/CreateMethod.js +75 -0
  469. package/dist/src/views/client/InstallSystem.js +308 -0
  470. package/dist/src/views/client/ManageList.js +4 -0
  471. package/dist/src/views/client/ManageList.vue.js +211 -0
  472. package/dist/src/views/client/OpenClientManage.js +50 -0
  473. package/dist/src/views/client/OpenSystemManage.js +55 -0
  474. package/dist/src/views/client/PageTabsCyclic.js +91 -0
  475. package/dist/src/views/client/SelfBuiltSystem.js +443 -0
  476. package/dist/src/views/client/StandardProduct.js +232 -0
  477. package/dist/src/views/client/SystemAppAccredit.js +560 -0
  478. package/dist/src/views/client/SystemAppManager.js +292 -0
  479. package/dist/src/views/client/SystemAppManager.vue.js +559 -0
  480. package/dist/src/views/client/SystemManager.js +451 -0
  481. package/dist/src/views/client/SystemManager.vue.js +522 -0
  482. package/dist/src/views/i18n/I18nAiTaskHistoryDialog.js +229 -0
  483. package/dist/src/views/i18n/I18nPublishDialog.js +450 -0
  484. package/dist/src/views/i18n/I18nTranslationList.js +7 -0
  485. package/dist/src/views/i18n/I18nTranslationList.vue.js +247 -0
  486. package/dist/src/views/i18n/i18n-workbench-text.js +10 -0
  487. package/dist/src/views/layout/CardList.js +95 -0
  488. package/dist/src/views/layout/Grid.js +137 -0
  489. package/dist/src/views/match/AddTargetField.js +7 -0
  490. package/dist/src/views/match/AddTargetField.vue.js +127 -0
  491. package/dist/src/views/match/MatchAddFormItem.js +4 -0
  492. package/dist/src/views/match/MatchAddFormItem.vue.js +84 -0
  493. package/dist/src/views/match/conversion.js +804 -0
  494. package/dist/src/views/match/customize.js +390 -0
  495. package/dist/src/views/match/fieldMatch.js +7 -0
  496. package/dist/src/views/match/fieldMatch.vue.js +610 -0
  497. package/dist/src/views/report/AddFormItem.js +59 -0
  498. package/dist/src/views/report/DesignReport.js +1391 -0
  499. package/dist/src/views/report/ReportTreeFind.js +7 -0
  500. package/dist/src/views/report/ReportTreeFind.vue.js +166 -0
  501. package/dist/style.css +33364 -0
  502. package/package.json +132 -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,1564 @@
1
+ import { mapGetters, mapState } from "vuex";
2
+ import { ADD_META } from "@epxing/core/src/store/actions";
3
+ const _sfc_main = {
4
+ name: "epx-form-design",
5
+ navConfigs: {
6
+ flag: false
7
+ },
8
+ data() {
9
+ return {
10
+ content: "",
11
+ form: {},
12
+ formData: {},
13
+ editName: false,
14
+ globalSetting: false,
15
+ dataSource: [],
16
+ dataSourceModal: false,
17
+ setting: {
18
+ height: 500
19
+ },
20
+ dataSourceInfo: {},
21
+ linkEntityTree: [],
22
+ allFields: [],
23
+ fields: [],
24
+ defaultExpandKey: [],
25
+ defaultProps: {
26
+ children: "children",
27
+ label: "text"
28
+ },
29
+ initCondition: [],
30
+ searchParams: [],
31
+ formParam: {},
32
+ formParams: [],
33
+ formParamModal: false,
34
+ editFormParamId: "",
35
+ showFormParamsDialog: false,
36
+ previewParams: {},
37
+ pageSize: "A4",
38
+ searchText: "",
39
+ showLogField: false,
40
+ showSubField: true,
41
+ formFunction: [],
42
+ currentLanguage: this.defaultLanguage,
43
+ languageContent: {},
44
+ showPageFooterDialog: false,
45
+ pageSizePx: 595,
46
+ fieldRelation: [],
47
+ watermarkFieldsConfigs: [],
48
+ processParams: [],
49
+ entityDataMap: {},
50
+ // 自定义校验规则列表 [{ name, expression, errorInfo, enable }]
51
+ printChecks: [],
52
+ checkRuleDialog: false,
53
+ editingCheckIndex: -1,
54
+ checkRuleForm: {
55
+ name: "",
56
+ expression: "",
57
+ errorInfo: "",
58
+ enable: true
59
+ },
60
+ formulaDialog: false
61
+ };
62
+ },
63
+ computed: {
64
+ ...mapState({
65
+ systemVariableList: (state) => state.config.systemVariableList,
66
+ // 当前导航菜单
67
+ showMenu: (state) => state.config.showMenu,
68
+ showAppNav: (state) => state.config.showAppNav
69
+ }),
70
+ ...mapGetters(["getMetaViewFields"]),
71
+ variableTree() {
72
+ return [{
73
+ type: "folder",
74
+ name: "自定义参数",
75
+ children: this.formParams.map((item) => ({
76
+ ...item,
77
+ name: item.NAME,
78
+ value: item.CODE
79
+ }))
80
+ }, {
81
+ type: "folder",
82
+ name: "系统变量",
83
+ children: this.systemVariableList
84
+ }, {
85
+ value: "processParams",
86
+ type: "folder",
87
+ name: "流程参数",
88
+ children: this.processParams
89
+ }];
90
+ },
91
+ defineDynamicParams() {
92
+ return this.formParams.map((item) => ({
93
+ id: "${" + item.CODE + "}",
94
+ name: item.NAME
95
+ }));
96
+ },
97
+ sortFields: {
98
+ get() {
99
+ let {
100
+ SORT = "[]"
101
+ } = this.dataSourceInfo;
102
+ if (SORT === "undefined" || SORT === "" || SORT === null) SORT = "[]";
103
+ return JSON.parse(SORT);
104
+ },
105
+ set(v) {
106
+ this.dataSourceInfo.SORT = JSON.stringify(v);
107
+ }
108
+ },
109
+ groupSortFields: {
110
+ get() {
111
+ let {
112
+ GROUP_ORDER_FIELD = ""
113
+ } = this.dataSourceInfo;
114
+ if (GROUP_ORDER_FIELD === "undefined" || GROUP_ORDER_FIELD === "" || GROUP_ORDER_FIELD === null) GROUP_ORDER_FIELD = "";
115
+ return GROUP_ORDER_FIELD;
116
+ },
117
+ set(v) {
118
+ this.dataSourceInfo.GROUP_ORDER_FIELD = v;
119
+ }
120
+ },
121
+ loadRelationEntity: {
122
+ get() {
123
+ return this.dataSourceInfo.LOAD_RELATION_ENTITY || "1";
124
+ },
125
+ set(v) {
126
+ this.dataSourceInfo.LOAD_RELATION_ENTITY = v;
127
+ }
128
+ },
129
+ linkEntityCheckedKeys() {
130
+ const flags = this.dataSourceInfo.LINK_ENTITY;
131
+ return flags ? flags.split(",").filter(Boolean) : [];
132
+ },
133
+ linkEntityLabel() {
134
+ const keys = this.linkEntityCheckedKeys;
135
+ if (!keys.length) return "";
136
+ const titles = [];
137
+ const walk = (nodes) => {
138
+ if (!nodes) return;
139
+ nodes.forEach((node) => {
140
+ if (keys.includes(node.flag)) titles.push(node.title);
141
+ if (node.childrens) walk(node.childrens);
142
+ });
143
+ };
144
+ walk(this.linkEntityTree);
145
+ return titles.length ? titles.join(",") : this.dataSourceInfo["LINK_ENTITY#"] || "";
146
+ },
147
+ showDataSource() {
148
+ const formatFields = (fields) => {
149
+ return fields.filter((item) => {
150
+ if (!this.showLogField && ["ID", "LOG_C_TIME", "LOG_C_USER", "LOG_U_TIME", "LOG_U_USER"].includes(item.code)) {
151
+ return false;
152
+ }
153
+ if (!this.showSubField && (item.relationType === "1" || item.isSub)) {
154
+ return false;
155
+ }
156
+ if (item.children) {
157
+ item.children = formatFields(item.children);
158
+ }
159
+ return true;
160
+ });
161
+ };
162
+ return this.dataSource.map((item) => {
163
+ if (this.entityDataMap[item.id]) {
164
+ const fields = this.$_.cloneDeep(this.entityDataMap[item.id]);
165
+ item.children = formatFields(fields);
166
+ }
167
+ return item;
168
+ });
169
+ },
170
+ languageFlag() {
171
+ const {
172
+ LANGUAGE_FLAG: languageFlag
173
+ } = this.clientConfig;
174
+ return languageFlag;
175
+ },
176
+ defaultLanguage() {
177
+ const {
178
+ LANGUAGE_DEFAULT: defaultLanguage
179
+ } = this.clientConfig;
180
+ return defaultLanguage;
181
+ },
182
+ currentLanguageName() {
183
+ const language = this.languageList.find((item) => item.id === this.currentLanguage) || {};
184
+ return language.name || "默认";
185
+ },
186
+ languageList() {
187
+ const {
188
+ LANGUAGES: languages = "",
189
+ "LANGUAGES#": languageNames = ""
190
+ } = this.clientConfig;
191
+ if (!languages) return [];
192
+ const languageIdList = languages.split(",");
193
+ const languageNameList = languageNames.split(",");
194
+ const languageList = languageIdList.map((item, index) => ({
195
+ id: item,
196
+ name: languageNameList[index]
197
+ }));
198
+ return languageList;
199
+ },
200
+ getText() {
201
+ return (field) => {
202
+ const getLabel = (arr) => {
203
+ for (const item of arr) {
204
+ if ((item.linkCode || item.code) === field) return item.text;
205
+ if (item.children) {
206
+ const label = getLabel(item.children);
207
+ if (label) return label;
208
+ }
209
+ }
210
+ };
211
+ return getLabel(this.allFields) || field;
212
+ };
213
+ },
214
+ // 自定义校验公式编辑器的参数库:只取主数据源(无主则取第一个),按 数据源 → 对象 → 字段 组织成树。
215
+ // getEntityMetaView 返回的 children 是一层 type==='meta' 节点的扁平数组:
216
+ // 无 linkFlag 的 meta 节点为主对象(其 children 即主对象字段),有 linkFlag 的为关联对象。
217
+ // 变量规则:主对象字段 token = 字段编号;关联对象字段 token = 关联标识符大写_字段编号。
218
+ checkParamList() {
219
+ const source = this.dataSource.find((item) => item.isMain) || this.dataSource[0];
220
+ if (!source || !source.children || !source.children.length) return [];
221
+ const bare = (v) => String(v == null ? "" : v).split("|").pop();
222
+ const toField = (f, prefix) => ({
223
+ code: prefix ? `${prefix}_${bare(f.code)}` : bare(f.code),
224
+ text: f.text || f.name,
225
+ type: f.dataType || "string"
226
+ });
227
+ const objects = [];
228
+ source.children.forEach((node) => {
229
+ if (node.type !== "meta") return;
230
+ const flag = bare(node.linkFlag || node.flag).toUpperCase();
231
+ const leaves = (node.children || []).filter((f) => f.type !== "meta" && bare(f.code));
232
+ if (!leaves.length) return;
233
+ if (flag) {
234
+ objects.push({
235
+ code: flag,
236
+ text: node.text || node.name,
237
+ type: "object",
238
+ children: leaves.map((f) => toField(f, flag))
239
+ });
240
+ } else {
241
+ objects.unshift({
242
+ code: node.code || "MAIN",
243
+ text: node.text || node.name,
244
+ type: "object",
245
+ children: leaves.map((f) => toField(f, ""))
246
+ });
247
+ }
248
+ });
249
+ if (!objects.length) return [];
250
+ return [{
251
+ code: source.sourceId || source.key,
252
+ text: source.name,
253
+ children: objects
254
+ }];
255
+ }
256
+ },
257
+ watch: {
258
+ globalSetting(v) {
259
+ if (v) {
260
+ this.$nextTick(() => {
261
+ this.initTitleEditor();
262
+ setTimeout(() => {
263
+ this.initWatermarkEditor();
264
+ }, 500);
265
+ });
266
+ }
267
+ },
268
+ "dataSourceInfo.ENTITY": {
269
+ handler(v) {
270
+ if (v) {
271
+ const meta = this.metas[v];
272
+ if (!meta) {
273
+ this.$store.dispatch({
274
+ // 加回调
275
+ type: ADD_META,
276
+ metaId: v
277
+ }).then((data) => {
278
+ if (data) {
279
+ const relations = data.getRelations();
280
+ this.getAllFields(relations);
281
+ }
282
+ });
283
+ } else {
284
+ const relations = meta.getRelations();
285
+ this.getAllFields(relations);
286
+ }
287
+ this.getLinkEntityTree(v);
288
+ } else {
289
+ this.linkEntityTree = [];
290
+ }
291
+ },
292
+ deep: true
293
+ },
294
+ "formData.WATER_MARK_TYPE"(v) {
295
+ if (v === "text") {
296
+ this.$nextTick(() => {
297
+ this.initWatermarkEditor();
298
+ });
299
+ }
300
+ },
301
+ dataSource: {
302
+ handler(v) {
303
+ if (this.editor && this.editor.options) {
304
+ const newDataSource = [...this.dataSource, {
305
+ type: "variable",
306
+ name: "系统变量",
307
+ children: this.systemVariableList
308
+ }, {
309
+ type: "variable",
310
+ name: "表单函数",
311
+ children: this.formFunction.map((item) => ({
312
+ name: item.name,
313
+ code: "#{" + item.code + "}"
314
+ }))
315
+ }, {
316
+ type: "process",
317
+ name: "流程参数",
318
+ children: this.processParams.map((item) => ({
319
+ name: item.name,
320
+ code: item.id
321
+ }))
322
+ }];
323
+ this.editor.options.set("dataSource", newDataSource);
324
+ this.updateTinyMCEDataSource();
325
+ }
326
+ },
327
+ deep: true
328
+ },
329
+ searchText(v) {
330
+ if (this.timer) {
331
+ this.timer = null;
332
+ clearTimeout(this.timer);
333
+ }
334
+ this.timer = setTimeout(() => {
335
+ this.$refs.fieldTree.filter(this.searchText);
336
+ clearTimeout(this.timer);
337
+ this.timer = null;
338
+ }, 200);
339
+ },
340
+ showLogField() {
341
+ this.$nextTick(() => {
342
+ this.$refs.fieldTree.filter(this.searchText);
343
+ });
344
+ },
345
+ showSubField() {
346
+ this.$nextTick(() => {
347
+ this.$refs.fieldTree.filter(this.searchText);
348
+ });
349
+ }
350
+ },
351
+ methods: {
352
+ // 更新TinyMCE插件的数据源
353
+ updateTinyMCEDataSource() {
354
+ this.$nextTick(() => {
355
+ if (this.editor && this.editor.plugins && this.editor.plugins.data && this.editor.plugins.data.updateDataSource) {
356
+ this.editor.plugins.data.updateDataSource();
357
+ return;
358
+ }
359
+ if (this.editor && this.editor.updateDataSource) {
360
+ this.editor.updateDataSource();
361
+ }
362
+ });
363
+ },
364
+ backConfirm() {
365
+ this.saveContent();
366
+ let changeFlag = this.content !== this.initContent;
367
+ if (!changeFlag) {
368
+ for (const key in this.languageContent) {
369
+ if (this.languageContent[key] !== this.initLanguageContent[key]) {
370
+ changeFlag = true;
371
+ break;
372
+ }
373
+ }
374
+ }
375
+ if (changeFlag) {
376
+ this.$confirm("检测到您当前的报表配置还未进行保存操作,点击保存按钮即可执行保存操作", "操作提示", {
377
+ confirmButtonText: "保存",
378
+ cancelButtonText: "不保存",
379
+ type: "warning"
380
+ }).then(() => {
381
+ this.saveEditor(this.backPage);
382
+ }).catch(() => {
383
+ this.backPage();
384
+ });
385
+ } else {
386
+ this.backPage();
387
+ }
388
+ },
389
+ switchLanguage(v) {
390
+ if (this.currentLanguage === v) return;
391
+ this.$confirm("切换语种后,进入该语种报表内容配置页面,当前页面的配置内容可通过切换再次展示,继续操作请点击确认。", "操作提示", {
392
+ confirmButtonText: "确定",
393
+ cancelButtonText: "取消",
394
+ type: "warning"
395
+ }).then(() => {
396
+ this.saveContent();
397
+ this.currentLanguage = v;
398
+ setTimeout(() => {
399
+ this.initEditor(v === this.defaultLanguage ? this.content || "" : this.languageContent[v] || "");
400
+ }, 10);
401
+ });
402
+ },
403
+ saveContent() {
404
+ const editorContent = this.ensureI18nKeys(this.editor.getContent());
405
+ if (!this.currentLanguage || this.currentLanguage === this.defaultLanguage) {
406
+ this.content = editorContent;
407
+ } else {
408
+ this.languageContent[this.currentLanguage] = editorContent;
409
+ }
410
+ },
411
+ ensureI18nKeys(content) {
412
+ if (!content) return content;
413
+ const document2 = new window.DOMParser().parseFromString(content, "text/html");
414
+ const textAttributes = ["title", "placeholder", "alt", "aria-label", "data-message", "data-error"];
415
+ const pureBinding = /^(?:\$\{[^}]+}|#\{[^}]+}|\{\{[^}]+}}|\{[A-Za-z0-9_.-]+})$/;
416
+ const hasLetter = new RegExp("[A-Za-z\\u3400-\\u9fff]");
417
+ const isTranslatable = (value) => {
418
+ const text = (value || "").trim();
419
+ return text && !pureBinding.test(text) && hasLetter.test(text);
420
+ };
421
+ const stablePath = (element) => {
422
+ const path = [];
423
+ let current = element;
424
+ while (current && current !== document2.body) {
425
+ const tag = current.tagName.toLowerCase();
426
+ const siblings = Array.from(current.parentElement.children).filter((item) => item.tagName === current.tagName);
427
+ path.unshift(tag + "_" + (siblings.indexOf(current) + 1));
428
+ current = current.parentElement;
429
+ }
430
+ return path.join(".");
431
+ };
432
+ const stableHash = (value) => {
433
+ let hash = 2166136261;
434
+ for (let index = 0; index < value.length; index++) {
435
+ hash ^= value.charCodeAt(index);
436
+ hash = Math.imul(hash, 16777619);
437
+ }
438
+ return (hash >>> 0).toString(36);
439
+ };
440
+ Array.from(document2.body.querySelectorAll("*")).forEach((element) => {
441
+ if (element.closest("script,style,noscript,template,[data-i18n-ignore]")) return;
442
+ const hasText = Array.from(element.childNodes).some((node) => node.nodeType === 3 && isTranslatable(node.textContent));
443
+ const hasTextAttribute = textAttributes.some((attribute) => element.hasAttribute(attribute) && isTranslatable(element.getAttribute(attribute)));
444
+ if ((hasText || hasTextAttribute) && !element.hasAttribute("data-i18n-key") && !element.id && !element.getAttribute("name")) {
445
+ element.setAttribute("data-i18n-key", "node_" + stableHash(stablePath(element)));
446
+ }
447
+ });
448
+ return document2.body.innerHTML;
449
+ },
450
+ filterNode(value, data) {
451
+ if (!value) return true;
452
+ return data.text && data.text.indexOf(value) !== -1;
453
+ },
454
+ saveEditor(cb) {
455
+ this.saveContent();
456
+ const {
457
+ id
458
+ } = this.$query;
459
+ this.$http.update({
460
+ entityId: this.$metaId,
461
+ "bean.ID": id,
462
+ // 'bean.TITLE': this.titleEditor.getContent(),
463
+ "bean.CONTENT": this.content,
464
+ "bean.LANGUAGE_PARAM": {
465
+ CONTENT: this.languageContent
466
+ }
467
+ }).then(() => {
468
+ this.$message.success("保存成功");
469
+ this.initContent = this.content;
470
+ this.initLanguageContent = this.$_.cloneDeep(this.languageContent);
471
+ cb && cb();
472
+ }).catch((err) => {
473
+ this.$message.error(err.message || "操作失败");
474
+ });
475
+ },
476
+ getDataSource() {
477
+ const {
478
+ id
479
+ } = this.$query;
480
+ this.$http.list({
481
+ entityId: "FM_FORM_SOURCE",
482
+ "scope.FORM": id
483
+ }).then(async (data) => {
484
+ this.dataSource = data.entitys.map((item) => ({
485
+ key: item.ID,
486
+ id: item.ENTITY,
487
+ name: item.NAME,
488
+ loadRelationEntity: item.LOAD_RELATION_ENTITY,
489
+ isMain: item.IS_MAIN_SOUCE === "1",
490
+ root: true,
491
+ sourceId: item.ID
492
+ }));
493
+ for (let index = 0; index < data.entitys.length; index++) {
494
+ const item = data.entitys[index];
495
+ if (item.ENTITY) {
496
+ if (!this.entityDataMap[item.ENTITY]) {
497
+ this.$store.dispatch({
498
+ type: ADD_META,
499
+ metaId: item.ENTITY
500
+ });
501
+ this.dataSource[index] = {
502
+ ...this.dataSource[index],
503
+ load: true
504
+ };
505
+ const entityData = await this.getAttribute(item, {
506
+ id: item.ENTITY,
507
+ name: item.NAME,
508
+ root: true,
509
+ sourceId: item.ID
510
+ });
511
+ this.entityDataMap[item.ENTITY] = entityData;
512
+ this.dataSource[index] = {
513
+ ...this.dataSource[index],
514
+ children: entityData,
515
+ load: false
516
+ };
517
+ } else {
518
+ this.dataSource[index] = {
519
+ ...this.dataSource[index],
520
+ children: this.entityDataMap[item.ENTITY]
521
+ };
522
+ }
523
+ }
524
+ }
525
+ if (this.editor) {
526
+ const content = this.editor.getContent();
527
+ if (content) this.content = content;
528
+ }
529
+ this.initEditor();
530
+ });
531
+ },
532
+ getAttribute(item, source) {
533
+ const {
534
+ ENTITY,
535
+ ENTITY_VIEW,
536
+ LOAD_RELATION_ENTITY
537
+ } = item;
538
+ return this.$http.get({
539
+ action: "getEntityMetaView",
540
+ entityId: "FM_ENTITY_VIEW",
541
+ metaId: ENTITY,
542
+ metaViewId: ENTITY_VIEW,
543
+ allSub: LOAD_RELATION_ENTITY !== "0"
544
+ }).then((data) => {
545
+ const formatData = (arr) => {
546
+ arr.forEach((item2) => {
547
+ item2.field = item2.type === "meta" ? item2.linkFlag : item2.linkCode || item2.code;
548
+ item2.relationSort = item2.relationType;
549
+ if (!item2.codeKey) item2.codeKey = item2.relatedEntity;
550
+ item2.id = item2.field;
551
+ item2.key = item2.field + "_" + this.$util.genId();
552
+ item2.name = item2.text;
553
+ item2.meta = item2.meta ? item2.meta.id : "";
554
+ if (item2.type === "meta" && item2.relationType === "1") item2.isSub = true;
555
+ if (item2.children) formatData(item2.children);
556
+ });
557
+ };
558
+ formatData(data);
559
+ return data;
560
+ });
561
+ },
562
+ getFieldRelation() {
563
+ this.$http.$post({
564
+ action: "getFieldRelation",
565
+ entityId: "FM_ATTRIBUTE_RELATION",
566
+ metaId: this.$metaId
567
+ }).then((data) => {
568
+ this.fieldRelation = data.field_relation;
569
+ });
570
+ },
571
+ getFieldConfigs() {
572
+ this.$FieldFactory.createFields({
573
+ meta: this.$meta,
574
+ metaId: this.$metaId,
575
+ pageType: "EDIT",
576
+ fields: ["PRINT_PAGE_SIZE", "PRINT_PAGE_DIRECTION", "LEFT_MARGIN", "RIGHT_MARGIN", "TOP_MARGIN", "BOTTOM_MARGIN", "WIDTH", "HEIGHT", "CHINESE_LAYOUT", "TEXT_ALIGNMENT_JUSTIFIED", "IS_PAGE_NUMBER", "PAGE_NUMBER_FORMAT", "PAGE_NUMBER_TOP", "PAGE_NUMBER_START", "PORTRAIT", "PORTRAIT_NUMBER_START", "PAGE_NUMBER_ALIGN", "PROCESS"]
577
+ }).then((data) => {
578
+ this.fieldsConfigs = [...data];
579
+ });
580
+ this.$FieldFactory.createFields({
581
+ meta: this.$meta,
582
+ metaId: this.$metaId,
583
+ pageType: "EDIT",
584
+ defaultFieldConfigs: {
585
+ WATER_MARK_TYPE: {
586
+ value: "none"
587
+ },
588
+ WATER_MARK_LEAN: {
589
+ value: 40
590
+ },
591
+ WATER_MARK_DENSITY: {
592
+ value: "2"
593
+ }
594
+ },
595
+ fields: [{
596
+ attriName: "WATER_MARK_TYPE",
597
+ value: "none"
598
+ }, "WATER_MARK_PICTURE", "WATER_MARK_PIC_HEIGHT", "WATER_MARK_PIC_WIDTH", "WATER_MARK_TEXT", "WATER_MARK_FONT_SIZE", "WATER_MARK_FONT_COLOR", "WATER_MARK_FONT_BLOD", "WATER_MARK_LEAN", "WATER_MARK_SPARENCY", "WATER_MARK_DENSITY"]
599
+ }).then((data) => {
600
+ this.watermarkFieldsConfigs = [...data];
601
+ });
602
+ },
603
+ setFormName() {
604
+ this.$http.update({
605
+ entityId: "FM_FORM",
606
+ "bean.ID": this.form.ID,
607
+ "bean.NAME": this.form.NAME
608
+ }).then(() => {
609
+ this.editName = false;
610
+ }).catch((err) => {
611
+ this.$message.error(err.errorText);
612
+ });
613
+ },
614
+ updateForm() {
615
+ const params = {};
616
+ this.syncPrintCheck();
617
+ this.formData.TITLE = this.titleEditor.getContent();
618
+ if (this.watermarkEditor) this.formData.WATER_MARK_TEXT = this.watermarkEditor.getContent();
619
+ for (const key in this.formData) {
620
+ if (!key.includes("#")) {
621
+ params[`bean.${key}`] = this.formData[key];
622
+ }
623
+ }
624
+ this.$http.update({
625
+ entityId: "FM_FORM",
626
+ ...params
627
+ }).then(() => {
628
+ this.globalSetting = false;
629
+ this.getProcessParams();
630
+ this.$message.success("保存成功");
631
+ }).catch((err) => {
632
+ this.$message.error(err.errorText);
633
+ });
634
+ },
635
+ getFormContent() {
636
+ const {
637
+ id
638
+ } = this.$query;
639
+ this.$http.get({
640
+ entityId: this.$metaId,
641
+ id
642
+ }).then((data) => {
643
+ if (data && data.data) {
644
+ this.form = {
645
+ ...data.data
646
+ };
647
+ this.formData = {
648
+ ...data.data
649
+ };
650
+ const defaultValue = {
651
+ WATER_MARK_TYPE: "none",
652
+ WATER_MARK_LEAN: 40,
653
+ WATER_MARK_DENSITY: "2"
654
+ };
655
+ for (const key in defaultValue) {
656
+ if (!this.formData[key]) {
657
+ this.formData[key] = defaultValue[key];
658
+ }
659
+ }
660
+ this.parsePrintCheck();
661
+ this.content = data.data.CONTENT;
662
+ this.languageContent = data.data.LANGUAGE_PARAM ? data.data.LANGUAGE_PARAM.CONTENT || {} : {};
663
+ this.initContent = data.data.CONTENT;
664
+ this.initLanguageContent = this.$_.cloneDeep(this.languageContent);
665
+ this.getPagePx();
666
+ }
667
+ });
668
+ },
669
+ async initTitleEditor() {
670
+ const that = this;
671
+ if (this.titleEditor) this.titleEditor.remove();
672
+ const editor = this.$refs.titleEditor;
673
+ await this.$util.usePlugin("tinymce");
674
+ globalThis.tinymce.init({
675
+ target: editor,
676
+ height: 80,
677
+ autoresize_min_height: 80,
678
+ plugins: "data",
679
+ menubar: false,
680
+ toolbar: false,
681
+ contextmenu: "data",
682
+ language: "zh_CN",
683
+ dataSource: this.dataSource,
684
+ statusbar: false,
685
+ content_style: "p {margin: 2px 0}",
686
+ promotion: false
687
+ }).then((editors) => {
688
+ this.titleEditor = editors[0];
689
+ if (this.titleEditor) {
690
+ const frame = this.titleEditor.iframeElement.contentWindow;
691
+ const editorContainer = frame.document.querySelector("body");
692
+ editorContainer.ondragover = (e) => {
693
+ e.preventDefault();
694
+ };
695
+ editorContainer.ondrop = (e) => {
696
+ const type = e.dataTransfer.getData("type");
697
+ if (type === "variable" || type === "process") {
698
+ const variableCode = e.dataTransfer.getData("variableCode");
699
+ const variableName = e.dataTransfer.getData("variableName");
700
+ const span = document.createElement("span");
701
+ span.contentEditable = "false";
702
+ span.setAttribute("data-name", "variable");
703
+ span.setAttribute("data-value", variableCode);
704
+ span.innerHTML = `<label>{${variableName}}</label>`;
705
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
706
+ e.target.innerHTML = "";
707
+ }
708
+ e.target.appendChild(span);
709
+ } else {
710
+ const fieldId = e.dataTransfer.getData("fieldId");
711
+ const sourceName = e.dataTransfer.getData("sourceName") || "";
712
+ const fieldName = e.dataTransfer.getData("fieldName");
713
+ if (fieldId) {
714
+ const span = document.createElement("span");
715
+ span.contentEditable = "false";
716
+ span.setAttribute("data-name", "datasource");
717
+ span.setAttribute("data-datasource", sourceName);
718
+ span.setAttribute("data-field", fieldId);
719
+ span.innerHTML = `<label>{${fieldName}}</label>`;
720
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
721
+ e.target.innerHTML = "";
722
+ }
723
+ e.target.appendChild(span);
724
+ } else {
725
+ return true;
726
+ }
727
+ }
728
+ const value = this.titleEditor.getContent();
729
+ that.formData = {
730
+ ...that.formData,
731
+ TITLE: value
732
+ };
733
+ };
734
+ this.titleEditor.setContent(this.formData.TITLE || "");
735
+ }
736
+ });
737
+ },
738
+ async initWatermarkEditor() {
739
+ const that = this;
740
+ const editor = this.$refs.watermarkEditor;
741
+ if (!editor) return;
742
+ if (this.watermarkEditor) this.watermarkEditor.remove();
743
+ await this.$util.usePlugin("tinymce");
744
+ globalThis.tinymce.init({
745
+ target: editor,
746
+ height: 80,
747
+ autoresize_min_height: 80,
748
+ plugins: "data",
749
+ menubar: false,
750
+ toolbar: false,
751
+ contextmenu: "data",
752
+ language: "zh_CN",
753
+ dataSource: [...this.dataSource, {
754
+ type: "variable",
755
+ name: "系统变量",
756
+ children: this.systemVariableList
757
+ }],
758
+ statusbar: false,
759
+ content_style: "p {margin: 2px 0}",
760
+ promotion: false
761
+ }).then((editors) => {
762
+ this.watermarkEditor = editors[0];
763
+ if (this.watermarkEditor) {
764
+ const frame = this.titleEditor.iframeElement.contentWindow;
765
+ const editorContainer = frame.document.querySelector("body");
766
+ editorContainer.ondragover = (e) => {
767
+ e.preventDefault();
768
+ };
769
+ editorContainer.ondrop = (e) => {
770
+ const type = e.dataTransfer.getData("type");
771
+ if (type === "variable" || type === "process") {
772
+ const variableCode = e.dataTransfer.getData("variableCode");
773
+ const variableName = e.dataTransfer.getData("variableName");
774
+ const span = document.createElement("span");
775
+ span.contentEditable = "false";
776
+ span.setAttribute("data-name", "variable");
777
+ span.setAttribute("data-value", variableCode);
778
+ span.innerHTML = `<label>{${variableName}}</label>`;
779
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
780
+ e.target.innerHTML = "";
781
+ }
782
+ e.target.appendChild(span);
783
+ } else {
784
+ const fieldId = e.dataTransfer.getData("fieldId");
785
+ const sourceName = e.dataTransfer.getData("sourceName") || "";
786
+ const fieldName = e.dataTransfer.getData("fieldName");
787
+ if (fieldId) {
788
+ const span = document.createElement("span");
789
+ span.contentEditable = "false";
790
+ span.setAttribute("data-name", "datasource");
791
+ span.setAttribute("data-datasource", sourceName);
792
+ span.setAttribute("data-field", fieldId);
793
+ span.innerHTML = `<label>{${sourceName}.${fieldName}}</label>`;
794
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
795
+ e.target.innerHTML = "";
796
+ }
797
+ e.target.appendChild(span);
798
+ const value = this.watermarkEditor.getContent();
799
+ that.formData = {
800
+ ...that.formData,
801
+ WATER_MARK_TEXT: value
802
+ };
803
+ } else {
804
+ return true;
805
+ }
806
+ }
807
+ };
808
+ this.watermarkEditor.setContent(this.formData.WATER_MARK_TEXT || "");
809
+ }
810
+ });
811
+ },
812
+ async initEditor(content) {
813
+ const that = this;
814
+ const {
815
+ FORM_EXTEND_FONTS = ""
816
+ } = this.clientConfig;
817
+ if (this.editor) this.editor.remove();
818
+ let fontsizeFormats = "";
819
+ for (let i = 1; i <= 50; i++) {
820
+ fontsizeFormats += i + "pt ";
821
+ }
822
+ const editor = this.$refs.editor;
823
+ await this.$util.usePlugin("tinymce");
824
+ globalThis.tinymce.init({
825
+ target: editor,
826
+ plugins: "table data paper pagebreak image code br supercode",
827
+ toolbar: ["undo redo | styles | bold italic underline strikethrough | lineheight | alignleft aligncenter alignright alignjustify | firstlineindent | table | paper | pagebreak | image", "fontfamily | fontsize | forecolor backcolor supercode"],
828
+ setup: function(editor2) {
829
+ editor2.on("init", () => {
830
+ editor2.formatter.register("firstlineindent", {
831
+ selector: "p,h1,h2,h3,h4,h5,h6,div,td,th,li",
832
+ styles: {
833
+ "text-indent": "2em"
834
+ }
835
+ });
836
+ });
837
+ editor2.ui.registry.addToggleButton("firstlineindent", {
838
+ icon: "indent",
839
+ tooltip: "首行缩进",
840
+ onAction: function(api) {
841
+ editor2.formatter.toggle("firstlineindent");
842
+ api.setActive(editor2.formatter.match("firstlineindent"));
843
+ },
844
+ onSetup: function(api) {
845
+ const changed = editor2.formatter.formatChanged("firstlineindent", (state) => api.setActive(state));
846
+ return () => changed.unbind();
847
+ }
848
+ });
849
+ },
850
+ contextmenu: "link image imagetools table spellchecker copy data",
851
+ menu: {
852
+ view: {
853
+ title: "视图",
854
+ items: "visualaid code paper"
855
+ },
856
+ insert: {
857
+ title: "插入",
858
+ items: "image table br"
859
+ }
860
+ },
861
+ promotion: false,
862
+ language: "zh_CN",
863
+ supercode: {
864
+ theme: "chrome",
865
+ fontSize: 14,
866
+ wrap: true,
867
+ autocomplete: true,
868
+ iconName: "sourcecode",
869
+ language: "html",
870
+ shortcut: true,
871
+ aceCss: "your custom CSS rules or fonts for ace",
872
+ fontFamily: "Monospace"
873
+ },
874
+ dataSource: [...this.dataSource, {
875
+ type: "variable",
876
+ name: "系统变量",
877
+ children: this.systemVariableList
878
+ }, {
879
+ type: "variable",
880
+ name: "表单函数",
881
+ children: this.formFunction.map((item) => ({
882
+ name: item.name,
883
+ code: "#{" + item.code + "}"
884
+ }))
885
+ }, {
886
+ type: "process",
887
+ name: "流程参数",
888
+ children: this.processParams.map((item) => ({
889
+ name: item.name,
890
+ code: item.id
891
+ }))
892
+ }],
893
+ branding: false,
894
+ images_upload_handler: (blobInfo) => {
895
+ var file = blobInfo.blob();
896
+ return this.$http.save({
897
+ action: "upload",
898
+ file
899
+ }, {
900
+ requestType: "formData"
901
+ }).then((data) => {
902
+ if (data && data.bean) {
903
+ return this.$util.getFileUrl(data.bean, "", false);
904
+ }
905
+ });
906
+ },
907
+ file_picker_callback: function(callback, value, meta) {
908
+ var input = document.createElement("input");
909
+ input.setAttribute("type", "file");
910
+ input.click();
911
+ input.onchange = function(evt) {
912
+ const file = this.files[0];
913
+ that.$http.save({
914
+ action: "upload",
915
+ file
916
+ }, {
917
+ requestType: "formData"
918
+ }).then((data) => {
919
+ if (data && data.bean) {
920
+ callback(that.$util.getFileUrl(data.bean, "", false), {
921
+ text: file.name
922
+ });
923
+ }
924
+ });
925
+ };
926
+ },
927
+ content_style: "p {margin: 2px 0}",
928
+ lineheight_formats: "1 1.1 1.2 1.3 1.4 1.5 2 2.5 3",
929
+ font_family_formats: "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats;宋体=simsun,serif;黑体=SimHei;仿宋=FangSong;华文中宋=STZhongsong;方正苏新诗柳楷简体;汉仪中黑简;方正仿宋_GBK;方正黑体_GBK;方正楷体_GBK;方正小标宋简体;仿宋_GB2312;" + FORM_EXTEND_FONTS,
930
+ font_size_formats: fontsizeFormats,
931
+ relative_urls: false,
932
+ remove_script_host: false
933
+ }).then((editors) => {
934
+ this.editor = editors[0];
935
+ if (this.editor) {
936
+ this.editor.editorContainer.style.width = this.pageSizePx + "px";
937
+ const frame = this.editor.iframeElement.contentWindow;
938
+ const editorContainer = frame.document.querySelector("body");
939
+ editorContainer.ondragover = (e) => {
940
+ e.preventDefault();
941
+ };
942
+ editorContainer.ondrop = (e) => {
943
+ let node = e.target;
944
+ while (node.nodeName === "LABEL") {
945
+ node = node.parentNode;
946
+ }
947
+ const type = e.dataTransfer.getData("type");
948
+ if (type === "variable" || type === "process") {
949
+ const variableCode = e.dataTransfer.getData("variableCode");
950
+ const variableName = e.dataTransfer.getData("variableName");
951
+ const span = document.createElement("font");
952
+ span.contentEditable = "false";
953
+ span.setAttribute("data-name", "variable");
954
+ if (type === "process") {
955
+ span.setAttribute("data-name", "process");
956
+ }
957
+ span.setAttribute("data-value", variableCode);
958
+ span.innerHTML = `<label>{${variableName}}</label>`;
959
+ if (e.target.innerHTML === "<br>") {
960
+ e.target.innerHTML = "";
961
+ }
962
+ if (node.getAttribute("data-name") === "datasource" || node.getAttribute("data-name") === "variable") {
963
+ node.parentNode.insertBefore(span, node);
964
+ } else {
965
+ node.appendChild(span);
966
+ }
967
+ } else {
968
+ const fieldId = e.dataTransfer.getData("fieldId");
969
+ const sourceName = e.dataTransfer.getData("sourceName") || "";
970
+ const fieldName = e.dataTransfer.getData("fieldName");
971
+ if (fieldId) {
972
+ const span = document.createElement("font");
973
+ span.contentEditable = "false";
974
+ span.setAttribute("data-name", "datasource");
975
+ span.setAttribute("data-datasource", sourceName);
976
+ span.setAttribute("data-field", fieldId);
977
+ span.innerHTML = `<label>{${fieldName}}</label>`;
978
+ if (e.target.innerHTML === "<br>") {
979
+ e.target.innerHTML = "";
980
+ }
981
+ if (node.getAttribute("data-name") === "datasource" || node.getAttribute("data-name") === "variable") {
982
+ node.parentNode.insertBefore(span, node);
983
+ } else {
984
+ node.appendChild(span);
985
+ }
986
+ } else {
987
+ return true;
988
+ }
989
+ }
990
+ };
991
+ this.editor.setContent(content || this.content);
992
+ }
993
+ });
994
+ },
995
+ openAddDataSourceModal() {
996
+ },
997
+ updateDataSourceInfo(v) {
998
+ this.dataSourceInfo = {
999
+ ...this.dataSourceInfo,
1000
+ ...v
1001
+ };
1002
+ },
1003
+ updateFormParam(v) {
1004
+ this.formParam = {
1005
+ ...this.formParam,
1006
+ ...v
1007
+ };
1008
+ },
1009
+ getAllFields(relations) {
1010
+ const fields = this.getMetaViewFields(this.dataSourceInfo.ENTITY);
1011
+ if (fields) {
1012
+ this.allFields = fields;
1013
+ this.defaultExpandKey = [fields[0].code];
1014
+ } else {
1015
+ this.$store.dispatch({
1016
+ type: "ADD_META_VIEW_FIELDS",
1017
+ metaId: this.dataSourceInfo.ENTITY
1018
+ }).then((fields2) => {
1019
+ this.allFields = fields2.filter((item) => item.relationType !== "1");
1020
+ this.defaultExpandKey = [fields2[0].code];
1021
+ });
1022
+ }
1023
+ },
1024
+ addSortField(field) {
1025
+ if (!field.leaf) return;
1026
+ const code = field.linkCode || field.code;
1027
+ const sortField = this.sortFields.find((item) => item.code === code);
1028
+ if (!sortField) {
1029
+ this.sortFields = [...this.sortFields, {
1030
+ code,
1031
+ text: field.text,
1032
+ sort: "asc"
1033
+ }];
1034
+ }
1035
+ },
1036
+ addGroupSortField(field) {
1037
+ if (!field.leaf) return;
1038
+ const code = field.linkCode || field.code;
1039
+ this.groupSortFields = code;
1040
+ },
1041
+ changeSort(field) {
1042
+ const sortFieldIndex = this.sortFields.findIndex((item) => item.code === field.code);
1043
+ if (sortFieldIndex !== -1) {
1044
+ const sortField = this.sortFields.find((item) => item.code === field.code);
1045
+ const sortFields = [...this.sortFields];
1046
+ sortFields.splice(sortFieldIndex, 1, {
1047
+ ...sortField,
1048
+ sort: sortField.sort === "asc" ? "desc" : "asc"
1049
+ });
1050
+ this.sortFields = [...sortFields];
1051
+ }
1052
+ },
1053
+ deleteSort(field) {
1054
+ const sortFieldIndex = this.sortFields.findIndex((item) => item.code === field.code);
1055
+ if (sortFieldIndex !== -1) {
1056
+ const sortFields = [...this.sortFields];
1057
+ sortFields.splice(sortFieldIndex, 1);
1058
+ this.sortFields = [...sortFields];
1059
+ }
1060
+ },
1061
+ deleteGroupSort(field) {
1062
+ this.groupSortFields = "";
1063
+ },
1064
+ getLinkEntityTree(mainEntity) {
1065
+ this.$http.$get({
1066
+ entityId: "FM_ENTITY_RELATION",
1067
+ action: "getAllEntityRelationTree",
1068
+ mainEntity
1069
+ }).then((data) => {
1070
+ this.linkEntityTree = Array.isArray(data) ? data : data && data.data ? data.data : [];
1071
+ }).catch(() => {
1072
+ this.linkEntityTree = [];
1073
+ });
1074
+ },
1075
+ onLinkEntityCheck() {
1076
+ const tree = this.$refs.linkEntityTree;
1077
+ if (!tree) return;
1078
+ const checked = tree.getCheckedNodes();
1079
+ this.dataSourceInfo.LINK_ENTITY = checked.map((item) => item.flag).join(",");
1080
+ this.dataSourceInfo["LINK_ENTITY#"] = checked.map((item) => item.title).join(",");
1081
+ },
1082
+ formatSearchParams() {
1083
+ const params = {};
1084
+ this.searchParams.map((item, i) => {
1085
+ if (i < this.searchParams.length - 1) {
1086
+ params[`search.link${i + 1}`] = item.link || "and";
1087
+ }
1088
+ params[`search.leftBrace${i + 1}`] = item.leftBrace || "";
1089
+ params[`search.field${i + 1}`] = "";
1090
+ params[`search.value${i + 1}`] = item.value;
1091
+ if (item.dateType) params[`search.dateType${i + 1}`] = item.dateType;
1092
+ params[`search.attriName${i + 1}`] = (item.field || item.attriName).replace("#", "").replace(/\|/g, ".");
1093
+ params[`search.relation${i + 1}`] = item.relation;
1094
+ params[`search.realRelation${i + 1}`] = item.relation;
1095
+ params[`search.realValue${i + 1}`] = item.realValue || item.value;
1096
+ params[`search.rightBrace${i + 1}`] = item.rightBrace || "";
1097
+ params[`search.metaId${i + 1}`] = this.$metaId;
1098
+ params[`search.inputMode${i + 1}`] = item.inputMode || "";
1099
+ });
1100
+ params.size = this.searchParams.length;
1101
+ return params;
1102
+ },
1103
+ dropDataSource(node, current, type, event) {
1104
+ const str = this.showDataSource.reduce((str2, item, index) => str2 += item.sourceId + ":" + index + ",", "");
1105
+ const params = {
1106
+ action: "moveList",
1107
+ entityId: "FM_FORM_SOURCE",
1108
+ orderString: str
1109
+ };
1110
+ this.$http.$post(params).then((data) => {
1111
+ });
1112
+ },
1113
+ allowDrop(draggingNode, dropNode, type) {
1114
+ return draggingNode.data.root && dropNode.data.root && type !== "inner";
1115
+ },
1116
+ submitDataSource() {
1117
+ const {
1118
+ id
1119
+ } = this.$query;
1120
+ const {
1121
+ ENTITY,
1122
+ ENTITY_VIEW,
1123
+ LINK_ENTITY,
1124
+ NAME,
1125
+ SORT,
1126
+ GROUP_ORDER_FIELD,
1127
+ IS_MAIN_SOUCE,
1128
+ SUB_SOURCE,
1129
+ DATA_SCOPE,
1130
+ LOAD_RELATION_ENTITY
1131
+ } = this.dataSourceInfo;
1132
+ this.$http.save({
1133
+ action: this.editDataSourceId ? "update" : "save",
1134
+ entityId: "FM_FORM_SOURCE",
1135
+ "bean.ID": this.editDataSourceId ? this.editDataSourceId : "",
1136
+ "bean.FORM": id || "",
1137
+ "bean.ENTITY": ENTITY || "",
1138
+ "bean.ENTITY_VIEW": ENTITY_VIEW || "",
1139
+ "bean.LINK_ENTITY": LINK_ENTITY || "",
1140
+ "bean.NAME": NAME || "",
1141
+ "bean.SORT": SORT || "",
1142
+ "bean.GROUP_ORDER_FIELD": GROUP_ORDER_FIELD || "",
1143
+ "bean.SUB_SOURCE": SUB_SOURCE || "",
1144
+ "bean.DATA_SCOPE": DATA_SCOPE || "",
1145
+ "bean.IS_MAIN_SOUCE": IS_MAIN_SOUCE || "0",
1146
+ "bean.LOAD_RELATION_ENTITY": LOAD_RELATION_ENTITY || "1",
1147
+ "bean.CLIENT": this.form.CLIENT,
1148
+ "bean.SYSTEM": this.form.SYSTEM
1149
+ // ...params
1150
+ }).then((data) => {
1151
+ this.dataSourceModal = false;
1152
+ this.searchParams = [];
1153
+ this.dataSourceInfo = {};
1154
+ let index = -1;
1155
+ if (!this.editDataSourceId) {
1156
+ this.dataSource.push({
1157
+ key: data,
1158
+ id: ENTITY,
1159
+ name: NAME,
1160
+ loadRelationEntity: LOAD_RELATION_ENTITY,
1161
+ root: true,
1162
+ sourceId: data
1163
+ });
1164
+ index = this.dataSource.length - 1;
1165
+ } else {
1166
+ index = this.dataSource.findIndex((item) => item.sourceId === this.editDataSourceId);
1167
+ if (index !== -1) {
1168
+ if (NAME !== this.dataSource[index].name) {
1169
+ this.dataSource.splice(index, 1, {
1170
+ ...this.dataSource[index],
1171
+ name: NAME
1172
+ });
1173
+ }
1174
+ if (LOAD_RELATION_ENTITY !== this.dataSource[index].loadRelationEntity) {
1175
+ this.getAttribute({
1176
+ ENTITY,
1177
+ ENTITY_VIEW,
1178
+ LOAD_RELATION_ENTITY
1179
+ }).then((entityData) => {
1180
+ this.entityDataMap[ENTITY] = entityData;
1181
+ this.dataSource[index] = {
1182
+ ...this.dataSource[index],
1183
+ loadRelationEntity: LOAD_RELATION_ENTITY,
1184
+ children: entityData
1185
+ };
1186
+ });
1187
+ }
1188
+ }
1189
+ }
1190
+ if (ENTITY) {
1191
+ if (!this.entityDataMap[ENTITY]) {
1192
+ this.$store.dispatch({
1193
+ type: ADD_META,
1194
+ metaId: ENTITY
1195
+ });
1196
+ this.getAttribute({
1197
+ ENTITY,
1198
+ ENTITY_VIEW,
1199
+ LOAD_RELATION_ENTITY
1200
+ }).then((entityData) => {
1201
+ this.entityDataMap[ENTITY] = entityData;
1202
+ this.dataSource[index] = {
1203
+ ...this.dataSource[index],
1204
+ children: entityData
1205
+ };
1206
+ });
1207
+ } else if (index !== -1) {
1208
+ this.dataSource[index] = {
1209
+ ...this.dataSource[index],
1210
+ children: this.entityDataMap[ENTITY]
1211
+ };
1212
+ }
1213
+ }
1214
+ this.editDataSourceId = "";
1215
+ }).catch((err) => {
1216
+ this.$message.error(err.message);
1217
+ });
1218
+ },
1219
+ clickDataSource(data) {
1220
+ if (data.root) {
1221
+ this.editDataSourceId = data.sourceId;
1222
+ }
1223
+ },
1224
+ addDataSource() {
1225
+ this.editDataSourceId = "";
1226
+ this.searchParams = [];
1227
+ this.dataSourceInfo = {};
1228
+ this.fields = [];
1229
+ this.dataSourceModal = true;
1230
+ },
1231
+ editDataSource(data) {
1232
+ this.$http.get({
1233
+ entityId: "FM_FORM_SOURCE",
1234
+ id: this.editDataSourceId
1235
+ }).then((data2) => {
1236
+ if (data2 && data2.data) {
1237
+ this.dataSourceInfo = {
1238
+ ...data2.data
1239
+ };
1240
+ }
1241
+ this.dataSourceModal = true;
1242
+ }).catch(() => {
1243
+ this.dataSourceModal = true;
1244
+ });
1245
+ },
1246
+ deleteDataSource() {
1247
+ if (!this.editDataSourceId) {
1248
+ this.$message.error("请选择要删除的数据源");
1249
+ return;
1250
+ }
1251
+ this.$http.removeMulti({
1252
+ entityId: "FM_FORM_SOURCE",
1253
+ ids: this.editDataSourceId
1254
+ }).then((data) => {
1255
+ if (data !== false) {
1256
+ this.$message.success("删除成功");
1257
+ const index = this.dataSource.findIndex((item) => item.sourceId === this.editDataSourceId);
1258
+ if (index !== -1) {
1259
+ this.dataSource.splice(index, 1);
1260
+ }
1261
+ } else {
1262
+ this.$message.err("删除失败");
1263
+ }
1264
+ });
1265
+ },
1266
+ getFormParams() {
1267
+ const {
1268
+ id
1269
+ } = this.$query;
1270
+ this.$http.list({
1271
+ entityId: "FM_FORM_PARAM",
1272
+ "scope.FORM": id
1273
+ }).then((data) => {
1274
+ this.formParams = [...data.entitys];
1275
+ });
1276
+ if (this.systemVariableList.length === 0) {
1277
+ this.$store.dispatch("GET_SYSTEM_VARIABLE");
1278
+ }
1279
+ this.getProcessParams();
1280
+ },
1281
+ getProcessParams() {
1282
+ const {
1283
+ id
1284
+ } = this.$query;
1285
+ this.$http.list({
1286
+ action: "getProcessParam",
1287
+ entityId: "FM_FORM",
1288
+ id
1289
+ }).then((data) => {
1290
+ this.processParams = data.map((item) => {
1291
+ if (item.childrens) item.children = item.childrens;
1292
+ delete item.childrens;
1293
+ return item;
1294
+ });
1295
+ });
1296
+ },
1297
+ saveFormParam() {
1298
+ const {
1299
+ id
1300
+ } = this.$query;
1301
+ const {
1302
+ CODE,
1303
+ NAME
1304
+ } = this.formParam;
1305
+ this.$http.save({
1306
+ action: this.editFormParamId ? "update" : "save",
1307
+ entityId: "FM_FORM_PARAM",
1308
+ "bean.ID": this.editFormParamId ? this.editFormParamId : "",
1309
+ "bean.FORM": id,
1310
+ "bean.CODE": CODE,
1311
+ "bean.CLIENT": this.form.CLIENT,
1312
+ "bean.SYSTEM": this.form.SYSTEM,
1313
+ "bean.NAME": NAME
1314
+ }).then(() => {
1315
+ this.formParamModal = false;
1316
+ this.editFormParamId = "";
1317
+ this.formParam = {};
1318
+ this.getFormParams();
1319
+ }).catch((err) => {
1320
+ this.$message.error(err.message || err.msg || "处理失败");
1321
+ });
1322
+ },
1323
+ addFormParam() {
1324
+ this.editFormParamId = "";
1325
+ this.formParam = {};
1326
+ this.formParamModal = true;
1327
+ },
1328
+ editFormParam(param) {
1329
+ this.editFormParamId = param.ID;
1330
+ this.formParamModal = true;
1331
+ this.formParam = {
1332
+ ...param
1333
+ };
1334
+ },
1335
+ deleteFormParam(param) {
1336
+ this.$http.removeMulti({
1337
+ entityId: "FM_FORM_PARAM",
1338
+ ids: param.ID
1339
+ }).then((data) => {
1340
+ this.$message.success("删除成功");
1341
+ this.getFormParams();
1342
+ });
1343
+ },
1344
+ mmConversionPx(value) {
1345
+ var arrDPI = [];
1346
+ if (window.screen.deviceXDPI) {
1347
+ arrDPI[0] = window.screen.deviceXDPI;
1348
+ arrDPI[1] = window.screen.deviceYDPI;
1349
+ } else {
1350
+ var tmpNode = document.createElement("DIV");
1351
+ tmpNode.style.cssText = "width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden";
1352
+ document.body.appendChild(tmpNode);
1353
+ arrDPI[0] = parseInt(tmpNode.offsetWidth);
1354
+ arrDPI[1] = parseInt(tmpNode.offsetHeight);
1355
+ tmpNode.parentNode.removeChild(tmpNode);
1356
+ }
1357
+ var inch = value / 25.4;
1358
+ var cValue = inch * arrDPI[0];
1359
+ return cValue;
1360
+ },
1361
+ // 预览
1362
+ showPreviewDialog() {
1363
+ this.showFormParamsDialog = true;
1364
+ },
1365
+ preview() {
1366
+ this.$http.save({
1367
+ action: "showPdf",
1368
+ entityId: "FM_FORM",
1369
+ code: this.form.CODE,
1370
+ querySystem: this.form.SYSTEM,
1371
+ ...this.previewParams,
1372
+ html: this.editor.getContent()
1373
+ // title: this.titleEditor.getContent()
1374
+ }, {
1375
+ responseType: "blob"
1376
+ }).then((res) => {
1377
+ const fileName = decodeURIComponent(res.filename);
1378
+ if (fileName.indexOf("@") > -1) {
1379
+ const fileNameArr = fileName.split("@");
1380
+ window.open(fileNameArr[1]);
1381
+ } else {
1382
+ const url = window.URL.createObjectURL(res.blob);
1383
+ window.open(url);
1384
+ }
1385
+ this.showFormParamsDialog = false;
1386
+ }).catch((err) => {
1387
+ this.$message.error(err.message);
1388
+ });
1389
+ },
1390
+ dragDataSource(node, e) {
1391
+ if (node.data.root || node.data.type === "meta") return;
1392
+ if (node.parent) {
1393
+ let parent = node.parent;
1394
+ let nodeText = "";
1395
+ while (parent.parent && parent.data.root !== true) {
1396
+ nodeText = parent.data.text + "." + nodeText;
1397
+ parent = parent.parent;
1398
+ }
1399
+ const field = {
1400
+ sourceId: parent.data.id,
1401
+ sourceName: parent.data.name,
1402
+ fieldId: node.data.id,
1403
+ fieldName: nodeText ? nodeText + node.data.text : node.data.text
1404
+ };
1405
+ for (const key in field) {
1406
+ e.dataTransfer.setData(key, field[key]);
1407
+ e.dataTransfer.dropEffect = "copy";
1408
+ e.dataTransfer.effectAllowed = "copy";
1409
+ }
1410
+ }
1411
+ },
1412
+ dragVariable(e, data, node) {
1413
+ e.dataTransfer.setData("type", "variable");
1414
+ e.dataTransfer.setData("variableName", data.name);
1415
+ if (data.type === "process") {
1416
+ e.dataTransfer.setData("type", "process");
1417
+ e.dataTransfer.setData("variableCode", data.value);
1418
+ } else {
1419
+ e.dataTransfer.setData("variableCode", data.code);
1420
+ }
1421
+ e.dataTransfer.dropEffect = "copy";
1422
+ e.dataTransfer.effectAllowed = "copy";
1423
+ },
1424
+ getPagePx() {
1425
+ const p = this.form.PRINT_PAGE_SIZE;
1426
+ this.pageSizePx = p === "A0" ? 1684 : p === "A1" || p === "A2" ? 1190 : p === "A3" ? 842 : p === "A5" ? 420 : 595;
1427
+ },
1428
+ getFormFunction() {
1429
+ this.$http.getCodes({
1430
+ key: "FORM_FUNCTION"
1431
+ }).then(async (data) => {
1432
+ this.formFunction = [...data];
1433
+ });
1434
+ },
1435
+ // 解析 PRINT_CHECK 字段(JSON 字符串)为规则列表
1436
+ parsePrintCheck() {
1437
+ const raw = this.formData.PRINT_CHECK;
1438
+ let list = [];
1439
+ if (raw) {
1440
+ try {
1441
+ const parsed = typeof raw === "string" ? JSON.parse(raw) : raw;
1442
+ if (Array.isArray(parsed)) {
1443
+ list = parsed.map((item) => ({
1444
+ name: item.name || "",
1445
+ expression: item.expression || "",
1446
+ errorInfo: item.errorInfo || "",
1447
+ enable: item.enable !== false
1448
+ }));
1449
+ }
1450
+ } catch (e) {
1451
+ list = [];
1452
+ }
1453
+ }
1454
+ this.printChecks = list;
1455
+ },
1456
+ // 把规则列表同步回 formData.PRINT_CHECK(随全局设置一起保存)
1457
+ syncPrintCheck() {
1458
+ this.formData.PRINT_CHECK = JSON.stringify(this.printChecks);
1459
+ },
1460
+ // 表达式预览:去掉 #{...} 外层包裹
1461
+ exprPreview(expr) {
1462
+ if (!expr) return "";
1463
+ return String(expr).replace(/^#\{([\s\S]*)\}$/, "$1");
1464
+ },
1465
+ // 打开规则表单弹窗(index < 0 为新增)
1466
+ openCheckRule(index) {
1467
+ this.editingCheckIndex = index;
1468
+ if (index >= 0) {
1469
+ const r = this.printChecks[index];
1470
+ this.checkRuleForm = {
1471
+ name: r.name,
1472
+ expression: r.expression,
1473
+ errorInfo: r.errorInfo,
1474
+ enable: r.enable
1475
+ };
1476
+ } else {
1477
+ this.checkRuleForm = {
1478
+ name: "自定义校验 " + (this.printChecks.length + 1),
1479
+ expression: "",
1480
+ errorInfo: "",
1481
+ enable: true
1482
+ };
1483
+ }
1484
+ this.checkRuleDialog = true;
1485
+ },
1486
+ // 确定规则表单
1487
+ confirmCheckRule() {
1488
+ const {
1489
+ name,
1490
+ expression
1491
+ } = this.checkRuleForm;
1492
+ if (!name || !name.trim()) {
1493
+ this.$message.warning("请输入规则名");
1494
+ return;
1495
+ }
1496
+ if (!expression || !expression.trim()) {
1497
+ this.$message.warning("请配置校验表达式");
1498
+ return;
1499
+ }
1500
+ const rule = {
1501
+ name: name.trim(),
1502
+ expression: expression.trim(),
1503
+ errorInfo: (this.checkRuleForm.errorInfo || "").trim(),
1504
+ enable: this.checkRuleForm.enable !== false
1505
+ };
1506
+ if (this.editingCheckIndex >= 0) {
1507
+ this.printChecks.splice(this.editingCheckIndex, 1, rule);
1508
+ } else {
1509
+ this.printChecks.push(rule);
1510
+ }
1511
+ this.syncPrintCheck();
1512
+ this.checkRuleDialog = false;
1513
+ },
1514
+ // 删除规则
1515
+ deleteCheckRule(index) {
1516
+ this.$confirm("确定删除该校验规则?", "提示", {
1517
+ type: "warning"
1518
+ }).then(() => {
1519
+ this.printChecks.splice(index, 1);
1520
+ this.syncPrintCheck();
1521
+ }).catch(() => {
1522
+ });
1523
+ },
1524
+ // 打开公式编辑器
1525
+ openFormulaDialog() {
1526
+ this.formulaDialog = true;
1527
+ },
1528
+ // 公式编辑器确定回填表达式
1529
+ confirmFormula(payload) {
1530
+ if (payload && payload.el) {
1531
+ this.checkRuleForm.expression = payload.el;
1532
+ }
1533
+ this.formulaDialog = false;
1534
+ }
1535
+ },
1536
+ created() {
1537
+ this.currentLanguage = this.defaultLanguage;
1538
+ if (this.showMenu) {
1539
+ this.changeMenuFlag = true;
1540
+ this.$store.commit("SWITCH_MENU_SHOW", false);
1541
+ }
1542
+ if (this.showAppNav) {
1543
+ this.changeAppNavFlag = true;
1544
+ this.$store.commit("SWITCH_APP_NAV_SHOW", false);
1545
+ }
1546
+ this.getFormContent();
1547
+ this.getFormFunction();
1548
+ this.getDataSource();
1549
+ this.getFormParams();
1550
+ this.getFieldRelation();
1551
+ this.getFieldConfigs();
1552
+ },
1553
+ beforeUnmount() {
1554
+ if (this.changeMenuFlag) {
1555
+ this.$store.commit("SWITCH_MENU_SHOW", true);
1556
+ }
1557
+ if (this.changeAppNavFlag) {
1558
+ this.$store.commit("SWITCH_APP_NAV_SHOW", true);
1559
+ }
1560
+ }
1561
+ };
1562
+ export {
1563
+ _sfc_main as default
1564
+ };