@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.
- package/API.md +111 -0
- package/README.md +43 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/_virtual/preload-helper.js +88 -0
- package/dist/assets/0-C_2vdOtO.png +0 -0
- package/dist/assets/1-CsiSr5nw.png +0 -0
- package/dist/assets/2-C9hZOTyC.png +0 -0
- package/dist/assets/ai-CcPHuAhD.jpg +0 -0
- package/dist/assets/app-DBNIokDP.png +0 -0
- package/dist/assets/approval-DGcBv-re.png +0 -0
- package/dist/assets/aurorablue-N56tat3G.png +0 -0
- package/dist/assets/basepage-BF4dvOT8.png +0 -0
- package/dist/assets/classicblue-BdgPGKXa.png +0 -0
- package/dist/assets/create_market_system-BH__UVbt.png +0 -0
- package/dist/assets/create_system-irg--ePh.png +0 -0
- package/dist/assets/custom-C-ujlHz1.png +0 -0
- package/dist/assets/data-BDvuB-m7.png +0 -0
- package/dist/assets/deepblue-B78G_DNb.png +0 -0
- package/dist/assets/default-icon-2193FMjv.png +0 -0
- package/dist/assets/ex_link-4fYPd9nh.png +0 -0
- package/dist/assets/forestgreen-B2YR4xgz.png +0 -0
- package/dist/assets/hall_banner-Dc5YRV5A.webp +0 -0
- package/dist/assets/import-tfKWbWVS.png +0 -0
- package/dist/assets/link-BeD2ZGO9.png +0 -0
- package/dist/assets/m_hall_banner-Cf1Qwhh3.webp +0 -0
- package/dist/assets/orange-wT0uHIyo.png +0 -0
- package/dist/assets/palevioletred-DZXBQKru.png +0 -0
- package/dist/assets/photo-uscRzRXF.png +0 -0
- package/dist/assets/purple-CXrRrENi.png +0 -0
- package/dist/assets/role_select-DTqRlFNz.webp +0 -0
- package/dist/assets/skyblue-DPPlKPXU.png +0 -0
- package/dist/assets/snapshot-history-BsVY9cVj.png +0 -0
- package/dist/assets/snapshot-manual-DBRfFHYI.png +0 -0
- package/dist/assets/snapshot-realtime-DjHnJI6C.png +0 -0
- package/dist/assets/sync_loading-D7LoNPFP.png +0 -0
- package/dist/assets/tiffanyblue-DkyBoUQf.png +0 -0
- package/dist/assets/topbg-C_5lVpoA.webp +0 -0
- package/dist/assets/zxmb-CkPnmDaV.png +0 -0
- package/dist/src/assets/customTranslate/customTranslate.js +11 -0
- package/dist/src/assets/customTranslate/translations.js +219 -0
- package/dist/src/assets/images/addmenu/basepage.png.js +4 -0
- package/dist/src/assets/images/addmenu/data.png.js +4 -0
- package/dist/src/assets/images/addmenu/link.png.js +4 -0
- package/dist/src/assets/images/addmenu/list.png.js +4 -0
- package/dist/src/assets/images/addmenu/menu.png.js +4 -0
- package/dist/src/assets/images/addmenu/zxmb.png.js +4 -0
- package/dist/src/assets/images/ai.jpg.js +4 -0
- package/dist/src/assets/images/app.png.js +4 -0
- package/dist/src/assets/images/approval.png.js +4 -0
- package/dist/src/assets/images/create_market_system.png.js +4 -0
- package/dist/src/assets/images/create_system.png.js +4 -0
- package/dist/src/assets/images/custom.png.js +4 -0
- package/dist/src/assets/images/default-icon.png.js +4 -0
- package/dist/src/assets/images/ex_link.png.js +4 -0
- package/dist/src/assets/images/hall_banner.webp.js +4 -0
- package/dist/src/assets/images/hr.png.js +4 -0
- package/dist/src/assets/images/import.png.js +4 -0
- package/dist/src/assets/images/m_hall_banner.webp.js +4 -0
- package/dist/src/assets/images/nav/0.png.js +4 -0
- package/dist/src/assets/images/nav/1.png.js +4 -0
- package/dist/src/assets/images/nav/2.png.js +4 -0
- package/dist/src/assets/images/nav/3.svg.js +4 -0
- package/dist/src/assets/images/photo.png.js +4 -0
- package/dist/src/assets/images/snapshot-history.png.js +4 -0
- package/dist/src/assets/images/snapshot-manual.png.js +4 -0
- package/dist/src/assets/images/snapshot-realtime.png.js +4 -0
- package/dist/src/assets/images/sync_loading.png.js +4 -0
- package/dist/src/assets/images/theme/aurorablue.png.js +4 -0
- package/dist/src/assets/images/theme/classicblue.png.js +4 -0
- package/dist/src/assets/images/theme/deepblue.png.js +4 -0
- package/dist/src/assets/images/theme/forestgreen.png.js +4 -0
- package/dist/src/assets/images/theme/orange.png.js +4 -0
- package/dist/src/assets/images/theme/palevioletred.png.js +4 -0
- package/dist/src/assets/images/theme/purple.png.js +4 -0
- package/dist/src/assets/images/theme/skyblue.png.js +4 -0
- package/dist/src/assets/images/theme/tiffanyblue.png.js +4 -0
- package/dist/src/base/AiPromptDesigner.js +685 -0
- package/dist/src/base/AiPromptView.js +363 -0
- package/dist/src/base/AiSkillEditor.js +1029 -0
- package/dist/src/base/AiSkillEditor.vue.js +1176 -0
- package/dist/src/base/AppConfigFormItem.js +8 -0
- package/dist/src/base/AppConfigFormItem.vue.js +407 -0
- package/dist/src/base/AppMarket.js +212 -0
- package/dist/src/base/AppMarketList.js +8 -0
- package/dist/src/base/AppMarketList.vue.js +214 -0
- package/dist/src/base/AppMarketSystemDetail.js +293 -0
- package/dist/src/base/AttributeSubAdd.js +26 -0
- package/dist/src/base/ChooseApplication.js +132 -0
- package/dist/src/base/ClientAppItem.js +190 -0
- package/dist/src/base/ClientApplication.js +360 -0
- package/dist/src/base/ClientApplicationList.js +126 -0
- package/dist/src/base/ClientModule.js +119 -0
- package/dist/src/base/ClientModuleIndex.js +295 -0
- package/dist/src/base/ClientSystemDetail.js +203 -0
- package/dist/src/base/ClientSystemList.js +8 -0
- package/dist/src/base/ClientSystemList.vue.js +450 -0
- package/dist/src/base/CommonFieldList.js +11 -0
- package/dist/src/base/CommonFieldList.vue.js +530 -0
- package/dist/src/base/CommonSearchList.js +5 -0
- package/dist/src/base/CommonSearchList.vue.js +253 -0
- package/dist/src/base/CompayDetail.js +116 -0
- package/dist/src/base/ComponentGlobalSet.js +8 -0
- package/dist/src/base/ComponentGlobalSet.vue.js +722 -0
- package/dist/src/base/ComponentParamsTree.js +335 -0
- package/dist/src/base/ConfigModuleIndex.js +135 -0
- package/dist/src/base/CurrentClientApplication.js +54 -0
- package/dist/src/base/CurrentVersionInfo.js +98 -0
- package/dist/src/base/EntityMatchCompare.js +533 -0
- package/dist/src/base/FieldRelationFormItem.js +8 -0
- package/dist/src/base/FieldRelationFormItem.vue.js +272 -0
- package/dist/src/base/HelpDocSet.js +363 -0
- package/dist/src/base/HelpDocSet.vue.js +685 -0
- package/dist/src/base/IndexFormItem.js +5 -0
- package/dist/src/base/IndexFormItem.vue.js +230 -0
- package/dist/src/base/JobFormItem.js +8 -0
- package/dist/src/base/JobFormItem.vue.js +131 -0
- package/dist/src/base/ManageAppNav.js +9 -0
- package/dist/src/base/ManageAppNav.vue.js +1178 -0
- package/dist/src/base/ManageMenu.js +916 -0
- package/dist/src/base/ManageMenuItem.js +551 -0
- package/dist/src/base/NoInstallSystemList.js +5 -0
- package/dist/src/base/NoInstallSystemList.vue.js +159 -0
- package/dist/src/base/PageList.js +48 -0
- package/dist/src/base/PasswordFormItem.js +8 -0
- package/dist/src/base/PasswordFormItem.vue.js +125 -0
- package/dist/src/base/ProcessFormItem.js +148 -0
- package/dist/src/base/PublishSystemApplyFormItem.js +5 -0
- package/dist/src/base/PublishSystemApplyFormItem.vue.js +104 -0
- package/dist/src/base/RequestLog.js +170 -0
- package/dist/src/base/RightRiskList.js +8 -0
- package/dist/src/base/RightRiskList.vue.js +224 -0
- package/dist/src/base/RoleAccredit.js +1087 -0
- package/dist/src/base/RoleRightList.js +8 -0
- package/dist/src/base/RoleRightList.vue.js +118 -0
- package/dist/src/base/RoleUserManage.js +8 -0
- package/dist/src/base/RoleUserManage.vue.js +146 -0
- package/dist/src/base/ServiceAccredit.js +1075 -0
- package/dist/src/base/ServiceMenu.js +399 -0
- package/dist/src/base/ServiceMenuFormItem.js +20 -0
- package/dist/src/base/ServiceOperate.js +1003 -0
- package/dist/src/base/SystemHelpTreeFind.js +44 -0
- package/dist/src/base/aiPromptMode.js +145 -0
- package/dist/src/base/data-check/DataChckDetail.js +243 -0
- package/dist/src/base/data-check/DataCheck.js +308 -0
- package/dist/src/base/data-check/DataCheckList.js +364 -0
- package/dist/src/base/data-check/DataCheckSubList.js +6 -0
- package/dist/src/base/data-check/DataCheckSubList.vue.js +195 -0
- package/dist/src/base/entity-view/EntityViewFormItem.js +5 -0
- package/dist/src/base/entity-view/EntityViewFormItem.vue.js +229 -0
- package/dist/src/base/entity-view/EntityViewSubList.js +5 -0
- package/dist/src/base/entity-view/EntityViewSubList.vue.js +181 -0
- package/dist/src/base/entity-view-config/BasicInfoDialog.js +208 -0
- package/dist/src/base/entity-view-config/FieldPanel.js +692 -0
- package/dist/src/base/entity-view-config/FieldPropForm.js +786 -0
- package/dist/src/base/entity-view-config/FormulaDialog.js +143 -0
- package/dist/src/base/entity-view-config/ObjectFieldDialog.js +271 -0
- package/dist/src/base/entity-view-config/RelationPanel.js +779 -0
- package/dist/src/base/entity-view-config/SourceManagerDialog.js +658 -0
- package/dist/src/base/entity-view-config/SqlPanel.js +62 -0
- package/dist/src/base/entity-view-config/SqlPanel.vue.js +43 -0
- package/dist/src/base/entity-view-config/UnionPanel.js +1082 -0
- package/dist/src/base/entity-view-config/ViewConfig.js +586 -0
- package/dist/src/base/entity-view-config/constants.js +146 -0
- package/dist/src/base/user-type/UserTypeFormItem.js +5 -0
- package/dist/src/base/user-type/UserTypeFormItem.vue.js +183 -0
- package/dist/src/components/AddPageFormItem.js +5 -0
- package/dist/src/components/AddPageFormItem.vue.js +92 -0
- package/dist/src/components/AddUsedInterface.js +214 -0
- package/dist/src/components/AiDocFormItem.js +6 -0
- package/dist/src/components/AiDocFormItem.vue.js +271 -0
- package/dist/src/components/AiList.js +8 -0
- package/dist/src/components/AiList.vue.js +93 -0
- package/dist/src/components/AiPermissionAssistant.js +284 -0
- package/dist/src/components/AppList.js +414 -0
- package/dist/src/components/Apply/AIApplyIndex.js +179 -0
- package/dist/src/components/Apply/ApplyIndex.js +282 -0
- package/dist/src/components/AttributeList.js +870 -0
- package/dist/src/components/Banner.js +26 -0
- package/dist/src/components/BatchAddFieldDialog.js +425 -0
- package/dist/src/components/CardO.js +47 -0
- package/dist/src/components/CheckForm.js +34 -0
- package/dist/src/components/ClientAdminFormItem.js +47 -0
- package/dist/src/components/ClientAdminList.js +9 -0
- package/dist/src/components/ClientAdminList.vue.js +221 -0
- package/dist/src/components/ClientFormItem.js +48 -0
- package/dist/src/components/ClientList.js +6 -0
- package/dist/src/components/ClientList.vue.js +216 -0
- package/dist/src/components/CodeDetail.js +454 -0
- package/dist/src/components/CodeManage.js +1030 -0
- package/dist/src/components/ComponentFind.js +210 -0
- package/dist/src/components/ComponentList.js +499 -0
- package/dist/src/components/ConfigParamFormItem.js +8 -0
- package/dist/src/components/ConfigParamFormItem.vue.js +389 -0
- package/dist/src/components/CreatePage.js +298 -0
- package/dist/src/components/DashboardCreate.js +106 -0
- package/dist/src/components/DataLog.js +169 -0
- package/dist/src/components/DataLogTimeline.js +111 -0
- package/dist/src/components/DataSnapshot.js +207 -0
- package/dist/src/components/DataSnapshotList.js +75 -0
- package/dist/src/components/DataSyncInit.js +173 -0
- package/dist/src/components/DblogList.js +6 -0
- package/dist/src/components/DblogList.vue.js +143 -0
- package/dist/src/components/DeptFind.js +8 -0
- package/dist/src/components/DeptFind.vue.js +109 -0
- package/dist/src/components/DynamicUserList.js +5 -0
- package/dist/src/components/DynamicUserList.vue.js +89 -0
- package/dist/src/components/EntityCheckboxFind.js +5 -0
- package/dist/src/components/EntityCheckboxFind.vue.js +97 -0
- package/dist/src/components/EntityRelationAdd.js +388 -0
- package/dist/src/components/EntityRelationAddFormItem.js +5 -0
- package/dist/src/components/EntityRelationAddFormItem.vue.js +284 -0
- package/dist/src/components/EntityRightFormItem.js +10 -0
- package/dist/src/components/EntityRightFormItem.vue.js +401 -0
- package/dist/src/components/EntityRightSubList.js +640 -0
- package/dist/src/components/EntityTagSubList.js +5 -0
- package/dist/src/components/EntityTagSubList.vue.js +103 -0
- package/dist/src/components/EntityTreeManage.js +865 -0
- package/dist/src/components/ExportSystemConfig.js +167 -0
- package/dist/src/components/FieldTreeFind.js +41 -0
- package/dist/src/components/FormulaEditor.js +8 -0
- package/dist/src/components/FormulaEditor.vue.js +1235 -0
- package/dist/src/components/GenTestData.js +638 -0
- package/dist/src/components/HallNav.js +6 -0
- package/dist/src/components/HallNav.vue.js +156 -0
- package/dist/src/components/HeaderNav.js +369 -0
- package/dist/src/components/IconCard.js +98 -0
- package/dist/src/components/IconFontLibrary.js +5 -0
- package/dist/src/components/IconFontLibrary.vue.js +67 -0
- package/dist/src/components/IconFontList.js +5 -0
- package/dist/src/components/IconFontList.vue.js +79 -0
- package/dist/src/components/IdentifyList.js +33 -0
- package/dist/src/components/ImportSystemConfig.js +303 -0
- package/dist/src/components/InterfaceSubList.js +320 -0
- package/dist/src/components/JsPanel.js +101 -0
- package/dist/src/components/LanguageImportPage.js +590 -0
- package/dist/src/components/LanguageSetting.js +545 -0
- package/dist/src/components/List/LinkItem.js +113 -0
- package/dist/src/components/List/List.js +18 -0
- package/dist/src/components/List/ListItem.js +31 -0
- package/dist/src/components/MenuTreeFind.js +8 -0
- package/dist/src/components/MenuTreeFind.vue.js +81 -0
- package/dist/src/components/MessageList.js +8 -0
- package/dist/src/components/MessageList.vue.js +101 -0
- package/dist/src/components/MessageRuleFormItem.js +60 -0
- package/dist/src/components/MessageRuleReceiverFormItem.js +224 -0
- package/dist/src/components/MessageTemplate.js +395 -0
- package/dist/src/components/MessageTemplate.vue.js +693 -0
- package/dist/src/components/MetaList.js +5 -0
- package/dist/src/components/MetaList.vue.js +100 -0
- package/dist/src/components/Nav.js +496 -0
- package/dist/src/components/NavFormCatalogItem.js +7 -0
- package/dist/src/components/NumList.js +60 -0
- package/dist/src/components/OperateLog.js +133 -0
- package/dist/src/components/PageCatalog.js +8 -0
- package/dist/src/components/PageCatalog.vue.js +292 -0
- package/dist/src/components/PageChart.js +213 -0
- package/dist/src/components/PageSwipes.js +132 -0
- package/dist/src/components/PersonFormItem.js +5 -0
- package/dist/src/components/PersonFormItem.vue.js +96 -0
- package/dist/src/components/Popup.js +239 -0
- package/dist/src/components/PrintFormList.js +9 -0
- package/dist/src/components/PrintFormList.vue.js +203 -0
- package/dist/src/components/PublishEntity.js +114 -0
- package/dist/src/components/RelyFieldTreeFind.js +52 -0
- package/dist/src/components/ReportFormList.js +236 -0
- package/dist/src/components/ReportList.js +9 -0
- package/dist/src/components/ReportList.vue.js +248 -0
- package/dist/src/components/RightSubList.js +8 -0
- package/dist/src/components/RightSubList.vue.js +150 -0
- package/dist/src/components/RoleAddUser.js +55 -0
- package/dist/src/components/RoleApplicationCard.js +138 -0
- package/dist/src/components/RoleApplicationList.js +937 -0
- package/dist/src/components/RoleApplicationSet.js +1001 -0
- package/dist/src/components/Search.js +254 -0
- package/dist/src/components/ServiceFormItem.js +33 -0
- package/dist/src/components/SnapshotDataList.js +73 -0
- package/dist/src/components/SystemAdminList.js +8 -0
- package/dist/src/components/SystemAdminList.vue.js +198 -0
- package/dist/src/components/SystemFormItem.js +8 -0
- package/dist/src/components/SystemFormItem.vue.js +170 -0
- package/dist/src/components/SystemNav.js +30 -0
- package/dist/src/components/TaskNumCard.js +23 -0
- package/dist/src/components/TimerRuleFormItem.js +333 -0
- package/dist/src/components/TodoList.js +8 -0
- package/dist/src/components/TodoList.vue.js +327 -0
- package/dist/src/components/UpdateSystemConfig.js +241 -0
- package/dist/src/components/UserCard.js +83 -0
- package/dist/src/components/UserFind.js +6 -0
- package/dist/src/components/UserFind.vue.js +592 -0
- package/dist/src/components/UserFormItem.js +9 -0
- package/dist/src/components/UserFormItem.vue.js +609 -0
- package/dist/src/components/UserList.js +5 -0
- package/dist/src/components/UserList.vue.js +23 -0
- package/dist/src/components/UserManage.js +802 -0
- package/dist/src/components/UserRoleList.js +579 -0
- package/dist/src/components/ValidateRuleFormItem.js +109 -0
- package/dist/src/components/ViewFieldDefine.js +747 -0
- package/dist/src/components/WikiSpaceList.js +5 -0
- package/dist/src/components/WikiSpaceList.vue.js +330 -0
- package/dist/src/components/WikiWorkbench.js +647 -0
- package/dist/src/components/authorization/AddApiPermiss.js +231 -0
- package/dist/src/components/authorization/AddAuthorization.js +161 -0
- package/dist/src/components/authorization/AddEntityFind.js +62 -0
- package/dist/src/components/authorization/AddNoApi.js +191 -0
- package/dist/src/components/authorization/AddRoleScope.js +337 -0
- package/dist/src/components/authorization/AiRolePlan.js +672 -0
- package/dist/src/components/authorization/ApiShareOtherList.js +397 -0
- package/dist/src/components/authorization/ApiSystemList.js +242 -0
- package/dist/src/components/authorization/AuthorizationInterface.js +622 -0
- package/dist/src/components/authorization/AuthorizationRoleSystem.js +850 -0
- package/dist/src/components/authorization/EntityConstraintFormItem.js +284 -0
- package/dist/src/components/authorization/OtherShareApiList.js +247 -0
- package/dist/src/components/authorization/PermissCommonRoleTabs.js +114 -0
- package/dist/src/components/authorization/PermissRoleAuthorization.js +1286 -0
- package/dist/src/components/authorization/PermissRoleTabs.js +113 -0
- package/dist/src/components/authorization/RoleLevel.js +5 -0
- package/dist/src/components/authorization/RoleLevel.vue.js +110 -0
- package/dist/src/components/authorization/RoleLevelScope.js +270 -0
- package/dist/src/components/authorization/SystemAddNoApi.js +187 -0
- package/dist/src/components/card/CardList.js +65 -0
- package/dist/src/components/card/CardListItem.js +97 -0
- package/dist/src/components/card/Title.js +42 -0
- package/dist/src/components/custom-bpmn/CustomContextPad.js +54 -0
- package/dist/src/components/custom-bpmn/CustomPalette.js +5 -0
- package/dist/src/components/custom-bpmn/CustomRenderer.js +5 -0
- package/dist/src/components/custom-bpmn/CustomRendererBpmn.js +88 -0
- package/dist/src/components/custom-bpmn/PropertiesView.js +12560 -0
- package/dist/src/components/custom-bpmn/components/AiModel.js +353 -0
- package/dist/src/components/custom-bpmn/components/Api.js +376 -0
- package/dist/src/components/custom-bpmn/components/BatchOperation.js +209 -0
- package/dist/src/components/custom-bpmn/components/Copy.js +653 -0
- package/dist/src/components/custom-bpmn/components/DataTransform.js +442 -0
- package/dist/src/components/custom-bpmn/components/Demo.js +63 -0
- package/dist/src/components/custom-bpmn/components/EditDiv.js +358 -0
- package/dist/src/components/custom-bpmn/components/GenScope.js +259 -0
- package/dist/src/components/custom-bpmn/components/GlobalParamsTree.js +76 -0
- package/dist/src/components/custom-bpmn/components/Knowledges.js +238 -0
- package/dist/src/components/custom-bpmn/components/Login.js +591 -0
- package/dist/src/components/custom-bpmn/components/MessageQueue.js +221 -0
- package/dist/src/components/custom-bpmn/components/MetaSelect.js +160 -0
- package/dist/src/components/custom-bpmn/components/NumStatistic.js +408 -0
- package/dist/src/components/custom-bpmn/components/ObjectTransform.js +789 -0
- package/dist/src/components/custom-bpmn/components/OutPut.js +395 -0
- package/dist/src/components/custom-bpmn/components/ParamsMachining.js +889 -0
- package/dist/src/components/custom-bpmn/components/ParamsOutput.js +161 -0
- package/dist/src/components/custom-bpmn/components/ProcessAudit.js +796 -0
- package/dist/src/components/custom-bpmn/components/SingleMultipleFind.js +1040 -0
- package/dist/src/components/custom-bpmn/components/TestDialog.js +861 -0
- package/dist/src/components/custom-bpmn/img/chaxun.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/fasong.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/gengxin.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/jiagong.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/jiekou.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/shanchu.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/tongbu.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/xinzeng.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/xunhuanend.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/xunhuanstart.png.js +4 -0
- package/dist/src/components/custom-bpmn/img/ywgz.png.js +4 -0
- package/dist/src/components/custom-bpmn/index.js +5 -0
- package/dist/src/components/custom-bpmn/palette.js +13 -0
- package/dist/src/components/custom-bpmn/util.js +7 -0
- package/dist/src/components/dashboard-create.js +20 -0
- package/dist/src/components/entity-relation-diagram/Er.js +340 -0
- package/dist/src/components/entity-relation-diagram/renderErNode.js +36 -0
- package/dist/src/components/expand/AddForm.js +86 -0
- package/dist/src/components/expand/AddFormItem.js +149 -0
- package/dist/src/components/filter/Filter.js +720 -0
- package/dist/src/components/filter/FilterItem.js +493 -0
- package/dist/src/components/hall/AppCollect.js +121 -0
- package/dist/src/components/hall/AppList.js +480 -0
- package/dist/src/components/hall/AppVisitRecord.js +113 -0
- package/dist/src/components/hall/Banner.js +33 -0
- package/dist/src/components/hall/ServiceCard.js +124 -0
- package/dist/src/components/hall/UserCard.js +81 -0
- package/dist/src/components/permiss/AddApi.js +143 -0
- package/dist/src/components/permiss/AddNoEntityApi.js +180 -0
- package/dist/src/components/permiss/AddSystemPermiss.js +131 -0
- package/dist/src/components/permiss/AllocateRole.js +131 -0
- package/dist/src/components/permiss/ApiSubList.js +151 -0
- package/dist/src/components/permiss/CommonRoleMenu.js +591 -0
- package/dist/src/components/permiss/FieldScope.js +200 -0
- package/dist/src/components/permiss/PermissManage.js +88 -0
- package/dist/src/components/permiss/RoleAppList.js +36 -0
- package/dist/src/components/permiss/RoleMenu.js +518 -0
- package/dist/src/components/permiss/RoleSubList.js +5 -0
- package/dist/src/components/permiss/RoleSubList.vue.js +300 -0
- package/dist/src/components/permiss/jurisdiction.js +359 -0
- package/dist/src/components/process-healthcheck/HealthcheckChart.js +234 -0
- package/dist/src/components/process-healthcheck/HealthcheckChart.vue.js +348 -0
- package/dist/src/components/process-healthcheck/HealthcheckRenderer.js +36 -0
- package/dist/src/components/process-healthcheck/index.js +8 -0
- package/dist/src/components/report/Config.js +1708 -0
- package/dist/src/components/report/Design.js +4632 -0
- package/dist/src/components/report/StatList.js +217 -0
- package/dist/src/components/right/EntityOtherSystemList.js +82 -0
- package/dist/src/components/right/SystemInterfaceList.js +418 -0
- package/dist/src/components/right/SystemList.js +1017 -0
- package/dist/src/components/upLoad.js +71 -0
- package/dist/src/components/viewport/LookViewList.js +22 -0
- package/dist/src/components/viewport/ViewAddForm.js +142 -0
- package/dist/src/components/viewport/ViewDefineList.js +50 -0
- package/dist/src/components/viewport/ViewFiedList.js +723 -0
- package/dist/src/components/viewport/ViewScope.js +116 -0
- package/dist/src/components/wiki-workbench/WikiCites.js +301 -0
- package/dist/src/components/wiki-workbench/WikiIntake.js +308 -0
- package/dist/src/components/wiki-workbench/WikiIntake.vue.js +309 -0
- package/dist/src/components/wiki-workbench/WikiJobs.js +195 -0
- package/dist/src/components/wiki-workbench/WikiRevisions.js +229 -0
- package/dist/src/components/wiki-workbench/WikiSpaceSettings.js +59 -0
- package/dist/src/components/wiki-workbench/WikiSpaceSettings.vue.js +127 -0
- package/dist/src/components/wiki-workbench/codes.js +27 -0
- package/dist/src/components/wiki-workbench/index.js +13 -0
- package/dist/src/index.js +42 -0
- package/dist/src/popup.js +68 -0
- package/dist/src/public-components.js +20 -0
- package/dist/src/remote.entry.js +31 -0
- package/dist/src/route-components.js +12 -0
- package/dist/src/system.component.index.js +5 -0
- package/dist/src/system.component.js +342 -0
- package/dist/src/system.component.lazy.js +50 -0
- package/dist/src/views/Add.js +8 -0
- package/dist/src/views/Add.vue.js +734 -0
- package/dist/src/views/AiToolManager.js +2530 -0
- package/dist/src/views/App.js +48 -0
- package/dist/src/views/AppRoleSelect.js +233 -0
- package/dist/src/views/BatchEdit.js +256 -0
- package/dist/src/views/Bpmn.js +319 -0
- package/dist/src/views/Bpmn.vue.js +1196 -0
- package/dist/src/views/EntityCheckPage.js +49 -0
- package/dist/src/views/EntityDetailPage.js +5 -0
- package/dist/src/views/EntityDetailPage.vue.js +73 -0
- package/dist/src/views/EntityEditPage.js +10 -0
- package/dist/src/views/EntitySubListPage.js +41 -0
- package/dist/src/views/EntityTreePage.js +32 -0
- package/dist/src/views/Error.js +210 -0
- package/dist/src/views/ExcelDesign.js +2730 -0
- package/dist/src/views/ExcelDesign.vue.js +2165 -0
- package/dist/src/views/ExcelPreviewPage.js +166 -0
- package/dist/src/views/ExcelPreviewPage.vue.js +572 -0
- package/dist/src/views/ExportFilePage.js +21 -0
- package/dist/src/views/ExportPage.js +21 -0
- package/dist/src/views/FormDesign.js +1033 -0
- package/dist/src/views/FormDesign.vue.js +1564 -0
- package/dist/src/views/I18nWorkbench.js +521 -0
- package/dist/src/views/ImportFilePage.js +21 -0
- package/dist/src/views/ImportPage.js +21 -0
- package/dist/src/views/MEntityListPage.js +66 -0
- package/dist/src/views/MEntitySubListPage.js +41 -0
- package/dist/src/views/MinePage.js +16 -0
- package/dist/src/views/Module.js +173 -0
- package/dist/src/views/PageAttributeTreePage.js +421 -0
- package/dist/src/views/PageConfig.js +177 -0
- package/dist/src/views/Permission.js +742 -0
- package/dist/src/views/PersonalInfo.js +792 -0
- package/dist/src/views/QyWechat.js +62 -0
- package/dist/src/views/ReportFormListPage.js +77 -0
- package/dist/src/views/TaskPage.js +180 -0
- package/dist/src/views/WikiBinding.js +614 -0
- package/dist/src/views/client/AddForm.js +55 -0
- package/dist/src/views/client/AppMarket.js +290 -0
- package/dist/src/views/client/ClientIndex.js +209 -0
- package/dist/src/views/client/ClientModuleIndexPage.js +5 -0
- package/dist/src/views/client/ClientModuleIndexPage.vue.js +30 -0
- package/dist/src/views/client/CopySystem.js +136 -0
- package/dist/src/views/client/CreateAppFormItem.js +8 -0
- package/dist/src/views/client/CreateAppFormItem.vue.js +232 -0
- package/dist/src/views/client/CreateMethod.js +76 -0
- package/dist/src/views/client/InstallSystem.js +309 -0
- package/dist/src/views/client/ManageList.js +5 -0
- package/dist/src/views/client/ManageList.vue.js +211 -0
- package/dist/src/views/client/OpenClientManage.js +51 -0
- package/dist/src/views/client/OpenSystemManage.js +56 -0
- package/dist/src/views/client/PageTabsCyclic.js +92 -0
- package/dist/src/views/client/SelfBuiltSystem.js +444 -0
- package/dist/src/views/client/StandardProduct.js +233 -0
- package/dist/src/views/client/SystemAppAccredit.js +561 -0
- package/dist/src/views/client/SystemAppManager.js +293 -0
- package/dist/src/views/client/SystemAppManager.vue.js +559 -0
- package/dist/src/views/client/SystemManager.js +452 -0
- package/dist/src/views/client/SystemManager.vue.js +522 -0
- package/dist/src/views/i18n/I18nAiTaskHistoryDialog.js +230 -0
- package/dist/src/views/i18n/I18nPublishDialog.js +451 -0
- package/dist/src/views/i18n/I18nTranslationList.js +8 -0
- package/dist/src/views/i18n/I18nTranslationList.vue.js +247 -0
- package/dist/src/views/i18n/i18n-workbench-text.js +11 -0
- package/dist/src/views/layout/CardList.js +96 -0
- package/dist/src/views/layout/Grid.js +138 -0
- package/dist/src/views/match/AddTargetField.js +8 -0
- package/dist/src/views/match/AddTargetField.vue.js +127 -0
- package/dist/src/views/match/MatchAddFormItem.js +5 -0
- package/dist/src/views/match/MatchAddFormItem.vue.js +84 -0
- package/dist/src/views/match/conversion.js +805 -0
- package/dist/src/views/match/customize.js +391 -0
- package/dist/src/views/match/fieldMatch.js +8 -0
- package/dist/src/views/match/fieldMatch.vue.js +610 -0
- package/dist/src/views/report/AddFormItem.js +60 -0
- package/dist/src/views/report/DesignReport.js +1392 -0
- package/dist/src/views/report/ReportTreeFind.js +8 -0
- package/dist/src/views/report/ReportTreeFind.vue.js +166 -0
- package/dist/style.css +33364 -0
- package/package.json +133 -3
- package/src/base/AiPromptDesigner.vue +653 -0
- package/src/base/AiPromptView.vue +467 -0
- package/src/base/AiSkillEditor.vue +2125 -0
- package/src/base/AppConfigFormItem.vue +404 -0
- package/src/base/AppMarket.vue +264 -0
- package/src/base/AppMarketList.vue +233 -0
- package/src/base/AppMarketSystemDetail.vue +380 -0
- package/src/base/AttributeSubAdd.vue +29 -0
- package/src/base/ChooseApplication.vue +176 -0
- package/src/base/ClientAppItem.vue +247 -0
- package/src/base/ClientApplication.vue +447 -0
- package/src/base/ClientApplicationList.vue +180 -0
- package/src/base/ClientModule.vue +69 -0
- package/src/base/ClientModuleIndex.vue +437 -0
- package/src/base/ClientSystemDetail.vue +319 -0
- package/src/base/ClientSystemList.vue +435 -0
- package/src/base/CommonFieldList.vue +1397 -0
- package/src/base/CommonSearchList.vue +191 -0
- package/src/base/CompayDetail.vue +199 -0
- package/src/base/ComponentGlobalSet.vue +842 -0
- package/src/base/ComponentParamsTree.vue +310 -0
- package/src/base/ConfigModuleIndex.vue +121 -0
- package/src/base/CurrentClientApplication.vue +37 -0
- package/src/base/CurrentVersionInfo.vue +107 -0
- package/src/base/EntityMatchCompare.vue +442 -0
- package/src/base/FieldRelationFormItem.vue +260 -0
- package/src/base/HelpDocSet.vue +1217 -0
- package/src/base/IndexFormItem.vue +197 -0
- package/src/base/JobFormItem.vue +101 -0
- package/src/base/ManageAppNav.vue +1190 -0
- package/src/base/ManageMenu.vue +935 -0
- package/src/base/ManageMenuItem.vue +399 -0
- package/src/base/NoInstallSystemList.vue +114 -0
- package/src/base/PageList.vue +47 -0
- package/src/base/PasswordFormItem.vue +94 -0
- package/src/base/ProcessFormItem.vue +129 -0
- package/src/base/PublishSystemApplyFormItem.vue +87 -0
- package/src/base/RequestLog.vue +198 -0
- package/src/base/RightRiskList.vue +212 -0
- package/src/base/RoleAccredit.vue +961 -0
- package/src/base/RoleRightList.vue +159 -0
- package/src/base/RoleUserManage.vue +186 -0
- package/src/base/ServiceAccredit.vue +956 -0
- package/src/base/ServiceMenu.vue +420 -0
- package/src/base/ServiceMenuFormItem.vue +22 -0
- package/src/base/ServiceOperate.vue +929 -0
- package/src/base/SystemHelpTreeFind.vue +50 -0
- package/src/base/aiPromptMode.js +153 -0
- package/src/base/data-check/DataChckDetail.vue +281 -0
- package/src/base/data-check/DataCheck.vue +261 -0
- package/src/base/data-check/DataCheckList.vue +327 -0
- package/src/base/data-check/DataCheckSubList.vue +160 -0
- package/src/base/entity-view/EntityViewFormItem.vue +170 -0
- package/src/base/entity-view/EntityViewSubList.vue +149 -0
- package/src/base/entity-view-config/BasicInfoDialog.vue +156 -0
- package/src/base/entity-view-config/FieldPanel.vue +742 -0
- package/src/base/entity-view-config/FieldPropForm.vue +687 -0
- package/src/base/entity-view-config/FormulaDialog.vue +153 -0
- package/src/base/entity-view-config/ObjectFieldDialog.vue +367 -0
- package/src/base/entity-view-config/RelationPanel.vue +951 -0
- package/src/base/entity-view-config/SourceManagerDialog.vue +428 -0
- package/src/base/entity-view-config/SqlPanel.vue +138 -0
- package/src/base/entity-view-config/UnionPanel.vue +1037 -0
- package/src/base/entity-view-config/ViewConfig.vue +661 -0
- package/src/base/entity-view-config/constants.js +139 -0
- package/src/base/user-type/UserTypeFormItem.vue +134 -0
- package/src/components/AddPageFormItem.vue +82 -0
- package/src/components/AddUsedInterface.vue +154 -0
- package/src/components/AiDocFormItem.vue +293 -0
- package/src/components/AiList.vue +132 -0
- package/src/components/AiPermissionAssistant.vue +304 -0
- package/src/components/AppList.vue +330 -0
- package/src/components/Apply/AIApplyIndex.vue +458 -0
- package/src/components/Apply/ApplyIndex.vue +358 -0
- package/src/components/AttributeList.vue +667 -0
- package/src/components/Banner.vue +24 -0
- package/src/components/BatchAddFieldDialog.vue +590 -0
- package/src/components/CardO.vue +112 -0
- package/src/components/CheckForm.vue +32 -0
- package/src/components/ClientAdminFormItem.vue +49 -0
- package/src/components/ClientAdminList.vue +434 -0
- package/src/components/ClientFormItem.vue +49 -0
- package/src/components/ClientList.vue +155 -0
- package/src/components/CodeDetail.vue +465 -0
- package/src/components/CodeManage.vue +1004 -0
- package/src/components/ComponentFind.vue +222 -0
- package/src/components/ComponentList.vue +526 -0
- package/src/components/ConfigParamFormItem.vue +383 -0
- package/src/components/CreatePage.vue +348 -0
- package/src/components/DashboardCreate.vue +73 -0
- package/src/components/DataLog.vue +181 -0
- package/src/components/DataLogTimeline.vue +202 -0
- package/src/components/DataSnapshot.vue +264 -0
- package/src/components/DataSnapshotList.vue +79 -0
- package/src/components/DataSyncInit.vue +97 -0
- package/src/components/DblogList.vue +163 -0
- package/src/components/DeptFind.vue +203 -0
- package/src/components/DynamicUserList.vue +72 -0
- package/src/components/EntityCheckboxFind.vue +90 -0
- package/src/components/EntityRelationAdd.vue +201 -0
- package/src/components/EntityRelationAddFormItem.vue +235 -0
- package/src/components/EntityRightFormItem.vue +618 -0
- package/src/components/EntityRightSubList.vue +740 -0
- package/src/components/EntityTagSubList.vue +72 -0
- package/src/components/EntityTreeManage.vue +988 -0
- package/src/components/ExportSystemConfig.vue +131 -0
- package/src/components/FieldTreeFind.vue +48 -0
- package/src/components/FormulaEditor.vue +1220 -0
- package/src/components/GenTestData.vue +787 -0
- package/src/components/HallNav.vue +539 -0
- package/src/components/HeaderNav.vue +447 -0
- package/src/components/IconCard.vue +158 -0
- package/src/components/IconFontLibrary.vue +61 -0
- package/src/components/IconFontList.vue +75 -0
- package/src/components/IdentifyList.vue +33 -0
- package/src/components/ImportSystemConfig.vue +234 -0
- package/src/components/InterfaceSubList.vue +295 -0
- package/src/components/JsPanel.vue +111 -0
- package/src/components/LanguageImportPage.vue +601 -0
- package/src/components/LanguageSetting.vue +451 -0
- package/src/components/List/LinkItem.vue +98 -0
- package/src/components/List/List.vue +17 -0
- package/src/components/List/ListItem.vue +52 -0
- package/src/components/MenuTreeFind.vue +128 -0
- package/src/components/MessageList.vue +198 -0
- package/src/components/MessageRuleFormItem.vue +60 -0
- package/src/components/MessageRuleReceiverFormItem.vue +179 -0
- package/src/components/MessageTemplate.vue +949 -0
- package/src/components/MetaList.vue +108 -0
- package/src/components/Nav.vue +604 -0
- package/src/components/NavFormCatalogItem.vue +9 -0
- package/src/components/NumList.vue +108 -0
- package/src/components/OperateLog.vue +168 -0
- package/src/components/PageCatalog.vue +458 -0
- package/src/components/PageChart.vue +339 -0
- package/src/components/PageSwipes.vue +234 -0
- package/src/components/PersonFormItem.vue +94 -0
- package/src/components/Popup.vue +393 -0
- package/src/components/PrintFormList.vue +529 -0
- package/src/components/PublishEntity.vue +87 -0
- package/src/components/RelyFieldTreeFind.vue +57 -0
- package/src/components/ReportFormList.vue +247 -0
- package/src/components/ReportList.vue +647 -0
- package/src/components/RightSubList.vue +256 -0
- package/src/components/RoleAddUser.vue +56 -0
- package/src/components/RoleApplicationCard.vue +299 -0
- package/src/components/RoleApplicationList.vue +766 -0
- package/src/components/RoleApplicationSet.vue +845 -0
- package/src/components/Search.vue +272 -0
- package/src/components/ServiceFormItem.vue +35 -0
- package/src/components/SnapshotDataList.vue +78 -0
- package/src/components/SystemAdminList.vue +497 -0
- package/src/components/SystemFormItem.vue +125 -0
- package/src/components/SystemNav.vue +29 -0
- package/src/components/TaskNumCard.vue +26 -0
- package/src/components/TimerRuleFormItem.vue +227 -0
- package/src/components/TodoList.vue +424 -0
- package/src/components/UpdateSystemConfig.vue +200 -0
- package/src/components/UserCard.vue +110 -0
- package/src/components/UserFind.vue +702 -0
- package/src/components/UserFormItem.vue +762 -0
- package/src/components/UserList.vue +19 -0
- package/src/components/UserManage.vue +758 -0
- package/src/components/UserRoleList.vue +497 -0
- package/src/components/ValidateRuleFormItem.vue +90 -0
- package/src/components/ViewFieldDefine.vue +703 -0
- package/src/components/WikiSpaceList.vue +270 -0
- package/src/components/WikiWorkbench.vue +717 -0
- package/src/components/authorization/AddApiPermiss.vue +179 -0
- package/src/components/authorization/AddAuthorization.vue +135 -0
- package/src/components/authorization/AddEntityFind.vue +68 -0
- package/src/components/authorization/AddNoApi.vue +143 -0
- package/src/components/authorization/AddRoleScope.vue +291 -0
- package/src/components/authorization/AiRolePlan.vue +751 -0
- package/src/components/authorization/ApiShareOtherList.vue +353 -0
- package/src/components/authorization/ApiSystemList.vue +314 -0
- package/src/components/authorization/AuthorizationInterface.vue +668 -0
- package/src/components/authorization/AuthorizationRoleSystem.vue +713 -0
- package/src/components/authorization/EntityConstraintFormItem.vue +257 -0
- package/src/components/authorization/OtherShareApiList.vue +248 -0
- package/src/components/authorization/PermissCommonRoleTabs.vue +122 -0
- package/src/components/authorization/PermissRoleAuthorization.vue +1097 -0
- package/src/components/authorization/PermissRoleTabs.vue +121 -0
- package/src/components/authorization/RoleLevel.vue +113 -0
- package/src/components/authorization/RoleLevelScope.vue +247 -0
- package/src/components/authorization/SystemAddNoApi.vue +139 -0
- package/src/components/card/CardList.vue +78 -0
- package/src/components/card/CardListItem.vue +147 -0
- package/src/components/card/Title.vue +38 -0
- package/src/components/custom-bpmn/CustomContextPad.js +58 -0
- package/src/components/custom-bpmn/CustomPalette.js +1 -0
- package/src/components/custom-bpmn/CustomRenderer.js +1 -0
- package/src/components/custom-bpmn/CustomRendererBpmn.js +84 -0
- package/src/components/custom-bpmn/PropertiesView.vue +7879 -0
- package/src/components/custom-bpmn/components/AiModel.vue +373 -0
- package/src/components/custom-bpmn/components/Api.vue +290 -0
- package/src/components/custom-bpmn/components/BatchOperation.vue +145 -0
- package/src/components/custom-bpmn/components/Copy.vue +440 -0
- package/src/components/custom-bpmn/components/DataTransform.vue +260 -0
- package/src/components/custom-bpmn/components/Demo.vue +64 -0
- package/src/components/custom-bpmn/components/EditDiv.vue +466 -0
- package/src/components/custom-bpmn/components/GenScope.vue +252 -0
- package/src/components/custom-bpmn/components/GlobalParamsTree.vue +61 -0
- package/src/components/custom-bpmn/components/Knowledges.vue +182 -0
- package/src/components/custom-bpmn/components/Login.vue +372 -0
- package/src/components/custom-bpmn/components/MessageQueue.vue +167 -0
- package/src/components/custom-bpmn/components/MetaSelect.vue +136 -0
- package/src/components/custom-bpmn/components/NumStatistic.vue +245 -0
- package/src/components/custom-bpmn/components/ObjectTransform.vue +454 -0
- package/src/components/custom-bpmn/components/OutPut.vue +412 -0
- package/src/components/custom-bpmn/components/ParamsMachining.vue +644 -0
- package/src/components/custom-bpmn/components/ParamsOutput.vue +130 -0
- package/src/components/custom-bpmn/components/ProcessAudit.vue +443 -0
- package/src/components/custom-bpmn/components/SingleMultipleFind.vue +637 -0
- package/src/components/custom-bpmn/components/TestDialog.vue +1068 -0
- package/src/components/custom-bpmn/img/chaxun.png +0 -0
- package/src/components/custom-bpmn/img/fasong.png +0 -0
- package/src/components/custom-bpmn/img/gengxin.png +0 -0
- package/src/components/custom-bpmn/img/jiagong.png +0 -0
- package/src/components/custom-bpmn/img/jiekou.png +0 -0
- package/src/components/custom-bpmn/img/shanchu.png +0 -0
- package/src/components/custom-bpmn/img/tongbu.png +0 -0
- package/src/components/custom-bpmn/img/xinzeng.png +0 -0
- package/src/components/custom-bpmn/img/xunhuanend.png +0 -0
- package/src/components/custom-bpmn/img/xunhuanstart.png +0 -0
- package/src/components/custom-bpmn/img/ywgz.png +0 -0
- package/src/components/custom-bpmn/index.js +1 -0
- package/src/components/custom-bpmn/palette.js +18 -0
- package/src/components/custom-bpmn/util.js +5 -0
- package/src/components/dashboard-create.js +17 -0
- package/src/components/entity-relation-diagram/Er.vue +360 -0
- package/src/components/entity-relation-diagram/renderErNode.js +32 -0
- package/src/components/expand/AddForm.vue +91 -0
- package/src/components/expand/AddFormItem.vue +150 -0
- package/src/components/filter/Filter.vue +739 -0
- package/src/components/filter/FilterItem.vue +516 -0
- package/src/components/hall/AppCollect.vue +190 -0
- package/src/components/hall/AppList.vue +513 -0
- package/src/components/hall/AppVisitRecord.vue +171 -0
- package/src/components/hall/Banner.vue +21 -0
- package/src/components/hall/ServiceCard.vue +204 -0
- package/src/components/hall/UserCard.vue +114 -0
- package/src/components/permiss/AddApi.vue +119 -0
- package/src/components/permiss/AddNoEntityApi.vue +131 -0
- package/src/components/permiss/AddSystemPermiss.vue +107 -0
- package/src/components/permiss/AllocateRole.vue +107 -0
- package/src/components/permiss/ApiSubList.vue +193 -0
- package/src/components/permiss/CommonRoleMenu.vue +631 -0
- package/src/components/permiss/FieldScope.vue +138 -0
- package/src/components/permiss/PermissManage.vue +96 -0
- package/src/components/permiss/RoleAppList.vue +52 -0
- package/src/components/permiss/RoleMenu.vue +547 -0
- package/src/components/permiss/RoleSubList.vue +263 -0
- package/src/components/permiss/jurisdiction.vue +425 -0
- package/src/components/process-healthcheck/HealthcheckChart.vue +529 -0
- package/src/components/process-healthcheck/HealthcheckRenderer.js +41 -0
- package/src/components/process-healthcheck/index.js +8 -0
- package/src/components/report/Config.vue +1654 -0
- package/src/components/report/Design.vue +3528 -0
- package/src/components/report/StatList.vue +234 -0
- package/src/components/right/EntityOtherSystemList.vue +73 -0
- package/src/components/right/SystemInterfaceList.vue +413 -0
- package/src/components/right/SystemList.vue +848 -0
- package/src/components/upLoad.vue +69 -0
- package/src/components/viewport/LookViewList.vue +28 -0
- package/src/components/viewport/ViewAddForm.vue +151 -0
- package/src/components/viewport/ViewDefineList.vue +53 -0
- package/src/components/viewport/ViewFiedList.vue +646 -0
- package/src/components/viewport/ViewScope.vue +112 -0
- package/src/components/wiki-workbench/WikiCites.vue +234 -0
- package/src/components/wiki-workbench/WikiIntake.vue +505 -0
- package/src/components/wiki-workbench/WikiJobs.vue +175 -0
- package/src/components/wiki-workbench/WikiRevisions.vue +208 -0
- package/src/components/wiki-workbench/WikiSpaceSettings.vue +137 -0
- package/src/components/wiki-workbench/codes.js +43 -0
- package/src/components/wiki-workbench/index.js +15 -0
- package/src/index.js +20 -0
- package/src/popup.js +86 -0
- package/src/public-components.js +8 -0
- package/src/remote.entry.js +42 -0
- package/src/route-components.js +8 -0
- package/src/system.component.index.js +3 -0
- package/src/system.component.js +46 -0
- package/src/system.component.lazy.js +68 -0
- package/src/system.component.visual.js +18 -0
- package/src/views/Add.vue +827 -0
- package/src/views/AiToolManager.vue +2372 -0
- package/src/views/App.vue +53 -0
- package/src/views/AppRoleSelect.vue +334 -0
- package/src/views/BatchEdit.vue +238 -0
- package/src/views/Bpmn.vue +1713 -0
- package/src/views/EntityCheckPage.vue +52 -0
- package/src/views/EntityDetailPage.vue +79 -0
- package/src/views/EntityEditPage.vue +13 -0
- package/src/views/EntitySubListPage.vue +44 -0
- package/src/views/EntityTreePage.vue +37 -0
- package/src/views/Error.vue +63 -0
- package/src/views/ExcelDesign.vue +3350 -0
- package/src/views/ExcelPreviewPage.vue +590 -0
- package/src/views/ExportFilePage.vue +19 -0
- package/src/views/ExportPage.vue +19 -0
- package/src/views/FormDesign.vue +2301 -0
- package/src/views/I18nWorkbench.vue +508 -0
- package/src/views/ImportFilePage.vue +19 -0
- package/src/views/ImportPage.vue +19 -0
- package/src/views/MEntityListPage.vue +83 -0
- package/src/views/MEntitySubListPage.vue +44 -0
- package/src/views/MinePage.vue +18 -0
- package/src/views/Module.vue +210 -0
- package/src/views/PageAttributeTreePage.vue +437 -0
- package/src/views/PageConfig.vue +259 -0
- package/src/views/Permission.vue +695 -0
- package/src/views/PersonalInfo.vue +693 -0
- package/src/views/QyWechat.vue +69 -0
- package/src/views/ReportFormListPage.vue +82 -0
- package/src/views/TaskPage.vue +199 -0
- package/src/views/WikiBinding.vue +740 -0
- package/src/views/client/AddForm.vue +64 -0
- package/src/views/client/AppMarket.vue +380 -0
- package/src/views/client/ClientIndex.vue +261 -0
- package/src/views/client/ClientModuleIndexPage.vue +35 -0
- package/src/views/client/CopySystem.vue +179 -0
- package/src/views/client/CreateAppFormItem.vue +285 -0
- package/src/views/client/CreateMethod.vue +114 -0
- package/src/views/client/InstallSystem.vue +295 -0
- package/src/views/client/ManageList.vue +178 -0
- package/src/views/client/OpenClientManage.vue +54 -0
- package/src/views/client/OpenSystemManage.vue +57 -0
- package/src/views/client/PageTabsCyclic.vue +121 -0
- package/src/views/client/SelfBuiltSystem.vue +497 -0
- package/src/views/client/StandardProduct.vue +325 -0
- package/src/views/client/SystemAppAccredit.vue +607 -0
- package/src/views/client/SystemAppManager.vue +967 -0
- package/src/views/client/SystemManager.vue +998 -0
- package/src/views/i18n/I18nAiTaskHistoryDialog.vue +173 -0
- package/src/views/i18n/I18nPublishDialog.vue +360 -0
- package/src/views/i18n/I18nTranslationList.vue +195 -0
- package/src/views/i18n/i18n-workbench-text.js +7 -0
- package/src/views/layout/CardList.vue +122 -0
- package/src/views/layout/Grid.vue +176 -0
- package/src/views/match/AddTargetField.vue +136 -0
- package/src/views/match/MatchAddFormItem.vue +87 -0
- package/src/views/match/conversion.vue +740 -0
- package/src/views/match/customize.vue +374 -0
- package/src/views/match/fieldMatch.vue +734 -0
- package/src/views/report/AddFormItem.vue +66 -0
- package/src/views/report/DesignReport.vue +1229 -0
- package/src/views/report/ReportTreeFind.vue +195 -0
- package/types/dept-find.d.ts +1 -0
- package/types/entity-tree-manage.d.ts +1 -0
- package/types/excel-preview-page.d.ts +1 -0
- package/types/header-nav.d.ts +1 -0
- package/types/index.d.ts +14 -0
- package/types/page-catalog.d.ts +1 -0
- package/types/popup.d.ts +2 -0
- package/types/report-form-list-page.d.ts +1 -0
- package/types/report-form-list.d.ts +1 -0
- package/types/route-components.d.ts +1 -0
- package/types/user-find.d.ts +1 -0
|
@@ -0,0 +1,2165 @@
|
|
|
1
|
+
import { mapGetters, mapState } from "vuex";
|
|
2
|
+
const ADD_META = "ADD_META";
|
|
3
|
+
const letterToNumber = (str) => {
|
|
4
|
+
let result = 0;
|
|
5
|
+
for (let i = 0; i < str.length; i++) {
|
|
6
|
+
const charCode = str.charCodeAt(i) - 65;
|
|
7
|
+
result = result * 26 + charCode;
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
const DEFAULT_ROW_NUM = 84;
|
|
12
|
+
const DEFAULT_COLUMN_NUM = 60;
|
|
13
|
+
const MAX_ROW_NUM = 5e3;
|
|
14
|
+
const MAX_COLUMN_NUM = 1e3;
|
|
15
|
+
const NumberToLetter = (num) => {
|
|
16
|
+
let result = "";
|
|
17
|
+
while (num > 0) {
|
|
18
|
+
const remainder = num % 26;
|
|
19
|
+
result = String.fromCharCode(65 + remainder) + result;
|
|
20
|
+
num = Math.floor(num / 26);
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
const _sfc_main = {
|
|
25
|
+
name: "epx-excel-design",
|
|
26
|
+
navConfigs: {
|
|
27
|
+
flag: false
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
editName: false,
|
|
32
|
+
globalSetting: false,
|
|
33
|
+
formData: {},
|
|
34
|
+
activeCell: null,
|
|
35
|
+
// 表格行列数(与 luckysheet 当前 sheet 保持同步,随内容一起存入 CONTENT)
|
|
36
|
+
gridSize: {
|
|
37
|
+
row: DEFAULT_ROW_NUM,
|
|
38
|
+
column: DEFAULT_COLUMN_NUM
|
|
39
|
+
},
|
|
40
|
+
// 右侧快捷加列
|
|
41
|
+
addColumnVisible: false,
|
|
42
|
+
addColumnNum: 10,
|
|
43
|
+
leftCellWay: "default",
|
|
44
|
+
topCellWay: "default",
|
|
45
|
+
relyCellWay: "default",
|
|
46
|
+
excelInfo: {},
|
|
47
|
+
dataSource: [],
|
|
48
|
+
dataSourceModal: false,
|
|
49
|
+
setting: {
|
|
50
|
+
height: 500
|
|
51
|
+
},
|
|
52
|
+
dataSourceInfo: {},
|
|
53
|
+
linkEntityTree: [],
|
|
54
|
+
allFields: [],
|
|
55
|
+
fields: [],
|
|
56
|
+
defaultExpandKey: [],
|
|
57
|
+
defaultProps: {
|
|
58
|
+
children: "children",
|
|
59
|
+
label: "text"
|
|
60
|
+
},
|
|
61
|
+
initCondition: [],
|
|
62
|
+
searchParams: [],
|
|
63
|
+
formParam: {},
|
|
64
|
+
formParams: [],
|
|
65
|
+
formParamModal: false,
|
|
66
|
+
editFormParamId: "",
|
|
67
|
+
showFormParamsDialog: false,
|
|
68
|
+
previewParams: {},
|
|
69
|
+
isImportExcel: false,
|
|
70
|
+
showFilterConditionDialog: false,
|
|
71
|
+
filterConditionForm: {},
|
|
72
|
+
editFilterConditionIndex: null,
|
|
73
|
+
showConditionPropertyItemDialog: false,
|
|
74
|
+
conditionPropertyItems: [],
|
|
75
|
+
showConditionPropertyItemNameDialog: false,
|
|
76
|
+
conditionPropertyItemNameForm: {},
|
|
77
|
+
currentConditionPropertyItem: {},
|
|
78
|
+
showConditionPropertyItemConditionDialog: false,
|
|
79
|
+
conditionPropertyItemConditionForm: {},
|
|
80
|
+
fieldRelation: [],
|
|
81
|
+
watermarkFieldsConfigs: [],
|
|
82
|
+
otherFieldsConfigs: [],
|
|
83
|
+
processParams: [],
|
|
84
|
+
searchText: "",
|
|
85
|
+
showLogField: false,
|
|
86
|
+
showSubField: true,
|
|
87
|
+
currentLanguage: this.defaultLanguage,
|
|
88
|
+
languageContent: {},
|
|
89
|
+
showMultiValueDialog: false,
|
|
90
|
+
entityDataMap: {},
|
|
91
|
+
printChecks: [],
|
|
92
|
+
checkRuleDialog: false,
|
|
93
|
+
editingCheckIndex: -1,
|
|
94
|
+
checkRuleForm: {
|
|
95
|
+
name: "",
|
|
96
|
+
expression: "",
|
|
97
|
+
errorInfo: "",
|
|
98
|
+
enable: true
|
|
99
|
+
},
|
|
100
|
+
formulaDialog: false
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
computed: {
|
|
104
|
+
...mapState({
|
|
105
|
+
systemVariableList: (state) => state.config.systemVariableList,
|
|
106
|
+
// 当前导航菜单
|
|
107
|
+
showMenu: (state) => state.config.showMenu,
|
|
108
|
+
showAppNav: (state) => state.config.showAppNav
|
|
109
|
+
}),
|
|
110
|
+
...mapGetters(["getMetaViewFields"]),
|
|
111
|
+
// 父格/依赖格下拉的列名,跟随表格实际列数
|
|
112
|
+
columnList() {
|
|
113
|
+
const len = Math.max(this.gridSize.column || 0, DEFAULT_COLUMN_NUM);
|
|
114
|
+
return new Array(len).fill(0).map((item, index) => this.NumToString(index + 1));
|
|
115
|
+
},
|
|
116
|
+
// 父格/依赖格下拉的行号,跟随表格实际行数
|
|
117
|
+
rowList() {
|
|
118
|
+
const len = Math.max(this.gridSize.row || 0, 500);
|
|
119
|
+
return new Array(len).fill(0).map((item, index) => index + 1 + "");
|
|
120
|
+
},
|
|
121
|
+
variableTree() {
|
|
122
|
+
return [{
|
|
123
|
+
value: "customParams",
|
|
124
|
+
type: "folder",
|
|
125
|
+
name: "自定义参数",
|
|
126
|
+
children: this.formParams.map((item) => ({
|
|
127
|
+
...item,
|
|
128
|
+
name: item.NAME,
|
|
129
|
+
value: item.CODE
|
|
130
|
+
}))
|
|
131
|
+
}, {
|
|
132
|
+
value: "systemVariable",
|
|
133
|
+
type: "folder",
|
|
134
|
+
name: "系统变量",
|
|
135
|
+
children: this.systemVariableList
|
|
136
|
+
}, {
|
|
137
|
+
value: "processParams",
|
|
138
|
+
type: "folder",
|
|
139
|
+
name: "流程参数",
|
|
140
|
+
children: this.processParams
|
|
141
|
+
}];
|
|
142
|
+
},
|
|
143
|
+
conditionPropertyItemConditionFormLeft: {
|
|
144
|
+
get() {
|
|
145
|
+
return this.conditionPropertyItemConditionForm.left ? JSON.stringify({
|
|
146
|
+
el: `#{${this.conditionPropertyItemConditionForm.left}}`,
|
|
147
|
+
elText: this.conditionPropertyItemConditionForm.left
|
|
148
|
+
}) : "";
|
|
149
|
+
},
|
|
150
|
+
set(v) {
|
|
151
|
+
if (v) {
|
|
152
|
+
const regExp = /#\{(.+)\}/g;
|
|
153
|
+
const el = JSON.parse(v).el;
|
|
154
|
+
const expression = regExp.exec(el)[1];
|
|
155
|
+
this.conditionPropertyItemConditionForm.left = expression;
|
|
156
|
+
} else {
|
|
157
|
+
this.conditionPropertyItemConditionForm.left = "";
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
activeCellExpression: {
|
|
162
|
+
get() {
|
|
163
|
+
return this.activeCell.v ? JSON.stringify({
|
|
164
|
+
el: `#{${this.activeCell.v}}`,
|
|
165
|
+
elText: this.activeCell.v
|
|
166
|
+
}) : "";
|
|
167
|
+
},
|
|
168
|
+
set(v) {
|
|
169
|
+
if (v) {
|
|
170
|
+
const regExp = /#\{(.+)\}/g;
|
|
171
|
+
const el = JSON.parse(v).el;
|
|
172
|
+
const expression = regExp.exec(el)[1];
|
|
173
|
+
this.activeCell.v = expression;
|
|
174
|
+
} else {
|
|
175
|
+
this.activeCell.v = "";
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
ruleVariableTree() {
|
|
180
|
+
return [{
|
|
181
|
+
value: "datasoure",
|
|
182
|
+
type: "folder",
|
|
183
|
+
text: "表单数据源",
|
|
184
|
+
children: this.dataSource.map((item) => ({
|
|
185
|
+
...item,
|
|
186
|
+
text: item.name
|
|
187
|
+
}))
|
|
188
|
+
}];
|
|
189
|
+
},
|
|
190
|
+
leftCellColumn: {
|
|
191
|
+
get() {
|
|
192
|
+
const {
|
|
193
|
+
leftCell
|
|
194
|
+
} = this.activeCell;
|
|
195
|
+
if (leftCell === "root") {
|
|
196
|
+
return "无";
|
|
197
|
+
}
|
|
198
|
+
if (leftCell) {
|
|
199
|
+
const arr = /^([A-Z]*)(\d*)$/.exec(leftCell);
|
|
200
|
+
return arr[1] || "";
|
|
201
|
+
}
|
|
202
|
+
return "";
|
|
203
|
+
},
|
|
204
|
+
set(v) {
|
|
205
|
+
if (v === "root") {
|
|
206
|
+
this.activeCell.leftCell = v;
|
|
207
|
+
} else {
|
|
208
|
+
this.activeCell.leftCell = v + this.leftCellRow;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
leftCellRow: {
|
|
213
|
+
get() {
|
|
214
|
+
const {
|
|
215
|
+
leftCell
|
|
216
|
+
} = this.activeCell;
|
|
217
|
+
if (leftCell && leftCell !== "root") {
|
|
218
|
+
const arr = /^([A-Z]*)(\d*)$/.exec(leftCell);
|
|
219
|
+
return arr[2] || "";
|
|
220
|
+
}
|
|
221
|
+
return "";
|
|
222
|
+
},
|
|
223
|
+
set(v) {
|
|
224
|
+
this.activeCell.leftCell = this.leftCellColumn + v;
|
|
225
|
+
this.activeCell.leftCell = this.leftCellColumn + v;
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
topCellColumn: {
|
|
229
|
+
get() {
|
|
230
|
+
const {
|
|
231
|
+
topCell
|
|
232
|
+
} = this.activeCell;
|
|
233
|
+
if (topCell === "root") {
|
|
234
|
+
return "无";
|
|
235
|
+
}
|
|
236
|
+
if (topCell && topCell !== "root") {
|
|
237
|
+
const arr = /^([A-Z]*)(\d*)$/.exec(topCell);
|
|
238
|
+
return arr[1] || "";
|
|
239
|
+
}
|
|
240
|
+
return "";
|
|
241
|
+
},
|
|
242
|
+
set(v) {
|
|
243
|
+
if (v === "root") {
|
|
244
|
+
this.activeCell.topCell = v;
|
|
245
|
+
} else {
|
|
246
|
+
this.activeCell.topCell = v + this.topCellRow;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
topCellRow: {
|
|
251
|
+
get() {
|
|
252
|
+
const {
|
|
253
|
+
topCell
|
|
254
|
+
} = this.activeCell;
|
|
255
|
+
if (topCell && topCell !== "root") {
|
|
256
|
+
const arr = /^([A-Z]*)(\d*)$/.exec(topCell);
|
|
257
|
+
return arr[2] || "";
|
|
258
|
+
}
|
|
259
|
+
return "";
|
|
260
|
+
},
|
|
261
|
+
set(v) {
|
|
262
|
+
this.activeCell.topCell = this.topCellColumn + v;
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
relyCellColumn: {
|
|
266
|
+
get() {
|
|
267
|
+
const {
|
|
268
|
+
relyCell
|
|
269
|
+
} = this.activeCell;
|
|
270
|
+
if (relyCell === "root") {
|
|
271
|
+
return "无";
|
|
272
|
+
}
|
|
273
|
+
if (relyCell && relyCell !== "root") {
|
|
274
|
+
const arr = /^([A-Z]*)(\d*)$/.exec(relyCell);
|
|
275
|
+
return arr[1] || "";
|
|
276
|
+
}
|
|
277
|
+
return "";
|
|
278
|
+
},
|
|
279
|
+
set(v) {
|
|
280
|
+
if (v === "root") {
|
|
281
|
+
this.activeCell.relyCell = v;
|
|
282
|
+
} else {
|
|
283
|
+
this.activeCell.relyCell = v + this.relyCellRow;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
relyCellRow: {
|
|
288
|
+
get() {
|
|
289
|
+
const {
|
|
290
|
+
relyCell
|
|
291
|
+
} = this.activeCell;
|
|
292
|
+
if (relyCell && relyCell !== "root") {
|
|
293
|
+
const arr = /^([A-Z]*)(\d*)$/.exec(relyCell);
|
|
294
|
+
return arr[2] || "";
|
|
295
|
+
}
|
|
296
|
+
return "";
|
|
297
|
+
},
|
|
298
|
+
set(v) {
|
|
299
|
+
this.activeCell.relyCell = this.relyCellColumn + v;
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
objectFieldList() {
|
|
303
|
+
const {
|
|
304
|
+
dataSource
|
|
305
|
+
} = this.activeCell || {};
|
|
306
|
+
if (dataSource) {
|
|
307
|
+
const item = this.dataSource.find((item2) => item2.id === dataSource) || {};
|
|
308
|
+
if (item && item.children[0]) {
|
|
309
|
+
return item.children[0].children;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return [];
|
|
313
|
+
},
|
|
314
|
+
defineDynamicParams() {
|
|
315
|
+
return this.formParams.map((item) => ({
|
|
316
|
+
id: "${" + item.CODE + "}",
|
|
317
|
+
name: item.NAME
|
|
318
|
+
}));
|
|
319
|
+
},
|
|
320
|
+
sortFields: {
|
|
321
|
+
get() {
|
|
322
|
+
let {
|
|
323
|
+
SORT = "[]"
|
|
324
|
+
} = this.dataSourceInfo;
|
|
325
|
+
if (SORT === "undefined" || SORT === "" || SORT === null) SORT = "[]";
|
|
326
|
+
return JSON.parse(SORT);
|
|
327
|
+
},
|
|
328
|
+
set(v) {
|
|
329
|
+
this.dataSourceInfo.SORT = JSON.stringify(v);
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
groupSortFields: {
|
|
333
|
+
get() {
|
|
334
|
+
let {
|
|
335
|
+
GROUP_ORDER_FIELD = ""
|
|
336
|
+
} = this.dataSourceInfo;
|
|
337
|
+
if (GROUP_ORDER_FIELD === "undefined" || GROUP_ORDER_FIELD === "" || GROUP_ORDER_FIELD === null) GROUP_ORDER_FIELD = "";
|
|
338
|
+
return GROUP_ORDER_FIELD;
|
|
339
|
+
},
|
|
340
|
+
set(v) {
|
|
341
|
+
this.dataSourceInfo.GROUP_ORDER_FIELD = v;
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
loadRelationEntity: {
|
|
345
|
+
get() {
|
|
346
|
+
return this.dataSourceInfo.LOAD_RELATION_ENTITY || "1";
|
|
347
|
+
},
|
|
348
|
+
set(v) {
|
|
349
|
+
this.dataSourceInfo.LOAD_RELATION_ENTITY = v;
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
linkEntityCheckedKeys() {
|
|
353
|
+
const flags = this.dataSourceInfo.LINK_ENTITY;
|
|
354
|
+
return flags ? flags.split(",").filter(Boolean) : [];
|
|
355
|
+
},
|
|
356
|
+
linkEntityLabel() {
|
|
357
|
+
const keys = this.linkEntityCheckedKeys;
|
|
358
|
+
if (!keys.length) return "";
|
|
359
|
+
const titles = [];
|
|
360
|
+
const walk = (nodes) => {
|
|
361
|
+
if (!nodes) return;
|
|
362
|
+
nodes.forEach((node) => {
|
|
363
|
+
if (keys.includes(node.flag)) titles.push(node.title);
|
|
364
|
+
if (node.childrens) walk(node.childrens);
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
walk(this.linkEntityTree);
|
|
368
|
+
return titles.length ? titles.join(",") : this.dataSourceInfo["LINK_ENTITY#"] || "";
|
|
369
|
+
},
|
|
370
|
+
showDataSource() {
|
|
371
|
+
const formatFields = (fields) => {
|
|
372
|
+
return fields.filter((item) => {
|
|
373
|
+
if (!this.showLogField && ["ID", "LOG_C_TIME", "LOG_C_USER", "LOG_U_TIME", "LOG_U_USER"].includes(item.code)) {
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
if (!this.showSubField && (item.relationType === "1" || item.isSub)) {
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
if (item.children) {
|
|
380
|
+
item.children = formatFields(item.children);
|
|
381
|
+
}
|
|
382
|
+
return true;
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
return this.dataSource.map((item) => {
|
|
386
|
+
if (this.entityDataMap[item.id]) {
|
|
387
|
+
const fields = this.$_.cloneDeep(this.entityDataMap[item.id]);
|
|
388
|
+
item.children = formatFields(fields);
|
|
389
|
+
}
|
|
390
|
+
return item;
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
languageFlag() {
|
|
394
|
+
const {
|
|
395
|
+
LANGUAGE_FLAG: languageFlag
|
|
396
|
+
} = this.clientConfig;
|
|
397
|
+
return languageFlag;
|
|
398
|
+
},
|
|
399
|
+
defaultLanguage() {
|
|
400
|
+
const {
|
|
401
|
+
LANGUAGE_DEFAULT: defaultLanguage
|
|
402
|
+
} = this.clientConfig;
|
|
403
|
+
return defaultLanguage;
|
|
404
|
+
},
|
|
405
|
+
currentLanguageName() {
|
|
406
|
+
const language = this.languageList.find((item) => item.id === this.currentLanguage) || {};
|
|
407
|
+
return language.name || "默认";
|
|
408
|
+
},
|
|
409
|
+
languageList() {
|
|
410
|
+
const {
|
|
411
|
+
LANGUAGES: languages = "",
|
|
412
|
+
"LANGUAGES#": languageNames = ""
|
|
413
|
+
} = this.clientConfig;
|
|
414
|
+
if (!languages) return [];
|
|
415
|
+
const languageIdList = languages.split(",");
|
|
416
|
+
const languageNameList = languageNames.split(",");
|
|
417
|
+
const languageList = languageIdList.map((item, index) => ({
|
|
418
|
+
id: item,
|
|
419
|
+
name: languageNameList[index]
|
|
420
|
+
}));
|
|
421
|
+
return languageList;
|
|
422
|
+
},
|
|
423
|
+
getText() {
|
|
424
|
+
return (field) => {
|
|
425
|
+
const getLabel = (arr) => {
|
|
426
|
+
for (const item of arr) {
|
|
427
|
+
if ((item.linkCode || item.code) === field) return item.text;
|
|
428
|
+
if (item.children) {
|
|
429
|
+
const label = getLabel(item.children);
|
|
430
|
+
if (label) return label;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
return getLabel(this.allFields) || field;
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
// 自定义校验公式编辑器的参数库:只取主数据源(无主则取第一个),按 数据源 → 对象 → 字段 组织成树。
|
|
438
|
+
// getEntityMetaView 返回的 children 是一层 type==='meta' 节点的扁平数组:
|
|
439
|
+
// 无 linkFlag 的 meta 节点为主对象(其 children 即主对象字段),有 linkFlag 的为关联对象。
|
|
440
|
+
// 变量规则:主对象字段 token = 字段编号;关联对象字段 token = 关联标识符大写_字段编号。
|
|
441
|
+
checkParamList() {
|
|
442
|
+
const source = this.dataSource.find((item) => item.isMain) || this.dataSource[0];
|
|
443
|
+
if (!source || !source.children || !source.children.length) return [];
|
|
444
|
+
const bare = (v) => String(v == null ? "" : v).split("|").pop();
|
|
445
|
+
const toField = (f, prefix) => ({
|
|
446
|
+
code: prefix ? `${prefix}_${bare(f.code)}` : bare(f.code),
|
|
447
|
+
text: f.text || f.name,
|
|
448
|
+
type: f.dataType || "string"
|
|
449
|
+
});
|
|
450
|
+
const objects = [];
|
|
451
|
+
source.children.forEach((node) => {
|
|
452
|
+
if (node.type !== "meta") return;
|
|
453
|
+
const flag = bare(node.linkFlag || node.flag).toUpperCase();
|
|
454
|
+
const leaves = (node.children || []).filter((f) => f.type !== "meta" && bare(f.code));
|
|
455
|
+
if (!leaves.length) return;
|
|
456
|
+
if (flag) {
|
|
457
|
+
objects.push({
|
|
458
|
+
code: flag,
|
|
459
|
+
text: node.text || node.name,
|
|
460
|
+
type: "object",
|
|
461
|
+
children: leaves.map((f) => toField(f, flag))
|
|
462
|
+
});
|
|
463
|
+
} else {
|
|
464
|
+
objects.unshift({
|
|
465
|
+
code: node.code || "MAIN",
|
|
466
|
+
text: node.text || node.name,
|
|
467
|
+
type: "object",
|
|
468
|
+
children: leaves.map((f) => toField(f, ""))
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
if (!objects.length) return [];
|
|
473
|
+
return [{
|
|
474
|
+
code: source.sourceId || source.key,
|
|
475
|
+
text: source.name,
|
|
476
|
+
children: objects
|
|
477
|
+
}];
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
watch: {
|
|
481
|
+
activeCell: {
|
|
482
|
+
handler: function(v, oldVal) {
|
|
483
|
+
const {
|
|
484
|
+
rowIndex,
|
|
485
|
+
columnIndex,
|
|
486
|
+
...props
|
|
487
|
+
} = v;
|
|
488
|
+
if (this.leftCellWay === "default") props.leftCell = "";
|
|
489
|
+
if (this.topCellWay === "default") props.topCell = "";
|
|
490
|
+
if (this.relyCellWay === "default") props.relyCell = "";
|
|
491
|
+
if (props.cellType && props.cellType === "expression") {
|
|
492
|
+
props.m = props.v;
|
|
493
|
+
}
|
|
494
|
+
luckysheet.setCellValue(rowIndex, columnIndex, props);
|
|
495
|
+
},
|
|
496
|
+
deep: true
|
|
497
|
+
},
|
|
498
|
+
globalSetting(v) {
|
|
499
|
+
if (v) {
|
|
500
|
+
this.$nextTick(() => {
|
|
501
|
+
this.initTitleEditor();
|
|
502
|
+
setTimeout(() => {
|
|
503
|
+
this.initWatermarkEditor();
|
|
504
|
+
}, 500);
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"dataSourceInfo.ENTITY": {
|
|
509
|
+
handler(v) {
|
|
510
|
+
if (v) {
|
|
511
|
+
const meta = this.metas[v];
|
|
512
|
+
if (!meta) {
|
|
513
|
+
this.$store.dispatch({
|
|
514
|
+
// 加回调
|
|
515
|
+
type: ADD_META,
|
|
516
|
+
metaId: v
|
|
517
|
+
}).then((data) => {
|
|
518
|
+
if (data) {
|
|
519
|
+
const relations = data.getRelations();
|
|
520
|
+
this.getAllFields(relations);
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
} else {
|
|
524
|
+
const relations = meta.getRelations();
|
|
525
|
+
this.getAllFields(relations);
|
|
526
|
+
}
|
|
527
|
+
this.getLinkEntityTree(v);
|
|
528
|
+
} else {
|
|
529
|
+
this.linkEntityTree = [];
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
deep: true
|
|
533
|
+
},
|
|
534
|
+
"formData.WATER_MARK_TYPE"(v) {
|
|
535
|
+
if (v === "text") {
|
|
536
|
+
this.$nextTick(() => {
|
|
537
|
+
this.initWatermarkEditor();
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
searchText(v) {
|
|
542
|
+
if (this.timer) {
|
|
543
|
+
this.timer = null;
|
|
544
|
+
clearTimeout(this.timer);
|
|
545
|
+
}
|
|
546
|
+
this.timer = setTimeout(() => {
|
|
547
|
+
this.$refs.fieldTree.filter(this.searchText);
|
|
548
|
+
clearTimeout(this.timer);
|
|
549
|
+
this.timer = null;
|
|
550
|
+
}, 200);
|
|
551
|
+
},
|
|
552
|
+
showLogField() {
|
|
553
|
+
this.$nextTick(() => {
|
|
554
|
+
this.$refs.fieldTree.filter(this.searchText);
|
|
555
|
+
});
|
|
556
|
+
},
|
|
557
|
+
showSubField() {
|
|
558
|
+
this.$nextTick(() => {
|
|
559
|
+
this.$refs.fieldTree.filter(this.searchText);
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
methods: {
|
|
564
|
+
backConfirm() {
|
|
565
|
+
this.saveContent();
|
|
566
|
+
let changeFlag = this.content !== this.initContent;
|
|
567
|
+
if (this.content && this.initContent) {
|
|
568
|
+
const content = JSON.parse(this.content)[0];
|
|
569
|
+
const initContent = JSON.parse(this.initContent)[0];
|
|
570
|
+
changeFlag = !this.$_.isEqual(content.celldata, initContent.celldata) || content.row !== initContent.row || content.column !== initContent.column;
|
|
571
|
+
}
|
|
572
|
+
if (!changeFlag) {
|
|
573
|
+
for (const key in this.languageContent) {
|
|
574
|
+
const content = this.languageContent[key] ? JSON.parse(this.languageContent[key])[0].celldata : null;
|
|
575
|
+
const initContent = this.initLanguageContent[key] ? JSON.parse(this.initLanguageContent[key])[0].celldata : null;
|
|
576
|
+
if (!this.$_.isEqual(content, initContent)) {
|
|
577
|
+
changeFlag = true;
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
if (changeFlag) {
|
|
583
|
+
this.$confirm("检测到您当前的报表配置还未进行保存操作,点击保存按钮即可执行保存操作", "操作提示", {
|
|
584
|
+
confirmButtonText: "保存",
|
|
585
|
+
cancelButtonText: "不保存",
|
|
586
|
+
type: "warning"
|
|
587
|
+
}).then(() => {
|
|
588
|
+
this.saveExcelData(this.backPage);
|
|
589
|
+
}).catch(() => {
|
|
590
|
+
this.backPage();
|
|
591
|
+
});
|
|
592
|
+
} else {
|
|
593
|
+
this.backPage();
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
switchLanguage(v) {
|
|
597
|
+
if (this.currentLanguage === v) return;
|
|
598
|
+
this.$confirm("切换语种后,进入该语种报表内容配置页面,当前页面的配置内容可通过切换再次展示,继续操作请点击确认。", "操作提示", {
|
|
599
|
+
confirmButtonText: "确定",
|
|
600
|
+
cancelButtonText: "取消",
|
|
601
|
+
type: "warning"
|
|
602
|
+
}).then(() => {
|
|
603
|
+
this.saveContent();
|
|
604
|
+
this.currentLanguage = v;
|
|
605
|
+
const content = v === this.defaultLanguage ? this.content : this.languageContent[v];
|
|
606
|
+
const nullSheet = [{
|
|
607
|
+
name: "Sheet1",
|
|
608
|
+
index: 0,
|
|
609
|
+
order: 0,
|
|
610
|
+
status: 1,
|
|
611
|
+
celldata: []
|
|
612
|
+
}];
|
|
613
|
+
luckysheet.destroy();
|
|
614
|
+
this.createExcel(content ? JSON.parse(content) : nullSheet);
|
|
615
|
+
});
|
|
616
|
+
},
|
|
617
|
+
saveContent() {
|
|
618
|
+
const sheets = luckysheet.getluckysheetfile();
|
|
619
|
+
sheets[0].celldata = luckysheet.transToCellData(sheets[0].data);
|
|
620
|
+
const content = JSON.stringify(sheets);
|
|
621
|
+
if (!this.currentLanguage || this.currentLanguage === this.defaultLanguage) {
|
|
622
|
+
this.content = content;
|
|
623
|
+
} else {
|
|
624
|
+
this.languageContent[this.currentLanguage] = content;
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
filterNode(value, data) {
|
|
628
|
+
if (!value) return true;
|
|
629
|
+
return data.text && data.text.indexOf(value) !== -1;
|
|
630
|
+
},
|
|
631
|
+
$refeshData() {
|
|
632
|
+
this.createExcel();
|
|
633
|
+
},
|
|
634
|
+
getData() {
|
|
635
|
+
this.$http.get({
|
|
636
|
+
entityId: "FM_FORM",
|
|
637
|
+
id: this.$query.id
|
|
638
|
+
}).then((data) => {
|
|
639
|
+
this.excelInfo = data.data;
|
|
640
|
+
this.formData = {
|
|
641
|
+
...data.data
|
|
642
|
+
};
|
|
643
|
+
const defaultValue = {
|
|
644
|
+
WATER_MARK_TYPE: "none",
|
|
645
|
+
WATER_MARK_LEAN: 40,
|
|
646
|
+
WATER_MARK_DENSITY: "2"
|
|
647
|
+
};
|
|
648
|
+
for (const key in defaultValue) {
|
|
649
|
+
if (!this.formData[key]) {
|
|
650
|
+
this.formData[key] = defaultValue[key];
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
this.oldFormData = {
|
|
654
|
+
...this.formData
|
|
655
|
+
};
|
|
656
|
+
this.parsePrintCheck();
|
|
657
|
+
this.content = data.data.CONTENT;
|
|
658
|
+
this.languageContent = data.data.LANGUAGE_PARAM ? data.data.LANGUAGE_PARAM.CONTENT || {} : {};
|
|
659
|
+
this.initContent = data.data.CONTENT;
|
|
660
|
+
this.initLanguageContent = this.$_.cloneDeep(this.languageContent);
|
|
661
|
+
this.createExcel();
|
|
662
|
+
});
|
|
663
|
+
},
|
|
664
|
+
getFieldRelation() {
|
|
665
|
+
this.$http.$post({
|
|
666
|
+
action: "getFieldRelation",
|
|
667
|
+
entityId: "FM_ATTRIBUTE_RELATION",
|
|
668
|
+
metaId: this.$metaId
|
|
669
|
+
}).then((data) => {
|
|
670
|
+
this.fieldRelation = data.field_relation;
|
|
671
|
+
});
|
|
672
|
+
},
|
|
673
|
+
getFieldConfigs() {
|
|
674
|
+
this.$FieldFactory.createFields({
|
|
675
|
+
meta: this.$meta,
|
|
676
|
+
metaId: this.$metaId,
|
|
677
|
+
pageType: "EDIT",
|
|
678
|
+
fields: ["PRINT_PAGE_SIZE", "PRINT_PAGE_DIRECTION", "LEFT_MARGIN", "RIGHT_MARGIN", "TOP_MARGIN", "BOTTOM_MARGIN", "IS_PAGE_NUMBER", "PAGE_NUMBER_FORMAT", "PAGE_NUMBER_TOP", "PAGE_NUMBER_START", "PAGE_NUMBER_ALIGN"]
|
|
679
|
+
}).then((data) => {
|
|
680
|
+
this.fieldsConfigs = [...data];
|
|
681
|
+
});
|
|
682
|
+
this.$FieldFactory.createFields({
|
|
683
|
+
meta: this.$meta,
|
|
684
|
+
metaId: this.$metaId,
|
|
685
|
+
pageType: "EDIT",
|
|
686
|
+
defaultFieldConfigs: {
|
|
687
|
+
WATER_MARK_TYPE: {
|
|
688
|
+
value: "none"
|
|
689
|
+
},
|
|
690
|
+
WATER_MARK_LEAN: {
|
|
691
|
+
value: 40
|
|
692
|
+
},
|
|
693
|
+
WATER_MARK_DENSITY: {
|
|
694
|
+
value: "2"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
fields: [{
|
|
698
|
+
attriName: "WATER_MARK_TYPE",
|
|
699
|
+
value: "none"
|
|
700
|
+
}, "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"]
|
|
701
|
+
}).then((data) => {
|
|
702
|
+
this.watermarkFieldsConfigs = [...data];
|
|
703
|
+
});
|
|
704
|
+
this.$FieldFactory.createFields({
|
|
705
|
+
meta: this.$meta,
|
|
706
|
+
metaId: this.$metaId,
|
|
707
|
+
pageType: "EDIT",
|
|
708
|
+
fields: [{
|
|
709
|
+
attriName: "PROCESS",
|
|
710
|
+
scopeParams: [{
|
|
711
|
+
field: "CATEGORY",
|
|
712
|
+
values: "1"
|
|
713
|
+
}]
|
|
714
|
+
}, "BUSINESS_KEY"]
|
|
715
|
+
}).then((data) => {
|
|
716
|
+
this.otherFieldsConfigs = [...data];
|
|
717
|
+
});
|
|
718
|
+
},
|
|
719
|
+
excelCoord(row, column) {
|
|
720
|
+
return this.NumToString(column + 1) + row;
|
|
721
|
+
},
|
|
722
|
+
async initTitleEditor() {
|
|
723
|
+
const that = this;
|
|
724
|
+
if (this.titleEditor) this.titleEditor.remove();
|
|
725
|
+
const editor = this.$refs.titleEditor;
|
|
726
|
+
await this.$util.usePlugin("tinymce");
|
|
727
|
+
globalThis.tinymce.init({
|
|
728
|
+
target: editor,
|
|
729
|
+
height: 80,
|
|
730
|
+
autoresize_min_height: 80,
|
|
731
|
+
plugins: "data",
|
|
732
|
+
menubar: false,
|
|
733
|
+
toolbar: false,
|
|
734
|
+
contextmenu: "data",
|
|
735
|
+
language: "zh_CN",
|
|
736
|
+
dataSource: this.dataSource,
|
|
737
|
+
statusbar: false,
|
|
738
|
+
content_style: "p {margin: 2px 0}",
|
|
739
|
+
promotion: false
|
|
740
|
+
}).then((editors) => {
|
|
741
|
+
this.titleEditor = editors[0];
|
|
742
|
+
if (this.titleEditor) {
|
|
743
|
+
const frame = this.titleEditor.iframeElement.contentWindow;
|
|
744
|
+
const editorContainer = frame.document.querySelector("body");
|
|
745
|
+
editorContainer.ondragover = (e) => {
|
|
746
|
+
e.preventDefault();
|
|
747
|
+
};
|
|
748
|
+
editorContainer.ondrop = (e) => {
|
|
749
|
+
const type = e.dataTransfer.getData("type");
|
|
750
|
+
if (type === "variable" || type === "process") {
|
|
751
|
+
const variableCode = e.dataTransfer.getData("variableCode");
|
|
752
|
+
const variableName = e.dataTransfer.getData("variableName");
|
|
753
|
+
const span = document.createElement("span");
|
|
754
|
+
span.contentEditable = "false";
|
|
755
|
+
span.setAttribute("data-name", "variable");
|
|
756
|
+
span.setAttribute("data-value", variableCode);
|
|
757
|
+
span.innerHTML = `<label>{${variableName}}</label>`;
|
|
758
|
+
if (e.target.innerHTML === '<br data-mce-bogus="1">') {
|
|
759
|
+
e.target.innerHTML = "";
|
|
760
|
+
}
|
|
761
|
+
e.target.appendChild(span);
|
|
762
|
+
} else {
|
|
763
|
+
const fieldId = e.dataTransfer.getData("fieldId");
|
|
764
|
+
const sourceName = e.dataTransfer.getData("sourceName") || "";
|
|
765
|
+
const fieldName = e.dataTransfer.getData("fieldName");
|
|
766
|
+
if (fieldId) {
|
|
767
|
+
const span = document.createElement("span");
|
|
768
|
+
span.contentEditable = "false";
|
|
769
|
+
span.setAttribute("data-name", "datasource");
|
|
770
|
+
span.setAttribute("data-datasource", sourceName);
|
|
771
|
+
span.setAttribute("data-field", fieldId);
|
|
772
|
+
span.innerHTML = `<label>{${sourceName}.${fieldName}}</label>`;
|
|
773
|
+
if (e.target.innerHTML === '<br data-mce-bogus="1">') {
|
|
774
|
+
e.target.innerHTML = "";
|
|
775
|
+
}
|
|
776
|
+
e.target.appendChild(span);
|
|
777
|
+
const value = this.titleEditor.getContent();
|
|
778
|
+
that.formData = {
|
|
779
|
+
...that.formData,
|
|
780
|
+
TITLE: value
|
|
781
|
+
};
|
|
782
|
+
} else {
|
|
783
|
+
return true;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
this.titleEditor.setContent(this.formData.TITLE || "");
|
|
788
|
+
}
|
|
789
|
+
});
|
|
790
|
+
},
|
|
791
|
+
async initWatermarkEditor() {
|
|
792
|
+
const that = this;
|
|
793
|
+
const editor = this.$refs.watermarkEditor;
|
|
794
|
+
if (!editor) return;
|
|
795
|
+
if (this.watermarkEditor) this.watermarkEditor.remove();
|
|
796
|
+
await this.$util.usePlugin("tinymce");
|
|
797
|
+
globalThis.tinymce.init({
|
|
798
|
+
target: editor,
|
|
799
|
+
height: 80,
|
|
800
|
+
autoresize_min_height: 80,
|
|
801
|
+
plugins: "data",
|
|
802
|
+
menubar: false,
|
|
803
|
+
toolbar: false,
|
|
804
|
+
contextmenu: "data",
|
|
805
|
+
language: "zh_CN",
|
|
806
|
+
dataSource: [...this.dataSource, {
|
|
807
|
+
type: "variable",
|
|
808
|
+
name: "系统变量",
|
|
809
|
+
children: this.systemVariableList
|
|
810
|
+
}],
|
|
811
|
+
statusbar: false,
|
|
812
|
+
content_style: "p {margin: 2px 0}",
|
|
813
|
+
promotion: false
|
|
814
|
+
}).then((editors) => {
|
|
815
|
+
this.watermarkEditor = editors[0];
|
|
816
|
+
if (this.watermarkEditor) {
|
|
817
|
+
const frame = this.titleEditor.iframeElement.contentWindow;
|
|
818
|
+
const editorContainer = frame.document.querySelector("body");
|
|
819
|
+
editorContainer.ondragover = (e) => {
|
|
820
|
+
e.preventDefault();
|
|
821
|
+
};
|
|
822
|
+
editorContainer.ondrop = (e) => {
|
|
823
|
+
const type = e.dataTransfer.getData("type");
|
|
824
|
+
if (type === "variable" || type === "process") {
|
|
825
|
+
const variableCode = e.dataTransfer.getData("variableCode");
|
|
826
|
+
const variableName = e.dataTransfer.getData("variableName");
|
|
827
|
+
const span = document.createElement("span");
|
|
828
|
+
span.contentEditable = "false";
|
|
829
|
+
span.setAttribute("data-name", "variable");
|
|
830
|
+
span.setAttribute("data-value", variableCode);
|
|
831
|
+
span.innerHTML = `<label>{${variableName}}</label>`;
|
|
832
|
+
if (e.target.innerHTML === '<br data-mce-bogus="1">') {
|
|
833
|
+
e.target.innerHTML = "";
|
|
834
|
+
}
|
|
835
|
+
e.target.appendChild(span);
|
|
836
|
+
} else {
|
|
837
|
+
const fieldId = e.dataTransfer.getData("fieldId");
|
|
838
|
+
const sourceName = e.dataTransfer.getData("sourceName") || "";
|
|
839
|
+
const fieldName = e.dataTransfer.getData("fieldName");
|
|
840
|
+
if (fieldId) {
|
|
841
|
+
const span = document.createElement("span");
|
|
842
|
+
span.contentEditable = "false";
|
|
843
|
+
span.setAttribute("data-name", "datasource");
|
|
844
|
+
span.setAttribute("data-datasource", sourceName);
|
|
845
|
+
span.setAttribute("data-field", fieldId);
|
|
846
|
+
span.innerHTML = `<label>{${sourceName}.${fieldName}}</label>`;
|
|
847
|
+
if (e.target.innerHTML === '<br data-mce-bogus="1">') {
|
|
848
|
+
e.target.innerHTML = "";
|
|
849
|
+
}
|
|
850
|
+
e.target.appendChild(span);
|
|
851
|
+
const value = this.watermarkEditor.getContent();
|
|
852
|
+
that.formData = {
|
|
853
|
+
...that.formData,
|
|
854
|
+
WATER_MARK_TEXT: value
|
|
855
|
+
};
|
|
856
|
+
} else {
|
|
857
|
+
return true;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
this.watermarkEditor.setContent(this.formData.WATER_MARK_TEXT || "");
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
},
|
|
865
|
+
NumToString(i) {
|
|
866
|
+
var s = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";
|
|
867
|
+
var sArray = s.split(" ");
|
|
868
|
+
if (i < 1) return "";
|
|
869
|
+
if (parseInt(i / 26 + "") === 0) return sArray[i % 26 - 1];
|
|
870
|
+
else {
|
|
871
|
+
if (i % 26 === 0) return this.NumToString(parseInt(i / 26 + "") - 1) + sArray[26 - 1];
|
|
872
|
+
else return sArray[parseInt(i / 26 + "") - 1] + sArray[i % 26 - 1];
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
getDataSource() {
|
|
876
|
+
const {
|
|
877
|
+
id
|
|
878
|
+
} = this.$query;
|
|
879
|
+
this.$http.list({
|
|
880
|
+
entityId: "FM_FORM_SOURCE",
|
|
881
|
+
"scope.FORM": id
|
|
882
|
+
}).then(async (data) => {
|
|
883
|
+
this.dataSource = data.entitys.map((item) => ({
|
|
884
|
+
key: item.ID,
|
|
885
|
+
id: item.ENTITY,
|
|
886
|
+
name: item.NAME,
|
|
887
|
+
loadRelationEntity: item.LOAD_RELATION_ENTITY,
|
|
888
|
+
isMain: item.IS_MAIN_SOUCE === "1",
|
|
889
|
+
root: true,
|
|
890
|
+
sourceId: item.ID
|
|
891
|
+
}));
|
|
892
|
+
for (let index = 0; index < data.entitys.length; index++) {
|
|
893
|
+
const item = data.entitys[index];
|
|
894
|
+
if (item.ENTITY) {
|
|
895
|
+
if (!this.entityDataMap[item.ID]) {
|
|
896
|
+
this.$store.dispatch({
|
|
897
|
+
type: ADD_META,
|
|
898
|
+
metaId: item.ENTITY
|
|
899
|
+
});
|
|
900
|
+
this.dataSource[index] = {
|
|
901
|
+
...this.dataSource[index],
|
|
902
|
+
load: true
|
|
903
|
+
};
|
|
904
|
+
const entityData = await this.getAttribute(item, {
|
|
905
|
+
id: item.ENTITY,
|
|
906
|
+
name: item.NAME,
|
|
907
|
+
root: true,
|
|
908
|
+
sourceId: item.ID
|
|
909
|
+
});
|
|
910
|
+
this.entityDataMap[item.ID] = entityData;
|
|
911
|
+
this.dataSource[index] = {
|
|
912
|
+
...this.dataSource[index],
|
|
913
|
+
children: entityData,
|
|
914
|
+
load: false
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
} else {
|
|
918
|
+
this.dataSource[index] = {
|
|
919
|
+
...this.dataSource[index],
|
|
920
|
+
children: this.entityDataMap[item.ID]
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
},
|
|
926
|
+
getAttribute(item, source) {
|
|
927
|
+
const {
|
|
928
|
+
ENTITY,
|
|
929
|
+
ENTITY_VIEW,
|
|
930
|
+
LOAD_RELATION_ENTITY
|
|
931
|
+
} = item;
|
|
932
|
+
return this.$http.get({
|
|
933
|
+
action: "getEntityMetaView",
|
|
934
|
+
entityId: "FM_ENTITY_VIEW",
|
|
935
|
+
metaId: ENTITY,
|
|
936
|
+
metaViewId: ENTITY_VIEW,
|
|
937
|
+
allSub: LOAD_RELATION_ENTITY !== "0"
|
|
938
|
+
}).then((data) => {
|
|
939
|
+
if (data[0]) data[0].isMain = true;
|
|
940
|
+
const formatData = (arr) => {
|
|
941
|
+
arr.forEach((item2) => {
|
|
942
|
+
if (item2.type === "folder") item2.isMain = true;
|
|
943
|
+
item2.field = item2.linkCode || item2.code;
|
|
944
|
+
item2.relationSort = item2.relationType;
|
|
945
|
+
if (!item2.codeKey) item2.codeKey = item2.relatedEntity;
|
|
946
|
+
item2.id = item2.field;
|
|
947
|
+
item2.name = item2.text;
|
|
948
|
+
item2.meta = item2.meta ? item2.meta.id : "";
|
|
949
|
+
if (item2.type === "meta" && item2.relationType === "1") item2.isSub = true;
|
|
950
|
+
if (item2.children) formatData(item2.children);
|
|
951
|
+
});
|
|
952
|
+
};
|
|
953
|
+
formatData(data);
|
|
954
|
+
return data;
|
|
955
|
+
});
|
|
956
|
+
},
|
|
957
|
+
setFormName() {
|
|
958
|
+
this.$http.update({
|
|
959
|
+
entityId: "FM_FORM",
|
|
960
|
+
"bean.ID": this.excelInfo.ID,
|
|
961
|
+
"bean.NAME": this.excelInfo.NAME
|
|
962
|
+
}).then(() => {
|
|
963
|
+
this.editName = false;
|
|
964
|
+
}).catch((err) => {
|
|
965
|
+
this.$message.error(err.errorText);
|
|
966
|
+
});
|
|
967
|
+
},
|
|
968
|
+
updateForm() {
|
|
969
|
+
const params = {};
|
|
970
|
+
this.syncPrintCheck();
|
|
971
|
+
this.formData.TITLE = this.titleEditor.getContent();
|
|
972
|
+
if (this.watermarkEditor) this.formData.WATER_MARK_TEXT = this.watermarkEditor.getContent();
|
|
973
|
+
for (const key in this.formData) {
|
|
974
|
+
if (!key.includes("#")) {
|
|
975
|
+
params[`bean.${key}`] = this.formData[key];
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
delete params["bean.CONTENT"];
|
|
979
|
+
this.$http.update({
|
|
980
|
+
entityId: "FM_FORM",
|
|
981
|
+
"bean.ID": this.excelInfo.ID,
|
|
982
|
+
...params
|
|
983
|
+
}).then(() => {
|
|
984
|
+
this.globalSetting = false;
|
|
985
|
+
this.$message.success("保存成功");
|
|
986
|
+
this.titleEditor.remove();
|
|
987
|
+
if (this.oldFormData.PROCESS !== this.formData.PROCESS) {
|
|
988
|
+
this.getProcessParams();
|
|
989
|
+
}
|
|
990
|
+
this.oldFormData = {
|
|
991
|
+
...this.formData
|
|
992
|
+
};
|
|
993
|
+
}).catch((err) => {
|
|
994
|
+
this.$message.error(err.errorText);
|
|
995
|
+
this.titleEditor.remove();
|
|
996
|
+
});
|
|
997
|
+
},
|
|
998
|
+
globalSettingCancel() {
|
|
999
|
+
this.globalSetting = false;
|
|
1000
|
+
this.titleEditor.remove();
|
|
1001
|
+
},
|
|
1002
|
+
// 从 formData.PRINT_CHECK 解析出规则列表
|
|
1003
|
+
parsePrintCheck() {
|
|
1004
|
+
const raw = this.formData.PRINT_CHECK;
|
|
1005
|
+
let list = [];
|
|
1006
|
+
if (raw) {
|
|
1007
|
+
try {
|
|
1008
|
+
const parsed = typeof raw === "string" ? JSON.parse(raw) : raw;
|
|
1009
|
+
if (Array.isArray(parsed)) {
|
|
1010
|
+
list = parsed.map((item) => ({
|
|
1011
|
+
name: item.name || "",
|
|
1012
|
+
expression: item.expression || "",
|
|
1013
|
+
errorInfo: item.errorInfo || "",
|
|
1014
|
+
enable: item.enable !== false
|
|
1015
|
+
}));
|
|
1016
|
+
}
|
|
1017
|
+
} catch (e) {
|
|
1018
|
+
list = [];
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
this.printChecks = list;
|
|
1022
|
+
},
|
|
1023
|
+
// 把规则列表同步回 formData.PRINT_CHECK(随全局设置一起保存)
|
|
1024
|
+
syncPrintCheck() {
|
|
1025
|
+
this.formData.PRINT_CHECK = JSON.stringify(this.printChecks);
|
|
1026
|
+
},
|
|
1027
|
+
// 表达式预览:去掉 #{...} 外层包裹
|
|
1028
|
+
exprPreview(expr) {
|
|
1029
|
+
if (!expr) return "";
|
|
1030
|
+
return String(expr).replace(/^#\{([\s\S]*)\}$/, "$1");
|
|
1031
|
+
},
|
|
1032
|
+
// 打开规则表单弹窗(index < 0 为新增)
|
|
1033
|
+
openCheckRule(index) {
|
|
1034
|
+
this.editingCheckIndex = index;
|
|
1035
|
+
if (index >= 0) {
|
|
1036
|
+
const r = this.printChecks[index];
|
|
1037
|
+
this.checkRuleForm = {
|
|
1038
|
+
name: r.name,
|
|
1039
|
+
expression: r.expression,
|
|
1040
|
+
errorInfo: r.errorInfo,
|
|
1041
|
+
enable: r.enable
|
|
1042
|
+
};
|
|
1043
|
+
} else {
|
|
1044
|
+
this.checkRuleForm = {
|
|
1045
|
+
name: "自定义校验 " + (this.printChecks.length + 1),
|
|
1046
|
+
expression: "",
|
|
1047
|
+
errorInfo: "",
|
|
1048
|
+
enable: true
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
this.checkRuleDialog = true;
|
|
1052
|
+
},
|
|
1053
|
+
// 确定规则表单
|
|
1054
|
+
confirmCheckRule() {
|
|
1055
|
+
const {
|
|
1056
|
+
name,
|
|
1057
|
+
expression
|
|
1058
|
+
} = this.checkRuleForm;
|
|
1059
|
+
if (!name || !name.trim()) {
|
|
1060
|
+
this.$message.warning("请输入规则名");
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
if (!expression || !expression.trim()) {
|
|
1064
|
+
this.$message.warning("请配置校验表达式");
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
const rule = {
|
|
1068
|
+
name: name.trim(),
|
|
1069
|
+
expression: expression.trim(),
|
|
1070
|
+
errorInfo: (this.checkRuleForm.errorInfo || "").trim(),
|
|
1071
|
+
enable: this.checkRuleForm.enable !== false
|
|
1072
|
+
};
|
|
1073
|
+
if (this.editingCheckIndex >= 0) {
|
|
1074
|
+
this.printChecks.splice(this.editingCheckIndex, 1, rule);
|
|
1075
|
+
} else {
|
|
1076
|
+
this.printChecks.push(rule);
|
|
1077
|
+
}
|
|
1078
|
+
this.syncPrintCheck();
|
|
1079
|
+
this.checkRuleDialog = false;
|
|
1080
|
+
},
|
|
1081
|
+
// 删除规则
|
|
1082
|
+
deleteCheckRule(index) {
|
|
1083
|
+
this.$confirm("确定删除该校验规则?", "提示", {
|
|
1084
|
+
type: "warning"
|
|
1085
|
+
}).then(() => {
|
|
1086
|
+
this.printChecks.splice(index, 1);
|
|
1087
|
+
this.syncPrintCheck();
|
|
1088
|
+
}).catch(() => {
|
|
1089
|
+
});
|
|
1090
|
+
},
|
|
1091
|
+
// 打开公式编辑器
|
|
1092
|
+
openFormulaDialog() {
|
|
1093
|
+
this.formulaDialog = true;
|
|
1094
|
+
},
|
|
1095
|
+
// 公式编辑器确定回填表达式
|
|
1096
|
+
confirmFormula(payload) {
|
|
1097
|
+
if (payload && payload.el) {
|
|
1098
|
+
this.checkRuleForm.expression = payload.el;
|
|
1099
|
+
}
|
|
1100
|
+
this.formulaDialog = false;
|
|
1101
|
+
},
|
|
1102
|
+
openAddDataSourceModal() {
|
|
1103
|
+
},
|
|
1104
|
+
updateDataSourceInfo(v) {
|
|
1105
|
+
this.dataSourceInfo = {
|
|
1106
|
+
...this.dataSourceInfo,
|
|
1107
|
+
...v
|
|
1108
|
+
};
|
|
1109
|
+
},
|
|
1110
|
+
updateFormParam(v) {
|
|
1111
|
+
this.formParam = {
|
|
1112
|
+
...this.formParam,
|
|
1113
|
+
...v
|
|
1114
|
+
};
|
|
1115
|
+
},
|
|
1116
|
+
getAllFields(relations) {
|
|
1117
|
+
const fields = this.getMetaViewFields(this.dataSourceInfo.ENTITY);
|
|
1118
|
+
if (fields) {
|
|
1119
|
+
this.allFields = fields;
|
|
1120
|
+
this.defaultExpandKey = [fields[0].code];
|
|
1121
|
+
} else {
|
|
1122
|
+
this.$store.dispatch({
|
|
1123
|
+
type: "ADD_META_VIEW_FIELDS",
|
|
1124
|
+
metaId: this.dataSourceInfo.ENTITY
|
|
1125
|
+
}).then((fields2) => {
|
|
1126
|
+
this.allFields = fields2.filter((item) => item.relationType !== "1");
|
|
1127
|
+
this.defaultExpandKey = [fields2[0].code];
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
addSortField(field) {
|
|
1132
|
+
if (!field.leaf) return;
|
|
1133
|
+
const code = field.linkCode || field.code;
|
|
1134
|
+
const sortField = this.sortFields.find((item) => item.code === code);
|
|
1135
|
+
if (!sortField) {
|
|
1136
|
+
this.sortFields = [...this.sortFields, {
|
|
1137
|
+
code,
|
|
1138
|
+
text: field.text,
|
|
1139
|
+
sort: "asc"
|
|
1140
|
+
}];
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
addGroupSortField(field) {
|
|
1144
|
+
if (!field.leaf) return;
|
|
1145
|
+
const code = field.linkCode || field.code;
|
|
1146
|
+
this.groupSortFields = code;
|
|
1147
|
+
},
|
|
1148
|
+
changeSort(field) {
|
|
1149
|
+
const sortFieldIndex = this.sortFields.findIndex((item) => item.code === field.code);
|
|
1150
|
+
if (sortFieldIndex !== -1) {
|
|
1151
|
+
const sortField = this.sortFields.find((item) => item.code === field.code);
|
|
1152
|
+
const sortFields = [...this.sortFields];
|
|
1153
|
+
sortFields.splice(sortFieldIndex, 1, {
|
|
1154
|
+
...sortField,
|
|
1155
|
+
sort: sortField.sort === "asc" ? "desc" : "asc"
|
|
1156
|
+
});
|
|
1157
|
+
this.sortFields = [...sortFields];
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
deleteSort(field) {
|
|
1161
|
+
const sortFieldIndex = this.sortFields.findIndex((item) => item.code === field.code);
|
|
1162
|
+
if (sortFieldIndex !== -1) {
|
|
1163
|
+
const sortFields = [...this.sortFields];
|
|
1164
|
+
sortFields.splice(sortFieldIndex, 1);
|
|
1165
|
+
this.sortFields = [...sortFields];
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
deleteGroupSort(field) {
|
|
1169
|
+
this.groupSortFields = "";
|
|
1170
|
+
},
|
|
1171
|
+
getLinkEntityTree(mainEntity) {
|
|
1172
|
+
this.$http.$get({
|
|
1173
|
+
entityId: "FM_ENTITY_RELATION",
|
|
1174
|
+
action: "getAllEntityRelationTree",
|
|
1175
|
+
mainEntity
|
|
1176
|
+
}).then((data) => {
|
|
1177
|
+
this.linkEntityTree = Array.isArray(data) ? data : data && data.data ? data.data : [];
|
|
1178
|
+
}).catch(() => {
|
|
1179
|
+
this.linkEntityTree = [];
|
|
1180
|
+
});
|
|
1181
|
+
},
|
|
1182
|
+
onLinkEntityCheck() {
|
|
1183
|
+
const tree = this.$refs.linkEntityTree;
|
|
1184
|
+
if (!tree) return;
|
|
1185
|
+
const checked = tree.getCheckedNodes();
|
|
1186
|
+
this.dataSourceInfo.LINK_ENTITY = checked.map((item) => item.flag).join(",");
|
|
1187
|
+
this.dataSourceInfo["LINK_ENTITY#"] = checked.map((item) => item.title).join(",");
|
|
1188
|
+
},
|
|
1189
|
+
formatSearchParams() {
|
|
1190
|
+
const params = {};
|
|
1191
|
+
this.searchParams.map((item, i) => {
|
|
1192
|
+
if (i < this.searchParams.length - 1) {
|
|
1193
|
+
params[`search.link${i + 1}`] = item.link || "and";
|
|
1194
|
+
}
|
|
1195
|
+
params[`search.leftBrace${i + 1}`] = item.leftBrace || "";
|
|
1196
|
+
params[`search.field${i + 1}`] = "";
|
|
1197
|
+
params[`search.value${i + 1}`] = item.value;
|
|
1198
|
+
if (item.dateType) params[`search.dateType${i + 1}`] = item.dateType;
|
|
1199
|
+
params[`search.attriName${i + 1}`] = (item.field || item.attriName).replace("#", "").replace(/\|/g, ".");
|
|
1200
|
+
params[`search.relation${i + 1}`] = item.relation;
|
|
1201
|
+
params[`search.realRelation${i + 1}`] = item.relation;
|
|
1202
|
+
params[`search.realValue${i + 1}`] = item.realValue || item.value;
|
|
1203
|
+
params[`search.rightBrace${i + 1}`] = item.rightBrace || "";
|
|
1204
|
+
params[`search.metaId${i + 1}`] = this.$metaId;
|
|
1205
|
+
params[`search.inputMode${i + 1}`] = item.inputMode || "";
|
|
1206
|
+
});
|
|
1207
|
+
params.size = this.searchParams.length;
|
|
1208
|
+
return params;
|
|
1209
|
+
},
|
|
1210
|
+
dropDataSource(node, current, type, event) {
|
|
1211
|
+
const str = this.showDataSource.reduce((str2, item, index) => str2 += item.sourceId + ":" + index + ",", "");
|
|
1212
|
+
const params = {
|
|
1213
|
+
action: "moveList",
|
|
1214
|
+
entityId: "FM_FORM_SOURCE",
|
|
1215
|
+
orderString: str
|
|
1216
|
+
};
|
|
1217
|
+
this.$http.$post(params).then((data) => {
|
|
1218
|
+
});
|
|
1219
|
+
},
|
|
1220
|
+
allowDrop(draggingNode, dropNode, type) {
|
|
1221
|
+
return draggingNode.data.root && dropNode.data.root && type !== "inner";
|
|
1222
|
+
},
|
|
1223
|
+
submitDataSource() {
|
|
1224
|
+
const {
|
|
1225
|
+
id
|
|
1226
|
+
} = this.$query;
|
|
1227
|
+
const {
|
|
1228
|
+
ENTITY,
|
|
1229
|
+
ENTITY_VIEW,
|
|
1230
|
+
LINK_ENTITY,
|
|
1231
|
+
NAME,
|
|
1232
|
+
SORT,
|
|
1233
|
+
GROUP_ORDER_FIELD,
|
|
1234
|
+
IS_MAIN_SOUCE,
|
|
1235
|
+
SUB_SOURCE,
|
|
1236
|
+
DATA_SCOPE,
|
|
1237
|
+
LOAD_RELATION_ENTITY
|
|
1238
|
+
} = this.dataSourceInfo;
|
|
1239
|
+
this.$http.save({
|
|
1240
|
+
action: this.editDataSourceId ? "update" : "save",
|
|
1241
|
+
entityId: "FM_FORM_SOURCE",
|
|
1242
|
+
"bean.ID": this.editDataSourceId ? this.editDataSourceId : "",
|
|
1243
|
+
"bean.FORM": id || "",
|
|
1244
|
+
"bean.ENTITY": ENTITY || "",
|
|
1245
|
+
"bean.ENTITY_VIEW": ENTITY_VIEW || "",
|
|
1246
|
+
"bean.LINK_ENTITY": LINK_ENTITY || "",
|
|
1247
|
+
"bean.NAME": NAME || "",
|
|
1248
|
+
"bean.SORT": SORT || "",
|
|
1249
|
+
"bean.GROUP_ORDER_FIELD": GROUP_ORDER_FIELD || "",
|
|
1250
|
+
"bean.SUB_SOURCE": SUB_SOURCE || "",
|
|
1251
|
+
"bean.DATA_SCOPE": DATA_SCOPE || "",
|
|
1252
|
+
"bean.IS_MAIN_SOUCE": IS_MAIN_SOUCE || "0",
|
|
1253
|
+
"bean.LOAD_RELATION_ENTITY": LOAD_RELATION_ENTITY || "1",
|
|
1254
|
+
"bean.CLIENT": this.excelInfo.CLIENT,
|
|
1255
|
+
"bean.SYSTEM": this.excelInfo.SYSTEM
|
|
1256
|
+
}).then((data) => {
|
|
1257
|
+
this.dataSourceModal = false;
|
|
1258
|
+
this.searchParams = [];
|
|
1259
|
+
this.dataSourceInfo = {};
|
|
1260
|
+
const sourceId = this.editDataSourceId || data;
|
|
1261
|
+
let index = -1;
|
|
1262
|
+
if (!this.editDataSourceId) {
|
|
1263
|
+
this.dataSource.push({
|
|
1264
|
+
key: data,
|
|
1265
|
+
id: ENTITY,
|
|
1266
|
+
name: NAME,
|
|
1267
|
+
loadRelationEntity: LOAD_RELATION_ENTITY,
|
|
1268
|
+
root: true,
|
|
1269
|
+
sourceId: data
|
|
1270
|
+
});
|
|
1271
|
+
index = this.dataSource.length - 1;
|
|
1272
|
+
} else {
|
|
1273
|
+
index = this.dataSource.findIndex((item) => item.sourceId === this.editDataSourceId);
|
|
1274
|
+
if (index !== -1) {
|
|
1275
|
+
if (NAME !== this.dataSource[index].name) {
|
|
1276
|
+
this.dataSource.splice(index, 1, {
|
|
1277
|
+
...this.dataSource[index],
|
|
1278
|
+
name: NAME
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
if (LOAD_RELATION_ENTITY !== this.dataSource[index].loadRelationEntity) {
|
|
1282
|
+
this.getAttribute({
|
|
1283
|
+
ENTITY,
|
|
1284
|
+
ENTITY_VIEW,
|
|
1285
|
+
LOAD_RELATION_ENTITY
|
|
1286
|
+
}).then((entityData) => {
|
|
1287
|
+
this.entityDataMap[sourceId] = entityData;
|
|
1288
|
+
this.dataSource[index] = {
|
|
1289
|
+
...this.dataSource[index],
|
|
1290
|
+
loadRelationEntity: LOAD_RELATION_ENTITY,
|
|
1291
|
+
children: entityData
|
|
1292
|
+
};
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
if (ENTITY) {
|
|
1298
|
+
if (!this.entityDataMap[sourceId]) {
|
|
1299
|
+
this.$store.dispatch({
|
|
1300
|
+
type: ADD_META,
|
|
1301
|
+
metaId: ENTITY
|
|
1302
|
+
});
|
|
1303
|
+
this.getAttribute({
|
|
1304
|
+
ENTITY,
|
|
1305
|
+
ENTITY_VIEW,
|
|
1306
|
+
LOAD_RELATION_ENTITY
|
|
1307
|
+
}).then((entityData) => {
|
|
1308
|
+
this.entityDataMap[sourceId] = entityData;
|
|
1309
|
+
this.dataSource[index] = {
|
|
1310
|
+
...this.dataSource[index],
|
|
1311
|
+
children: entityData
|
|
1312
|
+
};
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
this.editDataSourceId = "";
|
|
1317
|
+
}).catch((err) => {
|
|
1318
|
+
this.$message.error(err.message);
|
|
1319
|
+
});
|
|
1320
|
+
},
|
|
1321
|
+
clickDataSource(data) {
|
|
1322
|
+
if (data.root) {
|
|
1323
|
+
this.editDataSourceId = data.sourceId;
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
addDataSource() {
|
|
1327
|
+
this.editDataSourceId = "";
|
|
1328
|
+
this.searchParams = [];
|
|
1329
|
+
this.dataSourceInfo = {};
|
|
1330
|
+
this.fields = [];
|
|
1331
|
+
this.dataSourceModal = true;
|
|
1332
|
+
},
|
|
1333
|
+
editDataSource(data) {
|
|
1334
|
+
this.$http.get({
|
|
1335
|
+
entityId: "FM_FORM_SOURCE",
|
|
1336
|
+
id: this.editDataSourceId
|
|
1337
|
+
}).then((data2) => {
|
|
1338
|
+
if (data2 && data2.data) {
|
|
1339
|
+
this.dataSourceInfo = {
|
|
1340
|
+
...data2.data
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
this.dataSourceModal = true;
|
|
1344
|
+
}).catch(() => {
|
|
1345
|
+
this.dataSourceModal = true;
|
|
1346
|
+
});
|
|
1347
|
+
},
|
|
1348
|
+
deleteDataSource() {
|
|
1349
|
+
if (!this.editDataSourceId) {
|
|
1350
|
+
this.$message.error("请选择要删除的数据源");
|
|
1351
|
+
return;
|
|
1352
|
+
}
|
|
1353
|
+
this.$http.removeMulti({
|
|
1354
|
+
entityId: "FM_FORM_SOURCE",
|
|
1355
|
+
ids: this.editDataSourceId
|
|
1356
|
+
}).then((data) => {
|
|
1357
|
+
if (data !== false) {
|
|
1358
|
+
this.$message.success("删除成功");
|
|
1359
|
+
const index = this.dataSource.findIndex((item) => item.sourceId === this.editDataSourceId);
|
|
1360
|
+
if (index !== -1) {
|
|
1361
|
+
this.dataSource.splice(index, 1);
|
|
1362
|
+
}
|
|
1363
|
+
} else {
|
|
1364
|
+
this.$message.err("删除失败");
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
1367
|
+
},
|
|
1368
|
+
getFormParams() {
|
|
1369
|
+
const {
|
|
1370
|
+
id
|
|
1371
|
+
} = this.$query;
|
|
1372
|
+
this.$http.list({
|
|
1373
|
+
entityId: "FM_FORM_PARAM",
|
|
1374
|
+
"scope.FORM": id
|
|
1375
|
+
}).then((data) => {
|
|
1376
|
+
this.formParams = [...data.entitys];
|
|
1377
|
+
});
|
|
1378
|
+
if (this.systemVariableList.length === 0) {
|
|
1379
|
+
this.$store.dispatch("GET_SYSTEM_VARIABLE");
|
|
1380
|
+
}
|
|
1381
|
+
this.getProcessParams();
|
|
1382
|
+
},
|
|
1383
|
+
getProcessParams() {
|
|
1384
|
+
const {
|
|
1385
|
+
id
|
|
1386
|
+
} = this.$query;
|
|
1387
|
+
this.$http.list({
|
|
1388
|
+
action: "getProcessParam",
|
|
1389
|
+
entityId: "FM_FORM",
|
|
1390
|
+
id
|
|
1391
|
+
}).then((data) => {
|
|
1392
|
+
this.processParams = data.map((item) => {
|
|
1393
|
+
if (item.childrens) item.children = item.childrens;
|
|
1394
|
+
delete item.childrens;
|
|
1395
|
+
return item;
|
|
1396
|
+
});
|
|
1397
|
+
});
|
|
1398
|
+
},
|
|
1399
|
+
saveFormParam() {
|
|
1400
|
+
const {
|
|
1401
|
+
id
|
|
1402
|
+
} = this.$query;
|
|
1403
|
+
const {
|
|
1404
|
+
CODE,
|
|
1405
|
+
NAME
|
|
1406
|
+
} = this.formParam;
|
|
1407
|
+
this.$http.save({
|
|
1408
|
+
action: this.editFormParamId ? "update" : "save",
|
|
1409
|
+
entityId: "FM_FORM_PARAM",
|
|
1410
|
+
"bean.ID": this.editFormParamId ? this.editFormParamId : "",
|
|
1411
|
+
"bean.FORM": id,
|
|
1412
|
+
"bean.CODE": CODE,
|
|
1413
|
+
"bean.CLIENT": this.excelInfo.CLIENT,
|
|
1414
|
+
"bean.SYSTEM": this.excelInfo.SYSTEM,
|
|
1415
|
+
"bean.NAME": NAME
|
|
1416
|
+
}).then(() => {
|
|
1417
|
+
this.formParamModal = false;
|
|
1418
|
+
this.editFormParamId = "";
|
|
1419
|
+
this.formParam = {};
|
|
1420
|
+
this.getFormParams();
|
|
1421
|
+
}).catch((err) => {
|
|
1422
|
+
this.$message.error(err.message || err.msg || "处理失败");
|
|
1423
|
+
});
|
|
1424
|
+
},
|
|
1425
|
+
addFormParam() {
|
|
1426
|
+
this.editFormParamId = "";
|
|
1427
|
+
this.formParam = {};
|
|
1428
|
+
this.formParamModal = true;
|
|
1429
|
+
},
|
|
1430
|
+
editFormParam(param) {
|
|
1431
|
+
this.editFormParamId = param.ID;
|
|
1432
|
+
this.formParamModal = true;
|
|
1433
|
+
this.formParam = {
|
|
1434
|
+
...param
|
|
1435
|
+
};
|
|
1436
|
+
},
|
|
1437
|
+
deleteFormParam(param) {
|
|
1438
|
+
this.$http.removeMulti({
|
|
1439
|
+
entityId: "FM_FORM_PARAM",
|
|
1440
|
+
ids: param.ID
|
|
1441
|
+
}).then((data) => {
|
|
1442
|
+
this.$message.success("删除成功");
|
|
1443
|
+
this.getFormParams();
|
|
1444
|
+
});
|
|
1445
|
+
},
|
|
1446
|
+
drag(e, data, node) {
|
|
1447
|
+
if (node.parent) {
|
|
1448
|
+
let parent = node.parent;
|
|
1449
|
+
let nodeText = "";
|
|
1450
|
+
while (parent.parent && parent.data.root !== true) {
|
|
1451
|
+
if (!parent.data.isMain) {
|
|
1452
|
+
nodeText = parent.data.text + "." + nodeText;
|
|
1453
|
+
}
|
|
1454
|
+
parent = parent.parent;
|
|
1455
|
+
}
|
|
1456
|
+
const field = {
|
|
1457
|
+
sourceId: parent.data.id,
|
|
1458
|
+
sourceName: parent.data.name,
|
|
1459
|
+
fieldId: node.data.id,
|
|
1460
|
+
fieldName: nodeText ? nodeText + node.data.text : node.data.text
|
|
1461
|
+
};
|
|
1462
|
+
for (const key in field) {
|
|
1463
|
+
e.dataTransfer.setData(key, field[key]);
|
|
1464
|
+
e.dataTransfer.dropEffect = "copy";
|
|
1465
|
+
e.dataTransfer.effectAllowed = "copy";
|
|
1466
|
+
}
|
|
1467
|
+
this.dragField = field;
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
dragDataSource(node, e) {
|
|
1471
|
+
if (node.data.root || node.data.type === "meta") return;
|
|
1472
|
+
if (node.parent) {
|
|
1473
|
+
let parent = node.parent;
|
|
1474
|
+
let nodeText = "";
|
|
1475
|
+
while (parent.parent && parent.data.root !== true) {
|
|
1476
|
+
if (!parent.data.isMain) {
|
|
1477
|
+
nodeText = parent.data.text + "." + nodeText;
|
|
1478
|
+
}
|
|
1479
|
+
parent = parent.parent;
|
|
1480
|
+
}
|
|
1481
|
+
const field = {
|
|
1482
|
+
sourceId: parent.data.id,
|
|
1483
|
+
sourceName: parent.data.name,
|
|
1484
|
+
fieldId: node.data.id,
|
|
1485
|
+
fieldName: nodeText ? nodeText + node.data.text : node.data.text
|
|
1486
|
+
};
|
|
1487
|
+
for (const key in field) {
|
|
1488
|
+
e.dataTransfer.setData(key, field[key]);
|
|
1489
|
+
e.dataTransfer.dropEffect = "copy";
|
|
1490
|
+
e.dataTransfer.effectAllowed = "copy";
|
|
1491
|
+
}
|
|
1492
|
+
this.dragField = field;
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
dragVariableFn(e, data, node) {
|
|
1496
|
+
e.dataTransfer.setData("type", data.type);
|
|
1497
|
+
e.dataTransfer.setData("variableName", data.name);
|
|
1498
|
+
e.dataTransfer.setData("variableCode", data.code);
|
|
1499
|
+
e.dataTransfer.dropEffect = "copy";
|
|
1500
|
+
e.dataTransfer.effectAllowed = "copy";
|
|
1501
|
+
this.dragVariable = {
|
|
1502
|
+
value: data.value,
|
|
1503
|
+
name: data.name
|
|
1504
|
+
};
|
|
1505
|
+
},
|
|
1506
|
+
dragProcessParamFn(e, data, node) {
|
|
1507
|
+
e.dataTransfer.setData("type", data.type);
|
|
1508
|
+
e.dataTransfer.setData("variableName", data.name);
|
|
1509
|
+
e.dataTransfer.setData("variableCode", data.code);
|
|
1510
|
+
e.dataTransfer.dropEffect = "copy";
|
|
1511
|
+
e.dataTransfer.effectAllowed = "copy";
|
|
1512
|
+
this.dragProcessParam = {
|
|
1513
|
+
value: data.value,
|
|
1514
|
+
name: data.name
|
|
1515
|
+
};
|
|
1516
|
+
},
|
|
1517
|
+
async createExcel(content) {
|
|
1518
|
+
const that = this;
|
|
1519
|
+
const {
|
|
1520
|
+
CONTENT
|
|
1521
|
+
} = this.excelInfo;
|
|
1522
|
+
let data = null;
|
|
1523
|
+
if (CONTENT) {
|
|
1524
|
+
data = JSON.parse(CONTENT);
|
|
1525
|
+
}
|
|
1526
|
+
const {
|
|
1527
|
+
FORM_EXTEND_FONTS = ""
|
|
1528
|
+
} = this.clientConfig;
|
|
1529
|
+
await this.$util.usePlugin("luckysheet");
|
|
1530
|
+
const fontList = [{
|
|
1531
|
+
fontName: "方正小标宋简体"
|
|
1532
|
+
}];
|
|
1533
|
+
if (FORM_EXTEND_FONTS) {
|
|
1534
|
+
fontList.push(...FORM_EXTEND_FONTS.split(";").map((item) => ({
|
|
1535
|
+
fontName: item
|
|
1536
|
+
})));
|
|
1537
|
+
}
|
|
1538
|
+
luckysheet.create({
|
|
1539
|
+
container: "luckysheetEl",
|
|
1540
|
+
// 设定DOM容器的id
|
|
1541
|
+
title: "Luckysheet Demo",
|
|
1542
|
+
// 设定表格名称
|
|
1543
|
+
lang: "zh",
|
|
1544
|
+
// 设定表格语言
|
|
1545
|
+
plugins: ["chart"],
|
|
1546
|
+
data: content !== void 0 ? content : data,
|
|
1547
|
+
// sheet 自身未记录行列数时(如新建报表)使用当前设置的行列数
|
|
1548
|
+
row: this.gridSize.row,
|
|
1549
|
+
column: this.gridSize.column,
|
|
1550
|
+
showsheetbar: false,
|
|
1551
|
+
fontList,
|
|
1552
|
+
hook: {
|
|
1553
|
+
cellMousedown: function(cell, position, sheetFile, ctx) {
|
|
1554
|
+
if (cell && cell.leftCell) {
|
|
1555
|
+
that.leftCellWay = "custom";
|
|
1556
|
+
} else {
|
|
1557
|
+
that.leftCellWay = "default";
|
|
1558
|
+
}
|
|
1559
|
+
if (cell && cell.topCell) {
|
|
1560
|
+
that.topCellWay = "custom";
|
|
1561
|
+
} else {
|
|
1562
|
+
that.topCellWay = "default";
|
|
1563
|
+
}
|
|
1564
|
+
if (cell && cell.relyCell) {
|
|
1565
|
+
that.relyCellWay = "custom";
|
|
1566
|
+
} else {
|
|
1567
|
+
that.relyCellWay = "default";
|
|
1568
|
+
}
|
|
1569
|
+
const {
|
|
1570
|
+
r,
|
|
1571
|
+
c
|
|
1572
|
+
} = position;
|
|
1573
|
+
that.activeCell = {
|
|
1574
|
+
rowIndex: r,
|
|
1575
|
+
columnIndex: c,
|
|
1576
|
+
wrapCompute: "1",
|
|
1577
|
+
heightAuto: "1",
|
|
1578
|
+
...cell || {}
|
|
1579
|
+
};
|
|
1580
|
+
that.globalSetting = false;
|
|
1581
|
+
},
|
|
1582
|
+
cellDragStop: function(cell, position, sheetFile, ctx) {
|
|
1583
|
+
const {
|
|
1584
|
+
r,
|
|
1585
|
+
c
|
|
1586
|
+
} = position;
|
|
1587
|
+
if (that.dragField) {
|
|
1588
|
+
const {
|
|
1589
|
+
sourceName,
|
|
1590
|
+
fieldName,
|
|
1591
|
+
sourceId,
|
|
1592
|
+
fieldId
|
|
1593
|
+
} = that.dragField;
|
|
1594
|
+
luckysheet.setCellValue(r, c, {
|
|
1595
|
+
v: `{${sourceName}.${fieldName}}`,
|
|
1596
|
+
cellType: "dataset",
|
|
1597
|
+
dataSource: sourceId,
|
|
1598
|
+
field: fieldId,
|
|
1599
|
+
aggregate: "select",
|
|
1600
|
+
expand: "Down"
|
|
1601
|
+
});
|
|
1602
|
+
that.dragField = null;
|
|
1603
|
+
} else if (that.dragVariable) {
|
|
1604
|
+
const {
|
|
1605
|
+
name,
|
|
1606
|
+
value
|
|
1607
|
+
} = that.dragVariable;
|
|
1608
|
+
luckysheet.setCellValue(r, c, {
|
|
1609
|
+
v: `{${name}}`,
|
|
1610
|
+
cellType: "system-variable",
|
|
1611
|
+
variable: value
|
|
1612
|
+
});
|
|
1613
|
+
that.dragVariable = null;
|
|
1614
|
+
} else if (that.dragProcessParam) {
|
|
1615
|
+
const {
|
|
1616
|
+
name,
|
|
1617
|
+
value
|
|
1618
|
+
} = that.dragProcessParam;
|
|
1619
|
+
luckysheet.setCellValue(r, c, {
|
|
1620
|
+
v: `{${name}}`,
|
|
1621
|
+
cellType: "process-variable",
|
|
1622
|
+
variable: value
|
|
1623
|
+
});
|
|
1624
|
+
that.dragProcessParam = null;
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
cellEditBefore: function(range, position, sheetFile, ctx) {
|
|
1628
|
+
const selects = luckysheet.getRangeValuesWithFlatte();
|
|
1629
|
+
const cell = selects[0];
|
|
1630
|
+
if (cell && (cell.cellType === "dataset" || cell.cellType === "system-variable")) {
|
|
1631
|
+
that.$message.warning(cell.cellType === "system-variable" ? "系统变量不允许编辑" : "数据源不允许编辑");
|
|
1632
|
+
const functionInput = document.querySelectorAll(".luckysheet-functionbox-cell-input");
|
|
1633
|
+
const cellInput = document.querySelectorAll(".luckysheet-cell-input");
|
|
1634
|
+
const inputList = [...functionInput, ...cellInput];
|
|
1635
|
+
const timer = setTimeout(() => {
|
|
1636
|
+
inputList.map((input) => input.blur());
|
|
1637
|
+
clearTimeout(timer);
|
|
1638
|
+
}, 80);
|
|
1639
|
+
}
|
|
1640
|
+
return false;
|
|
1641
|
+
},
|
|
1642
|
+
cellUpdated(v) {
|
|
1643
|
+
},
|
|
1644
|
+
updated(operate) {
|
|
1645
|
+
var _a, _b;
|
|
1646
|
+
if (operate.type === "delRC" || operate.type === "deleteCell" || operate.type === "addRC") {
|
|
1647
|
+
const sheet = luckysheet.getSheet();
|
|
1648
|
+
const {
|
|
1649
|
+
data: data2
|
|
1650
|
+
} = sheet;
|
|
1651
|
+
const celldata = luckysheet.transToCellData(data2);
|
|
1652
|
+
const updateRelyCell = (cell, prop) => {
|
|
1653
|
+
const relyCell = cell.v[prop];
|
|
1654
|
+
if (!relyCell || !relyCell.match(/\d+/g)) return;
|
|
1655
|
+
const row = Number(relyCell.match(/\d+/g)[0]);
|
|
1656
|
+
const columnName = relyCell.match(/[A-Z]+/g)[0];
|
|
1657
|
+
const column = letterToNumber(columnName);
|
|
1658
|
+
if (operate.type === "delRC") {
|
|
1659
|
+
const {
|
|
1660
|
+
rc,
|
|
1661
|
+
index
|
|
1662
|
+
} = operate.ctrlValue;
|
|
1663
|
+
if (rc === "r") {
|
|
1664
|
+
if (row >= index + 1) {
|
|
1665
|
+
luckysheet.setCellValue(cell.r, cell.c, {
|
|
1666
|
+
[prop]: row === index + 1 ? "" : `${columnName}${row - 1}`
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
} else if (operate.ctrlValue.rc === "c") {
|
|
1670
|
+
if (column >= index) {
|
|
1671
|
+
luckysheet.setCellValue(cell.r, cell.c, {
|
|
1672
|
+
[prop]: column === index ? "" : `${NumberToLetter(column - 1)}${row}`
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
} else if (operate.type === "deleteCell") {
|
|
1677
|
+
const {
|
|
1678
|
+
type,
|
|
1679
|
+
stc,
|
|
1680
|
+
str,
|
|
1681
|
+
edc,
|
|
1682
|
+
edr
|
|
1683
|
+
} = operate.ctrl;
|
|
1684
|
+
if (row >= str + 1 && row <= edr + 1 && column >= stc && column <= edc) {
|
|
1685
|
+
if (column >= stc && column <= edc) {
|
|
1686
|
+
luckysheet.setCellValue(cell.r, cell.c, {
|
|
1687
|
+
[prop]: ""
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
} else if (column > edc && row >= str + 1 && row <= edr + 1 && type === "moveLeft") {
|
|
1691
|
+
const newColumn = column - 1 - (edc - stc);
|
|
1692
|
+
luckysheet.setCellValue(cell.r, cell.c, {
|
|
1693
|
+
[prop]: `${NumberToLetter(newColumn)}${row}`
|
|
1694
|
+
});
|
|
1695
|
+
} else if (row > edr + 1 && column >= stc && column <= edc && type === "moveUp") {
|
|
1696
|
+
const newRow = row - 1 - (edr - str);
|
|
1697
|
+
luckysheet.setCellValue(cell.r, cell.c, {
|
|
1698
|
+
[prop]: `${columnName}${newRow}`
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
} else if (operate.type === "addRC") {
|
|
1702
|
+
const {
|
|
1703
|
+
index,
|
|
1704
|
+
len,
|
|
1705
|
+
direction,
|
|
1706
|
+
rc
|
|
1707
|
+
} = operate.ctrlValue;
|
|
1708
|
+
if (rc === "c") {
|
|
1709
|
+
if (column > index || column === index && direction === "lefttop") {
|
|
1710
|
+
const newColumn = column + len;
|
|
1711
|
+
luckysheet.setCellValue(cell.r, cell.c, {
|
|
1712
|
+
[prop]: `${NumberToLetter(newColumn)}${row}`
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
} else if (rc === "r") {
|
|
1716
|
+
if (row > index + 1 || row === index + 1 && direction === "lefttop") {
|
|
1717
|
+
const newRow = row + len;
|
|
1718
|
+
luckysheet.setCellValue(cell.r, cell.c, {
|
|
1719
|
+
[prop]: `${columnName}${newRow}`
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
for (const cell of celldata) {
|
|
1726
|
+
if ((_a = cell.v) == null ? void 0 : _a.leftCell) {
|
|
1727
|
+
updateRelyCell(cell, "leftCell");
|
|
1728
|
+
}
|
|
1729
|
+
if ((_b = cell.v) == null ? void 0 : _b.topCell) {
|
|
1730
|
+
updateRelyCell(cell, "topCell");
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
that.syncGridSize();
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
const luckysheetCell = document.getElementsByClassName("luckysheet-cell-flow-col")[0];
|
|
1739
|
+
for (let i = 0; i < 10; i++) {
|
|
1740
|
+
const hr = document.createElement("hr");
|
|
1741
|
+
hr.style = `width:100% ;height: 0px;border-top: 1px dashed rgb(153, 153, 153);position: absolute;left: 0;top: ${(i + 1) * 840.51}pt;z-index: 10;`;
|
|
1742
|
+
luckysheetCell.appendChild(hr);
|
|
1743
|
+
}
|
|
1744
|
+
this.syncGridSize();
|
|
1745
|
+
},
|
|
1746
|
+
// 从 luckysheet 读取当前 sheet 的行列数
|
|
1747
|
+
syncGridSize() {
|
|
1748
|
+
let sheet = null;
|
|
1749
|
+
try {
|
|
1750
|
+
sheet = typeof luckysheet === "undefined" ? null : luckysheet.getSheet();
|
|
1751
|
+
} catch (e) {
|
|
1752
|
+
sheet = null;
|
|
1753
|
+
}
|
|
1754
|
+
if (!sheet) return;
|
|
1755
|
+
const data = sheet.data;
|
|
1756
|
+
this.gridSize = {
|
|
1757
|
+
row: data && data.length ? data.length : sheet.row || DEFAULT_ROW_NUM,
|
|
1758
|
+
column: data && data.length && data[0] ? data[0].length : sheet.column || DEFAULT_COLUMN_NUM
|
|
1759
|
+
};
|
|
1760
|
+
},
|
|
1761
|
+
// 统计已使用到的最大行列(含合并单元格、自定义行高列宽),避免缩小行列时丢配置
|
|
1762
|
+
getUsedGridSize(sheet, celldata) {
|
|
1763
|
+
let row = 1;
|
|
1764
|
+
let column = 1;
|
|
1765
|
+
celldata.forEach((cell) => {
|
|
1766
|
+
if (cell.v === null || cell.v === void 0) return;
|
|
1767
|
+
row = Math.max(row, cell.r + 1);
|
|
1768
|
+
column = Math.max(column, cell.c + 1);
|
|
1769
|
+
});
|
|
1770
|
+
const config = sheet.config || {};
|
|
1771
|
+
const merge = config.merge || {};
|
|
1772
|
+
for (const key in merge) {
|
|
1773
|
+
const {
|
|
1774
|
+
r,
|
|
1775
|
+
c,
|
|
1776
|
+
rs = 1,
|
|
1777
|
+
cs = 1
|
|
1778
|
+
} = merge[key];
|
|
1779
|
+
row = Math.max(row, r + rs);
|
|
1780
|
+
column = Math.max(column, c + cs);
|
|
1781
|
+
}
|
|
1782
|
+
for (const key in config.rowlen || {}) {
|
|
1783
|
+
row = Math.max(row, Number(key) + 1);
|
|
1784
|
+
}
|
|
1785
|
+
for (const key in config.columnlen || {}) {
|
|
1786
|
+
column = Math.max(column, Number(key) + 1);
|
|
1787
|
+
}
|
|
1788
|
+
return {
|
|
1789
|
+
row,
|
|
1790
|
+
column
|
|
1791
|
+
};
|
|
1792
|
+
},
|
|
1793
|
+
// 右侧「+ 列」:在表格末尾追加列
|
|
1794
|
+
async addColumns() {
|
|
1795
|
+
const num = Number(this.addColumnNum);
|
|
1796
|
+
if (!num || num < 1) {
|
|
1797
|
+
this.$message.warning("请输入要添加的列数");
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1800
|
+
const column = this.gridSize.column + num;
|
|
1801
|
+
if (column > MAX_COLUMN_NUM) {
|
|
1802
|
+
this.$message.warning(`最多支持 ${MAX_COLUMN_NUM} 列,当前 ${this.gridSize.column} 列`);
|
|
1803
|
+
return;
|
|
1804
|
+
}
|
|
1805
|
+
this.addColumnVisible = false;
|
|
1806
|
+
const ok = await this.resizeGrid(this.gridSize.row, column);
|
|
1807
|
+
if (ok) {
|
|
1808
|
+
this.$message.success(`已添加 ${num} 列,当前共 ${column} 列(末列 ${this.NumToString(column)}),点击右上角「保存」生效`);
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
// 按新行列数重建整表,成功返回 true
|
|
1812
|
+
async resizeGrid(row, column) {
|
|
1813
|
+
if (!row || !column || row < 1 || column < 1 || row > MAX_ROW_NUM || column > MAX_COLUMN_NUM) {
|
|
1814
|
+
this.$message.warning(`行数取值 1~${MAX_ROW_NUM},列数取值 1~${MAX_COLUMN_NUM}`);
|
|
1815
|
+
return false;
|
|
1816
|
+
}
|
|
1817
|
+
const sheets = luckysheet.getluckysheetfile();
|
|
1818
|
+
const content = sheets.map((item) => {
|
|
1819
|
+
const {
|
|
1820
|
+
data,
|
|
1821
|
+
...props
|
|
1822
|
+
} = item;
|
|
1823
|
+
return {
|
|
1824
|
+
...props,
|
|
1825
|
+
celldata: data ? luckysheet.transToCellData(data) : item.celldata || []
|
|
1826
|
+
};
|
|
1827
|
+
});
|
|
1828
|
+
const used = this.getUsedGridSize(sheets[0], content[0].celldata);
|
|
1829
|
+
if (row < used.row || column < used.column) {
|
|
1830
|
+
this.$message.warning(`当前表格已使用到第 ${used.row} 行、${this.NumToString(used.column)} 列,行列数不能小于该范围`);
|
|
1831
|
+
return false;
|
|
1832
|
+
}
|
|
1833
|
+
content[0].row = row;
|
|
1834
|
+
content[0].column = column;
|
|
1835
|
+
const newContent = JSON.parse(JSON.stringify(content));
|
|
1836
|
+
this.gridSize = {
|
|
1837
|
+
row,
|
|
1838
|
+
column
|
|
1839
|
+
};
|
|
1840
|
+
luckysheet.destroy();
|
|
1841
|
+
await this.createExcel(newContent);
|
|
1842
|
+
this.saveContent();
|
|
1843
|
+
return true;
|
|
1844
|
+
},
|
|
1845
|
+
deleteCell(evt) {
|
|
1846
|
+
console.log(evt);
|
|
1847
|
+
},
|
|
1848
|
+
importExcel(props) {
|
|
1849
|
+
const file = props.file || props;
|
|
1850
|
+
this.isImportExcel = true;
|
|
1851
|
+
this.$http.$post({
|
|
1852
|
+
action: "upload",
|
|
1853
|
+
file
|
|
1854
|
+
}, {
|
|
1855
|
+
requestType: "formData"
|
|
1856
|
+
}).then((data) => {
|
|
1857
|
+
if (data) {
|
|
1858
|
+
if (data.bean) {
|
|
1859
|
+
this.getExcelDataByFile(data.bean);
|
|
1860
|
+
} else if (data.fileCheck) {
|
|
1861
|
+
this.$message.error(data.fileCheck.checkResult);
|
|
1862
|
+
this.isImportExcel = false;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}).catch((err) => {
|
|
1866
|
+
this.$message.error(err.message);
|
|
1867
|
+
this.isImportExcel = false;
|
|
1868
|
+
});
|
|
1869
|
+
},
|
|
1870
|
+
getExcelDataByFile(fileId) {
|
|
1871
|
+
this.$http.save({
|
|
1872
|
+
action: "importExcel",
|
|
1873
|
+
entityId: "FM_FORM",
|
|
1874
|
+
fileId
|
|
1875
|
+
}).then((data) => {
|
|
1876
|
+
const sheets = JSON.parse(data) || [];
|
|
1877
|
+
const {
|
|
1878
|
+
celldata
|
|
1879
|
+
} = sheets[0] || {};
|
|
1880
|
+
sheets[0].data = luckysheet.transToData(celldata);
|
|
1881
|
+
luckysheet.destroy();
|
|
1882
|
+
this.createExcel(sheets);
|
|
1883
|
+
this.isImportExcel = false;
|
|
1884
|
+
}).catch((err) => {
|
|
1885
|
+
this.$message.error(err.message);
|
|
1886
|
+
this.isImportExcel = false;
|
|
1887
|
+
});
|
|
1888
|
+
},
|
|
1889
|
+
saveExcelData(cb) {
|
|
1890
|
+
this.saveContent();
|
|
1891
|
+
this.$http.update({
|
|
1892
|
+
entityId: "FM_FORM",
|
|
1893
|
+
"bean.ID": this.$query.id,
|
|
1894
|
+
"bean.CONTENT": this.content,
|
|
1895
|
+
"bean.LANGUAGE_PARAM": {
|
|
1896
|
+
CONTENT: this.languageContent
|
|
1897
|
+
}
|
|
1898
|
+
}).then((data) => {
|
|
1899
|
+
this.$message.success("保存成功");
|
|
1900
|
+
this.initContent = this.content;
|
|
1901
|
+
this.initLanguageContent = this.$_.cloneDeep(this.languageContent);
|
|
1902
|
+
cb && cb();
|
|
1903
|
+
});
|
|
1904
|
+
},
|
|
1905
|
+
preview() {
|
|
1906
|
+
this.showFormParamsDialog = false;
|
|
1907
|
+
this.$createPage({
|
|
1908
|
+
component: "excel-preview-page",
|
|
1909
|
+
name: this.excelInfo.NAME,
|
|
1910
|
+
code: this.excelInfo.CODE,
|
|
1911
|
+
params: this.previewParams
|
|
1912
|
+
});
|
|
1913
|
+
},
|
|
1914
|
+
defaultLeftCell() {
|
|
1915
|
+
this.activeCell.leftCell = "";
|
|
1916
|
+
},
|
|
1917
|
+
defaultTopCell() {
|
|
1918
|
+
this.activeCell.topCell = "";
|
|
1919
|
+
},
|
|
1920
|
+
defaultRelyCell() {
|
|
1921
|
+
this.activeCell.relyCell = "";
|
|
1922
|
+
},
|
|
1923
|
+
addFilterCondition() {
|
|
1924
|
+
this.showFilterConditionDialog = true;
|
|
1925
|
+
},
|
|
1926
|
+
editFilterCondition(item, index) {
|
|
1927
|
+
this.filterConditionForm = {
|
|
1928
|
+
...item
|
|
1929
|
+
};
|
|
1930
|
+
this.editFilterConditionIndex = index;
|
|
1931
|
+
this.showFilterConditionDialog = true;
|
|
1932
|
+
},
|
|
1933
|
+
deleteFilterCondition(index) {
|
|
1934
|
+
const {
|
|
1935
|
+
filterCondition
|
|
1936
|
+
} = this.activeCell;
|
|
1937
|
+
filterCondition.splice(index, 1);
|
|
1938
|
+
this.activeCell[index] = filterCondition;
|
|
1939
|
+
},
|
|
1940
|
+
saveFilterCondition() {
|
|
1941
|
+
let {
|
|
1942
|
+
filterCondition
|
|
1943
|
+
} = this.activeCell;
|
|
1944
|
+
if (!filterCondition) filterCondition = [];
|
|
1945
|
+
if (!this.filterConditionForm.propertyId) {
|
|
1946
|
+
this.$message.error("请填写属性id");
|
|
1947
|
+
return;
|
|
1948
|
+
}
|
|
1949
|
+
if (!this.filterConditionForm.op) {
|
|
1950
|
+
this.$message.error("请填写操作符");
|
|
1951
|
+
return;
|
|
1952
|
+
}
|
|
1953
|
+
if (!this.filterConditionForm.condition) {
|
|
1954
|
+
this.$message.error("请填写值表达式");
|
|
1955
|
+
return;
|
|
1956
|
+
}
|
|
1957
|
+
const item = this.objectFieldList.find((item2) => item2.code === this.filterConditionForm.propertyId) || {
|
|
1958
|
+
text: this.filterConditionForm.propertyId
|
|
1959
|
+
};
|
|
1960
|
+
const condition = {
|
|
1961
|
+
...this.filterConditionForm,
|
|
1962
|
+
propertyName: item.text,
|
|
1963
|
+
text: `${this.editFilterConditionIndex > 0 || filterCondition.length > 0 ? this.getConditionOpText(this.filterConditionForm.join) || "" : ""} ${item.text} ${this.getConditionOpText(this.filterConditionForm.op)} ${this.filterConditionForm.condition}`
|
|
1964
|
+
};
|
|
1965
|
+
if (this.editFilterConditionIndex !== null) {
|
|
1966
|
+
filterCondition.splice(this.editFilterConditionIndex, 1, condition);
|
|
1967
|
+
this.editFilterConditionIndex = null;
|
|
1968
|
+
} else {
|
|
1969
|
+
filterCondition.push(condition);
|
|
1970
|
+
}
|
|
1971
|
+
this.activeCell.filterCondition = filterCondition;
|
|
1972
|
+
this.showFilterConditionDialog = false;
|
|
1973
|
+
this.filterConditionForm = {};
|
|
1974
|
+
},
|
|
1975
|
+
addConditionPropertyItem() {
|
|
1976
|
+
this.currentConditionPropertyItem = {};
|
|
1977
|
+
this.showConditionPropertyItemDialog = true;
|
|
1978
|
+
const {
|
|
1979
|
+
conditionPropertyItems
|
|
1980
|
+
} = this.activeCell;
|
|
1981
|
+
if (conditionPropertyItems && conditionPropertyItems.length) {
|
|
1982
|
+
this.conditionPropertyItems = conditionPropertyItems;
|
|
1983
|
+
this.currentConditionPropertyItem = conditionPropertyItems[0];
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
saveConditionPropertyItemName() {
|
|
1987
|
+
let {
|
|
1988
|
+
conditionPropertyItems
|
|
1989
|
+
} = this.activeCell;
|
|
1990
|
+
if (!conditionPropertyItems) conditionPropertyItems = [];
|
|
1991
|
+
if (!this.conditionPropertyItemNameForm.name) {
|
|
1992
|
+
this.$message.error("请输入条件项名称");
|
|
1993
|
+
return;
|
|
1994
|
+
}
|
|
1995
|
+
let item = null;
|
|
1996
|
+
if (this.conditionPropertyItemNameForm.uid) {
|
|
1997
|
+
item = this.conditionPropertyItems.find((i) => i.uid === this.conditionPropertyItemNameForm.uid);
|
|
1998
|
+
item.name = this.conditionPropertyItemNameForm.name;
|
|
1999
|
+
} else {
|
|
2000
|
+
const guid = (/* @__PURE__ */ new Date()).getTime().toString(32);
|
|
2001
|
+
item = {
|
|
2002
|
+
uid: guid,
|
|
2003
|
+
name: this.conditionPropertyItemNameForm.name,
|
|
2004
|
+
conditions: [],
|
|
2005
|
+
cellStyle: {},
|
|
2006
|
+
newValueFlag: false,
|
|
2007
|
+
newValue: ""
|
|
2008
|
+
};
|
|
2009
|
+
this.conditionPropertyItems.push(item);
|
|
2010
|
+
}
|
|
2011
|
+
this.activeCell.conditionPropertyItems = this.conditionPropertyItems;
|
|
2012
|
+
this.showConditionPropertyItemNameDialog = false;
|
|
2013
|
+
this.conditionPropertyItemNameForm = {};
|
|
2014
|
+
this.currentConditionPropertyItem = item;
|
|
2015
|
+
},
|
|
2016
|
+
saveConditionPropertyItemCondition() {
|
|
2017
|
+
if (!this.conditionPropertyItemConditionForm.type) {
|
|
2018
|
+
this.$message.error("请选择条件左值");
|
|
2019
|
+
return;
|
|
2020
|
+
}
|
|
2021
|
+
if (!this.conditionPropertyItemConditionForm.op) {
|
|
2022
|
+
this.$message.error("请选择操作符");
|
|
2023
|
+
return;
|
|
2024
|
+
}
|
|
2025
|
+
if (!this.conditionPropertyItemConditionForm.condition) {
|
|
2026
|
+
this.$message.error("请输入值表达式");
|
|
2027
|
+
return;
|
|
2028
|
+
}
|
|
2029
|
+
if (this.conditionPropertyItemConditionForm.uid) {
|
|
2030
|
+
const c = this.currentConditionPropertyItem.conditions.find((i) => i.uid === this.conditionPropertyItemConditionForm.uid);
|
|
2031
|
+
c.type = this.conditionPropertyItemConditionForm.type;
|
|
2032
|
+
c.op = this.conditionPropertyItemConditionForm.op;
|
|
2033
|
+
c.join = this.conditionPropertyItemConditionForm.join;
|
|
2034
|
+
c.condition = this.conditionPropertyItemConditionForm.condition;
|
|
2035
|
+
c.left = this.conditionPropertyItemConditionForm.left;
|
|
2036
|
+
} else {
|
|
2037
|
+
const guid = (/* @__PURE__ */ new Date()).getTime().toString(32);
|
|
2038
|
+
const item = {
|
|
2039
|
+
uid: guid,
|
|
2040
|
+
type: this.conditionPropertyItemConditionForm.type,
|
|
2041
|
+
op: this.conditionPropertyItemConditionForm.op,
|
|
2042
|
+
join: this.conditionPropertyItemConditionForm.join,
|
|
2043
|
+
condition: this.conditionPropertyItemConditionForm.condition,
|
|
2044
|
+
left: this.conditionPropertyItemConditionForm.left
|
|
2045
|
+
};
|
|
2046
|
+
if (!this.currentConditionPropertyItem.conditions) this.currentConditionPropertyItem.conditions = [];
|
|
2047
|
+
this.currentConditionPropertyItem.conditions.push(item);
|
|
2048
|
+
}
|
|
2049
|
+
this.activeCell.conditionPropertyItems = this.conditionPropertyItems;
|
|
2050
|
+
this.showConditionPropertyItemConditionDialog = false;
|
|
2051
|
+
this.conditionPropertyItemConditionForm = {};
|
|
2052
|
+
},
|
|
2053
|
+
saveConditionPropertyItem() {
|
|
2054
|
+
this.activeCell.conditionPropertyItems = this.conditionPropertyItems;
|
|
2055
|
+
this.showConditionPropertyItemDialog = false;
|
|
2056
|
+
this.currentConditionPropertyItem = {};
|
|
2057
|
+
this.conditionPropertyItems = [];
|
|
2058
|
+
},
|
|
2059
|
+
clickConditionPropertyItem(item) {
|
|
2060
|
+
this.currentConditionPropertyItem = item;
|
|
2061
|
+
},
|
|
2062
|
+
deleteConditionPropertyItem(item) {
|
|
2063
|
+
const {
|
|
2064
|
+
conditionPropertyItems
|
|
2065
|
+
} = this.activeCell;
|
|
2066
|
+
this.conditionPropertyItems = conditionPropertyItems.filter((i) => i.uid !== item.uid);
|
|
2067
|
+
this.activeCell.conditionPropertyItems = this.conditionPropertyItems;
|
|
2068
|
+
this.currentConditionPropertyItem = {};
|
|
2069
|
+
},
|
|
2070
|
+
editConditionPropertyItem() {
|
|
2071
|
+
this.conditionPropertyItemNameForm = {
|
|
2072
|
+
...this.currentConditionPropertyItem
|
|
2073
|
+
};
|
|
2074
|
+
this.showConditionPropertyItemNameDialog = true;
|
|
2075
|
+
},
|
|
2076
|
+
deleteConditionPropertyCondition(item) {
|
|
2077
|
+
this.currentConditionPropertyItem.conditions = this.currentConditionPropertyItem.conditions.filter((i) => i.uid !== item.uid);
|
|
2078
|
+
},
|
|
2079
|
+
editConditionPropertyCondition(item) {
|
|
2080
|
+
this.conditionPropertyItemConditionForm = {
|
|
2081
|
+
...item
|
|
2082
|
+
};
|
|
2083
|
+
this.conditionPropertyItemConditionForm.index = this.currentConditionPropertyItem.conditions.indexOf(item);
|
|
2084
|
+
this.showConditionPropertyItemConditionDialog = true;
|
|
2085
|
+
},
|
|
2086
|
+
getConditionOpText(p) {
|
|
2087
|
+
let text = "";
|
|
2088
|
+
switch (p) {
|
|
2089
|
+
case "==":
|
|
2090
|
+
text = "等于";
|
|
2091
|
+
break;
|
|
2092
|
+
case ">":
|
|
2093
|
+
text = "大于";
|
|
2094
|
+
break;
|
|
2095
|
+
case ">=":
|
|
2096
|
+
text = "大于等于";
|
|
2097
|
+
break;
|
|
2098
|
+
case "<":
|
|
2099
|
+
text = "小于";
|
|
2100
|
+
break;
|
|
2101
|
+
case "<=":
|
|
2102
|
+
text = "小于等于";
|
|
2103
|
+
break;
|
|
2104
|
+
case "!=":
|
|
2105
|
+
text = "不等于";
|
|
2106
|
+
break;
|
|
2107
|
+
case "in":
|
|
2108
|
+
text = "在集合中";
|
|
2109
|
+
break;
|
|
2110
|
+
case "not in":
|
|
2111
|
+
text = "不在集合中";
|
|
2112
|
+
break;
|
|
2113
|
+
case "like":
|
|
2114
|
+
text = "相似";
|
|
2115
|
+
break;
|
|
2116
|
+
case "not like":
|
|
2117
|
+
text = "不相似";
|
|
2118
|
+
break;
|
|
2119
|
+
case "and":
|
|
2120
|
+
text = "并且";
|
|
2121
|
+
break;
|
|
2122
|
+
case "or":
|
|
2123
|
+
text = "或者";
|
|
2124
|
+
break;
|
|
2125
|
+
}
|
|
2126
|
+
return text;
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
mounted() {
|
|
2130
|
+
this.$refs.luckysheet.setAttribute("id", "luckysheetEl");
|
|
2131
|
+
this.getData();
|
|
2132
|
+
},
|
|
2133
|
+
created() {
|
|
2134
|
+
this.currentLanguage = this.defaultLanguage;
|
|
2135
|
+
if (this.showMenu) {
|
|
2136
|
+
this.changeMenuFlag = true;
|
|
2137
|
+
this.$store.commit("SWITCH_MENU_SHOW", false);
|
|
2138
|
+
}
|
|
2139
|
+
if (this.showAppNav) {
|
|
2140
|
+
this.changeAppNavFlag = true;
|
|
2141
|
+
this.$store.commit("SWITCH_APP_NAV_SHOW", false);
|
|
2142
|
+
}
|
|
2143
|
+
this.getDataSource();
|
|
2144
|
+
this.getFormParams();
|
|
2145
|
+
this.getFieldRelation();
|
|
2146
|
+
this.getFieldConfigs();
|
|
2147
|
+
},
|
|
2148
|
+
beforeUnmount() {
|
|
2149
|
+
if (this.changeMenuFlag) {
|
|
2150
|
+
this.$store.commit("SWITCH_MENU_SHOW", true);
|
|
2151
|
+
}
|
|
2152
|
+
if (this.changeAppNavFlag) {
|
|
2153
|
+
this.$store.commit("SWITCH_APP_NAV_SHOW", true);
|
|
2154
|
+
}
|
|
2155
|
+
this.$refs.luckysheet.removeAttribute("id");
|
|
2156
|
+
const morebtn = document.getElementById("luckysheet-icon-morebtn-div");
|
|
2157
|
+
if (morebtn) {
|
|
2158
|
+
morebtn.style = "none";
|
|
2159
|
+
}
|
|
2160
|
+
luckysheet.destroy();
|
|
2161
|
+
}
|
|
2162
|
+
};
|
|
2163
|
+
export {
|
|
2164
|
+
_sfc_main as default
|
|
2165
|
+
};
|