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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (861) hide show
  1. package/API.md +111 -0
  2. package/README.md +43 -2
  3. package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
  4. package/dist/_virtual/preload-helper.js +88 -0
  5. package/dist/assets/0-C_2vdOtO.png +0 -0
  6. package/dist/assets/1-CsiSr5nw.png +0 -0
  7. package/dist/assets/2-C9hZOTyC.png +0 -0
  8. package/dist/assets/ai-CcPHuAhD.jpg +0 -0
  9. package/dist/assets/app-DBNIokDP.png +0 -0
  10. package/dist/assets/approval-DGcBv-re.png +0 -0
  11. package/dist/assets/aurorablue-N56tat3G.png +0 -0
  12. package/dist/assets/basepage-BF4dvOT8.png +0 -0
  13. package/dist/assets/classicblue-BdgPGKXa.png +0 -0
  14. package/dist/assets/create_market_system-BH__UVbt.png +0 -0
  15. package/dist/assets/create_system-irg--ePh.png +0 -0
  16. package/dist/assets/custom-C-ujlHz1.png +0 -0
  17. package/dist/assets/data-BDvuB-m7.png +0 -0
  18. package/dist/assets/deepblue-B78G_DNb.png +0 -0
  19. package/dist/assets/default-icon-2193FMjv.png +0 -0
  20. package/dist/assets/ex_link-4fYPd9nh.png +0 -0
  21. package/dist/assets/forestgreen-B2YR4xgz.png +0 -0
  22. package/dist/assets/hall_banner-Dc5YRV5A.webp +0 -0
  23. package/dist/assets/import-tfKWbWVS.png +0 -0
  24. package/dist/assets/link-BeD2ZGO9.png +0 -0
  25. package/dist/assets/m_hall_banner-Cf1Qwhh3.webp +0 -0
  26. package/dist/assets/orange-wT0uHIyo.png +0 -0
  27. package/dist/assets/palevioletred-DZXBQKru.png +0 -0
  28. package/dist/assets/photo-uscRzRXF.png +0 -0
  29. package/dist/assets/purple-CXrRrENi.png +0 -0
  30. package/dist/assets/role_select-DTqRlFNz.webp +0 -0
  31. package/dist/assets/skyblue-DPPlKPXU.png +0 -0
  32. package/dist/assets/snapshot-history-BsVY9cVj.png +0 -0
  33. package/dist/assets/snapshot-manual-DBRfFHYI.png +0 -0
  34. package/dist/assets/snapshot-realtime-DjHnJI6C.png +0 -0
  35. package/dist/assets/sync_loading-D7LoNPFP.png +0 -0
  36. package/dist/assets/tiffanyblue-DkyBoUQf.png +0 -0
  37. package/dist/assets/topbg-C_5lVpoA.webp +0 -0
  38. package/dist/assets/zxmb-CkPnmDaV.png +0 -0
  39. package/dist/src/assets/customTranslate/customTranslate.js +11 -0
  40. package/dist/src/assets/customTranslate/translations.js +219 -0
  41. package/dist/src/assets/images/addmenu/basepage.png.js +4 -0
  42. package/dist/src/assets/images/addmenu/data.png.js +4 -0
  43. package/dist/src/assets/images/addmenu/link.png.js +4 -0
  44. package/dist/src/assets/images/addmenu/list.png.js +4 -0
  45. package/dist/src/assets/images/addmenu/menu.png.js +4 -0
  46. package/dist/src/assets/images/addmenu/zxmb.png.js +4 -0
  47. package/dist/src/assets/images/ai.jpg.js +4 -0
  48. package/dist/src/assets/images/app.png.js +4 -0
  49. package/dist/src/assets/images/approval.png.js +4 -0
  50. package/dist/src/assets/images/create_market_system.png.js +4 -0
  51. package/dist/src/assets/images/create_system.png.js +4 -0
  52. package/dist/src/assets/images/custom.png.js +4 -0
  53. package/dist/src/assets/images/default-icon.png.js +4 -0
  54. package/dist/src/assets/images/ex_link.png.js +4 -0
  55. package/dist/src/assets/images/hall_banner.webp.js +4 -0
  56. package/dist/src/assets/images/hr.png.js +4 -0
  57. package/dist/src/assets/images/import.png.js +4 -0
  58. package/dist/src/assets/images/m_hall_banner.webp.js +4 -0
  59. package/dist/src/assets/images/nav/0.png.js +4 -0
  60. package/dist/src/assets/images/nav/1.png.js +4 -0
  61. package/dist/src/assets/images/nav/2.png.js +4 -0
  62. package/dist/src/assets/images/nav/3.svg.js +4 -0
  63. package/dist/src/assets/images/photo.png.js +4 -0
  64. package/dist/src/assets/images/snapshot-history.png.js +4 -0
  65. package/dist/src/assets/images/snapshot-manual.png.js +4 -0
  66. package/dist/src/assets/images/snapshot-realtime.png.js +4 -0
  67. package/dist/src/assets/images/sync_loading.png.js +4 -0
  68. package/dist/src/assets/images/theme/aurorablue.png.js +4 -0
  69. package/dist/src/assets/images/theme/classicblue.png.js +4 -0
  70. package/dist/src/assets/images/theme/deepblue.png.js +4 -0
  71. package/dist/src/assets/images/theme/forestgreen.png.js +4 -0
  72. package/dist/src/assets/images/theme/orange.png.js +4 -0
  73. package/dist/src/assets/images/theme/palevioletred.png.js +4 -0
  74. package/dist/src/assets/images/theme/purple.png.js +4 -0
  75. package/dist/src/assets/images/theme/skyblue.png.js +4 -0
  76. package/dist/src/assets/images/theme/tiffanyblue.png.js +4 -0
  77. package/dist/src/base/AiPromptDesigner.js +685 -0
  78. package/dist/src/base/AiPromptView.js +363 -0
  79. package/dist/src/base/AiSkillEditor.js +1029 -0
  80. package/dist/src/base/AiSkillEditor.vue.js +1176 -0
  81. package/dist/src/base/AppConfigFormItem.js +8 -0
  82. package/dist/src/base/AppConfigFormItem.vue.js +407 -0
  83. package/dist/src/base/AppMarket.js +212 -0
  84. package/dist/src/base/AppMarketList.js +8 -0
  85. package/dist/src/base/AppMarketList.vue.js +214 -0
  86. package/dist/src/base/AppMarketSystemDetail.js +293 -0
  87. package/dist/src/base/AttributeSubAdd.js +26 -0
  88. package/dist/src/base/ChooseApplication.js +132 -0
  89. package/dist/src/base/ClientAppItem.js +190 -0
  90. package/dist/src/base/ClientApplication.js +360 -0
  91. package/dist/src/base/ClientApplicationList.js +126 -0
  92. package/dist/src/base/ClientModule.js +119 -0
  93. package/dist/src/base/ClientModuleIndex.js +295 -0
  94. package/dist/src/base/ClientSystemDetail.js +203 -0
  95. package/dist/src/base/ClientSystemList.js +8 -0
  96. package/dist/src/base/ClientSystemList.vue.js +450 -0
  97. package/dist/src/base/CommonFieldList.js +11 -0
  98. package/dist/src/base/CommonFieldList.vue.js +530 -0
  99. package/dist/src/base/CommonSearchList.js +5 -0
  100. package/dist/src/base/CommonSearchList.vue.js +253 -0
  101. package/dist/src/base/CompayDetail.js +116 -0
  102. package/dist/src/base/ComponentGlobalSet.js +8 -0
  103. package/dist/src/base/ComponentGlobalSet.vue.js +722 -0
  104. package/dist/src/base/ComponentParamsTree.js +335 -0
  105. package/dist/src/base/ConfigModuleIndex.js +135 -0
  106. package/dist/src/base/CurrentClientApplication.js +54 -0
  107. package/dist/src/base/CurrentVersionInfo.js +98 -0
  108. package/dist/src/base/EntityMatchCompare.js +533 -0
  109. package/dist/src/base/FieldRelationFormItem.js +8 -0
  110. package/dist/src/base/FieldRelationFormItem.vue.js +272 -0
  111. package/dist/src/base/HelpDocSet.js +363 -0
  112. package/dist/src/base/HelpDocSet.vue.js +685 -0
  113. package/dist/src/base/IndexFormItem.js +5 -0
  114. package/dist/src/base/IndexFormItem.vue.js +230 -0
  115. package/dist/src/base/JobFormItem.js +8 -0
  116. package/dist/src/base/JobFormItem.vue.js +131 -0
  117. package/dist/src/base/ManageAppNav.js +9 -0
  118. package/dist/src/base/ManageAppNav.vue.js +1178 -0
  119. package/dist/src/base/ManageMenu.js +916 -0
  120. package/dist/src/base/ManageMenuItem.js +551 -0
  121. package/dist/src/base/NoInstallSystemList.js +5 -0
  122. package/dist/src/base/NoInstallSystemList.vue.js +159 -0
  123. package/dist/src/base/PageList.js +48 -0
  124. package/dist/src/base/PasswordFormItem.js +8 -0
  125. package/dist/src/base/PasswordFormItem.vue.js +125 -0
  126. package/dist/src/base/ProcessFormItem.js +148 -0
  127. package/dist/src/base/PublishSystemApplyFormItem.js +5 -0
  128. package/dist/src/base/PublishSystemApplyFormItem.vue.js +104 -0
  129. package/dist/src/base/RequestLog.js +170 -0
  130. package/dist/src/base/RightRiskList.js +8 -0
  131. package/dist/src/base/RightRiskList.vue.js +224 -0
  132. package/dist/src/base/RoleAccredit.js +1087 -0
  133. package/dist/src/base/RoleRightList.js +8 -0
  134. package/dist/src/base/RoleRightList.vue.js +118 -0
  135. package/dist/src/base/RoleUserManage.js +8 -0
  136. package/dist/src/base/RoleUserManage.vue.js +146 -0
  137. package/dist/src/base/ServiceAccredit.js +1075 -0
  138. package/dist/src/base/ServiceMenu.js +399 -0
  139. package/dist/src/base/ServiceMenuFormItem.js +20 -0
  140. package/dist/src/base/ServiceOperate.js +1003 -0
  141. package/dist/src/base/SystemHelpTreeFind.js +44 -0
  142. package/dist/src/base/aiPromptMode.js +145 -0
  143. package/dist/src/base/data-check/DataChckDetail.js +243 -0
  144. package/dist/src/base/data-check/DataCheck.js +308 -0
  145. package/dist/src/base/data-check/DataCheckList.js +364 -0
  146. package/dist/src/base/data-check/DataCheckSubList.js +6 -0
  147. package/dist/src/base/data-check/DataCheckSubList.vue.js +195 -0
  148. package/dist/src/base/entity-view/EntityViewFormItem.js +5 -0
  149. package/dist/src/base/entity-view/EntityViewFormItem.vue.js +229 -0
  150. package/dist/src/base/entity-view/EntityViewSubList.js +5 -0
  151. package/dist/src/base/entity-view/EntityViewSubList.vue.js +181 -0
  152. package/dist/src/base/entity-view-config/BasicInfoDialog.js +208 -0
  153. package/dist/src/base/entity-view-config/FieldPanel.js +692 -0
  154. package/dist/src/base/entity-view-config/FieldPropForm.js +786 -0
  155. package/dist/src/base/entity-view-config/FormulaDialog.js +143 -0
  156. package/dist/src/base/entity-view-config/ObjectFieldDialog.js +271 -0
  157. package/dist/src/base/entity-view-config/RelationPanel.js +779 -0
  158. package/dist/src/base/entity-view-config/SourceManagerDialog.js +658 -0
  159. package/dist/src/base/entity-view-config/SqlPanel.js +62 -0
  160. package/dist/src/base/entity-view-config/SqlPanel.vue.js +43 -0
  161. package/dist/src/base/entity-view-config/UnionPanel.js +1082 -0
  162. package/dist/src/base/entity-view-config/ViewConfig.js +586 -0
  163. package/dist/src/base/entity-view-config/constants.js +146 -0
  164. package/dist/src/base/user-type/UserTypeFormItem.js +5 -0
  165. package/dist/src/base/user-type/UserTypeFormItem.vue.js +183 -0
  166. package/dist/src/components/AddPageFormItem.js +5 -0
  167. package/dist/src/components/AddPageFormItem.vue.js +92 -0
  168. package/dist/src/components/AddUsedInterface.js +214 -0
  169. package/dist/src/components/AiDocFormItem.js +6 -0
  170. package/dist/src/components/AiDocFormItem.vue.js +271 -0
  171. package/dist/src/components/AiList.js +8 -0
  172. package/dist/src/components/AiList.vue.js +93 -0
  173. package/dist/src/components/AiPermissionAssistant.js +284 -0
  174. package/dist/src/components/AppList.js +414 -0
  175. package/dist/src/components/Apply/AIApplyIndex.js +179 -0
  176. package/dist/src/components/Apply/ApplyIndex.js +282 -0
  177. package/dist/src/components/AttributeList.js +870 -0
  178. package/dist/src/components/Banner.js +26 -0
  179. package/dist/src/components/BatchAddFieldDialog.js +425 -0
  180. package/dist/src/components/CardO.js +47 -0
  181. package/dist/src/components/CheckForm.js +34 -0
  182. package/dist/src/components/ClientAdminFormItem.js +47 -0
  183. package/dist/src/components/ClientAdminList.js +9 -0
  184. package/dist/src/components/ClientAdminList.vue.js +221 -0
  185. package/dist/src/components/ClientFormItem.js +48 -0
  186. package/dist/src/components/ClientList.js +6 -0
  187. package/dist/src/components/ClientList.vue.js +216 -0
  188. package/dist/src/components/CodeDetail.js +454 -0
  189. package/dist/src/components/CodeManage.js +1030 -0
  190. package/dist/src/components/ComponentFind.js +210 -0
  191. package/dist/src/components/ComponentList.js +499 -0
  192. package/dist/src/components/ConfigParamFormItem.js +8 -0
  193. package/dist/src/components/ConfigParamFormItem.vue.js +389 -0
  194. package/dist/src/components/CreatePage.js +298 -0
  195. package/dist/src/components/DashboardCreate.js +106 -0
  196. package/dist/src/components/DataLog.js +169 -0
  197. package/dist/src/components/DataLogTimeline.js +111 -0
  198. package/dist/src/components/DataSnapshot.js +207 -0
  199. package/dist/src/components/DataSnapshotList.js +75 -0
  200. package/dist/src/components/DataSyncInit.js +173 -0
  201. package/dist/src/components/DblogList.js +6 -0
  202. package/dist/src/components/DblogList.vue.js +143 -0
  203. package/dist/src/components/DeptFind.js +8 -0
  204. package/dist/src/components/DeptFind.vue.js +109 -0
  205. package/dist/src/components/DynamicUserList.js +5 -0
  206. package/dist/src/components/DynamicUserList.vue.js +89 -0
  207. package/dist/src/components/EntityCheckboxFind.js +5 -0
  208. package/dist/src/components/EntityCheckboxFind.vue.js +97 -0
  209. package/dist/src/components/EntityRelationAdd.js +388 -0
  210. package/dist/src/components/EntityRelationAddFormItem.js +5 -0
  211. package/dist/src/components/EntityRelationAddFormItem.vue.js +284 -0
  212. package/dist/src/components/EntityRightFormItem.js +10 -0
  213. package/dist/src/components/EntityRightFormItem.vue.js +401 -0
  214. package/dist/src/components/EntityRightSubList.js +640 -0
  215. package/dist/src/components/EntityTagSubList.js +5 -0
  216. package/dist/src/components/EntityTagSubList.vue.js +103 -0
  217. package/dist/src/components/EntityTreeManage.js +865 -0
  218. package/dist/src/components/ExportSystemConfig.js +167 -0
  219. package/dist/src/components/FieldTreeFind.js +41 -0
  220. package/dist/src/components/FormulaEditor.js +8 -0
  221. package/dist/src/components/FormulaEditor.vue.js +1235 -0
  222. package/dist/src/components/GenTestData.js +638 -0
  223. package/dist/src/components/HallNav.js +6 -0
  224. package/dist/src/components/HallNav.vue.js +156 -0
  225. package/dist/src/components/HeaderNav.js +369 -0
  226. package/dist/src/components/IconCard.js +98 -0
  227. package/dist/src/components/IconFontLibrary.js +5 -0
  228. package/dist/src/components/IconFontLibrary.vue.js +67 -0
  229. package/dist/src/components/IconFontList.js +5 -0
  230. package/dist/src/components/IconFontList.vue.js +79 -0
  231. package/dist/src/components/IdentifyList.js +33 -0
  232. package/dist/src/components/ImportSystemConfig.js +303 -0
  233. package/dist/src/components/InterfaceSubList.js +320 -0
  234. package/dist/src/components/JsPanel.js +101 -0
  235. package/dist/src/components/LanguageImportPage.js +590 -0
  236. package/dist/src/components/LanguageSetting.js +545 -0
  237. package/dist/src/components/List/LinkItem.js +113 -0
  238. package/dist/src/components/List/List.js +18 -0
  239. package/dist/src/components/List/ListItem.js +31 -0
  240. package/dist/src/components/MenuTreeFind.js +8 -0
  241. package/dist/src/components/MenuTreeFind.vue.js +81 -0
  242. package/dist/src/components/MessageList.js +8 -0
  243. package/dist/src/components/MessageList.vue.js +101 -0
  244. package/dist/src/components/MessageRuleFormItem.js +60 -0
  245. package/dist/src/components/MessageRuleReceiverFormItem.js +224 -0
  246. package/dist/src/components/MessageTemplate.js +395 -0
  247. package/dist/src/components/MessageTemplate.vue.js +693 -0
  248. package/dist/src/components/MetaList.js +5 -0
  249. package/dist/src/components/MetaList.vue.js +100 -0
  250. package/dist/src/components/Nav.js +496 -0
  251. package/dist/src/components/NavFormCatalogItem.js +7 -0
  252. package/dist/src/components/NumList.js +60 -0
  253. package/dist/src/components/OperateLog.js +133 -0
  254. package/dist/src/components/PageCatalog.js +8 -0
  255. package/dist/src/components/PageCatalog.vue.js +292 -0
  256. package/dist/src/components/PageChart.js +213 -0
  257. package/dist/src/components/PageSwipes.js +132 -0
  258. package/dist/src/components/PersonFormItem.js +5 -0
  259. package/dist/src/components/PersonFormItem.vue.js +96 -0
  260. package/dist/src/components/Popup.js +239 -0
  261. package/dist/src/components/PrintFormList.js +9 -0
  262. package/dist/src/components/PrintFormList.vue.js +203 -0
  263. package/dist/src/components/PublishEntity.js +114 -0
  264. package/dist/src/components/RelyFieldTreeFind.js +52 -0
  265. package/dist/src/components/ReportFormList.js +236 -0
  266. package/dist/src/components/ReportList.js +9 -0
  267. package/dist/src/components/ReportList.vue.js +248 -0
  268. package/dist/src/components/RightSubList.js +8 -0
  269. package/dist/src/components/RightSubList.vue.js +150 -0
  270. package/dist/src/components/RoleAddUser.js +55 -0
  271. package/dist/src/components/RoleApplicationCard.js +138 -0
  272. package/dist/src/components/RoleApplicationList.js +937 -0
  273. package/dist/src/components/RoleApplicationSet.js +1001 -0
  274. package/dist/src/components/Search.js +254 -0
  275. package/dist/src/components/ServiceFormItem.js +33 -0
  276. package/dist/src/components/SnapshotDataList.js +73 -0
  277. package/dist/src/components/SystemAdminList.js +8 -0
  278. package/dist/src/components/SystemAdminList.vue.js +198 -0
  279. package/dist/src/components/SystemFormItem.js +8 -0
  280. package/dist/src/components/SystemFormItem.vue.js +170 -0
  281. package/dist/src/components/SystemNav.js +30 -0
  282. package/dist/src/components/TaskNumCard.js +23 -0
  283. package/dist/src/components/TimerRuleFormItem.js +333 -0
  284. package/dist/src/components/TodoList.js +8 -0
  285. package/dist/src/components/TodoList.vue.js +327 -0
  286. package/dist/src/components/UpdateSystemConfig.js +241 -0
  287. package/dist/src/components/UserCard.js +83 -0
  288. package/dist/src/components/UserFind.js +6 -0
  289. package/dist/src/components/UserFind.vue.js +592 -0
  290. package/dist/src/components/UserFormItem.js +9 -0
  291. package/dist/src/components/UserFormItem.vue.js +609 -0
  292. package/dist/src/components/UserList.js +5 -0
  293. package/dist/src/components/UserList.vue.js +23 -0
  294. package/dist/src/components/UserManage.js +802 -0
  295. package/dist/src/components/UserRoleList.js +579 -0
  296. package/dist/src/components/ValidateRuleFormItem.js +109 -0
  297. package/dist/src/components/ViewFieldDefine.js +747 -0
  298. package/dist/src/components/WikiSpaceList.js +5 -0
  299. package/dist/src/components/WikiSpaceList.vue.js +330 -0
  300. package/dist/src/components/WikiWorkbench.js +647 -0
  301. package/dist/src/components/authorization/AddApiPermiss.js +231 -0
  302. package/dist/src/components/authorization/AddAuthorization.js +161 -0
  303. package/dist/src/components/authorization/AddEntityFind.js +62 -0
  304. package/dist/src/components/authorization/AddNoApi.js +191 -0
  305. package/dist/src/components/authorization/AddRoleScope.js +337 -0
  306. package/dist/src/components/authorization/AiRolePlan.js +672 -0
  307. package/dist/src/components/authorization/ApiShareOtherList.js +397 -0
  308. package/dist/src/components/authorization/ApiSystemList.js +242 -0
  309. package/dist/src/components/authorization/AuthorizationInterface.js +622 -0
  310. package/dist/src/components/authorization/AuthorizationRoleSystem.js +850 -0
  311. package/dist/src/components/authorization/EntityConstraintFormItem.js +284 -0
  312. package/dist/src/components/authorization/OtherShareApiList.js +247 -0
  313. package/dist/src/components/authorization/PermissCommonRoleTabs.js +114 -0
  314. package/dist/src/components/authorization/PermissRoleAuthorization.js +1286 -0
  315. package/dist/src/components/authorization/PermissRoleTabs.js +113 -0
  316. package/dist/src/components/authorization/RoleLevel.js +5 -0
  317. package/dist/src/components/authorization/RoleLevel.vue.js +110 -0
  318. package/dist/src/components/authorization/RoleLevelScope.js +270 -0
  319. package/dist/src/components/authorization/SystemAddNoApi.js +187 -0
  320. package/dist/src/components/card/CardList.js +65 -0
  321. package/dist/src/components/card/CardListItem.js +97 -0
  322. package/dist/src/components/card/Title.js +42 -0
  323. package/dist/src/components/custom-bpmn/CustomContextPad.js +54 -0
  324. package/dist/src/components/custom-bpmn/CustomPalette.js +5 -0
  325. package/dist/src/components/custom-bpmn/CustomRenderer.js +5 -0
  326. package/dist/src/components/custom-bpmn/CustomRendererBpmn.js +88 -0
  327. package/dist/src/components/custom-bpmn/PropertiesView.js +12560 -0
  328. package/dist/src/components/custom-bpmn/components/AiModel.js +353 -0
  329. package/dist/src/components/custom-bpmn/components/Api.js +376 -0
  330. package/dist/src/components/custom-bpmn/components/BatchOperation.js +209 -0
  331. package/dist/src/components/custom-bpmn/components/Copy.js +653 -0
  332. package/dist/src/components/custom-bpmn/components/DataTransform.js +442 -0
  333. package/dist/src/components/custom-bpmn/components/Demo.js +63 -0
  334. package/dist/src/components/custom-bpmn/components/EditDiv.js +358 -0
  335. package/dist/src/components/custom-bpmn/components/GenScope.js +259 -0
  336. package/dist/src/components/custom-bpmn/components/GlobalParamsTree.js +76 -0
  337. package/dist/src/components/custom-bpmn/components/Knowledges.js +238 -0
  338. package/dist/src/components/custom-bpmn/components/Login.js +591 -0
  339. package/dist/src/components/custom-bpmn/components/MessageQueue.js +221 -0
  340. package/dist/src/components/custom-bpmn/components/MetaSelect.js +160 -0
  341. package/dist/src/components/custom-bpmn/components/NumStatistic.js +408 -0
  342. package/dist/src/components/custom-bpmn/components/ObjectTransform.js +789 -0
  343. package/dist/src/components/custom-bpmn/components/OutPut.js +395 -0
  344. package/dist/src/components/custom-bpmn/components/ParamsMachining.js +889 -0
  345. package/dist/src/components/custom-bpmn/components/ParamsOutput.js +161 -0
  346. package/dist/src/components/custom-bpmn/components/ProcessAudit.js +796 -0
  347. package/dist/src/components/custom-bpmn/components/SingleMultipleFind.js +1040 -0
  348. package/dist/src/components/custom-bpmn/components/TestDialog.js +861 -0
  349. package/dist/src/components/custom-bpmn/img/chaxun.png.js +4 -0
  350. package/dist/src/components/custom-bpmn/img/fasong.png.js +4 -0
  351. package/dist/src/components/custom-bpmn/img/gengxin.png.js +4 -0
  352. package/dist/src/components/custom-bpmn/img/jiagong.png.js +4 -0
  353. package/dist/src/components/custom-bpmn/img/jiekou.png.js +4 -0
  354. package/dist/src/components/custom-bpmn/img/shanchu.png.js +4 -0
  355. package/dist/src/components/custom-bpmn/img/tongbu.png.js +4 -0
  356. package/dist/src/components/custom-bpmn/img/xinzeng.png.js +4 -0
  357. package/dist/src/components/custom-bpmn/img/xunhuanend.png.js +4 -0
  358. package/dist/src/components/custom-bpmn/img/xunhuanstart.png.js +4 -0
  359. package/dist/src/components/custom-bpmn/img/ywgz.png.js +4 -0
  360. package/dist/src/components/custom-bpmn/index.js +5 -0
  361. package/dist/src/components/custom-bpmn/palette.js +13 -0
  362. package/dist/src/components/custom-bpmn/util.js +7 -0
  363. package/dist/src/components/dashboard-create.js +20 -0
  364. package/dist/src/components/entity-relation-diagram/Er.js +340 -0
  365. package/dist/src/components/entity-relation-diagram/renderErNode.js +36 -0
  366. package/dist/src/components/expand/AddForm.js +86 -0
  367. package/dist/src/components/expand/AddFormItem.js +149 -0
  368. package/dist/src/components/filter/Filter.js +720 -0
  369. package/dist/src/components/filter/FilterItem.js +493 -0
  370. package/dist/src/components/hall/AppCollect.js +121 -0
  371. package/dist/src/components/hall/AppList.js +480 -0
  372. package/dist/src/components/hall/AppVisitRecord.js +113 -0
  373. package/dist/src/components/hall/Banner.js +33 -0
  374. package/dist/src/components/hall/ServiceCard.js +124 -0
  375. package/dist/src/components/hall/UserCard.js +81 -0
  376. package/dist/src/components/permiss/AddApi.js +143 -0
  377. package/dist/src/components/permiss/AddNoEntityApi.js +180 -0
  378. package/dist/src/components/permiss/AddSystemPermiss.js +131 -0
  379. package/dist/src/components/permiss/AllocateRole.js +131 -0
  380. package/dist/src/components/permiss/ApiSubList.js +151 -0
  381. package/dist/src/components/permiss/CommonRoleMenu.js +591 -0
  382. package/dist/src/components/permiss/FieldScope.js +200 -0
  383. package/dist/src/components/permiss/PermissManage.js +88 -0
  384. package/dist/src/components/permiss/RoleAppList.js +36 -0
  385. package/dist/src/components/permiss/RoleMenu.js +518 -0
  386. package/dist/src/components/permiss/RoleSubList.js +5 -0
  387. package/dist/src/components/permiss/RoleSubList.vue.js +300 -0
  388. package/dist/src/components/permiss/jurisdiction.js +359 -0
  389. package/dist/src/components/process-healthcheck/HealthcheckChart.js +234 -0
  390. package/dist/src/components/process-healthcheck/HealthcheckChart.vue.js +348 -0
  391. package/dist/src/components/process-healthcheck/HealthcheckRenderer.js +36 -0
  392. package/dist/src/components/process-healthcheck/index.js +8 -0
  393. package/dist/src/components/report/Config.js +1708 -0
  394. package/dist/src/components/report/Design.js +4632 -0
  395. package/dist/src/components/report/StatList.js +217 -0
  396. package/dist/src/components/right/EntityOtherSystemList.js +82 -0
  397. package/dist/src/components/right/SystemInterfaceList.js +418 -0
  398. package/dist/src/components/right/SystemList.js +1017 -0
  399. package/dist/src/components/upLoad.js +71 -0
  400. package/dist/src/components/viewport/LookViewList.js +22 -0
  401. package/dist/src/components/viewport/ViewAddForm.js +142 -0
  402. package/dist/src/components/viewport/ViewDefineList.js +50 -0
  403. package/dist/src/components/viewport/ViewFiedList.js +723 -0
  404. package/dist/src/components/viewport/ViewScope.js +116 -0
  405. package/dist/src/components/wiki-workbench/WikiCites.js +301 -0
  406. package/dist/src/components/wiki-workbench/WikiIntake.js +308 -0
  407. package/dist/src/components/wiki-workbench/WikiIntake.vue.js +309 -0
  408. package/dist/src/components/wiki-workbench/WikiJobs.js +195 -0
  409. package/dist/src/components/wiki-workbench/WikiRevisions.js +229 -0
  410. package/dist/src/components/wiki-workbench/WikiSpaceSettings.js +59 -0
  411. package/dist/src/components/wiki-workbench/WikiSpaceSettings.vue.js +127 -0
  412. package/dist/src/components/wiki-workbench/codes.js +27 -0
  413. package/dist/src/components/wiki-workbench/index.js +13 -0
  414. package/dist/src/index.js +42 -0
  415. package/dist/src/popup.js +68 -0
  416. package/dist/src/public-components.js +20 -0
  417. package/dist/src/remote.entry.js +31 -0
  418. package/dist/src/route-components.js +12 -0
  419. package/dist/src/system.component.index.js +5 -0
  420. package/dist/src/system.component.js +342 -0
  421. package/dist/src/system.component.lazy.js +50 -0
  422. package/dist/src/views/Add.js +8 -0
  423. package/dist/src/views/Add.vue.js +734 -0
  424. package/dist/src/views/AiToolManager.js +2530 -0
  425. package/dist/src/views/App.js +48 -0
  426. package/dist/src/views/AppRoleSelect.js +233 -0
  427. package/dist/src/views/BatchEdit.js +256 -0
  428. package/dist/src/views/Bpmn.js +319 -0
  429. package/dist/src/views/Bpmn.vue.js +1196 -0
  430. package/dist/src/views/EntityCheckPage.js +49 -0
  431. package/dist/src/views/EntityDetailPage.js +5 -0
  432. package/dist/src/views/EntityDetailPage.vue.js +73 -0
  433. package/dist/src/views/EntityEditPage.js +10 -0
  434. package/dist/src/views/EntitySubListPage.js +41 -0
  435. package/dist/src/views/EntityTreePage.js +32 -0
  436. package/dist/src/views/Error.js +210 -0
  437. package/dist/src/views/ExcelDesign.js +2730 -0
  438. package/dist/src/views/ExcelDesign.vue.js +2165 -0
  439. package/dist/src/views/ExcelPreviewPage.js +166 -0
  440. package/dist/src/views/ExcelPreviewPage.vue.js +572 -0
  441. package/dist/src/views/ExportFilePage.js +21 -0
  442. package/dist/src/views/ExportPage.js +21 -0
  443. package/dist/src/views/FormDesign.js +1033 -0
  444. package/dist/src/views/FormDesign.vue.js +1564 -0
  445. package/dist/src/views/I18nWorkbench.js +521 -0
  446. package/dist/src/views/ImportFilePage.js +21 -0
  447. package/dist/src/views/ImportPage.js +21 -0
  448. package/dist/src/views/MEntityListPage.js +66 -0
  449. package/dist/src/views/MEntitySubListPage.js +41 -0
  450. package/dist/src/views/MinePage.js +16 -0
  451. package/dist/src/views/Module.js +173 -0
  452. package/dist/src/views/PageAttributeTreePage.js +421 -0
  453. package/dist/src/views/PageConfig.js +177 -0
  454. package/dist/src/views/Permission.js +742 -0
  455. package/dist/src/views/PersonalInfo.js +792 -0
  456. package/dist/src/views/QyWechat.js +62 -0
  457. package/dist/src/views/ReportFormListPage.js +77 -0
  458. package/dist/src/views/TaskPage.js +180 -0
  459. package/dist/src/views/WikiBinding.js +614 -0
  460. package/dist/src/views/client/AddForm.js +55 -0
  461. package/dist/src/views/client/AppMarket.js +290 -0
  462. package/dist/src/views/client/ClientIndex.js +209 -0
  463. package/dist/src/views/client/ClientModuleIndexPage.js +5 -0
  464. package/dist/src/views/client/ClientModuleIndexPage.vue.js +30 -0
  465. package/dist/src/views/client/CopySystem.js +136 -0
  466. package/dist/src/views/client/CreateAppFormItem.js +8 -0
  467. package/dist/src/views/client/CreateAppFormItem.vue.js +232 -0
  468. package/dist/src/views/client/CreateMethod.js +76 -0
  469. package/dist/src/views/client/InstallSystem.js +309 -0
  470. package/dist/src/views/client/ManageList.js +5 -0
  471. package/dist/src/views/client/ManageList.vue.js +211 -0
  472. package/dist/src/views/client/OpenClientManage.js +51 -0
  473. package/dist/src/views/client/OpenSystemManage.js +56 -0
  474. package/dist/src/views/client/PageTabsCyclic.js +92 -0
  475. package/dist/src/views/client/SelfBuiltSystem.js +444 -0
  476. package/dist/src/views/client/StandardProduct.js +233 -0
  477. package/dist/src/views/client/SystemAppAccredit.js +561 -0
  478. package/dist/src/views/client/SystemAppManager.js +293 -0
  479. package/dist/src/views/client/SystemAppManager.vue.js +559 -0
  480. package/dist/src/views/client/SystemManager.js +452 -0
  481. package/dist/src/views/client/SystemManager.vue.js +522 -0
  482. package/dist/src/views/i18n/I18nAiTaskHistoryDialog.js +230 -0
  483. package/dist/src/views/i18n/I18nPublishDialog.js +451 -0
  484. package/dist/src/views/i18n/I18nTranslationList.js +8 -0
  485. package/dist/src/views/i18n/I18nTranslationList.vue.js +247 -0
  486. package/dist/src/views/i18n/i18n-workbench-text.js +11 -0
  487. package/dist/src/views/layout/CardList.js +96 -0
  488. package/dist/src/views/layout/Grid.js +138 -0
  489. package/dist/src/views/match/AddTargetField.js +8 -0
  490. package/dist/src/views/match/AddTargetField.vue.js +127 -0
  491. package/dist/src/views/match/MatchAddFormItem.js +5 -0
  492. package/dist/src/views/match/MatchAddFormItem.vue.js +84 -0
  493. package/dist/src/views/match/conversion.js +805 -0
  494. package/dist/src/views/match/customize.js +391 -0
  495. package/dist/src/views/match/fieldMatch.js +8 -0
  496. package/dist/src/views/match/fieldMatch.vue.js +610 -0
  497. package/dist/src/views/report/AddFormItem.js +60 -0
  498. package/dist/src/views/report/DesignReport.js +1392 -0
  499. package/dist/src/views/report/ReportTreeFind.js +8 -0
  500. package/dist/src/views/report/ReportTreeFind.vue.js +166 -0
  501. package/dist/style.css +33364 -0
  502. package/package.json +133 -3
  503. package/src/base/AiPromptDesigner.vue +653 -0
  504. package/src/base/AiPromptView.vue +467 -0
  505. package/src/base/AiSkillEditor.vue +2125 -0
  506. package/src/base/AppConfigFormItem.vue +404 -0
  507. package/src/base/AppMarket.vue +264 -0
  508. package/src/base/AppMarketList.vue +233 -0
  509. package/src/base/AppMarketSystemDetail.vue +380 -0
  510. package/src/base/AttributeSubAdd.vue +29 -0
  511. package/src/base/ChooseApplication.vue +176 -0
  512. package/src/base/ClientAppItem.vue +247 -0
  513. package/src/base/ClientApplication.vue +447 -0
  514. package/src/base/ClientApplicationList.vue +180 -0
  515. package/src/base/ClientModule.vue +69 -0
  516. package/src/base/ClientModuleIndex.vue +437 -0
  517. package/src/base/ClientSystemDetail.vue +319 -0
  518. package/src/base/ClientSystemList.vue +435 -0
  519. package/src/base/CommonFieldList.vue +1397 -0
  520. package/src/base/CommonSearchList.vue +191 -0
  521. package/src/base/CompayDetail.vue +199 -0
  522. package/src/base/ComponentGlobalSet.vue +842 -0
  523. package/src/base/ComponentParamsTree.vue +310 -0
  524. package/src/base/ConfigModuleIndex.vue +121 -0
  525. package/src/base/CurrentClientApplication.vue +37 -0
  526. package/src/base/CurrentVersionInfo.vue +107 -0
  527. package/src/base/EntityMatchCompare.vue +442 -0
  528. package/src/base/FieldRelationFormItem.vue +260 -0
  529. package/src/base/HelpDocSet.vue +1217 -0
  530. package/src/base/IndexFormItem.vue +197 -0
  531. package/src/base/JobFormItem.vue +101 -0
  532. package/src/base/ManageAppNav.vue +1190 -0
  533. package/src/base/ManageMenu.vue +935 -0
  534. package/src/base/ManageMenuItem.vue +399 -0
  535. package/src/base/NoInstallSystemList.vue +114 -0
  536. package/src/base/PageList.vue +47 -0
  537. package/src/base/PasswordFormItem.vue +94 -0
  538. package/src/base/ProcessFormItem.vue +129 -0
  539. package/src/base/PublishSystemApplyFormItem.vue +87 -0
  540. package/src/base/RequestLog.vue +198 -0
  541. package/src/base/RightRiskList.vue +212 -0
  542. package/src/base/RoleAccredit.vue +961 -0
  543. package/src/base/RoleRightList.vue +159 -0
  544. package/src/base/RoleUserManage.vue +186 -0
  545. package/src/base/ServiceAccredit.vue +956 -0
  546. package/src/base/ServiceMenu.vue +420 -0
  547. package/src/base/ServiceMenuFormItem.vue +22 -0
  548. package/src/base/ServiceOperate.vue +929 -0
  549. package/src/base/SystemHelpTreeFind.vue +50 -0
  550. package/src/base/aiPromptMode.js +153 -0
  551. package/src/base/data-check/DataChckDetail.vue +281 -0
  552. package/src/base/data-check/DataCheck.vue +261 -0
  553. package/src/base/data-check/DataCheckList.vue +327 -0
  554. package/src/base/data-check/DataCheckSubList.vue +160 -0
  555. package/src/base/entity-view/EntityViewFormItem.vue +170 -0
  556. package/src/base/entity-view/EntityViewSubList.vue +149 -0
  557. package/src/base/entity-view-config/BasicInfoDialog.vue +156 -0
  558. package/src/base/entity-view-config/FieldPanel.vue +742 -0
  559. package/src/base/entity-view-config/FieldPropForm.vue +687 -0
  560. package/src/base/entity-view-config/FormulaDialog.vue +153 -0
  561. package/src/base/entity-view-config/ObjectFieldDialog.vue +367 -0
  562. package/src/base/entity-view-config/RelationPanel.vue +951 -0
  563. package/src/base/entity-view-config/SourceManagerDialog.vue +428 -0
  564. package/src/base/entity-view-config/SqlPanel.vue +138 -0
  565. package/src/base/entity-view-config/UnionPanel.vue +1037 -0
  566. package/src/base/entity-view-config/ViewConfig.vue +661 -0
  567. package/src/base/entity-view-config/constants.js +139 -0
  568. package/src/base/user-type/UserTypeFormItem.vue +134 -0
  569. package/src/components/AddPageFormItem.vue +82 -0
  570. package/src/components/AddUsedInterface.vue +154 -0
  571. package/src/components/AiDocFormItem.vue +293 -0
  572. package/src/components/AiList.vue +132 -0
  573. package/src/components/AiPermissionAssistant.vue +304 -0
  574. package/src/components/AppList.vue +330 -0
  575. package/src/components/Apply/AIApplyIndex.vue +458 -0
  576. package/src/components/Apply/ApplyIndex.vue +358 -0
  577. package/src/components/AttributeList.vue +667 -0
  578. package/src/components/Banner.vue +24 -0
  579. package/src/components/BatchAddFieldDialog.vue +590 -0
  580. package/src/components/CardO.vue +112 -0
  581. package/src/components/CheckForm.vue +32 -0
  582. package/src/components/ClientAdminFormItem.vue +49 -0
  583. package/src/components/ClientAdminList.vue +434 -0
  584. package/src/components/ClientFormItem.vue +49 -0
  585. package/src/components/ClientList.vue +155 -0
  586. package/src/components/CodeDetail.vue +465 -0
  587. package/src/components/CodeManage.vue +1004 -0
  588. package/src/components/ComponentFind.vue +222 -0
  589. package/src/components/ComponentList.vue +526 -0
  590. package/src/components/ConfigParamFormItem.vue +383 -0
  591. package/src/components/CreatePage.vue +348 -0
  592. package/src/components/DashboardCreate.vue +73 -0
  593. package/src/components/DataLog.vue +181 -0
  594. package/src/components/DataLogTimeline.vue +202 -0
  595. package/src/components/DataSnapshot.vue +264 -0
  596. package/src/components/DataSnapshotList.vue +79 -0
  597. package/src/components/DataSyncInit.vue +97 -0
  598. package/src/components/DblogList.vue +163 -0
  599. package/src/components/DeptFind.vue +203 -0
  600. package/src/components/DynamicUserList.vue +72 -0
  601. package/src/components/EntityCheckboxFind.vue +90 -0
  602. package/src/components/EntityRelationAdd.vue +201 -0
  603. package/src/components/EntityRelationAddFormItem.vue +235 -0
  604. package/src/components/EntityRightFormItem.vue +618 -0
  605. package/src/components/EntityRightSubList.vue +740 -0
  606. package/src/components/EntityTagSubList.vue +72 -0
  607. package/src/components/EntityTreeManage.vue +988 -0
  608. package/src/components/ExportSystemConfig.vue +131 -0
  609. package/src/components/FieldTreeFind.vue +48 -0
  610. package/src/components/FormulaEditor.vue +1220 -0
  611. package/src/components/GenTestData.vue +787 -0
  612. package/src/components/HallNav.vue +539 -0
  613. package/src/components/HeaderNav.vue +447 -0
  614. package/src/components/IconCard.vue +158 -0
  615. package/src/components/IconFontLibrary.vue +61 -0
  616. package/src/components/IconFontList.vue +75 -0
  617. package/src/components/IdentifyList.vue +33 -0
  618. package/src/components/ImportSystemConfig.vue +234 -0
  619. package/src/components/InterfaceSubList.vue +295 -0
  620. package/src/components/JsPanel.vue +111 -0
  621. package/src/components/LanguageImportPage.vue +601 -0
  622. package/src/components/LanguageSetting.vue +451 -0
  623. package/src/components/List/LinkItem.vue +98 -0
  624. package/src/components/List/List.vue +17 -0
  625. package/src/components/List/ListItem.vue +52 -0
  626. package/src/components/MenuTreeFind.vue +128 -0
  627. package/src/components/MessageList.vue +198 -0
  628. package/src/components/MessageRuleFormItem.vue +60 -0
  629. package/src/components/MessageRuleReceiverFormItem.vue +179 -0
  630. package/src/components/MessageTemplate.vue +949 -0
  631. package/src/components/MetaList.vue +108 -0
  632. package/src/components/Nav.vue +604 -0
  633. package/src/components/NavFormCatalogItem.vue +9 -0
  634. package/src/components/NumList.vue +108 -0
  635. package/src/components/OperateLog.vue +168 -0
  636. package/src/components/PageCatalog.vue +458 -0
  637. package/src/components/PageChart.vue +339 -0
  638. package/src/components/PageSwipes.vue +234 -0
  639. package/src/components/PersonFormItem.vue +94 -0
  640. package/src/components/Popup.vue +393 -0
  641. package/src/components/PrintFormList.vue +529 -0
  642. package/src/components/PublishEntity.vue +87 -0
  643. package/src/components/RelyFieldTreeFind.vue +57 -0
  644. package/src/components/ReportFormList.vue +247 -0
  645. package/src/components/ReportList.vue +647 -0
  646. package/src/components/RightSubList.vue +256 -0
  647. package/src/components/RoleAddUser.vue +56 -0
  648. package/src/components/RoleApplicationCard.vue +299 -0
  649. package/src/components/RoleApplicationList.vue +766 -0
  650. package/src/components/RoleApplicationSet.vue +845 -0
  651. package/src/components/Search.vue +272 -0
  652. package/src/components/ServiceFormItem.vue +35 -0
  653. package/src/components/SnapshotDataList.vue +78 -0
  654. package/src/components/SystemAdminList.vue +497 -0
  655. package/src/components/SystemFormItem.vue +125 -0
  656. package/src/components/SystemNav.vue +29 -0
  657. package/src/components/TaskNumCard.vue +26 -0
  658. package/src/components/TimerRuleFormItem.vue +227 -0
  659. package/src/components/TodoList.vue +424 -0
  660. package/src/components/UpdateSystemConfig.vue +200 -0
  661. package/src/components/UserCard.vue +110 -0
  662. package/src/components/UserFind.vue +702 -0
  663. package/src/components/UserFormItem.vue +762 -0
  664. package/src/components/UserList.vue +19 -0
  665. package/src/components/UserManage.vue +758 -0
  666. package/src/components/UserRoleList.vue +497 -0
  667. package/src/components/ValidateRuleFormItem.vue +90 -0
  668. package/src/components/ViewFieldDefine.vue +703 -0
  669. package/src/components/WikiSpaceList.vue +270 -0
  670. package/src/components/WikiWorkbench.vue +717 -0
  671. package/src/components/authorization/AddApiPermiss.vue +179 -0
  672. package/src/components/authorization/AddAuthorization.vue +135 -0
  673. package/src/components/authorization/AddEntityFind.vue +68 -0
  674. package/src/components/authorization/AddNoApi.vue +143 -0
  675. package/src/components/authorization/AddRoleScope.vue +291 -0
  676. package/src/components/authorization/AiRolePlan.vue +751 -0
  677. package/src/components/authorization/ApiShareOtherList.vue +353 -0
  678. package/src/components/authorization/ApiSystemList.vue +314 -0
  679. package/src/components/authorization/AuthorizationInterface.vue +668 -0
  680. package/src/components/authorization/AuthorizationRoleSystem.vue +713 -0
  681. package/src/components/authorization/EntityConstraintFormItem.vue +257 -0
  682. package/src/components/authorization/OtherShareApiList.vue +248 -0
  683. package/src/components/authorization/PermissCommonRoleTabs.vue +122 -0
  684. package/src/components/authorization/PermissRoleAuthorization.vue +1097 -0
  685. package/src/components/authorization/PermissRoleTabs.vue +121 -0
  686. package/src/components/authorization/RoleLevel.vue +113 -0
  687. package/src/components/authorization/RoleLevelScope.vue +247 -0
  688. package/src/components/authorization/SystemAddNoApi.vue +139 -0
  689. package/src/components/card/CardList.vue +78 -0
  690. package/src/components/card/CardListItem.vue +147 -0
  691. package/src/components/card/Title.vue +38 -0
  692. package/src/components/custom-bpmn/CustomContextPad.js +58 -0
  693. package/src/components/custom-bpmn/CustomPalette.js +1 -0
  694. package/src/components/custom-bpmn/CustomRenderer.js +1 -0
  695. package/src/components/custom-bpmn/CustomRendererBpmn.js +84 -0
  696. package/src/components/custom-bpmn/PropertiesView.vue +7879 -0
  697. package/src/components/custom-bpmn/components/AiModel.vue +373 -0
  698. package/src/components/custom-bpmn/components/Api.vue +290 -0
  699. package/src/components/custom-bpmn/components/BatchOperation.vue +145 -0
  700. package/src/components/custom-bpmn/components/Copy.vue +440 -0
  701. package/src/components/custom-bpmn/components/DataTransform.vue +260 -0
  702. package/src/components/custom-bpmn/components/Demo.vue +64 -0
  703. package/src/components/custom-bpmn/components/EditDiv.vue +466 -0
  704. package/src/components/custom-bpmn/components/GenScope.vue +252 -0
  705. package/src/components/custom-bpmn/components/GlobalParamsTree.vue +61 -0
  706. package/src/components/custom-bpmn/components/Knowledges.vue +182 -0
  707. package/src/components/custom-bpmn/components/Login.vue +372 -0
  708. package/src/components/custom-bpmn/components/MessageQueue.vue +167 -0
  709. package/src/components/custom-bpmn/components/MetaSelect.vue +136 -0
  710. package/src/components/custom-bpmn/components/NumStatistic.vue +245 -0
  711. package/src/components/custom-bpmn/components/ObjectTransform.vue +454 -0
  712. package/src/components/custom-bpmn/components/OutPut.vue +412 -0
  713. package/src/components/custom-bpmn/components/ParamsMachining.vue +644 -0
  714. package/src/components/custom-bpmn/components/ParamsOutput.vue +130 -0
  715. package/src/components/custom-bpmn/components/ProcessAudit.vue +443 -0
  716. package/src/components/custom-bpmn/components/SingleMultipleFind.vue +637 -0
  717. package/src/components/custom-bpmn/components/TestDialog.vue +1068 -0
  718. package/src/components/custom-bpmn/img/chaxun.png +0 -0
  719. package/src/components/custom-bpmn/img/fasong.png +0 -0
  720. package/src/components/custom-bpmn/img/gengxin.png +0 -0
  721. package/src/components/custom-bpmn/img/jiagong.png +0 -0
  722. package/src/components/custom-bpmn/img/jiekou.png +0 -0
  723. package/src/components/custom-bpmn/img/shanchu.png +0 -0
  724. package/src/components/custom-bpmn/img/tongbu.png +0 -0
  725. package/src/components/custom-bpmn/img/xinzeng.png +0 -0
  726. package/src/components/custom-bpmn/img/xunhuanend.png +0 -0
  727. package/src/components/custom-bpmn/img/xunhuanstart.png +0 -0
  728. package/src/components/custom-bpmn/img/ywgz.png +0 -0
  729. package/src/components/custom-bpmn/index.js +1 -0
  730. package/src/components/custom-bpmn/palette.js +18 -0
  731. package/src/components/custom-bpmn/util.js +5 -0
  732. package/src/components/dashboard-create.js +17 -0
  733. package/src/components/entity-relation-diagram/Er.vue +360 -0
  734. package/src/components/entity-relation-diagram/renderErNode.js +32 -0
  735. package/src/components/expand/AddForm.vue +91 -0
  736. package/src/components/expand/AddFormItem.vue +150 -0
  737. package/src/components/filter/Filter.vue +739 -0
  738. package/src/components/filter/FilterItem.vue +516 -0
  739. package/src/components/hall/AppCollect.vue +190 -0
  740. package/src/components/hall/AppList.vue +513 -0
  741. package/src/components/hall/AppVisitRecord.vue +171 -0
  742. package/src/components/hall/Banner.vue +21 -0
  743. package/src/components/hall/ServiceCard.vue +204 -0
  744. package/src/components/hall/UserCard.vue +114 -0
  745. package/src/components/permiss/AddApi.vue +119 -0
  746. package/src/components/permiss/AddNoEntityApi.vue +131 -0
  747. package/src/components/permiss/AddSystemPermiss.vue +107 -0
  748. package/src/components/permiss/AllocateRole.vue +107 -0
  749. package/src/components/permiss/ApiSubList.vue +193 -0
  750. package/src/components/permiss/CommonRoleMenu.vue +631 -0
  751. package/src/components/permiss/FieldScope.vue +138 -0
  752. package/src/components/permiss/PermissManage.vue +96 -0
  753. package/src/components/permiss/RoleAppList.vue +52 -0
  754. package/src/components/permiss/RoleMenu.vue +547 -0
  755. package/src/components/permiss/RoleSubList.vue +263 -0
  756. package/src/components/permiss/jurisdiction.vue +425 -0
  757. package/src/components/process-healthcheck/HealthcheckChart.vue +529 -0
  758. package/src/components/process-healthcheck/HealthcheckRenderer.js +41 -0
  759. package/src/components/process-healthcheck/index.js +8 -0
  760. package/src/components/report/Config.vue +1654 -0
  761. package/src/components/report/Design.vue +3528 -0
  762. package/src/components/report/StatList.vue +234 -0
  763. package/src/components/right/EntityOtherSystemList.vue +73 -0
  764. package/src/components/right/SystemInterfaceList.vue +413 -0
  765. package/src/components/right/SystemList.vue +848 -0
  766. package/src/components/upLoad.vue +69 -0
  767. package/src/components/viewport/LookViewList.vue +28 -0
  768. package/src/components/viewport/ViewAddForm.vue +151 -0
  769. package/src/components/viewport/ViewDefineList.vue +53 -0
  770. package/src/components/viewport/ViewFiedList.vue +646 -0
  771. package/src/components/viewport/ViewScope.vue +112 -0
  772. package/src/components/wiki-workbench/WikiCites.vue +234 -0
  773. package/src/components/wiki-workbench/WikiIntake.vue +505 -0
  774. package/src/components/wiki-workbench/WikiJobs.vue +175 -0
  775. package/src/components/wiki-workbench/WikiRevisions.vue +208 -0
  776. package/src/components/wiki-workbench/WikiSpaceSettings.vue +137 -0
  777. package/src/components/wiki-workbench/codes.js +43 -0
  778. package/src/components/wiki-workbench/index.js +15 -0
  779. package/src/index.js +20 -0
  780. package/src/popup.js +86 -0
  781. package/src/public-components.js +8 -0
  782. package/src/remote.entry.js +42 -0
  783. package/src/route-components.js +8 -0
  784. package/src/system.component.index.js +3 -0
  785. package/src/system.component.js +46 -0
  786. package/src/system.component.lazy.js +68 -0
  787. package/src/system.component.visual.js +18 -0
  788. package/src/views/Add.vue +827 -0
  789. package/src/views/AiToolManager.vue +2372 -0
  790. package/src/views/App.vue +53 -0
  791. package/src/views/AppRoleSelect.vue +334 -0
  792. package/src/views/BatchEdit.vue +238 -0
  793. package/src/views/Bpmn.vue +1713 -0
  794. package/src/views/EntityCheckPage.vue +52 -0
  795. package/src/views/EntityDetailPage.vue +79 -0
  796. package/src/views/EntityEditPage.vue +13 -0
  797. package/src/views/EntitySubListPage.vue +44 -0
  798. package/src/views/EntityTreePage.vue +37 -0
  799. package/src/views/Error.vue +63 -0
  800. package/src/views/ExcelDesign.vue +3350 -0
  801. package/src/views/ExcelPreviewPage.vue +590 -0
  802. package/src/views/ExportFilePage.vue +19 -0
  803. package/src/views/ExportPage.vue +19 -0
  804. package/src/views/FormDesign.vue +2301 -0
  805. package/src/views/I18nWorkbench.vue +508 -0
  806. package/src/views/ImportFilePage.vue +19 -0
  807. package/src/views/ImportPage.vue +19 -0
  808. package/src/views/MEntityListPage.vue +83 -0
  809. package/src/views/MEntitySubListPage.vue +44 -0
  810. package/src/views/MinePage.vue +18 -0
  811. package/src/views/Module.vue +210 -0
  812. package/src/views/PageAttributeTreePage.vue +437 -0
  813. package/src/views/PageConfig.vue +259 -0
  814. package/src/views/Permission.vue +695 -0
  815. package/src/views/PersonalInfo.vue +693 -0
  816. package/src/views/QyWechat.vue +69 -0
  817. package/src/views/ReportFormListPage.vue +82 -0
  818. package/src/views/TaskPage.vue +199 -0
  819. package/src/views/WikiBinding.vue +740 -0
  820. package/src/views/client/AddForm.vue +64 -0
  821. package/src/views/client/AppMarket.vue +380 -0
  822. package/src/views/client/ClientIndex.vue +261 -0
  823. package/src/views/client/ClientModuleIndexPage.vue +35 -0
  824. package/src/views/client/CopySystem.vue +179 -0
  825. package/src/views/client/CreateAppFormItem.vue +285 -0
  826. package/src/views/client/CreateMethod.vue +114 -0
  827. package/src/views/client/InstallSystem.vue +295 -0
  828. package/src/views/client/ManageList.vue +178 -0
  829. package/src/views/client/OpenClientManage.vue +54 -0
  830. package/src/views/client/OpenSystemManage.vue +57 -0
  831. package/src/views/client/PageTabsCyclic.vue +121 -0
  832. package/src/views/client/SelfBuiltSystem.vue +497 -0
  833. package/src/views/client/StandardProduct.vue +325 -0
  834. package/src/views/client/SystemAppAccredit.vue +607 -0
  835. package/src/views/client/SystemAppManager.vue +967 -0
  836. package/src/views/client/SystemManager.vue +998 -0
  837. package/src/views/i18n/I18nAiTaskHistoryDialog.vue +173 -0
  838. package/src/views/i18n/I18nPublishDialog.vue +360 -0
  839. package/src/views/i18n/I18nTranslationList.vue +195 -0
  840. package/src/views/i18n/i18n-workbench-text.js +7 -0
  841. package/src/views/layout/CardList.vue +122 -0
  842. package/src/views/layout/Grid.vue +176 -0
  843. package/src/views/match/AddTargetField.vue +136 -0
  844. package/src/views/match/MatchAddFormItem.vue +87 -0
  845. package/src/views/match/conversion.vue +740 -0
  846. package/src/views/match/customize.vue +374 -0
  847. package/src/views/match/fieldMatch.vue +734 -0
  848. package/src/views/report/AddFormItem.vue +66 -0
  849. package/src/views/report/DesignReport.vue +1229 -0
  850. package/src/views/report/ReportTreeFind.vue +195 -0
  851. package/types/dept-find.d.ts +1 -0
  852. package/types/entity-tree-manage.d.ts +1 -0
  853. package/types/excel-preview-page.d.ts +1 -0
  854. package/types/header-nav.d.ts +1 -0
  855. package/types/index.d.ts +14 -0
  856. package/types/page-catalog.d.ts +1 -0
  857. package/types/popup.d.ts +2 -0
  858. package/types/report-form-list-page.d.ts +1 -0
  859. package/types/report-form-list.d.ts +1 -0
  860. package/types/route-components.d.ts +1 -0
  861. package/types/user-find.d.ts +1 -0
@@ -0,0 +1,2301 @@
1
+ <template>
2
+ <div class="container">
3
+ <!-- 头部 -->
4
+ <div class="report-header">
5
+ <div class="report-title">
6
+ <i class="report-back el-icon-arrow-left" @click="backConfirm"></i>
7
+ <span class="report-name">
8
+ <span v-if="!editName">{{form.NAME}}</span>
9
+ <el-input v-else v-model="form.NAME" size="small" @change="setFormName"></el-input>
10
+ <i v-if="!editName" class="el-icon-edit-outline" @click="editName=!editName"></i>
11
+ <i v-else class="el-icon-circle-check" @click="setFormName"></i>
12
+ </span>
13
+ <!-- <el-button type="primary" link icon="el-icon-setting">设置</el-button> -->
14
+ </div>
15
+ <div class="report-operate">
16
+ <el-dropdown v-if="languageFlag === '1'" @command="switchLanguage">
17
+ <el-button class="language__switch" type="small" plain>
18
+ <i class="language-icon epx-icon-diqiu"></i>
19
+ <span class="language-name">国际化({{ currentLanguageName }}) </span>
20
+ <i class="el-icon-arrow-down el-icon--right"></i>
21
+ </el-button>
22
+ <template v-slot:dropdown><el-dropdown-menu>
23
+ <el-dropdown-item v-for="language in languageList" :class="['language-item', {'is-active': language.id === currentLanguage}]" :key="language.id" :command="language.id">
24
+ {{ language.name }}</el-dropdown-item>
25
+ </el-dropdown-menu></template>
26
+ </el-dropdown>
27
+ <el-button type="primary" link @click="globalSetting=true" :style="{marginRight: '12px'}">全局设置</el-button>
28
+ <el-button size="default" @click="showPreviewDialog">预览</el-button>
29
+ <el-button size="default" type="primary" @click="saveEditor()">保存</el-button>
30
+ </div>
31
+ <el-drawer
32
+ title="全局设置"
33
+ width="380px"
34
+ v-model="globalSetting"
35
+ direction="rtl">
36
+ <div class="attribute-pane__content" v-if="globalSetting">
37
+ <p class="form__label" for="">文件名</p>
38
+ <textarea ref="titleEditor" class="title-editor"></textarea>
39
+ <p class="form__label" for="">打印纸张设置</p>
40
+
41
+ <epx-table-form class="form-content" ref="form" :fieldsConfigs="fieldsConfigs" v-model="formData" :column="1" label-align="left"></epx-table-form>
42
+ <p class="form__label" for="">水印设置</p>
43
+ <epx-table-form class="form-content" ref="form" :fieldsConfigs="watermarkFieldsConfigs" v-model="formData" :column="1" label-align="left" :metaId="$metaId" :fieldRelation="fieldRelation">
44
+ <template v-slot:default="{showLabel, fieldConfigs, metaId, ruleMetaId }">
45
+ <epx-table-form-item
46
+ v-if="fieldConfigs.attriName==='WATER_MARK_TEXT'"
47
+ :show-label="showLabel"
48
+ :label="fieldConfigs.attriLabel"
49
+ :metaId="metaId"
50
+ :ruleMetaId="ruleMetaId"
51
+ :fieldConfigs="fieldConfigs"
52
+ :rules="[{
53
+ required: fieldConfigs.isRequired==='1' && fieldConfigs.state!=='SEARCH',
54
+ message: `${fieldConfigs.attriLabel}不能为空`
55
+ }]">
56
+ <textarea v-show="globalSetting" ref="watermarkEditor" class="title-editor"></textarea>
57
+ </epx-table-form-item>
58
+ <epx-table-form-item
59
+ v-else
60
+ :show-label="showLabel"
61
+ :label="fieldConfigs.attriLabel"
62
+ :metaId="metaId"
63
+ :ruleMetaId="ruleMetaId"
64
+ :fieldConfigs="fieldConfigs"
65
+ :rules="[{
66
+ required: fieldConfigs.isRequired==='1' && fieldConfigs.state!=='SEARCH',
67
+ message: `${fieldConfigs.attriLabel}不能为空`
68
+ }]">
69
+ </epx-table-form-item>
70
+ </template>
71
+ </epx-table-form>
72
+ <div class="epx-form-item form-page__footer">
73
+ <label class="epx-form-item__label epx-form-item__label--left">页脚</label>
74
+ <div class="epx-form-item__content">
75
+ <el-button type="primary" block round @click="showPageFooterDialog=true">编辑页脚</el-button>
76
+ </div>
77
+ </div>
78
+
79
+ <div class="print-check">
80
+ <div class="print-check__head">
81
+ <p class="form__label print-check__title">自定义校验</p>
82
+ <el-button type="text" icon="el-icon-plus" @click="openCheckRule(-1)">新增</el-button>
83
+ </div>
84
+ <div class="print-check__hint">
85
+ <i class="el-icon-info"></i>
86
+ <span>任选数据源字段构建校验,所有<b>启用</b>的规则需同时返回 true 才允许打印。</span>
87
+ </div>
88
+ <div v-if="!printChecks.length" class="print-check__empty">暂无自定义校验,点击「新增」创建。</div>
89
+ <div v-else class="print-check__list">
90
+ <div v-for="(rule, index) in printChecks" :key="index" class="print-check__rule">
91
+ <div class="print-check__rule-top">
92
+ <el-switch v-model="rule.enable" @change="syncPrintCheck"></el-switch>
93
+ <span class="print-check__rule-name" :title="rule.name">{{ rule.name }}</span>
94
+ <i class="el-icon-edit print-check__act" title="编辑" @click="openCheckRule(index)"></i>
95
+ <i class="el-icon-delete print-check__act print-check__act--danger" title="删除" @click="deleteCheckRule(index)"></i>
96
+ </div>
97
+ <div class="print-check__rule-expr">{{ exprPreview(rule.expression) || '(空表达式)' }}</div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+
102
+ <div :style="{textAlign: 'center',position: 'fixed',bottom:0,width:'450px',zIndex:99,backgroundColor: '#fff'}">
103
+ <el-button size="default" @click="globalSetting=false">取消</el-button>
104
+ <el-button type="primary" size="default" @click="updateForm">保存</el-button>
105
+ </div>
106
+ </div>
107
+ </el-drawer>
108
+ <el-dialog title="编辑页脚" :width="pageSizePx + 40 + 'px'" v-model="showPageFooterDialog">
109
+ <div class="epx-form-item">
110
+ <label class="epx-form-item__label epx-form-item__label--left">添加页脚线</label>
111
+ <div class="epx-form-item__content">
112
+ <el-switch
113
+ :style="{marginTop: '6px'}"
114
+ v-model="formData.PAGE_FOOTER_LINE"
115
+ active-value="1"
116
+ inactive-value="0">
117
+ </el-switch>
118
+ </div>
119
+ </div>
120
+
121
+ <el-input
122
+ type="textarea"
123
+ :rows="3"
124
+ placeholder="请输入内容"
125
+ v-model="formData.PAGE_FOOTER">
126
+ </el-input>
127
+ <template v-slot:footer><span class="dialog-footer">
128
+ <el-button type="primary" @click="showPageFooterDialog=false">确 定</el-button>
129
+ </span></template>
130
+ </el-dialog>
131
+
132
+ <!-- 自定义校验:规则表单弹窗 -->
133
+ <el-dialog
134
+ :title="editingCheckIndex >= 0 ? '编辑自定义校验' : '新增自定义校验'"
135
+ v-model="checkRuleDialog"
136
+ width="480px"
137
+ :close-on-click-modal="false">
138
+ <div class="check-rule-form" v-if="checkRuleDialog">
139
+ <div class="check-rule-form__item">
140
+ <label class="check-rule-form__label is-required">规则名</label>
141
+ <el-input v-model="checkRuleForm.name" placeholder="如:未过期校验"></el-input>
142
+ </div>
143
+ <div class="check-rule-form__item">
144
+ <label class="check-rule-form__label is-required">表达式</label>
145
+ <div class="check-rule-form__expr" :class="{'is-empty': !checkRuleForm.expression}" @click="openFormulaDialog">
146
+ <span class="check-rule-form__expr-text">{{ exprPreview(checkRuleForm.expression) || '点击进入公式编辑器配置…' }}</span>
147
+ <i class="el-icon-edit-outline"></i>
148
+ </div>
149
+ <div class="check-rule-form__tip">点击上方区域打开公式编辑器,表达式需最终返回 true / false。</div>
150
+ </div>
151
+ <div class="check-rule-form__item">
152
+ <label class="check-rule-form__label">错误信息</label>
153
+ <el-input type="textarea" :rows="2" v-model="checkRuleForm.errorInfo" placeholder="校验不通过时的提示,如:单据已过期,禁止打印"></el-input>
154
+ </div>
155
+ </div>
156
+ <template v-slot:footer><span class="dialog-footer">
157
+ <el-button @click="checkRuleDialog=false">取 消</el-button>
158
+ <el-button type="primary" @click="confirmCheckRule">确 定</el-button>
159
+ </span></template>
160
+ </el-dialog>
161
+
162
+ <!-- 自定义校验:公式编辑器弹窗 -->
163
+ <el-dialog
164
+ v-model="formulaDialog"
165
+ fullscreen
166
+ append-to-body
167
+ :close-on-click-modal="false"
168
+ :show-close="false"
169
+ class="formula-editor-dialog">
170
+ <epx-formula-editor
171
+ v-if="formulaDialog"
172
+ :value="{ el: checkRuleForm.expression || '' }"
173
+ :param-list="checkParamList"
174
+ show-header
175
+ @confirm="confirmFormula"
176
+ @cancel="formulaDialog=false">
177
+ </epx-formula-editor>
178
+ </el-dialog>
179
+ </div>
180
+ <div class="container-inner">
181
+ <div class="data-source">
182
+ <el-tabs type="border-card">
183
+ <el-tab-pane label="数据源">
184
+ <div class="module-header">
185
+ <el-button size="small" type="primary" @click="addDataSource">新增</el-button>
186
+ <el-button size="small" type="primary" @click="editDataSource">编辑</el-button>
187
+ <el-button size="small" type="primary" @click="deleteDataSource">删除</el-button>
188
+ </div>
189
+ <div class="data-source__header">
190
+ <el-input v-model="searchText" size="default" placeholder="请输入"></el-input>
191
+ <div class="data-source-operate__footer">
192
+ <el-checkbox v-model="showLogField">日志字段</el-checkbox>
193
+ <el-checkbox v-model="showSubField">子集字段</el-checkbox>
194
+ </div>
195
+ </div>
196
+ <el-tree
197
+ class="data-source-tree"
198
+ ref="fieldTree"
199
+ :data="showDataSource"
200
+ :props="{label: 'name', children: 'children'}"
201
+ node-key="key"
202
+ :auto-expand-parent="false"
203
+ :expand-on-click-node="false"
204
+ :filter-node-method="filterNode"
205
+ render-after-expand
206
+ :check-on-click-node="true"
207
+ :highlight-current="true"
208
+ draggable
209
+ @node-drag-start="dragDataSource"
210
+ @node-drop="dropDataSource"
211
+ :allow-drop="allowDrop"
212
+ @node-click="clickDataSource"
213
+ >
214
+ <template v-slot="{ node, data }">
215
+ <span :style="{color: data.type==='meta' && data.relationType==='1' ? 'red' : '', 'user-select': 'none'}">
216
+ <i v-if="data.load" class="el-icon-loading" />
217
+ {{node.label}}
218
+ </span>
219
+ </template>
220
+ </el-tree>
221
+ <el-dialog title="添加数据源" v-model="dataSourceModal" width="70%">
222
+ <div class="add" v-if="dataSourceModal">
223
+ <li class="data-source-modal-item">
224
+ <p class="data-source-modal-header">数据源</p>
225
+ <div class="data-souce-modal-content data-souce-modal-content__base">
226
+ <div class="form-item">
227
+ <label>名称:</label>
228
+ <epx-table-form-item
229
+ v-model="dataSourceInfo.NAME"
230
+ :fieldConfigs="{attriName: 'NAME',dataType: 'text',attriLabel: '名称', state:'EDIT'}">
231
+ </epx-table-form-item>
232
+ </div>
233
+ <div class="form-item">
234
+ <label>对象:</label>
235
+ <epx-table-form-item :value="{id: dataSourceInfo.ENTITY, name: dataSourceInfo['ENTITY#']}" @change="v=> {
236
+ dataSourceInfo['ENTITY'] = v?v.id: ''
237
+ dataSourceInfo['ENTITY#']=v?v.name: ''
238
+ }"
239
+ :fieldConfigs="{attriName: 'ENTITY',dataType: 'object',attriLabel: '对象', codeKey: 'FM_ENTITY', state:'EDIT',flag: 'process_entity_find'}">
240
+ </epx-table-form-item>
241
+ </div>
242
+ <div class="form-item">
243
+ <label>对象视图:</label>
244
+ <epx-table-form-item :value="{id: dataSourceInfo.ENTITY_VIEW, name: dataSourceInfo['ENTITY_VIEW#']}" @change="v=> {
245
+ dataSourceInfo['ENTITY_VIEW'] = v?v.id: ''
246
+ dataSourceInfo['ENTITY_VIEW#']=v?v.name: ''
247
+ }"
248
+ :fieldConfigs="{attriName: 'ENTITY_VIEW',dataType: 'object',attriLabel: '对象视图', codeKey: 'FM_ENTITY_VIEW', state:'EDIT', scopeParams: [{field: 'ENTITY', values: dataSourceInfo.ENTITY}],flag: 'process_entity_view_find'}">
249
+ </epx-table-form-item>
250
+ </div>
251
+ <div class="form-item">
252
+ <label>关联对象:</label>
253
+ <div class="link-entity-trigger">
254
+ <el-popover trigger="click" placement="bottom-start" width="320" popper-class="link-entity-popper">
255
+ <template v-slot:reference><el-input :model-value="linkEntityLabel" placeholder="请选择" readonly suffix-icon="el-icon-arrow-down" size="default"></el-input></template>
256
+ <div v-if="linkEntityTree.length" class="link-entity-tree">
257
+ <el-tree
258
+ ref="linkEntityTree"
259
+ :data="linkEntityTree"
260
+ show-checkbox
261
+ check-strictly
262
+ node-key="flag"
263
+ :props="{label: 'title', children: 'childrens'}"
264
+ :default-checked-keys="linkEntityCheckedKeys"
265
+ @check="onLinkEntityCheck"
266
+ ></el-tree>
267
+ </div>
268
+ <div v-else class="link-entity-empty">{{ dataSourceInfo.ENTITY ? '无可选数据' : '请先选择对象' }}</div>
269
+ </el-popover>
270
+ </div>
271
+ </div>
272
+ </div>
273
+ </li>
274
+ <li class="data-source-modal-item">
275
+ <p class="data-source-modal-header">数据范围</p>
276
+ <div class="data-souce-modal-content">
277
+ <div class="data-source__scope">
278
+ <epx-form-scope v-model="dataSourceInfo.DATA_SCOPE" :metaId="dataSourceInfo.ENTITY" :metaViewId="dataSourceInfo.ENTITY_VIEW"
279
+ :fieldConfigs="{ attriName: 'DATA_SCOPE', attriLabel: '数据范围', state: 'EDIT',modeType: ['FIXED_VALUE', 'SYSTEM_VARIABLE', 'DEFINED_DYNAMIC', 'DEFINED'], defineDynamicParams }"></epx-form-scope>
280
+ </div>
281
+ <!-- <epx-filter ref="filter" :metaId="dataSourceInfo.ENTITY" :show-filter="false" :fields="fields" :init-condition="initCondition" :params.sync="searchParams"
282
+ :show-transform-btn="true" /> -->
283
+ </div>
284
+ </li>
285
+ <li class="data-source-modal-item">
286
+ <p class="data-source-modal-header">排序方式</p>
287
+ <div class="data-souce-modal-content">
288
+ <div class="sort-field" v-for="item in sortFields" :key="item.code">
289
+ {{item.text}}
290
+ <span class="sort-icon" @click="changeSort(item)">
291
+ <i :class="['el-icon-sort-down', {'active':item.sort==='desc'}]"></i>
292
+ <i :class="['el-icon-sort-up', , {'active':item.sort==='asc'}]"></i>
293
+ </span>
294
+ <i class="el-icon-close" @click="deleteSort(item)"></i>
295
+ </div>
296
+ <div class="sort-opera">
297
+ <el-popover ref="popover" trigger="click" :tabindex="1" popper-class="sort-opera-popover">
298
+ <template v-slot:reference><span class="sort-opera-item">
299
+ <i class="el-icon-plus"></i>
300
+ <font>添加排序字段</font>
301
+ </span></template>
302
+ <div class="filter-condition-opera__popper">
303
+ <epx-meta-field-library :metaId="dataSource.ENTITY" :fields="allFields" @select="addSortField"></epx-meta-field-library>
304
+ </div>
305
+ </el-popover>
306
+ </div>
307
+ </div>
308
+ </li>
309
+ <li class="data-source-modal-item">
310
+ <p class="data-source-modal-header">分组排序字段</p>
311
+ <div class="data-souce-modal-content">
312
+ <div class="sort-field" v-if="this.groupSortFields">
313
+ {{getText(this.groupSortFields)}}
314
+ <i class="el-icon-close" @click="deleteGroupSort(item)"></i>
315
+ </div>
316
+ <div class="sort-opera">
317
+ <el-popover ref="popover" trigger="click" :tabindex="1" popper-class="sort-opera-popover">
318
+ <template v-slot:reference><span class="sort-opera-item">
319
+ <i class="el-icon-plus"></i>
320
+ <font>添加分组排序字段</font>
321
+ </span></template>
322
+ <div class="filter-condition-opera__popper">
323
+ <epx-meta-field-library :metaId="dataSource.ENTITY" :fields="allFields" @select="addGroupSortField"></epx-meta-field-library>
324
+ </div>
325
+ </el-popover>
326
+ </div>
327
+ </div>
328
+ </li>
329
+ <li class="data-source-modal-item">
330
+ <p class="data-source-modal-header">主数据源</p>
331
+ <div class="data-souce-modal-content">
332
+ <div class="data-source__scope">
333
+ <el-switch v-model="dataSourceInfo.IS_MAIN_SOUCE" active-value='1' inactive-value='0'></el-switch>
334
+ </div>
335
+ </div>
336
+ </li>
337
+ <li class="data-source-modal-item">
338
+ <p class="data-source-modal-header">是否加载关联对象</p>
339
+ <div class="data-souce-modal-content">
340
+ <div class="data-source__scope">
341
+ <el-switch v-model="loadRelationEntity" active-value='1' inactive-value='0'></el-switch>
342
+ </div>
343
+ </div>
344
+ </li>
345
+ <li class="data-source-modal-item">
346
+ <p class="data-source-modal-header">数据源最大条数</p>
347
+ <div class="data-souce-modal-content">
348
+ <div class="data-source__scope">
349
+ <epx-table-form-item
350
+ v-model="dataSourceInfo.DATA_LIMIT"
351
+ :fieldConfigs="{attriName: 'DATA_LIMIT',dataType: 'num',attriLabel: '数据源最大条数', state:'EDIT'}">
352
+ </epx-table-form-item>
353
+ </div>
354
+ </div>
355
+ </li>
356
+ </div>
357
+ <template v-slot:footer><span class="dialog-footer">
358
+ <el-button @click="dataSourceModal = false">取 消</el-button>
359
+ <el-button type="primary" @click.stop="submitDataSource">确 定</el-button>
360
+ </span></template>
361
+ </el-dialog>
362
+ </el-tab-pane>
363
+ <el-tab-pane label="参数">
364
+ <div class="module-header">
365
+ <el-button size="small" type="primary" @click="addFormParam">新增</el-button>
366
+ </div>
367
+ <el-tree class="params-tree" :data="variableTree" :props="{label: 'name'}" :default-expand-all="true">
368
+ <template v-slot="{ node, data }">
369
+ <div class="params">
370
+ <span :draggable="data.type==='variable' || data.type==='process' ?'true': 'false'" @dragstart="e=>dragVariable(e, data, node)">{{node.label}}</span>
371
+ <span class="params-icon" v-if="data.type!=='folder' && data.type!=='variable' && data.value!=='id' && data.type!=='process'">
372
+ <i class="el-icon-edit" @click="editFormParam(data)"></i>
373
+ <i class="el-icon-close" @click="deleteFormParam(data)"></i>
374
+ </span>
375
+ </div>
376
+ </template>
377
+ </el-tree>
378
+ <el-dialog title="添加表单参数" v-model="formParamModal" width="400px">
379
+ <div class="data-souce-modal-content data-souce-modal-content__base">
380
+ <div class="form-item">
381
+ <label class="table-form-item-label">编号:</label>
382
+ <epx-table-form-item v-model="formParam.CODE"
383
+ :fieldConfigs="{attriName: 'CODE', attriLabel: '编号', dataType: 'text', state:'EDIT'}">
384
+ </epx-table-form-item>
385
+ </div>
386
+ <div class="form-item">
387
+ <label class="table-form-item-label">名称:</label>
388
+ <epx-table-form-item v-model="formParam.NAME"
389
+ :fieldConfigs="{attriName: 'NAME', attriLabel: '名称', dataType: 'text', state:'EDIT'}">
390
+ </epx-table-form-item>
391
+ </div>
392
+ </div>
393
+ <template v-slot:footer><span class="dialog-footer">
394
+ <el-button @click="formParamModal = false">取 消</el-button>
395
+ <el-button type="primary" @click.stop="saveFormParam">确 定</el-button>
396
+ </span></template>
397
+ </el-dialog>
398
+ </el-tab-pane>
399
+ </el-tabs>
400
+ </div>
401
+ <div class="editor-container" ref="editorContainer">
402
+ <div class="editor-inner">
403
+ <!-- <p class="form__label" for="">标题</p>
404
+ <textarea ref="titleEditor" class="title-editor"></textarea>
405
+ <p class="form__label" for="">内容</p> -->
406
+ <textarea ref="editor" class="editor" :style="{width: pageSizePx +'px'}"></textarea>
407
+ </div>
408
+ </div>
409
+ <el-dialog title="提交表单参数" width="520px" v-model="showFormParamsDialog">
410
+ <div>
411
+ <div class="input-params" v-for="param in formParams" :key="param.ID">
412
+ <label>{{param.NAME}}:</label>
413
+ <el-input type="middle" require="true" v-model="previewParams[param.CODE]"></el-input>
414
+ </div>
415
+ </div>
416
+ <el-button class="preview-btn" type="primary" @click="preview">预 览</el-button>
417
+ </el-dialog>
418
+
419
+ </div>
420
+ </div>
421
+ </template>
422
+
423
+ <script>
424
+ import { mapState, mapGetters } from 'vuex'
425
+ import { ADD_META } from '@epxing/core/src/store/actions'
426
+ export default {
427
+ name: 'epx-form-design',
428
+ navConfigs: {
429
+ flag: false
430
+ },
431
+ data () {
432
+ return {
433
+ content: '',
434
+ form: {},
435
+ formData: {},
436
+ editName: false,
437
+ globalSetting: false,
438
+ dataSource: [],
439
+ dataSourceModal: false,
440
+ setting: {
441
+ height: 500
442
+ },
443
+ dataSourceInfo: {},
444
+ linkEntityTree: [],
445
+ allFields: [],
446
+ fields: [],
447
+ defaultExpandKey: [],
448
+ defaultProps: {
449
+ children: 'children',
450
+ label: 'text'
451
+ },
452
+ initCondition: [],
453
+ searchParams: [],
454
+ formParam: {},
455
+ formParams: [],
456
+ formParamModal: false,
457
+ editFormParamId: '',
458
+ showFormParamsDialog: false,
459
+ previewParams: {},
460
+ pageSize: 'A4',
461
+ searchText: '',
462
+ showLogField: false,
463
+ showSubField: true,
464
+ formFunction: [],
465
+ currentLanguage: this.defaultLanguage,
466
+ languageContent: {},
467
+ showPageFooterDialog: false,
468
+ pageSizePx: 595,
469
+ fieldRelation: [],
470
+ watermarkFieldsConfigs: [],
471
+ processParams: [],
472
+ entityDataMap: {},
473
+ // 自定义校验规则列表 [{ name, expression, errorInfo, enable }]
474
+ printChecks: [],
475
+ checkRuleDialog: false,
476
+ editingCheckIndex: -1,
477
+ checkRuleForm: { name: '', expression: '', errorInfo: '', enable: true },
478
+ formulaDialog: false
479
+ }
480
+ },
481
+ computed: {
482
+ ...mapState({
483
+ systemVariableList: state => state.config.systemVariableList, // 当前导航菜单
484
+ showMenu: state => state.config.showMenu,
485
+ showAppNav: state => state.config.showAppNav
486
+ }),
487
+ ...mapGetters([
488
+ 'getMetaViewFields'
489
+ ]),
490
+ variableTree () {
491
+ return [
492
+ {
493
+ type: 'folder',
494
+ name: '自定义参数',
495
+ children: this.formParams.map(item => ({ ...item, name: item.NAME, value: item.CODE }))
496
+ },
497
+ {
498
+ type: 'folder',
499
+ name: '系统变量',
500
+ children: this.systemVariableList
501
+ },
502
+ {
503
+ value: 'processParams',
504
+ type: 'folder',
505
+ name: '流程参数',
506
+ children: this.processParams
507
+ }
508
+ ]
509
+ },
510
+ defineDynamicParams () {
511
+ return this.formParams.map(item => ({ id: '${' + item.CODE + '}', name: item.NAME }))
512
+ },
513
+ sortFields: {
514
+ get () {
515
+ let { SORT = '[]' } = this.dataSourceInfo
516
+ if (SORT === 'undefined' || SORT === '' || SORT === null) SORT = '[]'
517
+ return JSON.parse(SORT)
518
+ },
519
+ set (v) {
520
+ this.dataSourceInfo.SORT = JSON.stringify(v)
521
+ }
522
+ },
523
+ groupSortFields: {
524
+ get () {
525
+ let { GROUP_ORDER_FIELD = '' } = this.dataSourceInfo
526
+ if (GROUP_ORDER_FIELD === 'undefined' || GROUP_ORDER_FIELD === '' || GROUP_ORDER_FIELD === null) GROUP_ORDER_FIELD = ''
527
+ return GROUP_ORDER_FIELD
528
+ },
529
+ set (v) {
530
+ this.dataSourceInfo.GROUP_ORDER_FIELD = v
531
+ }
532
+ },
533
+ loadRelationEntity: {
534
+ get () {
535
+ return this.dataSourceInfo.LOAD_RELATION_ENTITY || '1'
536
+ },
537
+ set (v) {
538
+ this.dataSourceInfo.LOAD_RELATION_ENTITY = v
539
+ }
540
+ },
541
+ linkEntityCheckedKeys () {
542
+ const flags = this.dataSourceInfo.LINK_ENTITY
543
+ return flags ? flags.split(',').filter(Boolean) : []
544
+ },
545
+ linkEntityLabel () {
546
+ const keys = this.linkEntityCheckedKeys
547
+ if (!keys.length) return ''
548
+ const titles = []
549
+ const walk = (nodes) => {
550
+ if (!nodes) return
551
+ nodes.forEach(node => {
552
+ if (keys.includes(node.flag)) titles.push(node.title)
553
+ if (node.childrens) walk(node.childrens)
554
+ })
555
+ }
556
+ walk(this.linkEntityTree)
557
+ // 关联对象树异步加载,未就绪时回退到已保存的名称
558
+ return titles.length ? titles.join(',') : (this.dataSourceInfo['LINK_ENTITY#'] || '')
559
+ },
560
+ showDataSource () {
561
+ const formatFields = (fields) => {
562
+ return fields.filter(item => {
563
+ if (!this.showLogField && ['ID', 'LOG_C_TIME', 'LOG_C_USER', 'LOG_U_TIME', 'LOG_U_USER'].includes(item.code)) {
564
+ return false
565
+ }
566
+ if (!this.showSubField && (item.relationType === '1' || item.isSub)) {
567
+ return false
568
+ }
569
+ if (item.children) {
570
+ item.children = formatFields(item.children)
571
+ }
572
+ return true
573
+ })
574
+ }
575
+
576
+ return this.dataSource.map(item => {
577
+ if (this.entityDataMap[item.id]) {
578
+ const fields = this.$_.cloneDeep(this.entityDataMap[item.id])
579
+ item.children = formatFields(fields)
580
+ }
581
+ return item
582
+ })
583
+ },
584
+ languageFlag () {
585
+ const { LANGUAGE_FLAG: languageFlag } = this.clientConfig
586
+ return languageFlag
587
+ },
588
+ defaultLanguage () {
589
+ const { LANGUAGE_DEFAULT: defaultLanguage } = this.clientConfig
590
+ return defaultLanguage
591
+ },
592
+ currentLanguageName () {
593
+ const language = this.languageList.find(item => item.id === this.currentLanguage) || {}
594
+ return language.name || '默认'
595
+ },
596
+ languageList () {
597
+ const { LANGUAGES: languages = '', 'LANGUAGES#': languageNames = '' } = this.clientConfig
598
+ // 获取当前语言
599
+ if (!languages) return []
600
+ const languageIdList = languages.split(',')
601
+ const languageNameList = languageNames.split(',')
602
+ const languageList = languageIdList.map((item, index) => ({ id: item, name: languageNameList[index] }))
603
+ return languageList
604
+ },
605
+ getText () {
606
+ return field => {
607
+ // 查寻字段名
608
+ const getLabel = (arr) => {
609
+ for (const item of arr) {
610
+ if ((item.linkCode || item.code) === field) return item.text
611
+ if (item.children) {
612
+ const label = getLabel(item.children)
613
+ if (label) return label
614
+ }
615
+ }
616
+ }
617
+ return getLabel(this.allFields) || field
618
+ }
619
+ },
620
+ // 自定义校验公式编辑器的参数库:只取主数据源(无主则取第一个),按 数据源 → 对象 → 字段 组织成树。
621
+ // getEntityMetaView 返回的 children 是一层 type==='meta' 节点的扁平数组:
622
+ // 无 linkFlag 的 meta 节点为主对象(其 children 即主对象字段),有 linkFlag 的为关联对象。
623
+ // 变量规则:主对象字段 token = 字段编号;关联对象字段 token = 关联标识符大写_字段编号。
624
+ checkParamList () {
625
+ const source = this.dataSource.find(item => item.isMain) || this.dataSource[0]
626
+ if (!source || !source.children || !source.children.length) return []
627
+ // 去掉可能存在的链路前缀(如 ROLE|USER_ID 取 USER_ID)
628
+ const bare = (v) => String(v == null ? '' : v).split('|').pop()
629
+ const toField = (f, prefix) => ({
630
+ code: prefix ? `${prefix}_${bare(f.code)}` : bare(f.code),
631
+ text: f.text || f.name,
632
+ type: f.dataType || 'string'
633
+ })
634
+ const objects = []
635
+ source.children.forEach(node => {
636
+ if (node.type !== 'meta') return
637
+ const flag = bare(node.linkFlag || node.flag).toUpperCase()
638
+ // 只取字段叶子(排除嵌套的更深层关联 meta 节点)
639
+ const leaves = (node.children || []).filter(f => f.type !== 'meta' && bare(f.code))
640
+ if (!leaves.length) return
641
+ // type:'object' 让编辑器把对象渲染为可展开的嵌套节点
642
+ if (flag) {
643
+ objects.push({ code: flag, text: node.text || node.name, type: 'object', children: leaves.map(f => toField(f, flag)) })
644
+ } else {
645
+ // 主对象置于最前
646
+ objects.unshift({ code: node.code || 'MAIN', text: node.text || node.name, type: 'object', children: leaves.map(f => toField(f, '')) })
647
+ }
648
+ })
649
+ if (!objects.length) return []
650
+ return [{ code: source.sourceId || source.key, text: source.name, children: objects }]
651
+ }
652
+ },
653
+ watch: {
654
+ globalSetting (v) {
655
+ if (v) {
656
+ this.$nextTick(() => {
657
+ this.initTitleEditor()
658
+ setTimeout(() => {
659
+ this.initWatermarkEditor()
660
+ }, 500)
661
+ })
662
+ }
663
+ },
664
+ 'dataSourceInfo.ENTITY': {
665
+ handler (v) {
666
+ if (v) {
667
+ const meta = this.metas[v]
668
+ if (!meta) {
669
+ this.$store.dispatch({ // 加回调
670
+ type: ADD_META,
671
+ metaId: v
672
+ })
673
+ .then(data => {
674
+ if (data) {
675
+ const relations = data.getRelations()
676
+ this.getAllFields(relations)
677
+ }
678
+ })
679
+ } else {
680
+ const relations = meta.getRelations()
681
+ this.getAllFields(relations)
682
+ }
683
+ this.getLinkEntityTree(v)
684
+ } else {
685
+ this.linkEntityTree = []
686
+ }
687
+ },
688
+ deep: true
689
+ },
690
+ 'formData.WATER_MARK_TYPE' (v) {
691
+ if (v === 'text') {
692
+ this.$nextTick(() => {
693
+ this.initWatermarkEditor()
694
+ })
695
+ }
696
+ },
697
+ dataSource: {
698
+ handler (v) {
699
+ // 更新TinyMCE编辑器的dataSource参数
700
+ if (this.editor && this.editor.options) {
701
+ const newDataSource = [...this.dataSource, {
702
+ type: 'variable',
703
+ name: '系统变量',
704
+ children: this.systemVariableList
705
+ }, {
706
+ type: 'variable',
707
+ name: '表单函数',
708
+ children: this.formFunction.map(item => ({ name: item.name, code: '#{' + item.code + '}' }))
709
+ },
710
+ {
711
+ type: 'process',
712
+ name: '流程参数',
713
+ children: this.processParams.map(item => ({ name: item.name, code: item.id }))
714
+ }]
715
+
716
+ // 使用TinyMCE 5的options API
717
+ this.editor.options.set('dataSource', newDataSource)
718
+
719
+ // 调用插件更新方法
720
+ this.updateTinyMCEDataSource()
721
+ }
722
+ },
723
+ deep: true
724
+ },
725
+ searchText (v) {
726
+ if (this.timer) {
727
+ this.timer = null
728
+ clearTimeout(this.timer)
729
+ }
730
+ this.timer = setTimeout(() => {
731
+ this.$refs.fieldTree.filter(this.searchText)
732
+ clearTimeout(this.timer)
733
+ this.timer = null
734
+ }, 200)
735
+ },
736
+ showLogField () {
737
+ this.$nextTick(() => {
738
+ this.$refs.fieldTree.filter(this.searchText)
739
+ })
740
+ },
741
+ showSubField () {
742
+ this.$nextTick(() => {
743
+ this.$refs.fieldTree.filter(this.searchText)
744
+ })
745
+ }
746
+ },
747
+ methods: {
748
+ // 更新TinyMCE插件的数据源
749
+ updateTinyMCEDataSource () {
750
+ this.$nextTick(() => {
751
+ // 方式1:通过插件返回的API
752
+ if (this.editor && this.editor.plugins && this.editor.plugins.data && this.editor.plugins.data.updateDataSource) {
753
+ this.editor.plugins.data.updateDataSource()
754
+ return
755
+ }
756
+
757
+ // 方式2:通过编辑器实例直接调用
758
+ if (this.editor && this.editor.updateDataSource) {
759
+ this.editor.updateDataSource()
760
+ }
761
+ })
762
+ },
763
+ backConfirm () {
764
+ this.saveContent()
765
+ let changeFlag = this.content !== this.initContent
766
+ if (!changeFlag) {
767
+ for (const key in this.languageContent) {
768
+ if (this.languageContent[key] !== this.initLanguageContent[key]) {
769
+ changeFlag = true
770
+ break
771
+ }
772
+ }
773
+ }
774
+ if (changeFlag) {
775
+ this.$confirm('检测到您当前的报表配置还未进行保存操作,点击保存按钮即可执行保存操作', '操作提示', {
776
+ confirmButtonText: '保存',
777
+ cancelButtonText: '不保存',
778
+ type: 'warning'
779
+ }).then(() => {
780
+ this.saveEditor(this.backPage)
781
+ })
782
+ .catch(() => {
783
+ this.backPage()
784
+ })
785
+ } else {
786
+ this.backPage()
787
+ }
788
+ },
789
+ switchLanguage (v) {
790
+ if (this.currentLanguage === v) return
791
+ this.$confirm('切换语种后,进入该语种报表内容配置页面,当前页面的配置内容可通过切换再次展示,继续操作请点击确认。', '操作提示', {
792
+ confirmButtonText: '确定',
793
+ cancelButtonText: '取消',
794
+ type: 'warning'
795
+ }).then(() => {
796
+ this.saveContent()
797
+ this.currentLanguage = v
798
+ setTimeout(() => {
799
+ this.initEditor(v === this.defaultLanguage ? this.content || '' : this.languageContent[v] || '')
800
+ }, 10)
801
+ })
802
+ },
803
+ saveContent () {
804
+ const editorContent = this.ensureI18nKeys(this.editor.getContent())
805
+ if (!this.currentLanguage || this.currentLanguage === this.defaultLanguage) {
806
+ this.content = editorContent
807
+ } else {
808
+ this.languageContent[this.currentLanguage] = editorContent
809
+ }
810
+ },
811
+ ensureI18nKeys (content) {
812
+ if (!content) return content
813
+ const document = new window.DOMParser().parseFromString(content, 'text/html')
814
+ const textAttributes = ['title', 'placeholder', 'alt', 'aria-label', 'data-message', 'data-error']
815
+ const pureBinding = /^(?:\$\{[^}]+}|#\{[^}]+}|\{\{[^}]+}}|\{[A-Za-z0-9_.-]+})$/
816
+ // 用 RegExp 构造器写字符串转义(而非正则字面量 /[A-Za-z㐀-鿿]/)单纯是绕开 Edit
817
+ // 工具链对 \uXXXX 正则字面量转义会被中间层归一化成实际宽字符的问题,效果等价;提到循环外
818
+ // 只编译一次,避免每个 DOM 节点都重新编译一次正则。
819
+ const hasLetter = new RegExp('[A-Za-z\\u3400-\\u9fff]')
820
+ const isTranslatable = value => {
821
+ const text = (value || '').trim()
822
+ return text && !pureBinding.test(text) && hasLetter.test(text)
823
+ }
824
+ const stablePath = element => {
825
+ const path = []
826
+ let current = element
827
+ while (current && current !== document.body) {
828
+ const tag = current.tagName.toLowerCase()
829
+ const siblings = Array.from(current.parentElement.children)
830
+ .filter(item => item.tagName === current.tagName)
831
+ path.unshift(tag + '_' + (siblings.indexOf(current) + 1))
832
+ current = current.parentElement
833
+ }
834
+ return path.join('.')
835
+ }
836
+ const stableHash = value => {
837
+ let hash = 2166136261
838
+ for (let index = 0; index < value.length; index++) {
839
+ hash ^= value.charCodeAt(index)
840
+ hash = Math.imul(hash, 16777619)
841
+ }
842
+ return (hash >>> 0).toString(36)
843
+ }
844
+ Array.from(document.body.querySelectorAll('*')).forEach(element => {
845
+ if (element.closest('script,style,noscript,template,[data-i18n-ignore]')) return
846
+ const hasText = Array.from(element.childNodes)
847
+ .some(node => node.nodeType === 3 && isTranslatable(node.textContent))
848
+ const hasTextAttribute = textAttributes
849
+ .some(attribute => element.hasAttribute(attribute) && isTranslatable(element.getAttribute(attribute)))
850
+ if ((hasText || hasTextAttribute) &&
851
+ !element.hasAttribute('data-i18n-key') &&
852
+ !element.id &&
853
+ !element.getAttribute('name')) {
854
+ element.setAttribute('data-i18n-key', 'node_' + stableHash(stablePath(element)))
855
+ }
856
+ })
857
+ return document.body.innerHTML
858
+ },
859
+ filterNode (value, data) {
860
+ if (!value) return true
861
+ return data.text && data.text.indexOf(value) !== -1
862
+ },
863
+ saveEditor (cb) {
864
+ this.saveContent()
865
+ const { id } = this.$query
866
+ this.$http.update({
867
+ entityId: this.$metaId,
868
+ 'bean.ID': id,
869
+ // 'bean.TITLE': this.titleEditor.getContent(),
870
+ 'bean.CONTENT': this.content,
871
+ 'bean.LANGUAGE_PARAM': {
872
+ CONTENT: this.languageContent
873
+ }
874
+ })
875
+ .then(() => {
876
+ this.$message.success('保存成功')
877
+ // this.backPage({ reload: true })
878
+ this.initContent = this.content
879
+ this.initLanguageContent = this.$_.cloneDeep(this.languageContent)
880
+ cb && cb()
881
+ }).catch(err => {
882
+ this.$message.error(err.message || '操作失败')
883
+ })
884
+ },
885
+ getDataSource () {
886
+ const { id } = this.$query
887
+ this.$http.list({
888
+ entityId: 'FM_FORM_SOURCE',
889
+ 'scope.FORM': id
890
+ })
891
+ .then(async data => {
892
+ this.dataSource = data.entitys.map(item => ({ key: item.ID, id: item.ENTITY, name: item.NAME, loadRelationEntity: item.LOAD_RELATION_ENTITY, isMain: item.IS_MAIN_SOUCE === '1', root: true, sourceId: item.ID }))
893
+ for (let index = 0; index < data.entitys.length; index++) {
894
+ const item = data.entitys[index]
895
+ // 获取对应的metaId
896
+ if (item.ENTITY) {
897
+ if (!this.entityDataMap[item.ENTITY]) {
898
+ this.$store.dispatch({ type: ADD_META, metaId: item.ENTITY })
899
+ this.dataSource[index] = { ...this.dataSource[index], load: true }
900
+ const entityData = await this.getAttribute(item, { id: item.ENTITY, name: item.NAME, root: true, sourceId: item.ID })
901
+ this.entityDataMap[item.ENTITY] = entityData
902
+ this.dataSource[index] = { ...this.dataSource[index], children: entityData, load: false }
903
+ } else {
904
+ this.dataSource[index] = { ...this.dataSource[index], children: this.entityDataMap[item.ENTITY] }
905
+ }
906
+ }
907
+ }
908
+ if (this.editor) {
909
+ const content = this.editor.getContent()
910
+ if (content) this.content = content
911
+ }
912
+ // 添加系统变量
913
+ this.initEditor()
914
+ })
915
+ },
916
+ getAttribute (item, source) {
917
+ const { ENTITY, ENTITY_VIEW, LOAD_RELATION_ENTITY } = item
918
+ return this.$http.get({
919
+ action: 'getEntityMetaView',
920
+ entityId: 'FM_ENTITY_VIEW',
921
+ metaId: ENTITY,
922
+ metaViewId: ENTITY_VIEW,
923
+ allSub: LOAD_RELATION_ENTITY !== '0'
924
+ })
925
+ .then(data => {
926
+ const formatData = (arr) => {
927
+ arr.forEach(item => {
928
+ item.field = item.type === 'meta' ? item.linkFlag : (item.linkCode || item.code)
929
+ item.relationSort = item.relationType
930
+ if (!item.codeKey) item.codeKey = item.relatedEntity
931
+ item.id = item.field
932
+ item.key = item.field + '_' + this.$util.genId()
933
+ item.name = item.text
934
+ item.meta = item.meta ? item.meta.id : ''
935
+ if (item.type === 'meta' && item.relationType === '1') item.isSub = true
936
+ if (item.children) formatData(item.children)
937
+ })
938
+ }
939
+ formatData(data)
940
+ return data
941
+ })
942
+ },
943
+ getFieldRelation () {
944
+ this.$http.$post({
945
+ action: 'getFieldRelation',
946
+ entityId: 'FM_ATTRIBUTE_RELATION',
947
+ metaId: this.$metaId
948
+ })
949
+ .then(data => {
950
+ this.fieldRelation = data.field_relation
951
+ })
952
+ },
953
+ getFieldConfigs () {
954
+ this.$FieldFactory.createFields({
955
+ meta: this.$meta,
956
+ metaId: this.$metaId,
957
+ pageType: 'EDIT',
958
+ 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']
959
+ })
960
+ .then(data => {
961
+ this.fieldsConfigs = [...data]
962
+ })
963
+ this.$FieldFactory.createFields({
964
+ meta: this.$meta,
965
+ metaId: this.$metaId,
966
+ pageType: 'EDIT',
967
+ defaultFieldConfigs: {
968
+ WATER_MARK_TYPE: {
969
+ value: 'none'
970
+ },
971
+ WATER_MARK_LEAN: {
972
+ value: 40
973
+ },
974
+ WATER_MARK_DENSITY: {
975
+ value: '2'
976
+ }
977
+ },
978
+ fields: [{ attriName: 'WATER_MARK_TYPE', value: 'none' }, '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']
979
+ })
980
+ .then(data => {
981
+ this.watermarkFieldsConfigs = [...data]
982
+ })
983
+ },
984
+ setFormName () {
985
+ this.$http.update({
986
+ entityId: 'FM_FORM',
987
+ 'bean.ID': this.form.ID,
988
+ 'bean.NAME': this.form.NAME
989
+ })
990
+ .then(() => {
991
+ this.editName = false
992
+ })
993
+ .catch(err => {
994
+ this.$message.error(err.errorText)
995
+ })
996
+ },
997
+ updateForm () {
998
+ const params = {}
999
+ this.syncPrintCheck()
1000
+ this.formData.TITLE = this.titleEditor.getContent()
1001
+ if (this.watermarkEditor) this.formData.WATER_MARK_TEXT = this.watermarkEditor.getContent()
1002
+ for (const key in this.formData) {
1003
+ if (!key.includes('#')) {
1004
+ params[`bean.${key}`] = this.formData[key]
1005
+ }
1006
+ }
1007
+ this.$http.update({
1008
+ entityId: 'FM_FORM',
1009
+ ...params
1010
+ })
1011
+ .then(() => {
1012
+ this.globalSetting = false
1013
+ this.getProcessParams()
1014
+ this.$message.success('保存成功')
1015
+ })
1016
+ .catch(err => {
1017
+ this.$message.error(err.errorText)
1018
+ })
1019
+ },
1020
+ getFormContent () {
1021
+ const { id } = this.$query
1022
+ this.$http.get({
1023
+ entityId: this.$metaId,
1024
+ id
1025
+ })
1026
+ .then(data => {
1027
+ if (data && data.data) {
1028
+ this.form = { ...data.data }
1029
+ this.formData = { ...data.data }
1030
+ const defaultValue = {
1031
+ WATER_MARK_TYPE: 'none',
1032
+ WATER_MARK_LEAN: 40,
1033
+ WATER_MARK_DENSITY: '2'
1034
+ }
1035
+ for (const key in defaultValue) {
1036
+ if (!this.formData[key]) {
1037
+ this.formData[key] = defaultValue[key]
1038
+ }
1039
+ }
1040
+ this.parsePrintCheck()
1041
+ this.content = data.data.CONTENT
1042
+ this.languageContent = data.data.LANGUAGE_PARAM ? data.data.LANGUAGE_PARAM.CONTENT || {} : {}
1043
+ this.initContent = data.data.CONTENT
1044
+ this.initLanguageContent = this.$_.cloneDeep(this.languageContent)
1045
+ this.getPagePx()
1046
+ }
1047
+ })
1048
+ },
1049
+ async initTitleEditor () {
1050
+ const that = this
1051
+ if (this.titleEditor) this.titleEditor.remove()
1052
+ const editor = this.$refs.titleEditor
1053
+ await this.$util.usePlugin('tinymce')
1054
+ globalThis.tinymce.init({
1055
+ target: editor,
1056
+ height: 80,
1057
+ autoresize_min_height: 80,
1058
+ plugins: 'data',
1059
+ menubar: false,
1060
+ toolbar: false,
1061
+ contextmenu: 'data',
1062
+ language: 'zh_CN',
1063
+ dataSource: this.dataSource,
1064
+ statusbar: false,
1065
+ content_style: 'p {margin: 2px 0}',
1066
+ promotion: false
1067
+ })
1068
+ .then(editors => {
1069
+ this.titleEditor = editors[0]
1070
+ if (this.titleEditor) {
1071
+ const frame = this.titleEditor.iframeElement.contentWindow
1072
+ const editorContainer = frame.document.querySelector('body')
1073
+ editorContainer.ondragover = (e) => {
1074
+ e.preventDefault()
1075
+ }
1076
+ editorContainer.ondrop = (e) => {
1077
+ const type = e.dataTransfer.getData('type')
1078
+ if (type === 'variable' || type === 'process') {
1079
+ const variableCode = e.dataTransfer.getData('variableCode')
1080
+ const variableName = e.dataTransfer.getData('variableName')
1081
+ const span = document.createElement('span')
1082
+ span.contentEditable = 'false'
1083
+ span.setAttribute('data-name', 'variable')
1084
+ span.setAttribute('data-value', variableCode)
1085
+ span.innerHTML = `<label>{${variableName}}</label>`
1086
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
1087
+ e.target.innerHTML = ''
1088
+ }
1089
+ e.target.appendChild(span)
1090
+ } else {
1091
+ const fieldId = e.dataTransfer.getData('fieldId')
1092
+ const sourceName = e.dataTransfer.getData('sourceName') || ''
1093
+ const fieldName = e.dataTransfer.getData('fieldName')
1094
+ if (fieldId) {
1095
+ const span = document.createElement('span')
1096
+ span.contentEditable = 'false'
1097
+ span.setAttribute('data-name', 'datasource')
1098
+ span.setAttribute('data-datasource', sourceName)
1099
+ span.setAttribute('data-field', fieldId)
1100
+ span.innerHTML = `<label>{${fieldName}}</label>`
1101
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
1102
+ e.target.innerHTML = ''
1103
+ }
1104
+ e.target.appendChild(span)
1105
+ } else {
1106
+ return true
1107
+ }
1108
+ }
1109
+ const value = this.titleEditor.getContent()
1110
+ that.formData = { ...that.formData, TITLE: value }
1111
+ }
1112
+ this.titleEditor.setContent(this.formData.TITLE || '')
1113
+ }
1114
+ })
1115
+ },
1116
+ async initWatermarkEditor () {
1117
+ const that = this
1118
+ const editor = this.$refs.watermarkEditor
1119
+ if (!editor) return
1120
+ if (this.watermarkEditor) this.watermarkEditor.remove()
1121
+ await this.$util.usePlugin('tinymce')
1122
+ globalThis.tinymce.init({
1123
+ target: editor,
1124
+ height: 80,
1125
+ autoresize_min_height: 80,
1126
+ plugins: 'data',
1127
+ menubar: false,
1128
+ toolbar: false,
1129
+ contextmenu: 'data',
1130
+ language: 'zh_CN',
1131
+ dataSource: [...this.dataSource, {
1132
+ type: 'variable',
1133
+ name: '系统变量',
1134
+ children: this.systemVariableList
1135
+ }],
1136
+ statusbar: false,
1137
+ content_style: 'p {margin: 2px 0}',
1138
+ promotion: false
1139
+ })
1140
+ .then(editors => {
1141
+ this.watermarkEditor = editors[0]
1142
+ if (this.watermarkEditor) {
1143
+ const frame = this.titleEditor.iframeElement.contentWindow
1144
+ const editorContainer = frame.document.querySelector('body')
1145
+ editorContainer.ondragover = (e) => {
1146
+ e.preventDefault()
1147
+ }
1148
+ editorContainer.ondrop = (e) => {
1149
+ const type = e.dataTransfer.getData('type')
1150
+ if (type === 'variable' || type === 'process') {
1151
+ const variableCode = e.dataTransfer.getData('variableCode')
1152
+ const variableName = e.dataTransfer.getData('variableName')
1153
+ const span = document.createElement('span')
1154
+ span.contentEditable = 'false'
1155
+ span.setAttribute('data-name', 'variable')
1156
+ span.setAttribute('data-value', variableCode)
1157
+ span.innerHTML = `<label>{${variableName}}</label>`
1158
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
1159
+ e.target.innerHTML = ''
1160
+ }
1161
+ e.target.appendChild(span)
1162
+ } else {
1163
+ const fieldId = e.dataTransfer.getData('fieldId')
1164
+ const sourceName = e.dataTransfer.getData('sourceName') || ''
1165
+ const fieldName = e.dataTransfer.getData('fieldName')
1166
+ if (fieldId) {
1167
+ const span = document.createElement('span')
1168
+ span.contentEditable = 'false'
1169
+ span.setAttribute('data-name', 'datasource')
1170
+ span.setAttribute('data-datasource', sourceName)
1171
+ span.setAttribute('data-field', fieldId)
1172
+ span.innerHTML = `<label>{${sourceName}.${fieldName}}</label>`
1173
+ if (e.target.innerHTML === '<br data-mce-bogus="1">') {
1174
+ e.target.innerHTML = ''
1175
+ }
1176
+ e.target.appendChild(span)
1177
+ const value = this.watermarkEditor.getContent()
1178
+ that.formData = { ...that.formData, WATER_MARK_TEXT: value }
1179
+ } else {
1180
+ return true
1181
+ }
1182
+ }
1183
+ }
1184
+ this.watermarkEditor.setContent(this.formData.WATER_MARK_TEXT || '')
1185
+ }
1186
+ })
1187
+ },
1188
+ async initEditor (content) {
1189
+ const that = this
1190
+ const { FORM_EXTEND_FONTS = '' } = this.clientConfig
1191
+ if (this.editor) this.editor.remove()
1192
+ let fontsizeFormats = ''
1193
+ for (let i = 1; i <= 50; i++) {
1194
+ fontsizeFormats += i + 'pt '
1195
+ }
1196
+ const editor = this.$refs.editor
1197
+ await this.$util.usePlugin('tinymce')
1198
+ globalThis.tinymce.init({
1199
+ target: editor,
1200
+ plugins: 'table data paper pagebreak image code br supercode',
1201
+ toolbar: ['undo redo | styles | bold italic underline strikethrough | lineheight | alignleft aligncenter alignright alignjustify | firstlineindent | table | paper | pagebreak | image',
1202
+ 'fontfamily | fontsize | forecolor backcolor supercode'
1203
+ ],
1204
+ setup: function (editor) {
1205
+ editor.on('init', () => {
1206
+ editor.formatter.register('firstlineindent', {
1207
+ selector: 'p,h1,h2,h3,h4,h5,h6,div,td,th,li',
1208
+ styles: { 'text-indent': '2em' }
1209
+ })
1210
+ })
1211
+ editor.ui.registry.addToggleButton('firstlineindent', {
1212
+ icon: 'indent',
1213
+ tooltip: '首行缩进',
1214
+ onAction: function (api) {
1215
+ editor.formatter.toggle('firstlineindent')
1216
+ api.setActive(editor.formatter.match('firstlineindent'))
1217
+ },
1218
+ onSetup: function (api) {
1219
+ const changed = editor.formatter.formatChanged('firstlineindent', (state) => api.setActive(state))
1220
+ return () => changed.unbind()
1221
+ }
1222
+ })
1223
+ },
1224
+ contextmenu: 'link image imagetools table spellchecker copy data',
1225
+ menu: {
1226
+ view: { title: '视图', items: 'visualaid code paper' },
1227
+ insert: { title: '插入', items: 'image table br' }
1228
+ },
1229
+ promotion: false,
1230
+ language: 'zh_CN',
1231
+ supercode: {
1232
+ theme: 'chrome',
1233
+ fontSize: 14,
1234
+ wrap: true,
1235
+ autocomplete: true,
1236
+ iconName: 'sourcecode',
1237
+ language: 'html',
1238
+ shortcut: true,
1239
+ aceCss: 'your custom CSS rules or fonts for ace',
1240
+ fontFamily: 'Monospace'
1241
+ },
1242
+ dataSource: [...this.dataSource, {
1243
+ type: 'variable',
1244
+ name: '系统变量',
1245
+ children: this.systemVariableList
1246
+ }, {
1247
+ type: 'variable',
1248
+ name: '表单函数',
1249
+ children: this.formFunction.map(item => ({ name: item.name, code: '#{' + item.code + '}' }))
1250
+ },
1251
+ {
1252
+ type: 'process',
1253
+ name: '流程参数',
1254
+ children: this.processParams.map(item => ({ name: item.name, code: item.id }))
1255
+ }],
1256
+ branding: false,
1257
+ images_upload_handler: (blobInfo) => {
1258
+ var file = blobInfo.blob()
1259
+ return this.$http.save({
1260
+ action: 'upload',
1261
+ file: file
1262
+ }, {
1263
+ requestType: 'formData'
1264
+ })
1265
+ .then(data => {
1266
+ if (data && data.bean) {
1267
+ return this.$util.getFileUrl(data.bean, '', false)
1268
+ }
1269
+ })
1270
+ },
1271
+ file_picker_callback: function (callback, value, meta) {
1272
+ var input = document.createElement('input')
1273
+ input.setAttribute('type', 'file')
1274
+ input.click()
1275
+ input.onchange = function (evt) {
1276
+ const file = this.files[0]
1277
+ that.$http.save({
1278
+ action: 'upload',
1279
+ file: file
1280
+ }, {
1281
+ requestType: 'formData'
1282
+ })
1283
+ .then(data => {
1284
+ if (data && data.bean) {
1285
+ callback(that.$util.getFileUrl(data.bean, '', false), { text: file.name })
1286
+ }
1287
+ })
1288
+ }
1289
+ },
1290
+ content_style: 'p {margin: 2px 0}',
1291
+ lineheight_formats: '1 1.1 1.2 1.3 1.4 1.5 2 2.5 3',
1292
+ 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,
1293
+ font_size_formats: fontsizeFormats,
1294
+ relative_urls: false,
1295
+ remove_script_host: false
1296
+ })
1297
+ .then(editors => {
1298
+ this.editor = editors[0]
1299
+ if (this.editor) {
1300
+ this.editor.editorContainer.style.width = this.pageSizePx + 'px'
1301
+ const frame = this.editor.iframeElement.contentWindow
1302
+ const editorContainer = frame.document.querySelector('body')
1303
+ editorContainer.ondragover = (e) => {
1304
+ e.preventDefault()
1305
+ }
1306
+ editorContainer.ondrop = (e) => {
1307
+ let node = e.target
1308
+ while (node.nodeName === 'LABEL') {
1309
+ node = node.parentNode
1310
+ }
1311
+ const type = e.dataTransfer.getData('type')
1312
+ if (type === 'variable' || type === 'process') {
1313
+ const variableCode = e.dataTransfer.getData('variableCode')
1314
+ const variableName = e.dataTransfer.getData('variableName')
1315
+ const span = document.createElement('font')
1316
+ span.contentEditable = 'false'
1317
+ span.setAttribute('data-name', 'variable')
1318
+ if (type === 'process') {
1319
+ span.setAttribute('data-name', 'process')
1320
+ }
1321
+ span.setAttribute('data-value', variableCode)
1322
+ span.innerHTML = `<label>{${variableName}}</label>`
1323
+ if (e.target.innerHTML === '<br>') {
1324
+ e.target.innerHTML = ''
1325
+ }
1326
+ if (node.getAttribute('data-name') === 'datasource' || node.getAttribute('data-name') === 'variable') {
1327
+ node.parentNode.insertBefore(span, node)
1328
+ } else {
1329
+ node.appendChild(span)
1330
+ }
1331
+ } else {
1332
+ const fieldId = e.dataTransfer.getData('fieldId')
1333
+ const sourceName = e.dataTransfer.getData('sourceName') || ''
1334
+ const fieldName = e.dataTransfer.getData('fieldName')
1335
+ if (fieldId) {
1336
+ const span = document.createElement('font')
1337
+ span.contentEditable = 'false'
1338
+ span.setAttribute('data-name', 'datasource')
1339
+ span.setAttribute('data-datasource', sourceName)
1340
+ span.setAttribute('data-field', fieldId)
1341
+ span.innerHTML = `<label>{${fieldName}}</label>`
1342
+ if (e.target.innerHTML === '<br>') {
1343
+ e.target.innerHTML = ''
1344
+ }
1345
+ if (node.getAttribute('data-name') === 'datasource' || node.getAttribute('data-name') === 'variable') {
1346
+ node.parentNode.insertBefore(span, node)
1347
+ } else {
1348
+ node.appendChild(span)
1349
+ }
1350
+ } else {
1351
+ return true
1352
+ }
1353
+ }
1354
+ }
1355
+ this.editor.setContent(content || this.content)
1356
+ }
1357
+ })
1358
+ },
1359
+ openAddDataSourceModal () {
1360
+
1361
+ },
1362
+ updateDataSourceInfo (v) {
1363
+ this.dataSourceInfo = { ...this.dataSourceInfo, ...v }
1364
+ },
1365
+ updateFormParam (v) {
1366
+ this.formParam = { ...this.formParam, ...v }
1367
+ },
1368
+ getAllFields (relations) {
1369
+ // const flags = relations.map(item => item.flag)
1370
+ const fields = this.getMetaViewFields(this.dataSourceInfo.ENTITY)
1371
+ if (fields) {
1372
+ this.allFields = fields
1373
+ this.defaultExpandKey = [fields[0].code]
1374
+ } else {
1375
+ this.$store.dispatch({
1376
+ type: 'ADD_META_VIEW_FIELDS',
1377
+ metaId: this.dataSourceInfo.ENTITY
1378
+ })
1379
+ .then((fields) => {
1380
+ this.allFields = fields.filter(item => item.relationType !== '1')
1381
+ this.defaultExpandKey = [fields[0].code]
1382
+ })
1383
+ }
1384
+ },
1385
+ addSortField (field) {
1386
+ if (!field.leaf) return
1387
+ const code = field.linkCode || field.code
1388
+ const sortField = this.sortFields.find(item => item.code === code)
1389
+ if (!sortField) {
1390
+ this.sortFields = [...this.sortFields, { code, text: field.text, sort: 'asc' }]
1391
+ }
1392
+ },
1393
+ addGroupSortField (field) {
1394
+ if (!field.leaf) return
1395
+ const code = field.linkCode || field.code
1396
+ this.groupSortFields = code
1397
+ },
1398
+ changeSort (field) {
1399
+ const sortFieldIndex = this.sortFields.findIndex(item => item.code === field.code)
1400
+ if (sortFieldIndex !== -1) {
1401
+ const sortField = this.sortFields.find(item => item.code === field.code)
1402
+ const sortFields = [...this.sortFields]
1403
+ sortFields.splice(sortFieldIndex, 1, { ...sortField, sort: sortField.sort === 'asc' ? 'desc' : 'asc' })
1404
+ this.sortFields = [...sortFields]
1405
+ }
1406
+ },
1407
+ deleteSort (field) {
1408
+ const sortFieldIndex = this.sortFields.findIndex(item => item.code === field.code)
1409
+ if (sortFieldIndex !== -1) {
1410
+ const sortFields = [...this.sortFields]
1411
+ sortFields.splice(sortFieldIndex, 1)
1412
+ this.sortFields = [...sortFields]
1413
+ }
1414
+ },
1415
+ deleteGroupSort (field) {
1416
+ this.groupSortFields = ''
1417
+ },
1418
+ getLinkEntityTree (mainEntity) {
1419
+ this.$http.$get({
1420
+ entityId: 'FM_ENTITY_RELATION',
1421
+ action: 'getAllEntityRelationTree',
1422
+ mainEntity
1423
+ })
1424
+ .then(data => {
1425
+ this.linkEntityTree = Array.isArray(data) ? data : (data && data.data ? data.data : [])
1426
+ })
1427
+ .catch(() => {
1428
+ this.linkEntityTree = []
1429
+ })
1430
+ },
1431
+ onLinkEntityCheck () {
1432
+ const tree = this.$refs.linkEntityTree
1433
+ if (!tree) return
1434
+ const checked = tree.getCheckedNodes()
1435
+ this.dataSourceInfo.LINK_ENTITY = checked.map(item => item.flag).join(',')
1436
+ this.dataSourceInfo['LINK_ENTITY#'] = checked.map(item => item.title).join(',')
1437
+ },
1438
+ formatSearchParams () {
1439
+ const params = {}
1440
+ this.searchParams.map((item, i) => {
1441
+ if (i < this.searchParams.length - 1) {
1442
+ params[`search.link${i + 1}`] = item.link || 'and'
1443
+ }
1444
+ params[`search.leftBrace${i + 1}`] = item.leftBrace || ''
1445
+ params[`search.field${i + 1}`] = ''
1446
+ params[`search.value${i + 1}`] = item.value
1447
+ if (item.dateType) params[`search.dateType${i + 1}`] = item.dateType
1448
+ params[`search.attriName${i + 1}`] = (item.field || item.attriName).replace('#', '').replace(/\|/g, '.')
1449
+ params[`search.relation${i + 1}`] = item.relation
1450
+ params[`search.realRelation${i + 1}`] = item.relation
1451
+ params[`search.realValue${i + 1}`] = item.realValue || item.value
1452
+ params[`search.rightBrace${i + 1}`] = item.rightBrace || ''
1453
+ params[`search.metaId${i + 1}`] = this.$metaId
1454
+ params[`search.inputMode${i + 1}`] = item.inputMode || ''
1455
+ })
1456
+ params.size = this.searchParams.length
1457
+ return params
1458
+ },
1459
+ dropDataSource (node, current, type, event) {
1460
+ const str = this.showDataSource.reduce((str, item, index) => (str += (item.sourceId) + ':' + index + ','), '')
1461
+ const params = {
1462
+ action: 'moveList',
1463
+ entityId: 'FM_FORM_SOURCE',
1464
+ orderString: str
1465
+ }
1466
+ this.$http.$post(params)
1467
+ .then(data => {})
1468
+ },
1469
+ allowDrop (draggingNode, dropNode, type) {
1470
+ return draggingNode.data.root && dropNode.data.root && type !== 'inner'
1471
+ },
1472
+ submitDataSource () {
1473
+ const { id } = this.$query
1474
+ // const params = this.formatSearchParams()
1475
+ const { ENTITY, ENTITY_VIEW, LINK_ENTITY, NAME, SORT, GROUP_ORDER_FIELD, IS_MAIN_SOUCE, SUB_SOURCE, DATA_SCOPE, LOAD_RELATION_ENTITY } = this.dataSourceInfo
1476
+ this.$http.save({
1477
+ action: this.editDataSourceId ? 'update' : 'save',
1478
+ entityId: 'FM_FORM_SOURCE',
1479
+ 'bean.ID': this.editDataSourceId ? this.editDataSourceId : '',
1480
+ 'bean.FORM': id || '',
1481
+ 'bean.ENTITY': ENTITY || '',
1482
+ 'bean.ENTITY_VIEW': ENTITY_VIEW || '',
1483
+ 'bean.LINK_ENTITY': LINK_ENTITY || '',
1484
+ 'bean.NAME': NAME || '',
1485
+ 'bean.SORT': SORT || '',
1486
+ 'bean.GROUP_ORDER_FIELD': GROUP_ORDER_FIELD || '',
1487
+ 'bean.SUB_SOURCE': SUB_SOURCE || '',
1488
+ 'bean.DATA_SCOPE': DATA_SCOPE || '',
1489
+ 'bean.IS_MAIN_SOUCE': IS_MAIN_SOUCE || '0',
1490
+ 'bean.LOAD_RELATION_ENTITY': LOAD_RELATION_ENTITY || '1',
1491
+ 'bean.CLIENT': this.form.CLIENT,
1492
+ 'bean.SYSTEM': this.form.SYSTEM
1493
+ // ...params
1494
+ })
1495
+ .then((data) => {
1496
+ this.dataSourceModal = false
1497
+ this.searchParams = []
1498
+ this.dataSourceInfo = {}
1499
+ let index = -1
1500
+ if (!this.editDataSourceId) {
1501
+ this.dataSource.push({ key: data, id: ENTITY, name: NAME, loadRelationEntity: LOAD_RELATION_ENTITY, root: true, sourceId: data })
1502
+ index = this.dataSource.length - 1
1503
+ } else {
1504
+ index = this.dataSource.findIndex(item => item.sourceId === this.editDataSourceId)
1505
+ if (index !== -1) {
1506
+ if (NAME !== this.dataSource[index].name) {
1507
+ this.dataSource.splice(index, 1, { ...this.dataSource[index], name: NAME })
1508
+ }
1509
+ if (LOAD_RELATION_ENTITY !== this.dataSource[index].loadRelationEntity) {
1510
+ this.getAttribute({ ENTITY, ENTITY_VIEW, LOAD_RELATION_ENTITY })
1511
+ .then(entityData => {
1512
+ this.entityDataMap[ENTITY] = entityData
1513
+ this.dataSource[index] = { ...this.dataSource[index], loadRelationEntity: LOAD_RELATION_ENTITY, children: entityData }
1514
+ })
1515
+ }
1516
+ }
1517
+ }
1518
+ if (ENTITY) {
1519
+ if (!this.entityDataMap[ENTITY]) {
1520
+ this.$store.dispatch({ type: ADD_META, metaId: ENTITY })
1521
+ this.getAttribute({ ENTITY, ENTITY_VIEW, LOAD_RELATION_ENTITY })
1522
+ .then(entityData => {
1523
+ this.entityDataMap[ENTITY] = entityData
1524
+ this.dataSource[index] = { ...this.dataSource[index], children: entityData }
1525
+ })
1526
+ } else if (index !== -1) {
1527
+ this.dataSource[index] = { ...this.dataSource[index], children: this.entityDataMap[ENTITY] }
1528
+ }
1529
+ }
1530
+ this.editDataSourceId = ''
1531
+ })
1532
+ .catch(err => {
1533
+ this.$message.error(err.message)
1534
+ })
1535
+ },
1536
+ clickDataSource (data) {
1537
+ if (data.root) {
1538
+ this.editDataSourceId = data.sourceId
1539
+ }
1540
+ },
1541
+ addDataSource () {
1542
+ this.editDataSourceId = ''
1543
+ this.searchParams = []
1544
+ this.dataSourceInfo = {}
1545
+ this.fields = []
1546
+ this.dataSourceModal = true
1547
+ },
1548
+ editDataSource (data) {
1549
+ this.$http.get({
1550
+ entityId: 'FM_FORM_SOURCE',
1551
+ id: this.editDataSourceId
1552
+ })
1553
+ .then(data => {
1554
+ if (data && data.data) {
1555
+ this.dataSourceInfo = { ...data.data }
1556
+ }
1557
+ this.dataSourceModal = true
1558
+ })
1559
+ .catch(() => {
1560
+ this.dataSourceModal = true
1561
+ })
1562
+ // this.dataSourceModal = this.editDataSourceId
1563
+ },
1564
+ deleteDataSource () {
1565
+ if (!this.editDataSourceId) {
1566
+ this.$message.error('请选择要删除的数据源')
1567
+ return
1568
+ }
1569
+ this.$http.removeMulti({
1570
+ entityId: 'FM_FORM_SOURCE',
1571
+ ids: this.editDataSourceId
1572
+ })
1573
+ .then(data => {
1574
+ if (data !== false) {
1575
+ this.$message.success('删除成功')
1576
+ const index = this.dataSource.findIndex(item => item.sourceId === this.editDataSourceId)
1577
+ if (index !== -1) {
1578
+ this.dataSource.splice(index, 1)
1579
+ }
1580
+ } else {
1581
+ this.$message.err('删除失败')
1582
+ }
1583
+ })
1584
+ },
1585
+ getFormParams () {
1586
+ const { id } = this.$query
1587
+ this.$http.list({
1588
+ entityId: 'FM_FORM_PARAM',
1589
+ 'scope.FORM': id
1590
+ })
1591
+ .then(data => {
1592
+ this.formParams = [...data.entitys]
1593
+ })
1594
+ if (this.systemVariableList.length === 0) {
1595
+ this.$store.dispatch('GET_SYSTEM_VARIABLE')
1596
+ }
1597
+ this.getProcessParams()
1598
+ },
1599
+ getProcessParams () {
1600
+ const { id } = this.$query
1601
+ this.$http.list({
1602
+ action: 'getProcessParam',
1603
+ entityId: 'FM_FORM',
1604
+ id: id
1605
+ })
1606
+ .then(data => {
1607
+ this.processParams = data.map(item => {
1608
+ if (item.childrens) item.children = item.childrens
1609
+ delete item.childrens
1610
+ return item
1611
+ })
1612
+ })
1613
+ },
1614
+ saveFormParam () {
1615
+ const { id } = this.$query
1616
+ const { CODE, NAME } = this.formParam
1617
+ this.$http.save({
1618
+ action: this.editFormParamId ? 'update' : 'save',
1619
+ entityId: 'FM_FORM_PARAM',
1620
+ 'bean.ID': this.editFormParamId ? this.editFormParamId : '',
1621
+ 'bean.FORM': id,
1622
+ 'bean.CODE': CODE,
1623
+ 'bean.CLIENT': this.form.CLIENT,
1624
+ 'bean.SYSTEM': this.form.SYSTEM,
1625
+ 'bean.NAME': NAME
1626
+ })
1627
+ .then(() => {
1628
+ this.formParamModal = false
1629
+ this.editFormParamId = ''
1630
+ this.formParam = {}
1631
+ this.getFormParams()
1632
+ })
1633
+ .catch(err => {
1634
+ this.$message.error(err.message || err.msg || '处理失败')
1635
+ })
1636
+ },
1637
+ addFormParam () {
1638
+ this.editFormParamId = ''
1639
+ this.formParam = {}
1640
+ this.formParamModal = true
1641
+ },
1642
+ editFormParam (param) {
1643
+ this.editFormParamId = param.ID
1644
+ this.formParamModal = true
1645
+ this.formParam = { ...param }
1646
+ },
1647
+ deleteFormParam (param) {
1648
+ this.$http.removeMulti({
1649
+ entityId: 'FM_FORM_PARAM',
1650
+ ids: param.ID
1651
+ }).then(data => {
1652
+ this.$message.success('删除成功')
1653
+ this.getFormParams()
1654
+ })
1655
+ },
1656
+ mmConversionPx (value) {
1657
+ var arrDPI = []
1658
+ if (window.screen.deviceXDPI) {
1659
+ arrDPI[0] = window.screen.deviceXDPI
1660
+ arrDPI[1] = window.screen.deviceYDPI
1661
+ } else {
1662
+ var tmpNode = document.createElement('DIV')
1663
+ tmpNode.style.cssText = 'width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden'
1664
+ document.body.appendChild(tmpNode)
1665
+ arrDPI[0] = parseInt(tmpNode.offsetWidth)
1666
+ arrDPI[1] = parseInt(tmpNode.offsetHeight)
1667
+ tmpNode.parentNode.removeChild(tmpNode)
1668
+ }
1669
+ var inch = value / 25.4
1670
+ var cValue = inch * arrDPI[0]
1671
+ return cValue
1672
+ },
1673
+ // 预览
1674
+ showPreviewDialog () {
1675
+ // 弹窗填写所需要的参数
1676
+ this.showFormParamsDialog = true
1677
+ },
1678
+ preview () {
1679
+ this.$http.save({
1680
+ action: 'showPdf',
1681
+ entityId: 'FM_FORM',
1682
+ code: this.form.CODE,
1683
+ querySystem: this.form.SYSTEM,
1684
+ ...this.previewParams,
1685
+ html: this.editor.getContent()
1686
+ // title: this.titleEditor.getContent()
1687
+ }, {
1688
+ responseType: 'blob'
1689
+ })
1690
+ .then(res => {
1691
+ const fileName = decodeURIComponent(res.filename)
1692
+ if (fileName.indexOf('@') > -1) {
1693
+ const fileNameArr = fileName.split('@')
1694
+ window.open(fileNameArr[1])
1695
+ } else {
1696
+ const url = window.URL.createObjectURL(res.blob)
1697
+ window.open(url)
1698
+ }
1699
+ this.showFormParamsDialog = false
1700
+ })
1701
+ .catch(err => {
1702
+ this.$message.error(err.message)
1703
+ })
1704
+ },
1705
+ dragDataSource (node, e) {
1706
+ if (node.data.root || node.data.type === 'meta') return
1707
+ if (node.parent) {
1708
+ let parent = node.parent
1709
+ let nodeText = ''
1710
+ while (parent.parent && parent.data.root !== true) {
1711
+ nodeText = parent.data.text + '.' + nodeText
1712
+ parent = parent.parent
1713
+ }
1714
+ const field = {
1715
+ sourceId: parent.data.id,
1716
+ sourceName: parent.data.name,
1717
+ fieldId: node.data.id,
1718
+ fieldName: nodeText ? nodeText + node.data.text : node.data.text
1719
+ }
1720
+ for (const key in field) {
1721
+ e.dataTransfer.setData(key, field[key])
1722
+ e.dataTransfer.dropEffect = 'copy'
1723
+ e.dataTransfer.effectAllowed = 'copy'
1724
+ }
1725
+ }
1726
+ },
1727
+ dragVariable (e, data, node) {
1728
+ e.dataTransfer.setData('type', 'variable')
1729
+ e.dataTransfer.setData('variableName', data.name)
1730
+ if (data.type === 'process') {
1731
+ e.dataTransfer.setData('type', 'process')
1732
+ e.dataTransfer.setData('variableCode', data.value)
1733
+ } else {
1734
+ e.dataTransfer.setData('variableCode', data.code)
1735
+ }
1736
+ e.dataTransfer.dropEffect = 'copy'
1737
+ e.dataTransfer.effectAllowed = 'copy'
1738
+ },
1739
+ getPagePx () {
1740
+ const p = this.form.PRINT_PAGE_SIZE
1741
+ this.pageSizePx = p === 'A0' ? 1684 : p === 'A1' || p === 'A2' ? 1190 : p === 'A3' ? 842 : p === 'A5' ? 420 : 595
1742
+ },
1743
+ getFormFunction () {
1744
+ this.$http.getCodes({
1745
+ key: 'FORM_FUNCTION'
1746
+ })
1747
+ .then(async data => {
1748
+ this.formFunction = [...data]
1749
+ })
1750
+ },
1751
+ // 解析 PRINT_CHECK 字段(JSON 字符串)为规则列表
1752
+ parsePrintCheck () {
1753
+ const raw = this.formData.PRINT_CHECK
1754
+ let list = []
1755
+ if (raw) {
1756
+ try {
1757
+ const parsed = typeof raw === 'string' ? JSON.parse(raw) : raw
1758
+ if (Array.isArray(parsed)) {
1759
+ list = parsed.map(item => ({
1760
+ name: item.name || '',
1761
+ expression: item.expression || '',
1762
+ errorInfo: item.errorInfo || '',
1763
+ enable: item.enable !== false
1764
+ }))
1765
+ }
1766
+ } catch (e) {
1767
+ list = []
1768
+ }
1769
+ }
1770
+ this.printChecks = list
1771
+ },
1772
+ // 把规则列表同步回 formData.PRINT_CHECK(随全局设置一起保存)
1773
+ syncPrintCheck () {
1774
+ this.formData.PRINT_CHECK = JSON.stringify(this.printChecks)
1775
+ },
1776
+ // 表达式预览:去掉 #{...} 外层包裹
1777
+ exprPreview (expr) {
1778
+ if (!expr) return ''
1779
+ return String(expr).replace(/^#\{([\s\S]*)\}$/, '$1')
1780
+ },
1781
+ // 打开规则表单弹窗(index < 0 为新增)
1782
+ openCheckRule (index) {
1783
+ this.editingCheckIndex = index
1784
+ if (index >= 0) {
1785
+ const r = this.printChecks[index]
1786
+ this.checkRuleForm = { name: r.name, expression: r.expression, errorInfo: r.errorInfo, enable: r.enable }
1787
+ } else {
1788
+ this.checkRuleForm = { name: '自定义校验 ' + (this.printChecks.length + 1), expression: '', errorInfo: '', enable: true }
1789
+ }
1790
+ this.checkRuleDialog = true
1791
+ },
1792
+ // 确定规则表单
1793
+ confirmCheckRule () {
1794
+ const { name, expression } = this.checkRuleForm
1795
+ if (!name || !name.trim()) {
1796
+ this.$message.warning('请输入规则名')
1797
+ return
1798
+ }
1799
+ if (!expression || !expression.trim()) {
1800
+ this.$message.warning('请配置校验表达式')
1801
+ return
1802
+ }
1803
+ const rule = {
1804
+ name: name.trim(),
1805
+ expression: expression.trim(),
1806
+ errorInfo: (this.checkRuleForm.errorInfo || '').trim(),
1807
+ enable: this.checkRuleForm.enable !== false
1808
+ }
1809
+ if (this.editingCheckIndex >= 0) {
1810
+ this.printChecks.splice(this.editingCheckIndex, 1, rule)
1811
+ } else {
1812
+ this.printChecks.push(rule)
1813
+ }
1814
+ this.syncPrintCheck()
1815
+ this.checkRuleDialog = false
1816
+ },
1817
+ // 删除规则
1818
+ deleteCheckRule (index) {
1819
+ this.$confirm('确定删除该校验规则?', '提示', { type: 'warning' })
1820
+ .then(() => {
1821
+ this.printChecks.splice(index, 1)
1822
+ this.syncPrintCheck()
1823
+ })
1824
+ .catch(() => {})
1825
+ },
1826
+ // 打开公式编辑器
1827
+ openFormulaDialog () {
1828
+ this.formulaDialog = true
1829
+ },
1830
+ // 公式编辑器确定回填表达式
1831
+ confirmFormula (payload) {
1832
+ if (payload && payload.el) {
1833
+ this.checkRuleForm.expression = payload.el
1834
+ }
1835
+ this.formulaDialog = false
1836
+ }
1837
+ },
1838
+ created () {
1839
+ this.currentLanguage = this.defaultLanguage
1840
+ if (this.showMenu) {
1841
+ this.changeMenuFlag = true
1842
+ this.$store.commit('SWITCH_MENU_SHOW', false)
1843
+ }
1844
+ if (this.showAppNav) {
1845
+ this.changeAppNavFlag = true
1846
+ this.$store.commit('SWITCH_APP_NAV_SHOW', false)
1847
+ }
1848
+ // 获取A4纸尺寸 210
1849
+ this.getFormContent()
1850
+ this.getFormFunction()
1851
+ this.getDataSource()
1852
+ this.getFormParams()
1853
+ this.getFieldRelation()
1854
+ this.getFieldConfigs()
1855
+ },
1856
+ beforeUnmount () {
1857
+ if (this.changeMenuFlag) {
1858
+ this.$store.commit('SWITCH_MENU_SHOW', true)
1859
+ }
1860
+ if (this.changeAppNavFlag) {
1861
+ this.$store.commit('SWITCH_APP_NAV_SHOW', true)
1862
+ }
1863
+ }
1864
+ }
1865
+ </script>
1866
+
1867
+ <style lang="scss" scoped>
1868
+ .container {
1869
+ width: calc(100% + 20px);
1870
+ height: calc(100% + 20px);
1871
+ margin: -10px;
1872
+ // overflow: hidden;
1873
+ }
1874
+ .container-inner {
1875
+ width: 100%;
1876
+ height: calc(100% - 60px);
1877
+ overflow: hidden;
1878
+ display: flex;
1879
+ }
1880
+ .report-header {
1881
+ height: 56px;
1882
+ background: var(--epx-bg-card);
1883
+ padding: 0 20px;
1884
+ display: flex;
1885
+ align-items: center;
1886
+ justify-content: space-between;
1887
+ border-bottom: 1px solid var(--epx-border);
1888
+ }
1889
+ .report-title {
1890
+ display: flex;
1891
+ }
1892
+ .report-back {
1893
+ font-size: var(--epx-font-size-xl);
1894
+ cursor: pointer;
1895
+ position: relative;
1896
+ top: 1px;
1897
+ }
1898
+
1899
+ .report-name {
1900
+ color: var(--epx-text);
1901
+ font-size: var(--epx-font-size-l);
1902
+ margin: 0 12px 0 6px;
1903
+ display: flex;
1904
+ align-items: center;
1905
+ white-space: nowrap;
1906
+ i {
1907
+ font-size: 18px;
1908
+ color: #444;
1909
+ cursor: pointer;
1910
+ margin-left: 8px;
1911
+ }
1912
+ }
1913
+ .report-operate {
1914
+ display: flex;
1915
+ }
1916
+ .module-header {
1917
+ padding-bottom: 16px;
1918
+ border-bottom: 1px solid var(--epx-border);
1919
+ }
1920
+ .data-source {
1921
+ width: 240px;
1922
+ margin-right: 16px;
1923
+ height: 100%;
1924
+
1925
+ :deep(.el-tabs) {
1926
+ height: 100%;
1927
+ display: flex;
1928
+ flex-direction: column;
1929
+ }
1930
+ :deep(.el-tabs__content) {
1931
+ flex: 1;
1932
+ overflow: hidden;
1933
+ }
1934
+ :deep(.el-tab-pane) {
1935
+ height: 100%;
1936
+ display: flex;
1937
+ flex-direction: column;
1938
+ }
1939
+
1940
+ }
1941
+ .data-source-modal-header {
1942
+ font-size: var(--epx-font-size-l);
1943
+ font-weight: 600;
1944
+ }
1945
+ .data-souce-modal-content__base {
1946
+ padding-left: 16px;
1947
+ }
1948
+ .data-source__scope {
1949
+ padding: 16px;
1950
+ }
1951
+ .data-source-tree {
1952
+ margin-top: 16px;
1953
+ flex: 1;
1954
+ overflow: auto;
1955
+ }
1956
+ .form-item {
1957
+ display: flex;
1958
+ align-items: center;
1959
+ margin: 12px 0;
1960
+ label {
1961
+ width: 100px;
1962
+ flex-shrink: 0;
1963
+ }
1964
+
1965
+ :deep(.el-input__suffix) {
1966
+ line-height: 36px;
1967
+ }
1968
+
1969
+ }
1970
+ .link-entity-trigger {
1971
+ width: 220px;
1972
+ .el-input {
1973
+ width: 100%;
1974
+ }
1975
+ }
1976
+ .link-entity-tree {
1977
+ max-height: 320px;
1978
+ overflow: auto;
1979
+ }
1980
+ .link-entity-empty {
1981
+ padding: 8px;
1982
+ color: #909399;
1983
+ text-align: center;
1984
+ }
1985
+ .sort-field {
1986
+ padding-left: 16px;
1987
+ line-height: 50px;
1988
+ .active {
1989
+ @include font_color_primary;
1990
+ }
1991
+ .sort-icon {
1992
+ font-size: var(--epx-font-size-l);
1993
+ }
1994
+ .el-icon-sort-down {
1995
+ position: relative;
1996
+ right: -9px;
1997
+ cursor: pointer;
1998
+ }
1999
+ .el-icon-close {
2000
+ float: right;
2001
+ cursor: pointer;
2002
+ line-height: 50px;
2003
+ font-size: 18px;
2004
+ &:hover {
2005
+ @include font_color_primary;
2006
+ }
2007
+ }
2008
+ }
2009
+ .sort-opera {
2010
+ cursor: pointer;
2011
+ @include font_color_primary;
2012
+ margin-left: 16px;
2013
+ padding: 24px 0;
2014
+ }
2015
+ .params-tree {
2016
+ margin-top: 10px;
2017
+ height: calc(100% - 50px);
2018
+ overflow: auto;
2019
+ }
2020
+
2021
+ .params {
2022
+ width: 100%;
2023
+ line-height: 40px;
2024
+ &:hover {
2025
+ .params-icon {
2026
+ display: block;
2027
+ }
2028
+ }
2029
+ }
2030
+ .params-icon {
2031
+ display: none;
2032
+ float: right;
2033
+ i {
2034
+ padding: 0 8px;
2035
+ border-right: 1px solid var(--epx-border);
2036
+ &:last-child {
2037
+ border: 0;
2038
+ }
2039
+ &:hover {
2040
+ cursor: pointer;
2041
+ @include font_color_primary;
2042
+ }
2043
+ }
2044
+ }
2045
+ .editor-container {
2046
+ flex: 1;
2047
+ flex-direction: column;
2048
+ width: 100%;
2049
+ height: 100%;
2050
+ text-align: center;
2051
+ overflow-x: auto;
2052
+
2053
+ :deep(.tox-tinymce) {
2054
+ margin: 0 auto;
2055
+ }
2056
+
2057
+ }
2058
+ .editor-inner {
2059
+ display: inline-block;
2060
+ height: 100%;
2061
+ text-align: left;
2062
+ }
2063
+ .editor {
2064
+ flex: 1;
2065
+ width: 100%;
2066
+ height: 99%;
2067
+ display: block;
2068
+ margin: 0 auto;
2069
+ }
2070
+ .editor-btn {
2071
+ display: block;
2072
+ width: 120px;
2073
+ margin: 20px auto 0;
2074
+ }
2075
+ .input-params {
2076
+ display: flex;
2077
+ align-items: center;
2078
+ padding: 10px 0;
2079
+ label {
2080
+ width: 100px;
2081
+ white-space: pre-wrap;
2082
+ }
2083
+ }
2084
+ .preview-btn {
2085
+ display: block;
2086
+ margin: 0 auto;
2087
+ }
2088
+ .attribute-pane__content {
2089
+ padding: 0 10px;
2090
+ }
2091
+ .form__label {
2092
+ margin: 10px 0;
2093
+ }
2094
+ .form-content {
2095
+
2096
+ :deep(.table-form-item__label) {
2097
+ width: 90px;
2098
+ padding-left: 0;
2099
+ }
2100
+ :deep(.table-form-item__content) {
2101
+ .el-input,
2102
+ .el-input-number--medium {
2103
+ width: 200px;
2104
+ }
2105
+ }
2106
+
2107
+ }
2108
+ .form-page__footer {
2109
+ padding-bottom: 40px;
2110
+ }
2111
+ .table-form-item-label::before {
2112
+ content: '*';
2113
+ color: #f56c6c;
2114
+ margin-right: 4px;
2115
+ }
2116
+ .filter-condition-opera__popper {
2117
+ max-height: 400px;
2118
+ overflow: auto;
2119
+ }
2120
+ .data-source__header {
2121
+ margin-top: 10px;
2122
+ }
2123
+ .data-source-operate__footer {
2124
+ margin-top: 10px;
2125
+ }
2126
+ .language__switch {
2127
+ height: 28px;
2128
+ line-height: 28px;
2129
+ background: var(--epx-bg);
2130
+ border-radius: 14px;
2131
+ display: flex;
2132
+ align-items: center;
2133
+ margin-right: 12px;
2134
+ margin-top: 6px;
2135
+ .language-name {
2136
+ padding: 0 16px 0 10px;
2137
+ }
2138
+ }
2139
+ .language-item {
2140
+ width: 100px;
2141
+ &.is-active {
2142
+ @include bg_color_primary(0.1);
2143
+ @include font_color_primary;
2144
+ }
2145
+ }
2146
+ .print-check {
2147
+ margin-top: 10px;
2148
+ margin-bottom: 60px;
2149
+ &__head {
2150
+ display: flex;
2151
+ align-items: center;
2152
+ justify-content: space-between;
2153
+ }
2154
+ &__title {
2155
+ margin: 10px 0;
2156
+ }
2157
+ &__hint {
2158
+ display: flex;
2159
+ align-items: flex-start;
2160
+ font-size: 12px;
2161
+ color: #888;
2162
+ line-height: 18px;
2163
+ margin-bottom: 10px;
2164
+ i {
2165
+ margin-top: 1px;
2166
+ margin-right: 6px;
2167
+ color: #aaa;
2168
+ }
2169
+ b {
2170
+ color: #222;
2171
+ font-weight: 600;
2172
+ }
2173
+ }
2174
+ &__empty {
2175
+ border: 1px dashed #dcdfe6;
2176
+ border-radius: 4px;
2177
+ padding: 20px;
2178
+ text-align: center;
2179
+ color: #888;
2180
+ font-size: 12px;
2181
+ }
2182
+ &__list {
2183
+ display: flex;
2184
+ flex-direction: column;
2185
+ gap: 8px;
2186
+ }
2187
+ &__rule {
2188
+ border: 1px solid #dcdfe6;
2189
+ border-radius: 4px;
2190
+ padding: 10px 12px;
2191
+ background: #fff;
2192
+ }
2193
+ &__rule-top {
2194
+ display: flex;
2195
+ align-items: center;
2196
+ }
2197
+ &__rule-name {
2198
+ flex: 1;
2199
+ min-width: 0;
2200
+ margin: 0 8px;
2201
+ font-weight: 600;
2202
+ color: #222;
2203
+ overflow: hidden;
2204
+ text-overflow: ellipsis;
2205
+ white-space: nowrap;
2206
+ }
2207
+ &__act {
2208
+ cursor: pointer;
2209
+ color: #888;
2210
+ font-size: 16px;
2211
+ margin-left: 8px;
2212
+ &:hover {
2213
+ @include font_color_primary;
2214
+ }
2215
+ &--danger:hover {
2216
+ color: #f56c6c;
2217
+ }
2218
+ }
2219
+ &__rule-expr {
2220
+ margin-top: 6px;
2221
+ font-size: 12px;
2222
+ color: #888;
2223
+ font-family: Consolas, Monaco, monospace;
2224
+ background: #f5f7fa;
2225
+ border-radius: 2px;
2226
+ padding: 6px 8px;
2227
+ word-break: break-all;
2228
+ }
2229
+ }
2230
+ .check-rule-form {
2231
+ &__item {
2232
+ margin-bottom: 16px;
2233
+ &:last-child {
2234
+ margin-bottom: 0;
2235
+ }
2236
+ }
2237
+ &__label {
2238
+ display: block;
2239
+ margin-bottom: 6px;
2240
+ color: #444;
2241
+ font-size: 14px;
2242
+ &.is-required::before {
2243
+ content: '*';
2244
+ color: #f56c6c;
2245
+ margin-right: 4px;
2246
+ }
2247
+ }
2248
+ &__expr {
2249
+ display: flex;
2250
+ align-items: center;
2251
+ border: 1px solid #dcdfe6;
2252
+ border-radius: 4px;
2253
+ padding: 8px 10px;
2254
+ min-height: 38px;
2255
+ box-sizing: border-box;
2256
+ cursor: pointer;
2257
+ background: #fff;
2258
+ &:hover {
2259
+ @include border_color_primary;
2260
+ }
2261
+ &.is-empty .check-rule-form__expr-text {
2262
+ color: #c0c4cc;
2263
+ font-family: inherit;
2264
+ }
2265
+ i {
2266
+ margin-left: 8px;
2267
+ @include font_color_primary;
2268
+ }
2269
+ }
2270
+ &__expr-text {
2271
+ flex: 1;
2272
+ min-width: 0;
2273
+ font-family: Consolas, Monaco, monospace;
2274
+ font-size: 13px;
2275
+ color: #222;
2276
+ word-break: break-all;
2277
+ }
2278
+ &__tip {
2279
+ margin-top: 6px;
2280
+ font-size: 12px;
2281
+ color: #888;
2282
+ }
2283
+ }
2284
+ </style>
2285
+ <style>
2286
+ .sort-opera-popover {
2287
+ padding: 24px 0;
2288
+ }
2289
+ /* 全屏公式编辑器弹窗(append-to-body,需全局样式) */
2290
+ .formula-editor-dialog .el-dialog__header {
2291
+ display: none;
2292
+ }
2293
+ .formula-editor-dialog .el-dialog__body {
2294
+ padding: 0;
2295
+ height: 100vh;
2296
+ overflow: hidden;
2297
+ }
2298
+ .formula-editor-dialog .formula-editor-container {
2299
+ height: 100%;
2300
+ }
2301
+ </style>