@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,4632 @@
|
|
|
1
|
+
import '../../../style.css';
|
|
2
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, toDisplayString, createBlock, createVNode, withCtx, createTextVNode, createCommentVNode, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers, markRaw } from "vue";
|
|
3
|
+
import component from "@epxing/core/src/mixins/component";
|
|
4
|
+
import draggable from "@epxing/core/src/components/draggable";
|
|
5
|
+
import { mapGetters, mapState } from "vuex";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const _sfc_main = {
|
|
9
|
+
name: "epx-report-design",
|
|
10
|
+
mixins: [component],
|
|
11
|
+
components: {
|
|
12
|
+
draggable
|
|
13
|
+
},
|
|
14
|
+
style: {
|
|
15
|
+
margin: 0
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
reportInfo: {},
|
|
20
|
+
editName: false,
|
|
21
|
+
reportTypeList: [
|
|
22
|
+
{ icon: "epx-icon-tongjibiao", text: "统计表", type: "1", chartType: "" },
|
|
23
|
+
{ icon: "epx-icon-bingzhuangtu", text: "饼状图", type: "2", chartType: "pie" },
|
|
24
|
+
// { icon: 'epx-icon-huanxingtu', text: '空心饼状图', type: '2', chartType: 'circularPie' },
|
|
25
|
+
{ icon: "epx-icon-zhexiantu", text: "折线图", type: "2", chartType: "line" },
|
|
26
|
+
{ icon: "epx-icon-zhuzhuangtu", text: "柱状图", type: "2", chartType: "column" },
|
|
27
|
+
// { icon: 'epx-icon-tiaoxingtu', text: '横向柱状图', type: '2', chartType: 'horiColumn' },
|
|
28
|
+
{ icon: "epx-icon-loudoutu", text: "漏斗图", type: "2", chartType: "funnel" },
|
|
29
|
+
{ icon: "epx-icon-ciyun", text: "词云", type: "2", chartType: "wordcloud" },
|
|
30
|
+
{ icon: "epx-icon-leidatu", text: "雷达图", type: "2", chartType: "radar" },
|
|
31
|
+
{ icon: "epx-icon-zhezhutu", text: "折柱混合", type: "2", chartType: "columnAndLine" },
|
|
32
|
+
{ icon: "epx-icon-sandiantu", text: "散点图", type: "2", chartType: "scatter" },
|
|
33
|
+
{ icon: "epx-icon-ditu", text: "地图", type: "2", chartType: "map" }
|
|
34
|
+
],
|
|
35
|
+
exportLoading: false,
|
|
36
|
+
previewChart: false,
|
|
37
|
+
filterDrawer: false,
|
|
38
|
+
rowList: null,
|
|
39
|
+
columnList: null,
|
|
40
|
+
reportStatisFields: {},
|
|
41
|
+
statisIndexList: [],
|
|
42
|
+
openField: {},
|
|
43
|
+
addFieldForm: {},
|
|
44
|
+
editFieldForm: {},
|
|
45
|
+
foldFieldContainer: false,
|
|
46
|
+
showFieldType: "entity",
|
|
47
|
+
addFieldDialog: false,
|
|
48
|
+
addOptionDialog: false,
|
|
49
|
+
showStatScope: false,
|
|
50
|
+
editEntityFieldDialog: false,
|
|
51
|
+
addOptionForm: {
|
|
52
|
+
ADD_TYPE: "custom"
|
|
53
|
+
},
|
|
54
|
+
statOptionFieldData: [],
|
|
55
|
+
editStatIndexDialog: false,
|
|
56
|
+
editStatIndexForm: {},
|
|
57
|
+
checkedOption: [],
|
|
58
|
+
showChart: true,
|
|
59
|
+
checkfieldAllOptions: {},
|
|
60
|
+
dropPosition: {},
|
|
61
|
+
dropType: null,
|
|
62
|
+
dropElementId: null,
|
|
63
|
+
foldCommonField: {},
|
|
64
|
+
globalSetting: false,
|
|
65
|
+
formData: {},
|
|
66
|
+
fieldRelation: [],
|
|
67
|
+
fieldsConfigs: [],
|
|
68
|
+
editIndexDialog: false,
|
|
69
|
+
statFieldTabs: "stat",
|
|
70
|
+
searchEntityFieldText: "",
|
|
71
|
+
showLogField: false,
|
|
72
|
+
showSubField: true
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
computed: {
|
|
76
|
+
...mapState({
|
|
77
|
+
showMenu: (state) => state.config.showMenu,
|
|
78
|
+
showAppNav: (state) => state.config.showAppNav
|
|
79
|
+
}),
|
|
80
|
+
...mapGetters([
|
|
81
|
+
"getCodeById",
|
|
82
|
+
"getTreeCodeById",
|
|
83
|
+
"getMeta"
|
|
84
|
+
]),
|
|
85
|
+
languageList() {
|
|
86
|
+
const { LANGUAGES: languages = "", "LANGUAGES#": languageNames = "", LANGUAGE_DEFAULT: defaultLanguage } = this.clientConfig;
|
|
87
|
+
if (!languages) return [];
|
|
88
|
+
const languageIdList = languages.split(",");
|
|
89
|
+
const languageNameList = languageNames.split(",");
|
|
90
|
+
const languageList = languageIdList.map((item, index) => ({ id: item, name: languageNameList[index] }));
|
|
91
|
+
return languageList.filter((item) => item.id !== defaultLanguage);
|
|
92
|
+
},
|
|
93
|
+
scopeParams: {
|
|
94
|
+
get() {
|
|
95
|
+
const { SCOPE } = this.reportInfo;
|
|
96
|
+
if (SCOPE) {
|
|
97
|
+
try {
|
|
98
|
+
const scope = JSON.parse(SCOPE);
|
|
99
|
+
return scope.scopeParams || [];
|
|
100
|
+
} catch (error) {
|
|
101
|
+
return [];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return [];
|
|
105
|
+
},
|
|
106
|
+
set(v) {
|
|
107
|
+
this.setReportScope(v);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
scopeText() {
|
|
111
|
+
const length = this.scopeParams.length;
|
|
112
|
+
if (length > 0) {
|
|
113
|
+
return this.scopeParams.reduce((str, item, index) => str + item.text + (index === length - 1 ? "" : item.link === "or" ? " 或者 " : " 并且 "), "");
|
|
114
|
+
} else {
|
|
115
|
+
return "全部";
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
allFieldsConfigs() {
|
|
119
|
+
const meta = this.getMeta(this.reportInfo.OBJECT);
|
|
120
|
+
if (meta) {
|
|
121
|
+
return meta.getAllFieldConfigs();
|
|
122
|
+
}
|
|
123
|
+
return [];
|
|
124
|
+
},
|
|
125
|
+
entityFields() {
|
|
126
|
+
const { entityFields: entityFields2 } = this.reportStatisFields;
|
|
127
|
+
return JSON.parse(JSON.stringify(entityFields2 || [])).map((item) => {
|
|
128
|
+
if (item.relationMeta) {
|
|
129
|
+
item.children = item.relationMeta.children || [];
|
|
130
|
+
}
|
|
131
|
+
return item;
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
showEntityFields() {
|
|
135
|
+
const copyFields = this.$_.cloneDeep(this.reportStatisFields.entityFields);
|
|
136
|
+
const formatData = (field = []) => {
|
|
137
|
+
return field.filter((item) => {
|
|
138
|
+
if (!this.showLogField && ["ID", "LOG_C_TIME", "LOG_C_USER", "LOG_U_TIME", "LOG_U_USER"].includes(item.code)) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
if (!this.showSubField && item.relationType === "1") {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
if (item.children) {
|
|
145
|
+
item.children = formatData(item.children);
|
|
146
|
+
}
|
|
147
|
+
if (this.searchEntityFieldText && !item.text.includes(this.searchEntityFieldText) && (!item.children || item.children.length === 0)) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
return true;
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
return formatData(copyFields);
|
|
154
|
+
},
|
|
155
|
+
entityListFields() {
|
|
156
|
+
const formatList = (arr) => {
|
|
157
|
+
return arr.filter((item) => {
|
|
158
|
+
if (item.children) item.children = formatList(item.children);
|
|
159
|
+
return item.dataType === "list" || item.dataType === "treeList" || item.dataType === "object" || item.children && item.children.length > 0;
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
return formatList(this.$_.cloneDeep(this.entityFields));
|
|
163
|
+
},
|
|
164
|
+
getMetaFields() {
|
|
165
|
+
return (metaId) => {
|
|
166
|
+
if (metaId) {
|
|
167
|
+
const meta = this.getMeta(metaId);
|
|
168
|
+
if (!meta) {
|
|
169
|
+
this.$store.dispatch({
|
|
170
|
+
type: "ADD_META",
|
|
171
|
+
metaId
|
|
172
|
+
});
|
|
173
|
+
return [];
|
|
174
|
+
} else {
|
|
175
|
+
return meta.getAllFieldConfigs();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return [];
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
statField() {
|
|
182
|
+
const { STA_FIELD } = this.editFieldForm;
|
|
183
|
+
if (STA_FIELD) {
|
|
184
|
+
const field = this.findField(STA_FIELD, this.entityFields);
|
|
185
|
+
return field;
|
|
186
|
+
}
|
|
187
|
+
return null;
|
|
188
|
+
},
|
|
189
|
+
statFieldOptions() {
|
|
190
|
+
const { codeKey } = this.statField || {};
|
|
191
|
+
if (!codeKey) return [];
|
|
192
|
+
return this.getCodeById(codeKey) || [];
|
|
193
|
+
},
|
|
194
|
+
selectStatFieldOptions() {
|
|
195
|
+
const { STATIS_CUSTOM_OPTIONS = [] } = this.editFieldForm;
|
|
196
|
+
return this.statFieldOptions.filter((item) => STATIS_CUSTOM_OPTIONS.includes(item.id));
|
|
197
|
+
},
|
|
198
|
+
statFieldTreeOptions() {
|
|
199
|
+
const { codeKey } = this.statField || {};
|
|
200
|
+
const { STATIS_FIELD_LEVEL } = this.editFieldForm;
|
|
201
|
+
const limit = STATIS_FIELD_LEVEL === "all" ? null : STATIS_FIELD_LEVEL;
|
|
202
|
+
if (!codeKey) return [];
|
|
203
|
+
const list = [];
|
|
204
|
+
const treeList = this.getTreeCodeById(codeKey) || [];
|
|
205
|
+
const getList = (treeList2, level = 1) => {
|
|
206
|
+
for (const item of treeList2) {
|
|
207
|
+
list.push(item);
|
|
208
|
+
if (item.children) {
|
|
209
|
+
if (!limit || level + 1 <= limit) {
|
|
210
|
+
getList(item.children, level + 1);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
getList(treeList);
|
|
216
|
+
return list;
|
|
217
|
+
},
|
|
218
|
+
statFieldTreeOptionSelectAll: {
|
|
219
|
+
get() {
|
|
220
|
+
const { STATIS_CUSTOM_OPTIONS = [] } = this.editFieldForm;
|
|
221
|
+
return STATIS_CUSTOM_OPTIONS.length === this.statFieldTreeOptions.length;
|
|
222
|
+
},
|
|
223
|
+
set(v) {
|
|
224
|
+
const { STATIS_FIELD_LEVEL } = this.editFieldForm;
|
|
225
|
+
if (STATIS_FIELD_LEVEL === "all") {
|
|
226
|
+
this.$nextTick(() => {
|
|
227
|
+
if (v) {
|
|
228
|
+
this.$refs.fieldOptionTree.setCheckedKeys(this.statFieldTreeOptions.map((item) => item.id));
|
|
229
|
+
} else {
|
|
230
|
+
this.$refs.fieldOptionTree.setCheckedKeys([]);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
} else {
|
|
234
|
+
if (v) {
|
|
235
|
+
this.editFieldForm.STATIS_CUSTOM_OPTIONS = this.statFieldTreeOptions.map((item) => item.id);
|
|
236
|
+
} else {
|
|
237
|
+
this.editFieldForm.STATIS_CUSTOM_OPTIONS = [];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
statFieldOptionSelectAll: {
|
|
243
|
+
get() {
|
|
244
|
+
const { STATIS_CUSTOM_OPTIONS = [] } = this.editFieldForm;
|
|
245
|
+
return STATIS_CUSTOM_OPTIONS.length === this.statFieldOptions.length;
|
|
246
|
+
},
|
|
247
|
+
set(v) {
|
|
248
|
+
if (v) {
|
|
249
|
+
this.editFieldForm.STATIS_CUSTOM_OPTIONS = this.statFieldOptions.map((item) => item.id);
|
|
250
|
+
} else {
|
|
251
|
+
this.editFieldForm.STATIS_CUSTOM_OPTIONS = [];
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
statOptionField() {
|
|
256
|
+
const { STA_FIELD } = this.addOptionForm;
|
|
257
|
+
if (STA_FIELD) {
|
|
258
|
+
const field = this.findField(STA_FIELD, this.entityFields);
|
|
259
|
+
return field;
|
|
260
|
+
}
|
|
261
|
+
return null;
|
|
262
|
+
},
|
|
263
|
+
statOptionFieldOptions() {
|
|
264
|
+
const { codeKey } = this.statOptionField || {};
|
|
265
|
+
if (!codeKey) return [];
|
|
266
|
+
const codes = this.getCodeById(codeKey);
|
|
267
|
+
if (!codes) {
|
|
268
|
+
this.$store.dispatch({
|
|
269
|
+
type: "ADD_LIST",
|
|
270
|
+
key: codeKey,
|
|
271
|
+
dataType: "list"
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
return codes || [];
|
|
275
|
+
},
|
|
276
|
+
statOptionFieldTreeOptions() {
|
|
277
|
+
const { codeKey } = this.statOptionField || {};
|
|
278
|
+
const { STATIS_FIELD_LEVEL } = this.addOptionForm;
|
|
279
|
+
const limit = STATIS_FIELD_LEVEL === "all" ? null : STATIS_FIELD_LEVEL;
|
|
280
|
+
if (!codeKey) return [];
|
|
281
|
+
const list = [];
|
|
282
|
+
const treeList = this.getTreeCodeById(codeKey);
|
|
283
|
+
if (!treeList) {
|
|
284
|
+
this.$store.dispatch({
|
|
285
|
+
type: "ADD_LIST",
|
|
286
|
+
key: codeKey,
|
|
287
|
+
dataType: "treeList"
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
const getList = (treeList2, level = 1) => {
|
|
291
|
+
for (const item of treeList2) {
|
|
292
|
+
list.push(item);
|
|
293
|
+
if (item.children) {
|
|
294
|
+
if (!limit || level + 1 <= limit) {
|
|
295
|
+
getList(item.children, level + 1);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
getList(treeList || []);
|
|
301
|
+
return list;
|
|
302
|
+
},
|
|
303
|
+
statOptionFieldTreeOptionSelectAll: {
|
|
304
|
+
get() {
|
|
305
|
+
const { STATIS_CUSTOM_OPTIONS = [] } = this.addOptionForm;
|
|
306
|
+
return STATIS_CUSTOM_OPTIONS.length === this.statOptionFieldTreeOptions.length;
|
|
307
|
+
},
|
|
308
|
+
set(v) {
|
|
309
|
+
const { STATIS_FIELD_LEVEL } = this.addOptionForm;
|
|
310
|
+
if (STATIS_FIELD_LEVEL === "all") {
|
|
311
|
+
this.$nextTick(() => {
|
|
312
|
+
if (v) {
|
|
313
|
+
this.$refs.addOptionTree.setCheckedKeys(this.statOptionFieldTreeOptions.map((item) => item.id));
|
|
314
|
+
this.addOptionForm.STATIS_OPTION = "all";
|
|
315
|
+
} else {
|
|
316
|
+
this.$refs.addOptionTree.setCheckedKeys([]);
|
|
317
|
+
this.addOptionForm.STATIS_OPTION = "custom";
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
} else {
|
|
321
|
+
if (v) {
|
|
322
|
+
this.addOptionForm.STATIS_CUSTOM_OPTIONS = this.statOptionFieldTreeOptions.map((item) => item.id);
|
|
323
|
+
this.addOptionForm.STATIS_OPTION = "all";
|
|
324
|
+
} else {
|
|
325
|
+
this.addOptionForm.STATIS_CUSTOM_OPTIONS = [];
|
|
326
|
+
this.addOptionForm.STATIS_OPTION = "custom";
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
statOptionFieldOptionSelectAll: {
|
|
332
|
+
get() {
|
|
333
|
+
const { dataType } = this.statOptionField || {};
|
|
334
|
+
const data2 = dataType === "object" || dataType === "user" || dataType === "dept" ? this.statOptionFieldData : this.statOptionFieldOptions;
|
|
335
|
+
const { STATIS_CUSTOM_OPTIONS = [] } = this.addOptionForm;
|
|
336
|
+
return STATIS_CUSTOM_OPTIONS.length === data2.length;
|
|
337
|
+
},
|
|
338
|
+
set(v) {
|
|
339
|
+
const { dataType } = this.statOptionField || {};
|
|
340
|
+
const data2 = dataType === "object" || dataType === "user" || dataType === "dept" ? this.statOptionFieldData : this.statOptionFieldOptions;
|
|
341
|
+
if (v) {
|
|
342
|
+
this.addOptionForm.STATIS_CUSTOM_OPTIONS = data2.map((item) => item.id);
|
|
343
|
+
this.addOptionForm.STATIS_OPTION = "all";
|
|
344
|
+
} else {
|
|
345
|
+
this.addOptionForm.STATIS_CUSTOM_OPTIONS = [];
|
|
346
|
+
this.addOptionForm.STATIS_OPTION = "custom";
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
fieldOptions() {
|
|
351
|
+
const { codeKey } = this.statOptionField || {};
|
|
352
|
+
if (!codeKey) return [];
|
|
353
|
+
return this.getCodeById(codeKey) || [];
|
|
354
|
+
},
|
|
355
|
+
fieldTreeOptions() {
|
|
356
|
+
const { codeKey } = this.statOptionField || {};
|
|
357
|
+
if (!codeKey) return [];
|
|
358
|
+
const list = [];
|
|
359
|
+
const treeList = this.getTreeCodeById(codeKey) || [];
|
|
360
|
+
const getList = (treeList2) => {
|
|
361
|
+
for (const item in treeList2) {
|
|
362
|
+
list.push(item);
|
|
363
|
+
if (item.children) getList(item.chidlren);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
getList(treeList);
|
|
367
|
+
return list;
|
|
368
|
+
},
|
|
369
|
+
chartComponent() {
|
|
370
|
+
const { TYPE, CHART_TYPE } = this.reportInfo;
|
|
371
|
+
if (TYPE === "1") {
|
|
372
|
+
return "design-chart-table";
|
|
373
|
+
} else if (CHART_TYPE === "pie" || CHART_TYPE === "circularPie") {
|
|
374
|
+
return "design-chart-pie";
|
|
375
|
+
} else if (CHART_TYPE === "column" || CHART_TYPE === "horiColumn") {
|
|
376
|
+
return "design-chart-column";
|
|
377
|
+
} else if (CHART_TYPE === "line") {
|
|
378
|
+
return "design-chart-line";
|
|
379
|
+
} else if (CHART_TYPE === "funnel") {
|
|
380
|
+
return "design-chart-funnel";
|
|
381
|
+
} else if (CHART_TYPE === "wordcloud") {
|
|
382
|
+
return "design-chart-wordcloud";
|
|
383
|
+
} else if (CHART_TYPE === "radar") {
|
|
384
|
+
return "design-chart-radar";
|
|
385
|
+
} else if (CHART_TYPE === "columnAndLine") {
|
|
386
|
+
return "design-chart-column-and-line";
|
|
387
|
+
} else if (CHART_TYPE === "scatter") {
|
|
388
|
+
return "design-chart-scatter";
|
|
389
|
+
} else if (CHART_TYPE === "map") {
|
|
390
|
+
return "design-chart-map";
|
|
391
|
+
}
|
|
392
|
+
return "";
|
|
393
|
+
},
|
|
394
|
+
chartConfig() {
|
|
395
|
+
const { ID, TYPE, CHART_TYPE, OBJECT, NAME } = this.reportInfo;
|
|
396
|
+
return { ...this.$query, reportId: ID, reportType: TYPE, staObject: OBJECT, reportName: NAME, chartType: CHART_TYPE };
|
|
397
|
+
},
|
|
398
|
+
getLabel() {
|
|
399
|
+
return (v, arr) => {
|
|
400
|
+
const item = this.getItemById(v, arr);
|
|
401
|
+
if (item) return item.text || v;
|
|
402
|
+
return v;
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
watch: {
|
|
407
|
+
"addOptionForm.FAVORITE_ITEM"(v) {
|
|
408
|
+
for (const field of this.reportStatisFields.customFields) {
|
|
409
|
+
if (field.children) {
|
|
410
|
+
const isCheckAll = field.children.every((item) => v.includes(item.id));
|
|
411
|
+
if (this.checkfieldAllOptions[field.id] !== isCheckAll) {
|
|
412
|
+
this.checkfieldAllOptions[field.id] = isCheckAll;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
checkfieldAllOptions: {
|
|
418
|
+
handler(v) {
|
|
419
|
+
const { FAVORITE_ITEM } = this.addOptionForm;
|
|
420
|
+
for (const key in v) {
|
|
421
|
+
if (!this.lastCheckfieldAllOptions || v[key] !== this.lastCheckfieldAllOptions[key]) {
|
|
422
|
+
const field = this.reportStatisFields.customFields.find((item) => item.id === key);
|
|
423
|
+
if (v[key]) {
|
|
424
|
+
for (const option of field.children) {
|
|
425
|
+
if (!FAVORITE_ITEM.includes(option.id)) FAVORITE_ITEM.push(option.id);
|
|
426
|
+
}
|
|
427
|
+
} else {
|
|
428
|
+
for (const option of field.children) {
|
|
429
|
+
const index = FAVORITE_ITEM.findIndex((id) => id === option.id);
|
|
430
|
+
if (index !== -1) {
|
|
431
|
+
FAVORITE_ITEM.splice(index, 1);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
this.lastCheckfieldAllOptions = { ...v };
|
|
438
|
+
this.addOptionForm.FAVORITE_ITEM = FAVORITE_ITEM;
|
|
439
|
+
},
|
|
440
|
+
deep: true
|
|
441
|
+
},
|
|
442
|
+
"addOptionForm.STA_FIELD"(v) {
|
|
443
|
+
const { dataType } = this.statOptionField;
|
|
444
|
+
if (dataType === "object" || dataType === "user" || dataType === "dept") {
|
|
445
|
+
this.getObjectDataById();
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"addOptionForm.SCOPE"(v) {
|
|
449
|
+
const { dataType } = this.statOptionField;
|
|
450
|
+
if (dataType === "object" || dataType === "user" || dataType === "dept") {
|
|
451
|
+
this.getObjectDataById();
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
methods: {
|
|
456
|
+
getReportInfo() {
|
|
457
|
+
this.$http.get({
|
|
458
|
+
entityId: "FM_REPORT_BASE",
|
|
459
|
+
id: this.$query.id
|
|
460
|
+
}).then((data2) => {
|
|
461
|
+
this.reportInfo = data2.data;
|
|
462
|
+
this.formData = { ...data2.data };
|
|
463
|
+
this.getEntityMeta();
|
|
464
|
+
this.getReportStatisFields();
|
|
465
|
+
this.getCommonReportStatisFields();
|
|
466
|
+
});
|
|
467
|
+
},
|
|
468
|
+
getEntityMeta() {
|
|
469
|
+
const { OBJECT } = this.reportInfo;
|
|
470
|
+
this.$store.dispatch({
|
|
471
|
+
type: "ADD_META",
|
|
472
|
+
metaId: OBJECT
|
|
473
|
+
});
|
|
474
|
+
},
|
|
475
|
+
getFieldRelation() {
|
|
476
|
+
this.$http.get({
|
|
477
|
+
action: "getFieldRelation",
|
|
478
|
+
entityId: "FM_ATTRIBUTE_RELATION",
|
|
479
|
+
metaId: "FM_REPORT_BASE"
|
|
480
|
+
}).then((data2) => {
|
|
481
|
+
this.fieldRelation = data2.field_relation;
|
|
482
|
+
});
|
|
483
|
+
},
|
|
484
|
+
getFieldConfigs() {
|
|
485
|
+
this.$FieldFactory.createFields({
|
|
486
|
+
metaId: "FM_REPORT_BASE",
|
|
487
|
+
pageType: "EDIT",
|
|
488
|
+
fields: ["PIVOT_TYPE", "PIVOT_REPORT", { attriName: "PIVOT_PAGE", addBtn: true, addPageFlag: "page_add", detailPageFlag: "page_config" }, "PIVOT_PAGE_OPEN_MODE", "SHOW_NULL", "NULL_SHOW_POSITION", "DATA_STATIS_TYPE"]
|
|
489
|
+
}).then((data2) => {
|
|
490
|
+
this.fieldsConfigs = [...data2];
|
|
491
|
+
});
|
|
492
|
+
},
|
|
493
|
+
updateForm() {
|
|
494
|
+
const params = {};
|
|
495
|
+
for (const key in this.formData) {
|
|
496
|
+
if (!key.includes("#")) {
|
|
497
|
+
params[`bean.${key}`] = this.formData[key];
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
this.$http.update({
|
|
501
|
+
entityId: "FM_REPORT_BASE",
|
|
502
|
+
...params
|
|
503
|
+
}).then(() => {
|
|
504
|
+
this.globalSetting = false;
|
|
505
|
+
this.$message.success("保存成功");
|
|
506
|
+
this.refreshChart();
|
|
507
|
+
}).catch((err) => {
|
|
508
|
+
this.$message.error(err.message);
|
|
509
|
+
});
|
|
510
|
+
},
|
|
511
|
+
getItemById(id, arr) {
|
|
512
|
+
let item = null;
|
|
513
|
+
(function poll(arr2, leval) {
|
|
514
|
+
for (let i = 0; i < arr2.length; i++) {
|
|
515
|
+
if (arr2[i].id === id) {
|
|
516
|
+
item = arr2[i];
|
|
517
|
+
} else if (arr2[i].id !== id && arr2[i].children && arr2[i].children.length > 0) {
|
|
518
|
+
poll(arr2[i].children);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
})(arr);
|
|
522
|
+
return item;
|
|
523
|
+
},
|
|
524
|
+
getReportStatisFields() {
|
|
525
|
+
this.$http.get({
|
|
526
|
+
action: "reportStatisFields",
|
|
527
|
+
entityId: "FM_REPORT_BASE",
|
|
528
|
+
metaId: this.reportInfo.OBJECT,
|
|
529
|
+
reportId: this.reportInfo.ID
|
|
530
|
+
}).then((data) => {
|
|
531
|
+
let { customFields, entityFields = "{}", statisIndexFields = "{}" } = data;
|
|
532
|
+
customFields = eval(`(${customFields})`);
|
|
533
|
+
entityFields = eval(`(${entityFields})`);
|
|
534
|
+
statisIndexFields = eval(`(${statisIndexFields})`);
|
|
535
|
+
const formatField = (arr) => {
|
|
536
|
+
return arr.map((item) => {
|
|
537
|
+
if (item.linkCode) {
|
|
538
|
+
item.code = item.linkCode.replace(/\|/g, ".");
|
|
539
|
+
}
|
|
540
|
+
if (item.children) {
|
|
541
|
+
item.children = formatField(item.children);
|
|
542
|
+
}
|
|
543
|
+
return item;
|
|
544
|
+
});
|
|
545
|
+
};
|
|
546
|
+
if (entityFields) {
|
|
547
|
+
if (entityFields[0]) this.openField[entityFields[0].code] = true;
|
|
548
|
+
}
|
|
549
|
+
if (statisIndexFields) {
|
|
550
|
+
if (statisIndexFields[0]) this.openField["index-" + statisIndexFields[0].code] = true;
|
|
551
|
+
statisIndexFields.unshift({
|
|
552
|
+
id: "record",
|
|
553
|
+
text: "记录数",
|
|
554
|
+
isRecoredFlag: "1"
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
this.reportStatisFields = {
|
|
558
|
+
customFields: formatField(customFields),
|
|
559
|
+
entityFields: formatField(entityFields),
|
|
560
|
+
statisIndexFields: formatField(statisIndexFields)
|
|
561
|
+
};
|
|
562
|
+
});
|
|
563
|
+
},
|
|
564
|
+
getStatList() {
|
|
565
|
+
const params = {
|
|
566
|
+
entityId: "FM_REPORT_ITEM",
|
|
567
|
+
reportId: this.$query.id,
|
|
568
|
+
up_field: "UP",
|
|
569
|
+
showEntity: "1",
|
|
570
|
+
multiFlag: true,
|
|
571
|
+
dir: "ASC",
|
|
572
|
+
mysort: "ORDER_NUM",
|
|
573
|
+
node: "root"
|
|
574
|
+
};
|
|
575
|
+
this.$http.getTree({
|
|
576
|
+
...params,
|
|
577
|
+
position: "1"
|
|
578
|
+
}).then((data2) => {
|
|
579
|
+
this.rowList = data2;
|
|
580
|
+
});
|
|
581
|
+
this.$http.getTree({
|
|
582
|
+
...params,
|
|
583
|
+
position: "2"
|
|
584
|
+
}).then((data2) => {
|
|
585
|
+
this.columnList = data2;
|
|
586
|
+
});
|
|
587
|
+
},
|
|
588
|
+
getStatisIndex() {
|
|
589
|
+
this.$http.list({
|
|
590
|
+
entityId: "FM_REPORT_STATIS_INDEX",
|
|
591
|
+
"scope.REPORT": this.$query.id
|
|
592
|
+
}).then((data2) => {
|
|
593
|
+
this.statisIndexList = data2.entitys;
|
|
594
|
+
});
|
|
595
|
+
},
|
|
596
|
+
getCommonReportStatisFields() {
|
|
597
|
+
this.$http.get({
|
|
598
|
+
action: "reportStatisFields",
|
|
599
|
+
entityId: "FM_REPORT_BASE",
|
|
600
|
+
metaId: this.reportInfo.OBJECT,
|
|
601
|
+
onlyCustomFieldFlag: "1"
|
|
602
|
+
}).then((data) => {
|
|
603
|
+
let { customFields } = data;
|
|
604
|
+
customFields = eval(`(${customFields})`);
|
|
605
|
+
this.commonStatisFields = customFields;
|
|
606
|
+
});
|
|
607
|
+
},
|
|
608
|
+
checkChange(v, isCheck) {
|
|
609
|
+
if (isCheck) {
|
|
610
|
+
if (v.parent) this.$refs.fieldOptionTree.setChecked(v.parent, true);
|
|
611
|
+
}
|
|
612
|
+
this.editFieldForm.STATIS_CUSTOM_OPTIONS = this.$refs.fieldOptionTree.getCheckedKeys();
|
|
613
|
+
},
|
|
614
|
+
checkStatFieldTreeChange(v, isCheck) {
|
|
615
|
+
if (isCheck) {
|
|
616
|
+
this.$refs.statFieldSortTree.setCheckedKeys([v.id]);
|
|
617
|
+
this.editFieldForm.STA_SORT_OPTION = v.id;
|
|
618
|
+
this.editFieldForm["STA_SORT_OPTION#"] = v.name;
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
checkOptionChange(v, isCheck) {
|
|
622
|
+
if (isCheck) {
|
|
623
|
+
if (v.parent) this.$refs.addOptionTree.setChecked(v.parent, true);
|
|
624
|
+
}
|
|
625
|
+
this.addOptionForm.STATIS_CUSTOM_OPTIONS = this.$refs.addOptionTree.getCheckedKeys();
|
|
626
|
+
},
|
|
627
|
+
getNodeIsDiabled(data2, node) {
|
|
628
|
+
const { STATIS_CUSTOM_OPTIONS = [] } = this.editFieldForm;
|
|
629
|
+
if (!STATIS_CUSTOM_OPTIONS.includes(data2.id)) {
|
|
630
|
+
return true;
|
|
631
|
+
}
|
|
632
|
+
const findSelectedChild = (arr = []) => {
|
|
633
|
+
for (const item of arr) {
|
|
634
|
+
if (STATIS_CUSTOM_OPTIONS.includes(item.id)) {
|
|
635
|
+
return true;
|
|
636
|
+
} else if (item.children) {
|
|
637
|
+
const flag = findSelectedChild(item.children);
|
|
638
|
+
if (flag) return true;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
return findSelectedChild(data2.children);
|
|
643
|
+
},
|
|
644
|
+
setReportName() {
|
|
645
|
+
this.$http.update({
|
|
646
|
+
entityId: "FM_REPORT_BASE",
|
|
647
|
+
"bean.ID": this.reportInfo.ID,
|
|
648
|
+
"bean.NAME": this.reportInfo.NAME
|
|
649
|
+
}).then(() => {
|
|
650
|
+
this.editName = false;
|
|
651
|
+
}).catch((err) => {
|
|
652
|
+
this.$message.error(err.errorText);
|
|
653
|
+
});
|
|
654
|
+
},
|
|
655
|
+
setReportScope(scopeParams) {
|
|
656
|
+
const scope = JSON.stringify({ scopeParams });
|
|
657
|
+
this.$http.update({
|
|
658
|
+
entityId: "FM_REPORT_BASE",
|
|
659
|
+
"bean.ID": this.reportInfo.ID,
|
|
660
|
+
"bean.SCOPE": scope
|
|
661
|
+
}).then(() => {
|
|
662
|
+
this.reportInfo.SCOPE = scope;
|
|
663
|
+
this.refreshData();
|
|
664
|
+
}).catch((err) => {
|
|
665
|
+
this.$message.error(err.errorText);
|
|
666
|
+
});
|
|
667
|
+
},
|
|
668
|
+
setReportType(reportType) {
|
|
669
|
+
const { TYPE, CHART_TYPE } = this.reportInfo;
|
|
670
|
+
const setFn = () => {
|
|
671
|
+
this.$http.update({
|
|
672
|
+
entityId: "FM_REPORT_BASE",
|
|
673
|
+
"bean.ID": this.reportInfo.ID,
|
|
674
|
+
"bean.TYPE": reportType.type,
|
|
675
|
+
"bean.CHART_TYPE": reportType.type === "1" ? "" : reportType.chartType
|
|
676
|
+
}).then((data2) => {
|
|
677
|
+
this.reportInfo.TYPE = reportType.type;
|
|
678
|
+
this.reportInfo.CHART_TYPE = reportType.chartType;
|
|
679
|
+
this.reportInfo["CHART_TYPE#"] = reportType.text;
|
|
680
|
+
this.refreshData();
|
|
681
|
+
}).catch((err) => {
|
|
682
|
+
this.$message.error(err.errorText);
|
|
683
|
+
});
|
|
684
|
+
};
|
|
685
|
+
if (TYPE !== reportType.type) {
|
|
686
|
+
this.$confirm(`切换为${reportType.type === "1" ? "统计表" : "统计图"}将清空统计项,是否切换?`, this.$t("hint"), {
|
|
687
|
+
confirmButtonText: this.$t("confirm"),
|
|
688
|
+
cancelButtonText: this.$t("cancel"),
|
|
689
|
+
type: "warning"
|
|
690
|
+
}).then(() => {
|
|
691
|
+
this.$http.$post({
|
|
692
|
+
action: "removeReportItems",
|
|
693
|
+
entityId: "FM_REPORT_BASE",
|
|
694
|
+
reportId: this.$query.id
|
|
695
|
+
});
|
|
696
|
+
setFn();
|
|
697
|
+
});
|
|
698
|
+
} else if (CHART_TYPE !== reportType.chartType) {
|
|
699
|
+
setFn();
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
exportReport() {
|
|
703
|
+
const staObject = this.reportInfo.OBJECT;
|
|
704
|
+
this.exportLoading = true;
|
|
705
|
+
this.$http.$post({
|
|
706
|
+
action: "getReportData",
|
|
707
|
+
entityId: staObject,
|
|
708
|
+
reportId: this.reportInfo.ID,
|
|
709
|
+
reportType: "toExcel"
|
|
710
|
+
}, {
|
|
711
|
+
responseType: "blob"
|
|
712
|
+
}).then(({ blob, filename }) => {
|
|
713
|
+
const objectUrl = URL.createObjectURL(blob);
|
|
714
|
+
var a = document.createElement("a");
|
|
715
|
+
document.body.appendChild(a);
|
|
716
|
+
a.href = objectUrl;
|
|
717
|
+
a.download = filename || (/* @__PURE__ */ new Date()).getTime() + ".xlsx";
|
|
718
|
+
a.click();
|
|
719
|
+
window.URL.revokeObjectURL(objectUrl);
|
|
720
|
+
document.body.removeChild(a);
|
|
721
|
+
this.exportLoading = false;
|
|
722
|
+
}).catch((err) => {
|
|
723
|
+
this.exportLoading = false;
|
|
724
|
+
this.$message.error(err.message);
|
|
725
|
+
});
|
|
726
|
+
},
|
|
727
|
+
cloneField(el, INDEX_FLAG = "0") {
|
|
728
|
+
if (el.isRecoredFlag) {
|
|
729
|
+
return {
|
|
730
|
+
NAME: el.text,
|
|
731
|
+
IS_RECORED_FLAG: "1"
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
const object = {
|
|
735
|
+
NAME: el.text,
|
|
736
|
+
REPORT: this.$query.id,
|
|
737
|
+
STA_FIELD: el.id,
|
|
738
|
+
"STA_FIELD#": el.text,
|
|
739
|
+
STA_FIELD_CODE: el.code,
|
|
740
|
+
STATIS_FIELD_TYPE: "field",
|
|
741
|
+
STATIS_OPTION: "all",
|
|
742
|
+
STATIS_FIELD_LEVEL: "all",
|
|
743
|
+
TOTAL_ITEM_POSITION: "end",
|
|
744
|
+
MODEL: "2",
|
|
745
|
+
INDEX_FLAG,
|
|
746
|
+
IS_META: el.type !== "field",
|
|
747
|
+
children: []
|
|
748
|
+
};
|
|
749
|
+
if (INDEX_FLAG === "1") {
|
|
750
|
+
object.MODE = "SUM";
|
|
751
|
+
object.MODEL = "1";
|
|
752
|
+
this.dragEvt = {
|
|
753
|
+
name: "index",
|
|
754
|
+
element: object
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
if (el.dataType === "object" || el.dataType === "dept" || el.dataType === "user") {
|
|
758
|
+
object.IS_SHOW_TREE = "1";
|
|
759
|
+
}
|
|
760
|
+
return object;
|
|
761
|
+
},
|
|
762
|
+
dragstart(field, type) {
|
|
763
|
+
let element = null;
|
|
764
|
+
if (type === "custom") {
|
|
765
|
+
element = this.cloneCustomField(field);
|
|
766
|
+
} else {
|
|
767
|
+
element = this.cloneField(field);
|
|
768
|
+
}
|
|
769
|
+
this.dragEvt = {
|
|
770
|
+
name: "field",
|
|
771
|
+
element
|
|
772
|
+
};
|
|
773
|
+
},
|
|
774
|
+
allowDrop(ev, position) {
|
|
775
|
+
if (!this.dragEvt) return;
|
|
776
|
+
const { element } = this.dragEvt;
|
|
777
|
+
if (position === "1" && element.INDEX_FLAG === "1") return;
|
|
778
|
+
let dropElem = ev.target;
|
|
779
|
+
while (dropElem && !(dropElem.className && (dropElem.className.includes("report-stat__list") || dropElem.className.includes("report-stat__item") || dropElem.className.includes("report-stat__content")))) {
|
|
780
|
+
dropElem = dropElem.parentNode;
|
|
781
|
+
}
|
|
782
|
+
if (!dropElem) return;
|
|
783
|
+
this.dropType = position;
|
|
784
|
+
const el = position === "2" ? this.$refs.columnStat : this.$refs.rowStat;
|
|
785
|
+
const { top: elTop } = el.getBoundingClientRect();
|
|
786
|
+
this.dropElementId = null;
|
|
787
|
+
const key = dropElem.getAttribute("data-key");
|
|
788
|
+
const { top, bottom } = dropElem.getBoundingClientRect();
|
|
789
|
+
if (ev.clientY < top + 8) {
|
|
790
|
+
this.dropPosition = top - elTop;
|
|
791
|
+
this.dropData = {
|
|
792
|
+
elem: dropElem,
|
|
793
|
+
key,
|
|
794
|
+
type: "before"
|
|
795
|
+
};
|
|
796
|
+
} else if (ev.clientY > top + 24) {
|
|
797
|
+
this.dropPosition = bottom - elTop;
|
|
798
|
+
this.dropData = {
|
|
799
|
+
elem: dropElem,
|
|
800
|
+
key,
|
|
801
|
+
type: "after"
|
|
802
|
+
};
|
|
803
|
+
} else {
|
|
804
|
+
this.dropElementId = key;
|
|
805
|
+
this.dropPosition = null;
|
|
806
|
+
const indexFlag = dropElem.getAttribute("data-index-flag");
|
|
807
|
+
if (indexFlag === "1") return;
|
|
808
|
+
this.dropData = {
|
|
809
|
+
elem: dropElem,
|
|
810
|
+
key,
|
|
811
|
+
type: "inner"
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
ev.preventDefault();
|
|
815
|
+
},
|
|
816
|
+
dragStatItem(statItem) {
|
|
817
|
+
this.dragEvt = {
|
|
818
|
+
name: "stat",
|
|
819
|
+
element: statItem
|
|
820
|
+
};
|
|
821
|
+
},
|
|
822
|
+
getStatItem(id, statList = []) {
|
|
823
|
+
for (let i = 0; i < statList.length; i++) {
|
|
824
|
+
const item = statList[i];
|
|
825
|
+
if (item.id === id) {
|
|
826
|
+
return { item, index: i, arr: statList };
|
|
827
|
+
} else if (item.children) {
|
|
828
|
+
const child = this.getStatItem(id, item.children);
|
|
829
|
+
if (child) return child;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
drop(ev, position) {
|
|
834
|
+
const { TYPE, CHART_TYPE } = this.reportInfo;
|
|
835
|
+
if (this.dragEvt) {
|
|
836
|
+
const { key, type } = this.dropData;
|
|
837
|
+
const { element, name } = this.dragEvt;
|
|
838
|
+
if (position === "2" && TYPE !== "1") {
|
|
839
|
+
if (this.statisIndexList.length > 1) {
|
|
840
|
+
this.$message.error("统计图设置了多个统计维度不允许设置纵轴");
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
if (this.reportInfo.CHART_TYPE === "scatter") {
|
|
844
|
+
if (name !== "stat" && this.columnList.length >= 2) {
|
|
845
|
+
this.$message.error("散点图只允许设置两个统计维度");
|
|
846
|
+
return;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
if (element.IS_META) {
|
|
851
|
+
this.$message.error("不允许拖拽对象");
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
const { item: dropElem = {}, index, arr } = this.getStatItem(key, position === "2" ? this.columnList : this.rowList) || {};
|
|
855
|
+
if (type === "inner" && CHART_TYPE === "funnel") {
|
|
856
|
+
this.$message.error("漏斗图只允许设置一级维度");
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
if (name === "stat") {
|
|
860
|
+
const evt = { element, type, dropElem, index, dropArr: [...arr] };
|
|
861
|
+
this.moveStatItem(evt);
|
|
862
|
+
} else if (name === "field" || name === "index") {
|
|
863
|
+
this.addStatElement({ element, parent: type === "inner" ? dropElem.id : dropElem.parent, position, newIndex: index });
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
this.dragField = null;
|
|
867
|
+
this.dropData = null;
|
|
868
|
+
this.dropPosition = null;
|
|
869
|
+
this.dropElem = null;
|
|
870
|
+
this.dropElementId = null;
|
|
871
|
+
ev.preventDefault();
|
|
872
|
+
},
|
|
873
|
+
moveStatItem(moved) {
|
|
874
|
+
const { element, dropElem, type, index, dropArr } = moved;
|
|
875
|
+
let str = "";
|
|
876
|
+
let parent = "";
|
|
877
|
+
let arr = [];
|
|
878
|
+
if (type === "inner") {
|
|
879
|
+
arr = [...dropElem.children, { ...element, isNew: true }];
|
|
880
|
+
parent = dropElem.id;
|
|
881
|
+
} else if (type === "before") {
|
|
882
|
+
arr = [...dropArr];
|
|
883
|
+
arr.splice(index, 0, { ...element, isNew: true });
|
|
884
|
+
parent = dropElem.parent;
|
|
885
|
+
} else if (type === "after") {
|
|
886
|
+
arr = [...dropArr];
|
|
887
|
+
arr.splice(index + 1, 0, { ...element, isNew: true });
|
|
888
|
+
parent = dropElem.parent;
|
|
889
|
+
}
|
|
890
|
+
str = arr.filter((item) => item.id !== element.id || item.isNew).reduce((str2, item, index2) => str2 += item.id + ":" + index2 + ",", "");
|
|
891
|
+
if (element.id === parent) return;
|
|
892
|
+
this.$http.$request({
|
|
893
|
+
action: "moveTree",
|
|
894
|
+
entityId: "FM_REPORT_ITEM",
|
|
895
|
+
id: element.id,
|
|
896
|
+
selfAttriName: "ID",
|
|
897
|
+
newParentId: parent || "root",
|
|
898
|
+
orderString: str,
|
|
899
|
+
orderAtrriName: "ORDER_NUM"
|
|
900
|
+
}).then((data2) => {
|
|
901
|
+
this.refreshData();
|
|
902
|
+
});
|
|
903
|
+
},
|
|
904
|
+
addStatElement(added) {
|
|
905
|
+
const { element, parent, position, newIndex } = added;
|
|
906
|
+
const formData = {
|
|
907
|
+
"bean.REPORT": this.reportId
|
|
908
|
+
};
|
|
909
|
+
for (const key in element) {
|
|
910
|
+
if (key !== "children") formData[`bean.${key}`] = element[key];
|
|
911
|
+
}
|
|
912
|
+
formData["bean.CLIENT"] = this.CLIENT;
|
|
913
|
+
formData["bean.SYSTEM"] = this.SYSTEM;
|
|
914
|
+
formData["bean.POSITION"] = position;
|
|
915
|
+
formData["bean.ORDER_NUM"] = newIndex;
|
|
916
|
+
if (parent) formData["bean.UP"] = parent;
|
|
917
|
+
this.$http.save({
|
|
918
|
+
entityId: "FM_REPORT_ITEM",
|
|
919
|
+
...formData
|
|
920
|
+
}).then((data2) => {
|
|
921
|
+
this.refreshData();
|
|
922
|
+
});
|
|
923
|
+
},
|
|
924
|
+
cloneCustomField(el) {
|
|
925
|
+
const object = {
|
|
926
|
+
NAME: el.text,
|
|
927
|
+
NAME_I18N: el.text_i18n,
|
|
928
|
+
REPORT: this.$query.id,
|
|
929
|
+
NEW_STA_FIELD: el.id,
|
|
930
|
+
STATIS_FIELD_TYPE: "custom",
|
|
931
|
+
MODEL: "2",
|
|
932
|
+
children: []
|
|
933
|
+
};
|
|
934
|
+
return object;
|
|
935
|
+
},
|
|
936
|
+
singleAdd(position) {
|
|
937
|
+
this.position = position;
|
|
938
|
+
this.singleDrawar = false;
|
|
939
|
+
this.$nextTick(() => {
|
|
940
|
+
const timer = setTimeout(() => {
|
|
941
|
+
this.singleDrawar = true;
|
|
942
|
+
clearTimeout(timer);
|
|
943
|
+
}, 0);
|
|
944
|
+
});
|
|
945
|
+
this.singleInitCondition = [];
|
|
946
|
+
this.singleFilterFields = [];
|
|
947
|
+
this.singleSearchParams = [];
|
|
948
|
+
const obj = { POSITION: position };
|
|
949
|
+
if (position === "1") {
|
|
950
|
+
obj["POSITION#"] = "横向";
|
|
951
|
+
} else if (position === "2") {
|
|
952
|
+
obj["POSITION#"] = "纵向";
|
|
953
|
+
}
|
|
954
|
+
this.pageTypes = "ADD";
|
|
955
|
+
this.dialogSingleAddVisible = true;
|
|
956
|
+
this.defaultValue = { CLIENT: this.$tab.CLIENT, SYSTEM: this.$tab.SYSTEM, REPORT: this.reportId, "REPORT#": this.reportData.NAME, MODE: "SUM", "MODE#": "求和", MODEL: "1", "MODEL#": "固定", ...obj };
|
|
957
|
+
},
|
|
958
|
+
findField(id, fields) {
|
|
959
|
+
for (const item of fields) {
|
|
960
|
+
if (item.id === id) return item;
|
|
961
|
+
else if (item.children) {
|
|
962
|
+
const child = this.findField(id, item.children);
|
|
963
|
+
if (child) return child;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
selectOptionField(data2) {
|
|
968
|
+
this.addOptionForm.STA_FIELD = data2.id;
|
|
969
|
+
this.addOptionForm["STA_FIELD#"] = data2.text;
|
|
970
|
+
if (data2.dataType === "list") {
|
|
971
|
+
this.$store.dispatch({
|
|
972
|
+
type: "ADD_LIST",
|
|
973
|
+
key: data2.codeKey,
|
|
974
|
+
dataType: data2.optionType || data2.dataType
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
getObjectDataById() {
|
|
979
|
+
const { SCOPE } = this.addOptionForm;
|
|
980
|
+
const scopeParams = JSON.parse(SCOPE || "{}").scopeParams || [];
|
|
981
|
+
const { relatedEntity } = this.statOptionField;
|
|
982
|
+
if (relatedEntity) {
|
|
983
|
+
this.$http.$post({
|
|
984
|
+
action: "getTree",
|
|
985
|
+
entityId: relatedEntity,
|
|
986
|
+
scopeParams: JSON.stringify(scopeParams)
|
|
987
|
+
}).then((data2) => {
|
|
988
|
+
const list = [];
|
|
989
|
+
const getList = (treeList) => {
|
|
990
|
+
for (const item of treeList) {
|
|
991
|
+
list.push(item);
|
|
992
|
+
if (item.children) {
|
|
993
|
+
getList(item.children);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
getList(data2);
|
|
998
|
+
this.statOptionFieldData = markRaw(list);
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
refreshData() {
|
|
1003
|
+
this.getStatList();
|
|
1004
|
+
this.showChart = false;
|
|
1005
|
+
this.$nextTick(() => {
|
|
1006
|
+
this.showChart = true;
|
|
1007
|
+
});
|
|
1008
|
+
},
|
|
1009
|
+
refreshChart() {
|
|
1010
|
+
this.showChart = false;
|
|
1011
|
+
this.$nextTick(() => {
|
|
1012
|
+
this.showChart = true;
|
|
1013
|
+
});
|
|
1014
|
+
},
|
|
1015
|
+
addStatItem(position, item) {
|
|
1016
|
+
const { CHART_TYPE } = this.reportInfo;
|
|
1017
|
+
if (CHART_TYPE === "funnel") {
|
|
1018
|
+
this.$message.error("漏斗图只允许设置一级维度");
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1021
|
+
this.addOptionForm = {
|
|
1022
|
+
ADD_TYPE: "custom",
|
|
1023
|
+
REPORT: this.$query.id,
|
|
1024
|
+
MODEL: "1",
|
|
1025
|
+
STATIS_CUSTOM_OPTIONS: [],
|
|
1026
|
+
POSITION: position,
|
|
1027
|
+
UP: item.id,
|
|
1028
|
+
"UP#": item.text,
|
|
1029
|
+
FAVORITE_ITEM: [],
|
|
1030
|
+
STA_INDEX_TYPE: "default"
|
|
1031
|
+
};
|
|
1032
|
+
this.addOptionDialog = true;
|
|
1033
|
+
this.statFieldTabs = "stat";
|
|
1034
|
+
},
|
|
1035
|
+
async editStatItem(item) {
|
|
1036
|
+
this.$http.get({
|
|
1037
|
+
entityId: "FM_REPORT_ITEM",
|
|
1038
|
+
id: item.id
|
|
1039
|
+
}).then(async (data2) => {
|
|
1040
|
+
let { ID, NAME, NAME_I18N, INDEX_FLAG, MODEL, MODE, STATIS_FIELD_TYPE, NEW_STA_FIELD, STA_FIELD, "STA_FIELD#": fieldName, TOTAL_ITEM_FLAG, ORDER_FIELD, OBJECT_FIELD_SCOPE, SORT, DATE_GROUP_TYPE, STATIS_OPTION, STATIS_FIELD_LEVEL, STATIS_CUSTOM_OPTIONS = "", SCOPE, IS_RECORED_FLAG, NUM_UNIT, UNIT_SUFFIX, DECIMAL_LENGTH, THOUSAND_CENTS_FLAG, STA_INDEX_TYPE = "default", ...otherData } = data2.data;
|
|
1041
|
+
try {
|
|
1042
|
+
if (NAME_I18N) NAME_I18N = JSON.parse(NAME_I18N);
|
|
1043
|
+
} catch (err) {
|
|
1044
|
+
NAME_I18N = {};
|
|
1045
|
+
}
|
|
1046
|
+
if (MODEL === "2") {
|
|
1047
|
+
if (STATIS_FIELD_TYPE === "custom") {
|
|
1048
|
+
const field = this.reportStatisFields.customFields.find((item2) => item2.id === NEW_STA_FIELD);
|
|
1049
|
+
this.editCustomField(field);
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1052
|
+
if (STATIS_CUSTOM_OPTIONS) {
|
|
1053
|
+
STATIS_CUSTOM_OPTIONS = STATIS_CUSTOM_OPTIONS.split(",");
|
|
1054
|
+
} else {
|
|
1055
|
+
STATIS_CUSTOM_OPTIONS = [];
|
|
1056
|
+
}
|
|
1057
|
+
console.log(NAME_I18N || {});
|
|
1058
|
+
this.editFieldForm = {
|
|
1059
|
+
ID,
|
|
1060
|
+
NAME,
|
|
1061
|
+
NAME_I18N: NAME_I18N || {},
|
|
1062
|
+
STA_FIELD,
|
|
1063
|
+
"STA_FIELD#": fieldName,
|
|
1064
|
+
TOTAL_ITEM_FLAG,
|
|
1065
|
+
ORDER_FIELD,
|
|
1066
|
+
OBJECT_FIELD_SCOPE,
|
|
1067
|
+
SORT,
|
|
1068
|
+
DATE_GROUP_TYPE,
|
|
1069
|
+
STATIS_OPTION,
|
|
1070
|
+
STATIS_FIELD_LEVEL,
|
|
1071
|
+
STATIS_CUSTOM_OPTIONS,
|
|
1072
|
+
INDEX_FLAG,
|
|
1073
|
+
MODEL,
|
|
1074
|
+
MODE,
|
|
1075
|
+
IS_RECORED_FLAG,
|
|
1076
|
+
NUM_UNIT,
|
|
1077
|
+
UNIT_SUFFIX,
|
|
1078
|
+
DECIMAL_LENGTH,
|
|
1079
|
+
THOUSAND_CENTS_FLAG,
|
|
1080
|
+
STA_INDEX_TYPE: STA_INDEX_TYPE || "default",
|
|
1081
|
+
...otherData
|
|
1082
|
+
};
|
|
1083
|
+
this.editEntityFieldDialog = true;
|
|
1084
|
+
const { codeKey, dataType, optionType } = this.statField || {};
|
|
1085
|
+
if (dataType === "list") {
|
|
1086
|
+
if (this.statFieldOptions.length === 0) {
|
|
1087
|
+
await this.$store.dispatch({
|
|
1088
|
+
type: "ADD_LIST",
|
|
1089
|
+
key: codeKey,
|
|
1090
|
+
dataType: optionType || dataType
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
if (!STATIS_OPTION || STATIS_OPTION === "all") {
|
|
1094
|
+
if ((optionType || dataType) === "treeList") {
|
|
1095
|
+
if (STATIS_FIELD_LEVEL === "all") {
|
|
1096
|
+
this.$nextTick(() => {
|
|
1097
|
+
this.$refs.fieldOptionTree.setCheckedKeys(this.statFieldTreeOptions.map((item2) => item2.id));
|
|
1098
|
+
});
|
|
1099
|
+
} else {
|
|
1100
|
+
this.editFieldForm.STATIS_CUSTOM_OPTIONS = this.statFieldTreeOptions.map((item2) => item2.id);
|
|
1101
|
+
}
|
|
1102
|
+
} else {
|
|
1103
|
+
this.editFieldForm.STATIS_CUSTOM_OPTIONS = this.statFieldOptions.map((item2) => item2.id);
|
|
1104
|
+
}
|
|
1105
|
+
} else {
|
|
1106
|
+
this.$nextTick(() => {
|
|
1107
|
+
this.$refs.fieldOptionTree.setCheckedKeys(this.editFieldForm.STATIS_CUSTOM_OPTIONS);
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
} else {
|
|
1112
|
+
this.addOptionForm = {
|
|
1113
|
+
ADD_TYPE: "custom",
|
|
1114
|
+
ID,
|
|
1115
|
+
NAME,
|
|
1116
|
+
NAME_I18N,
|
|
1117
|
+
SCOPE,
|
|
1118
|
+
INDEX_FLAG,
|
|
1119
|
+
IS_RECORED_FLAG,
|
|
1120
|
+
MODE,
|
|
1121
|
+
NUM_UNIT,
|
|
1122
|
+
UNIT_SUFFIX,
|
|
1123
|
+
DECIMAL_LENGTH,
|
|
1124
|
+
THOUSAND_CENTS_FLAG,
|
|
1125
|
+
FAVORITE_ITEM: [],
|
|
1126
|
+
STA_INDEX_TYPE: STA_INDEX_TYPE || "default",
|
|
1127
|
+
SORT,
|
|
1128
|
+
...otherData
|
|
1129
|
+
};
|
|
1130
|
+
if (INDEX_FLAG === "1") {
|
|
1131
|
+
this.editIndexDialog = true;
|
|
1132
|
+
} else {
|
|
1133
|
+
this.addOptionDialog = true;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
this.statFieldTabs = "stat";
|
|
1137
|
+
});
|
|
1138
|
+
},
|
|
1139
|
+
deleteStatItem(item) {
|
|
1140
|
+
this.$http.removeMulti({
|
|
1141
|
+
entityId: "FM_REPORT_ITEM",
|
|
1142
|
+
ids: item.id
|
|
1143
|
+
}).then((data2) => {
|
|
1144
|
+
this.$message.success("删除成功");
|
|
1145
|
+
this.refreshData();
|
|
1146
|
+
}).catch((err) => {
|
|
1147
|
+
this.$message.error(err.errorText);
|
|
1148
|
+
});
|
|
1149
|
+
},
|
|
1150
|
+
closeEntityFieldDialog() {
|
|
1151
|
+
this.editEntityFieldDialog = false;
|
|
1152
|
+
},
|
|
1153
|
+
editFieldLanguage(language, v) {
|
|
1154
|
+
const { NAME_I18N } = this.editFieldForm;
|
|
1155
|
+
const nameI18n = { ...NAME_I18N };
|
|
1156
|
+
nameI18n[language.id] = v;
|
|
1157
|
+
this.editFieldForm.NAME_I18N = nameI18n;
|
|
1158
|
+
},
|
|
1159
|
+
saveEntityField() {
|
|
1160
|
+
const { dataType, optionType } = this.statField || {};
|
|
1161
|
+
const formData = {};
|
|
1162
|
+
for (const key in this.editFieldForm) {
|
|
1163
|
+
if (key === "NAME_I18N" && this.editFieldForm[key]) {
|
|
1164
|
+
formData[`bean.${key}`] = JSON.stringify(this.editFieldForm[key]);
|
|
1165
|
+
} else if (key === "STATIS_CUSTOM_OPTIONS" && this.editFieldForm[key]) {
|
|
1166
|
+
formData[`bean.${key}`] = this.editFieldForm[key].join(",");
|
|
1167
|
+
} else if (!key.includes("#")) {
|
|
1168
|
+
formData[`bean.${key}`] = this.editFieldForm[key];
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
if (dataType === "list" || dataType === "treeList") {
|
|
1172
|
+
if ((optionType || dataType) === "treeList") {
|
|
1173
|
+
if (this.statFieldTreeOptionSelectAll) {
|
|
1174
|
+
formData["bean.STATIS_OPTION"] = "all";
|
|
1175
|
+
formData["bean.STATIS_CUSTOM_OPTIONS"] = "";
|
|
1176
|
+
} else {
|
|
1177
|
+
formData["bean.STATIS_OPTION"] = "custom";
|
|
1178
|
+
}
|
|
1179
|
+
} else {
|
|
1180
|
+
if (this.statFieldOptionSelectAll) {
|
|
1181
|
+
formData["bean.STATIS_OPTION"] = "all";
|
|
1182
|
+
formData["bean.STATIS_CUSTOM_OPTIONS"] = "";
|
|
1183
|
+
} else {
|
|
1184
|
+
formData["bean.STATIS_OPTION"] = "custom";
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
this.$http.update({
|
|
1189
|
+
entityId: "FM_REPORT_ITEM",
|
|
1190
|
+
...formData
|
|
1191
|
+
}).then((data2) => {
|
|
1192
|
+
this.$message.success("设置成功");
|
|
1193
|
+
this.editFieldForm = {};
|
|
1194
|
+
this.editEntityFieldDialog = false;
|
|
1195
|
+
this.refreshData();
|
|
1196
|
+
});
|
|
1197
|
+
},
|
|
1198
|
+
changeStatIndex(evt) {
|
|
1199
|
+
if (evt.added) {
|
|
1200
|
+
const { TYPE, CHART_TYPE } = this.reportInfo;
|
|
1201
|
+
if (TYPE !== "1") {
|
|
1202
|
+
if (this.statisIndexList.length > 1 && this.rowList.length > 1) {
|
|
1203
|
+
if (CHART_TYPE === "pie" || CHART_TYPE === "circularPie" || CHART_TYPE === "funnel") {
|
|
1204
|
+
this.$message.error(`${CHART_TYPE === "funnel" ? "漏斗图" : "饼图"}只允许设置一个统计维度`);
|
|
1205
|
+
return this.getStatisIndex();
|
|
1206
|
+
} else if (this.columnList.length > 0) {
|
|
1207
|
+
this.$message.error("统计图设置了纵轴不允许添加多个统计维度");
|
|
1208
|
+
return this.getStatisIndex();
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
this.addStatIndex(evt.added);
|
|
1213
|
+
} else if (evt.moved) {
|
|
1214
|
+
this.moveStatIndex(evt.moved);
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1217
|
+
addStatIndex(added) {
|
|
1218
|
+
const { element, newIndex } = added;
|
|
1219
|
+
let form = {
|
|
1220
|
+
"bean.REPORT": this.$query.id,
|
|
1221
|
+
"bean.INDEX_NAME": element.NAME,
|
|
1222
|
+
"bean.INDEX_TYPE": "field",
|
|
1223
|
+
"bean.INDEX_FIELD": element.STA_FIELD,
|
|
1224
|
+
"bean.INDEX_FIELD_CODE": element.STA_FIELD_CODE,
|
|
1225
|
+
"bean.INDEX_CALCULATE_METHOD": "SUM",
|
|
1226
|
+
"bean.ORDER_NUM": newIndex + 1
|
|
1227
|
+
};
|
|
1228
|
+
if (element.IS_RECORED_FLAG) {
|
|
1229
|
+
form = {
|
|
1230
|
+
"bean.REPORT": this.$query.id,
|
|
1231
|
+
"bean.INDEX_NAME": element.NAME,
|
|
1232
|
+
"bean.IS_RECORED_FLAG": "1",
|
|
1233
|
+
"bean.ORDER_NUM": newIndex + 1
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
this.$http.save({
|
|
1237
|
+
entityId: "FM_REPORT_STATIS_INDEX",
|
|
1238
|
+
"bean.CLIENT": this.CLIENT,
|
|
1239
|
+
"bean.SYSTEM": this.SYSTEM,
|
|
1240
|
+
...form
|
|
1241
|
+
}).then(() => {
|
|
1242
|
+
this.getStatisIndex();
|
|
1243
|
+
this.refreshData();
|
|
1244
|
+
}).catch((err) => {
|
|
1245
|
+
this.$message.error(err.errorText);
|
|
1246
|
+
});
|
|
1247
|
+
},
|
|
1248
|
+
openAddStatIndexDialog() {
|
|
1249
|
+
this.editStatIndexDialog = true;
|
|
1250
|
+
this.editStatIndexForm = {
|
|
1251
|
+
REPORT: this.$query.id,
|
|
1252
|
+
INDEX_TYPE: "custom",
|
|
1253
|
+
ORDER_NUM: this.statisIndexList.length
|
|
1254
|
+
};
|
|
1255
|
+
},
|
|
1256
|
+
editStatIndex(index) {
|
|
1257
|
+
this.editStatIndexDialog = true;
|
|
1258
|
+
if (index.INDEX_NAME_I18N) {
|
|
1259
|
+
this.editStatIndexForm = { ...index, INDEX_NAME_I18N: JSON.parse(index.INDEX_NAME_I18N) };
|
|
1260
|
+
} else {
|
|
1261
|
+
this.editStatIndexForm = index;
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
deleteStatIndex(index) {
|
|
1265
|
+
this.$http.removeMulti({
|
|
1266
|
+
entityId: "FM_REPORT_STATIS_INDEX",
|
|
1267
|
+
ids: index.ID
|
|
1268
|
+
}).then(() => {
|
|
1269
|
+
this.$message.success("删除成功");
|
|
1270
|
+
this.getStatisIndex();
|
|
1271
|
+
this.refreshData();
|
|
1272
|
+
}).catch((err) => {
|
|
1273
|
+
this.$message.error(err.errorText);
|
|
1274
|
+
});
|
|
1275
|
+
},
|
|
1276
|
+
saveStatIndex() {
|
|
1277
|
+
const params = {
|
|
1278
|
+
entityId: "FM_REPORT_STATIS_INDEX"
|
|
1279
|
+
};
|
|
1280
|
+
if (this.editStatIndexForm.ID) {
|
|
1281
|
+
params.action = "update";
|
|
1282
|
+
} else {
|
|
1283
|
+
const { TYPE, CHART_TYPE } = this.reportInfo;
|
|
1284
|
+
if (TYPE !== "1") {
|
|
1285
|
+
if (this.statisIndexList.length > 0 && this.rowList.length > 1) {
|
|
1286
|
+
if (CHART_TYPE === "pie" || CHART_TYPE === "circularPie" || CHART_TYPE === "funnel") {
|
|
1287
|
+
this.$message.error(`${CHART_TYPE === "funnel" ? "漏斗图" : "饼图"}只允许设置一个统计维度`);
|
|
1288
|
+
return;
|
|
1289
|
+
} else if (this.columnList.length > 0) {
|
|
1290
|
+
this.$message.error("统计图设置了纵轴不允许添加多个统计维度");
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
if (!this.editStatIndexForm.INDEX_NAME) {
|
|
1297
|
+
this.$message.error("请输入指标标题");
|
|
1298
|
+
return;
|
|
1299
|
+
}
|
|
1300
|
+
for (const key in this.editStatIndexForm) {
|
|
1301
|
+
if (!key.includes("#")) params[`bean.${key}`] = typeof this.editStatIndexForm[key] === "object" ? JSON.stringify(this.editStatIndexForm[key]) : this.editStatIndexForm[key];
|
|
1302
|
+
}
|
|
1303
|
+
const field = this.reportStatisFields.statisIndexFields.find((item) => item.id === this.editStatIndexForm.INDEX_FIELD);
|
|
1304
|
+
if (field) {
|
|
1305
|
+
params["bean.INDEX_FIELD_CODE"] = field.code;
|
|
1306
|
+
}
|
|
1307
|
+
if (this.isSaveStatIndex) return;
|
|
1308
|
+
this.isSaveStatIndex = true;
|
|
1309
|
+
this.$http.save({
|
|
1310
|
+
...params
|
|
1311
|
+
}).then((data2) => {
|
|
1312
|
+
this.$message.success("修改成功");
|
|
1313
|
+
this.editStatIndexForm = {};
|
|
1314
|
+
this.editStatIndexDialog = false;
|
|
1315
|
+
this.isSaveStatIndex = false;
|
|
1316
|
+
this.getStatisIndex();
|
|
1317
|
+
this.refreshData();
|
|
1318
|
+
}).catch((err) => {
|
|
1319
|
+
this.isSaveStatIndex = false;
|
|
1320
|
+
this.$message.error(err.errorText);
|
|
1321
|
+
});
|
|
1322
|
+
},
|
|
1323
|
+
moveStatIndex(moved) {
|
|
1324
|
+
const { element } = moved;
|
|
1325
|
+
const str = this.statisIndexList.reduce((str2, item, index) => str2 += item.ID + ":" + index + ",", "");
|
|
1326
|
+
this.$http.$request({
|
|
1327
|
+
action: "moveTree",
|
|
1328
|
+
entityId: "FM_REPORT_STATIS_INDEX",
|
|
1329
|
+
id: element.ID,
|
|
1330
|
+
selfAttriName: "ID",
|
|
1331
|
+
newParentId: "root",
|
|
1332
|
+
orderString: str,
|
|
1333
|
+
orderAtrriName: "ORDER_NUM"
|
|
1334
|
+
}).then((data2) => {
|
|
1335
|
+
this.getStatisIndex();
|
|
1336
|
+
this.refreshData();
|
|
1337
|
+
});
|
|
1338
|
+
},
|
|
1339
|
+
showAddOptionDialog(POSITION) {
|
|
1340
|
+
if (this.reportInfo.CHART_TYPE === "scatter") {
|
|
1341
|
+
if (this.columnList.length >= 2) {
|
|
1342
|
+
this.$message.error("散点图只允许设置两个统计维度");
|
|
1343
|
+
return;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
this.addOptionForm = {
|
|
1347
|
+
ADD_TYPE: "custom",
|
|
1348
|
+
REPORT: this.$query.id,
|
|
1349
|
+
MODEL: "1",
|
|
1350
|
+
STATIS_CUSTOM_OPTIONS: [],
|
|
1351
|
+
POSITION,
|
|
1352
|
+
FAVORITE_ITEM: [],
|
|
1353
|
+
STA_INDEX_TYPE: "default"
|
|
1354
|
+
};
|
|
1355
|
+
this.addOptionDialog = true;
|
|
1356
|
+
this.statFieldTabs = "stat";
|
|
1357
|
+
},
|
|
1358
|
+
addStatOption() {
|
|
1359
|
+
const { isToField, UP, ADD_TYPE, STATIS_CUSTOM_OPTIONS, POSITION, FAVORITE_ITEM, ...otherForm } = this.addOptionForm;
|
|
1360
|
+
if (isToField) {
|
|
1361
|
+
this.addOptionToField();
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
const { TYPE } = this.reportInfo;
|
|
1365
|
+
if (POSITION === "2" && TYPE !== "1") {
|
|
1366
|
+
if (this.statisIndexList.length > 1) {
|
|
1367
|
+
this.$message.error("统计图设置了多个统计维度不允许设置纵轴");
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
if (ADD_TYPE === "field") {
|
|
1372
|
+
if (STATIS_CUSTOM_OPTIONS.length === 0) {
|
|
1373
|
+
this.$message.error("请选择统计选项");
|
|
1374
|
+
return;
|
|
1375
|
+
}
|
|
1376
|
+
const subForm = {};
|
|
1377
|
+
for (const key in otherForm) {
|
|
1378
|
+
if (key && !key.includes("#")) {
|
|
1379
|
+
otherForm[key];
|
|
1380
|
+
subForm[key] = otherForm[key];
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
if (this.isSaveStatOption) return;
|
|
1384
|
+
this.isSaveStatOption = true;
|
|
1385
|
+
const codeList = [];
|
|
1386
|
+
const { code, text, dataType, optionType } = this.statOptionField;
|
|
1387
|
+
for (const item of STATIS_CUSTOM_OPTIONS) {
|
|
1388
|
+
let list = this.statOptionFieldOptions;
|
|
1389
|
+
if ((optionType || dataType) === "treeList") {
|
|
1390
|
+
list = this.statOptionFieldTreeOptions;
|
|
1391
|
+
} else if (dataType === "object" || dataType === "user" || dataType === "dept") {
|
|
1392
|
+
list = this.statOptionFieldData;
|
|
1393
|
+
}
|
|
1394
|
+
const codeItem = list.find((option) => option.id === item);
|
|
1395
|
+
codeList.push(codeItem);
|
|
1396
|
+
}
|
|
1397
|
+
this.$http.save({
|
|
1398
|
+
action: "batchAddStaFieldItems",
|
|
1399
|
+
entityId: "FM_REPORT_ITEM",
|
|
1400
|
+
reportId: this.$query.id,
|
|
1401
|
+
position: POSITION,
|
|
1402
|
+
itemDatas: JSON.stringify(codeList.map((codeItem) => ({
|
|
1403
|
+
REPORT: this.$query.id,
|
|
1404
|
+
CLIENT: this.CLIENT,
|
|
1405
|
+
SYSTEM: this.SYSTEM,
|
|
1406
|
+
ADD_TYPE: "custom",
|
|
1407
|
+
MODEL: "1",
|
|
1408
|
+
UP,
|
|
1409
|
+
POSITION,
|
|
1410
|
+
NAME: codeItem.name || codeItem.text,
|
|
1411
|
+
...subForm,
|
|
1412
|
+
SCOPE: JSON.stringify({ scopeParams: [{ field: code.replace(/\./g, "|"), mode: "equal", values: codeItem.code || codeItem.id, text: `${text} 等于 ${codeItem.name || codeItem.text}` }] })
|
|
1413
|
+
})))
|
|
1414
|
+
}).then(() => {
|
|
1415
|
+
this.addOptionForm = {};
|
|
1416
|
+
this.addOptionDialog = false;
|
|
1417
|
+
this.refreshData();
|
|
1418
|
+
this.isSaveStatOption = false;
|
|
1419
|
+
}).catch((err) => {
|
|
1420
|
+
this.$message.error(err.message);
|
|
1421
|
+
this.isSaveStatOption = false;
|
|
1422
|
+
});
|
|
1423
|
+
} else if (ADD_TYPE === "favorite_item") {
|
|
1424
|
+
const form = {};
|
|
1425
|
+
for (const key in otherForm) {
|
|
1426
|
+
if (key && !key.includes("#")) form[`bean.${key}`] = otherForm[key];
|
|
1427
|
+
}
|
|
1428
|
+
if (this.isSaveStatOption) return;
|
|
1429
|
+
this.isSaveStatOption = true;
|
|
1430
|
+
this.$http.save({
|
|
1431
|
+
action: "saveCustomItem",
|
|
1432
|
+
entityId: "FM_REPORT_ITEM",
|
|
1433
|
+
reportId: this.$query.id,
|
|
1434
|
+
position: POSITION,
|
|
1435
|
+
reportObject: this.reportInfo.OBJECT,
|
|
1436
|
+
upItemId: UP,
|
|
1437
|
+
"bean.CLIENT": this.CLIENT,
|
|
1438
|
+
"bean.SYSTEM": this.SYSTEM,
|
|
1439
|
+
"bean.ADD_TYPE": ADD_TYPE,
|
|
1440
|
+
"bean.FAVORITE_ITEM": FAVORITE_ITEM.join(","),
|
|
1441
|
+
...form
|
|
1442
|
+
}).then(() => {
|
|
1443
|
+
this.$message.success("添加成功");
|
|
1444
|
+
this.addOptionForm = {};
|
|
1445
|
+
this.addOptionDialog = false;
|
|
1446
|
+
this.refreshData();
|
|
1447
|
+
this.isSaveStatOption = false;
|
|
1448
|
+
}).catch((err) => {
|
|
1449
|
+
this.$message.error(err.message);
|
|
1450
|
+
this.isSaveStatOption = false;
|
|
1451
|
+
});
|
|
1452
|
+
} else {
|
|
1453
|
+
if (!this.addOptionForm.NAME) {
|
|
1454
|
+
this.$message.error("请输入标题");
|
|
1455
|
+
return;
|
|
1456
|
+
}
|
|
1457
|
+
const form = {};
|
|
1458
|
+
if (this.addOptionForm.ID) form.action = "update";
|
|
1459
|
+
for (const key in otherForm) {
|
|
1460
|
+
if (!key.includes("#")) form[`bean.${key}`] = typeof otherForm[key] === "object" ? JSON.stringify(otherForm[key]) : otherForm[key];
|
|
1461
|
+
}
|
|
1462
|
+
if (this.isSaveStatOption) return;
|
|
1463
|
+
this.isSaveStatOption = true;
|
|
1464
|
+
this.$http.save({
|
|
1465
|
+
entityId: "FM_REPORT_ITEM",
|
|
1466
|
+
"bean.CLIENT": this.CLIENT,
|
|
1467
|
+
"bean.SYSTEM": this.SYSTEM,
|
|
1468
|
+
"bean.REPORT": this.$query.id,
|
|
1469
|
+
"bean.POSITION": POSITION,
|
|
1470
|
+
"bean.UP": UP,
|
|
1471
|
+
...form
|
|
1472
|
+
}).then(() => {
|
|
1473
|
+
this.$message.success(this.addOptionForm.ID ? "修改成功" : "添加成功");
|
|
1474
|
+
this.addOptionForm = {};
|
|
1475
|
+
this.addOptionDialog = false;
|
|
1476
|
+
this.editIndexDialog = false;
|
|
1477
|
+
this.isSaveStatOption = false;
|
|
1478
|
+
this.refreshData();
|
|
1479
|
+
}).catch((err) => {
|
|
1480
|
+
this.$message.error(err.message);
|
|
1481
|
+
this.isSaveStatOption = false;
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
showAddOptionToField() {
|
|
1486
|
+
this.addOptionForm = {
|
|
1487
|
+
isToField: true,
|
|
1488
|
+
ADD_TYPE: "custom",
|
|
1489
|
+
MODEL: "1",
|
|
1490
|
+
STATIS_CUSTOM_OPTIONS: [],
|
|
1491
|
+
FAVORITE_ITEM: []
|
|
1492
|
+
};
|
|
1493
|
+
this.addOptionDialog = true;
|
|
1494
|
+
this.statFieldTabs = "stat";
|
|
1495
|
+
},
|
|
1496
|
+
addOptionToField() {
|
|
1497
|
+
let { ID, ADD_TYPE, STATIS_CUSTOM_OPTIONS, FAVORITE_ITEM, NAME, NAME_I18N, SCOPE } = this.addOptionForm;
|
|
1498
|
+
if (!this.addFieldForm.options) this.addFieldForm.options = [];
|
|
1499
|
+
if (NAME_I18N) NAME_I18N = JSON.stringify(NAME_I18N);
|
|
1500
|
+
if (ID !== void 0) {
|
|
1501
|
+
this.addFieldForm.options.splice(ID, 1, { ADD_TYPE: "custom", NAME, NAME_I18N, STATIS_SCOPE: SCOPE });
|
|
1502
|
+
} else {
|
|
1503
|
+
if (ADD_TYPE === "field") {
|
|
1504
|
+
for (const item of STATIS_CUSTOM_OPTIONS) {
|
|
1505
|
+
const { code, text, dataType, optionType } = this.statOptionField;
|
|
1506
|
+
let list = this.statOptionFieldOptions;
|
|
1507
|
+
if ((optionType || dataType) === "treeList") {
|
|
1508
|
+
list = this.statOptionFieldTreeOptions;
|
|
1509
|
+
} else if (dataType === "object" || dataType === "user" || dataType === "dept") {
|
|
1510
|
+
list = this.statOptionFieldData;
|
|
1511
|
+
}
|
|
1512
|
+
const codeItem = list.find((option) => option.id === item);
|
|
1513
|
+
this.addFieldForm.options.push({
|
|
1514
|
+
ADD_TYPE: "custom",
|
|
1515
|
+
NAME: codeItem.name || codeItem.text,
|
|
1516
|
+
STATIS_SCOPE: JSON.stringify({ scopeParams: [{ field: code.replace(/\./g, "|"), mode: "equal", values: codeItem.code || codeItem.id, text: `${text} 等于 ${codeItem.name || codeItem.text}` }] })
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
} else if (ADD_TYPE === "favorite_item") {
|
|
1520
|
+
const allOptions = this.reportStatisFields.customFields.reduce((arr, item) => [...arr, ...item.children], []);
|
|
1521
|
+
FAVORITE_ITEM.forEach((item) => {
|
|
1522
|
+
const option = allOptions.find((option2) => option2.id === item);
|
|
1523
|
+
this.addFieldForm.options.push({
|
|
1524
|
+
ADD_TYPE: "custom",
|
|
1525
|
+
NAME: option.data.NAME,
|
|
1526
|
+
NAME_I18N: option.data.NAME_I18N,
|
|
1527
|
+
STATIS_SCOPE: option.data.STATIS_SCOPE
|
|
1528
|
+
});
|
|
1529
|
+
});
|
|
1530
|
+
} else {
|
|
1531
|
+
this.addFieldForm.options.push({
|
|
1532
|
+
ADD_TYPE: "custom",
|
|
1533
|
+
NAME,
|
|
1534
|
+
NAME_I18N,
|
|
1535
|
+
STATIS_SCOPE: SCOPE
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
this.addOptionDialog = false;
|
|
1540
|
+
this.addOptionForm = {};
|
|
1541
|
+
},
|
|
1542
|
+
editFieldOption(option, index) {
|
|
1543
|
+
this.addOptionForm = {
|
|
1544
|
+
ID: index,
|
|
1545
|
+
isToField: true,
|
|
1546
|
+
ADD_TYPE: "custom",
|
|
1547
|
+
NAME: option.NAME,
|
|
1548
|
+
NAME_I18N: option.NAME_I18N ? JSON.parse(option.NAME_I18N) : option.NAME_I18N,
|
|
1549
|
+
SCOPE: option.STATIS_SCOPE,
|
|
1550
|
+
FAVORITE_ITEM: []
|
|
1551
|
+
};
|
|
1552
|
+
this.addOptionDialog = true;
|
|
1553
|
+
this.statFieldTabs = "stat";
|
|
1554
|
+
},
|
|
1555
|
+
addCustomField() {
|
|
1556
|
+
const { ID, options, FIELD_NAME, FIELD_NAME_I18N, IS_FAVORITE } = this.addFieldForm;
|
|
1557
|
+
if (!FIELD_NAME) {
|
|
1558
|
+
this.$message.error("请输入字段名称");
|
|
1559
|
+
return;
|
|
1560
|
+
}
|
|
1561
|
+
if (!options || options.length === 0) {
|
|
1562
|
+
this.$message.error("请添加统计项");
|
|
1563
|
+
return;
|
|
1564
|
+
}
|
|
1565
|
+
const form = {
|
|
1566
|
+
action: "saveFavoriteField",
|
|
1567
|
+
entityId: "FM_REPORT_FIELD_FAVORITE",
|
|
1568
|
+
"bean.CLIENT": this.CLIENT,
|
|
1569
|
+
"bean.SYSTEM": this.SYSTEM,
|
|
1570
|
+
"bean.FIELD_NAME": FIELD_NAME,
|
|
1571
|
+
"bean.IS_FAVORITE": IS_FAVORITE,
|
|
1572
|
+
"bean.FIELD_NAME_I18N": FIELD_NAME_I18N ? JSON.stringify(FIELD_NAME_I18N) : null,
|
|
1573
|
+
staObject: this.reportInfo.OBJECT,
|
|
1574
|
+
subData: JSON.stringify(options.map((item, index) => ({ ...item, CLIENT: this.CLIENT, SYSTEM: this.SYSTEM, ORDER_NUM: index + 1 })))
|
|
1575
|
+
};
|
|
1576
|
+
if (ID) {
|
|
1577
|
+
form["bean.ID"] = ID;
|
|
1578
|
+
}
|
|
1579
|
+
if (IS_FAVORITE) {
|
|
1580
|
+
form["bean.ENTITY_ID"] = this.reportInfo.OBJECT;
|
|
1581
|
+
form["bean.REPORT"] = null;
|
|
1582
|
+
} else {
|
|
1583
|
+
form["bean.ENTITY_ID"] = null;
|
|
1584
|
+
form["bean.REPORT"] = this.$query.id;
|
|
1585
|
+
}
|
|
1586
|
+
if (this.isSaveCustomField) return;
|
|
1587
|
+
this.isSaveCustomField = true;
|
|
1588
|
+
this.$http.$post(form).then(() => {
|
|
1589
|
+
this.$message.success(ID ? "修改成功" : "添加成功");
|
|
1590
|
+
this.getReportStatisFields();
|
|
1591
|
+
this.addFieldForm = {};
|
|
1592
|
+
this.addFieldDialog = false;
|
|
1593
|
+
this.isSaveCustomField = false;
|
|
1594
|
+
}).catch((err) => {
|
|
1595
|
+
this.isSaveCustomField = false;
|
|
1596
|
+
this.$message.error(err.message);
|
|
1597
|
+
});
|
|
1598
|
+
},
|
|
1599
|
+
editCustomField(field) {
|
|
1600
|
+
this.addFieldForm = {
|
|
1601
|
+
ID: field.id,
|
|
1602
|
+
FIELD_NAME: field.text,
|
|
1603
|
+
FIELD_NAME_I18N: field.text_i18n ? JSON.parse(field.text_i18n) : null,
|
|
1604
|
+
IS_FAVORITE: field.isFavoriteFlag,
|
|
1605
|
+
options: field.children.map((item) => ({ ADD_TYPE: item.data.ADD_TYPE, NAME: item.data.NAME, NAME_I18N: item.data.NAME_I18N, STATIS_SCOPE: item.data.STATIS_SCOPE }))
|
|
1606
|
+
};
|
|
1607
|
+
this.addFieldDialog = true;
|
|
1608
|
+
},
|
|
1609
|
+
deleteCustomField(field) {
|
|
1610
|
+
this.$http.removeMulti({
|
|
1611
|
+
entityId: "FM_REPORT_FIELD_FAVORITE",
|
|
1612
|
+
ids: field.id
|
|
1613
|
+
}).then(() => {
|
|
1614
|
+
this.$message.success("删除成功");
|
|
1615
|
+
this.getReportStatisFields();
|
|
1616
|
+
}).catch((err) => {
|
|
1617
|
+
this.$message.error(err.message);
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
},
|
|
1621
|
+
created() {
|
|
1622
|
+
if (this.showMenu) {
|
|
1623
|
+
this.changeMenuFlag = true;
|
|
1624
|
+
this.$store.commit("SWITCH_MENU_SHOW", false);
|
|
1625
|
+
}
|
|
1626
|
+
if (this.showAppNav) {
|
|
1627
|
+
this.changeAppNavFlag = true;
|
|
1628
|
+
this.$store.commit("SWITCH_APP_NAV_SHOW", false);
|
|
1629
|
+
}
|
|
1630
|
+
this.getReportInfo();
|
|
1631
|
+
this.getStatList();
|
|
1632
|
+
this.getStatisIndex();
|
|
1633
|
+
this.getFieldRelation();
|
|
1634
|
+
this.getFieldConfigs();
|
|
1635
|
+
},
|
|
1636
|
+
mounted() {
|
|
1637
|
+
const { openType } = this.$query;
|
|
1638
|
+
if (openType === "2") {
|
|
1639
|
+
this.$refs.container.style.position = "static";
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
beforeUnmount() {
|
|
1643
|
+
if (this.changeMenuFlag) {
|
|
1644
|
+
this.$store.commit("SWITCH_MENU_SHOW", true);
|
|
1645
|
+
}
|
|
1646
|
+
if (this.changeAppNavFlag) {
|
|
1647
|
+
this.$store.commit("SWITCH_APP_NAV_SHOW", true);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
const _hoisted_1 = { class: "report-header" };
|
|
1652
|
+
const _hoisted_2 = { class: "report-title" };
|
|
1653
|
+
const _hoisted_3 = { class: "report-name" };
|
|
1654
|
+
const _hoisted_4 = { key: 0 };
|
|
1655
|
+
const _hoisted_5 = { class: "report-operate" };
|
|
1656
|
+
const _hoisted_6 = { class: "report-bar" };
|
|
1657
|
+
const _hoisted_7 = { class: "report-bar__item" };
|
|
1658
|
+
const _hoisted_8 = {
|
|
1659
|
+
key: 0,
|
|
1660
|
+
class: "report-bar__item"
|
|
1661
|
+
};
|
|
1662
|
+
const _hoisted_9 = { class: "report-bar__item" };
|
|
1663
|
+
const _hoisted_10 = { class: "report-type__list" };
|
|
1664
|
+
const _hoisted_11 = ["onClick"];
|
|
1665
|
+
const _hoisted_12 = { class: "report-bar__item" };
|
|
1666
|
+
const _hoisted_13 = ["title"];
|
|
1667
|
+
const _hoisted_14 = { class: "report-design" };
|
|
1668
|
+
const _hoisted_15 = { class: "report-left-container" };
|
|
1669
|
+
const _hoisted_16 = {
|
|
1670
|
+
key: 0,
|
|
1671
|
+
class: "report-field"
|
|
1672
|
+
};
|
|
1673
|
+
const _hoisted_17 = { class: "report-field__title" };
|
|
1674
|
+
const _hoisted_18 = { class: "report-field__container" };
|
|
1675
|
+
const _hoisted_19 = {
|
|
1676
|
+
key: 0,
|
|
1677
|
+
class: "report-entity-field"
|
|
1678
|
+
};
|
|
1679
|
+
const _hoisted_20 = { class: "report-entity-field__inner" };
|
|
1680
|
+
const _hoisted_21 = { class: "report-field__header" };
|
|
1681
|
+
const _hoisted_22 = { class: "report-field__list" };
|
|
1682
|
+
const _hoisted_23 = ["onDragstart", "draggable"];
|
|
1683
|
+
const _hoisted_24 = { class: "report-field__name" };
|
|
1684
|
+
const _hoisted_25 = ["onClick"];
|
|
1685
|
+
const _hoisted_26 = ["title"];
|
|
1686
|
+
const _hoisted_27 = {
|
|
1687
|
+
key: 0,
|
|
1688
|
+
class: "report-field__list"
|
|
1689
|
+
};
|
|
1690
|
+
const _hoisted_28 = ["onDragstart", "draggable"];
|
|
1691
|
+
const _hoisted_29 = { class: "report-field__name" };
|
|
1692
|
+
const _hoisted_30 = ["onClick"];
|
|
1693
|
+
const _hoisted_31 = ["title"];
|
|
1694
|
+
const _hoisted_32 = {
|
|
1695
|
+
key: 0,
|
|
1696
|
+
class: "report-field__list"
|
|
1697
|
+
};
|
|
1698
|
+
const _hoisted_33 = ["onDragstart", "draggable"];
|
|
1699
|
+
const _hoisted_34 = { class: "report-field__name" };
|
|
1700
|
+
const _hoisted_35 = ["title"];
|
|
1701
|
+
const _hoisted_36 = { class: "report-field__footer" };
|
|
1702
|
+
const _hoisted_37 = {
|
|
1703
|
+
key: 1,
|
|
1704
|
+
class: "report-custom-field"
|
|
1705
|
+
};
|
|
1706
|
+
const _hoisted_38 = { class: "report-field__list" };
|
|
1707
|
+
const _hoisted_39 = ["onDragstart"];
|
|
1708
|
+
const _hoisted_40 = { class: "report-field__name" };
|
|
1709
|
+
const _hoisted_41 = ["title"];
|
|
1710
|
+
const _hoisted_42 = { class: "report-stat__operate" };
|
|
1711
|
+
const _hoisted_43 = { class: "report-field__operate" };
|
|
1712
|
+
const _hoisted_44 = { class: "report-field__title" };
|
|
1713
|
+
const _hoisted_45 = { class: "report-index__content" };
|
|
1714
|
+
const _hoisted_46 = { class: "report-field__name" };
|
|
1715
|
+
const _hoisted_47 = ["onClick"];
|
|
1716
|
+
const _hoisted_48 = ["title"];
|
|
1717
|
+
const _hoisted_49 = { class: "report-field__name" };
|
|
1718
|
+
const _hoisted_50 = ["onClick"];
|
|
1719
|
+
const _hoisted_51 = ["title"];
|
|
1720
|
+
const _hoisted_52 = { class: "report-field__name" };
|
|
1721
|
+
const _hoisted_53 = ["title"];
|
|
1722
|
+
const _hoisted_54 = { class: "report-stat" };
|
|
1723
|
+
const _hoisted_55 = {
|
|
1724
|
+
key: 0,
|
|
1725
|
+
class: "report-stat-container"
|
|
1726
|
+
};
|
|
1727
|
+
const _hoisted_56 = { class: "report-stat__title" };
|
|
1728
|
+
const _hoisted_57 = {
|
|
1729
|
+
key: 0,
|
|
1730
|
+
class: "stat-null-data"
|
|
1731
|
+
};
|
|
1732
|
+
const _hoisted_58 = {
|
|
1733
|
+
key: 1,
|
|
1734
|
+
class: "report-stat-container"
|
|
1735
|
+
};
|
|
1736
|
+
const _hoisted_59 = { class: "report-stat__title" };
|
|
1737
|
+
const _hoisted_60 = {
|
|
1738
|
+
key: 0,
|
|
1739
|
+
class: "stat-null-data"
|
|
1740
|
+
};
|
|
1741
|
+
const _hoisted_61 = {
|
|
1742
|
+
key: 2,
|
|
1743
|
+
class: "report-stat-container report-stat-index"
|
|
1744
|
+
};
|
|
1745
|
+
const _hoisted_62 = { class: "report-stat__title" };
|
|
1746
|
+
const _hoisted_63 = { class: "report-stat__content" };
|
|
1747
|
+
const _hoisted_64 = { class: "report-stat__name" };
|
|
1748
|
+
const _hoisted_65 = ["title"];
|
|
1749
|
+
const _hoisted_66 = { class: "report-stat__operate" };
|
|
1750
|
+
const _hoisted_67 = { class: "report-view" };
|
|
1751
|
+
const _hoisted_68 = {
|
|
1752
|
+
key: 0,
|
|
1753
|
+
class: "null-data"
|
|
1754
|
+
};
|
|
1755
|
+
const _hoisted_69 = {
|
|
1756
|
+
key: 1,
|
|
1757
|
+
class: "report-view__chart"
|
|
1758
|
+
};
|
|
1759
|
+
const _hoisted_70 = { class: "drawer__header" };
|
|
1760
|
+
const _hoisted_71 = {
|
|
1761
|
+
key: 0,
|
|
1762
|
+
class: "attribute-pane__content"
|
|
1763
|
+
};
|
|
1764
|
+
const _hoisted_72 = { style: { textAlign: "center" } };
|
|
1765
|
+
const _hoisted_73 = {
|
|
1766
|
+
key: 0,
|
|
1767
|
+
class: "custom-dialog__content"
|
|
1768
|
+
};
|
|
1769
|
+
const _hoisted_74 = { class: "add-field-item" };
|
|
1770
|
+
const _hoisted_75 = { class: "add-field-input" };
|
|
1771
|
+
const _hoisted_76 = { class: "language" };
|
|
1772
|
+
const _hoisted_77 = {
|
|
1773
|
+
class: "language-item__label",
|
|
1774
|
+
for: ""
|
|
1775
|
+
};
|
|
1776
|
+
const _hoisted_78 = {
|
|
1777
|
+
key: 0,
|
|
1778
|
+
class: "add-field-item"
|
|
1779
|
+
};
|
|
1780
|
+
const _hoisted_79 = { class: "add-field-input" };
|
|
1781
|
+
const _hoisted_80 = {
|
|
1782
|
+
key: 1,
|
|
1783
|
+
class: "add-field-item"
|
|
1784
|
+
};
|
|
1785
|
+
const _hoisted_81 = { class: "add-field-input" };
|
|
1786
|
+
const _hoisted_82 = {
|
|
1787
|
+
key: 2,
|
|
1788
|
+
class: "add-field-item"
|
|
1789
|
+
};
|
|
1790
|
+
const _hoisted_83 = { class: "add-field-input" };
|
|
1791
|
+
const _hoisted_84 = { class: "add-field-item" };
|
|
1792
|
+
const _hoisted_85 = { class: "add-field-input" };
|
|
1793
|
+
const _hoisted_86 = { class: "add-field-item" };
|
|
1794
|
+
const _hoisted_87 = { class: "add-field-input" };
|
|
1795
|
+
const _hoisted_88 = {
|
|
1796
|
+
key: 0,
|
|
1797
|
+
class: "add-field-item"
|
|
1798
|
+
};
|
|
1799
|
+
const _hoisted_89 = { class: "add-field-input add-field-input__flex" };
|
|
1800
|
+
const _hoisted_90 = {
|
|
1801
|
+
key: 1,
|
|
1802
|
+
class: "add-field-item"
|
|
1803
|
+
};
|
|
1804
|
+
const _hoisted_91 = { class: "add-field-input add-field-input__flex" };
|
|
1805
|
+
const _hoisted_92 = {
|
|
1806
|
+
key: 2,
|
|
1807
|
+
class: "add-field-item"
|
|
1808
|
+
};
|
|
1809
|
+
const _hoisted_93 = { class: "add-field-input add-field-input__flex" };
|
|
1810
|
+
const _hoisted_94 = {
|
|
1811
|
+
key: 3,
|
|
1812
|
+
class: "add-field-item"
|
|
1813
|
+
};
|
|
1814
|
+
const _hoisted_95 = { class: "add-field-input" };
|
|
1815
|
+
const _hoisted_96 = {
|
|
1816
|
+
key: 4,
|
|
1817
|
+
class: "add-field-item"
|
|
1818
|
+
};
|
|
1819
|
+
const _hoisted_97 = { class: "add-field-input" };
|
|
1820
|
+
const _hoisted_98 = { class: "add-field-item" };
|
|
1821
|
+
const _hoisted_99 = { class: "add-field-item" };
|
|
1822
|
+
const _hoisted_100 = { class: "add-field-input" };
|
|
1823
|
+
const _hoisted_101 = {
|
|
1824
|
+
key: 0,
|
|
1825
|
+
class: "add-field-item"
|
|
1826
|
+
};
|
|
1827
|
+
const _hoisted_102 = { class: "add-field-input" };
|
|
1828
|
+
const _hoisted_103 = { class: "add-field-item" };
|
|
1829
|
+
const _hoisted_104 = { class: "add-field-input" };
|
|
1830
|
+
const _hoisted_105 = {
|
|
1831
|
+
key: 0,
|
|
1832
|
+
class: "add-field-item"
|
|
1833
|
+
};
|
|
1834
|
+
const _hoisted_106 = { class: "add-field-input" };
|
|
1835
|
+
const _hoisted_107 = {
|
|
1836
|
+
key: 7,
|
|
1837
|
+
class: "add-field-item"
|
|
1838
|
+
};
|
|
1839
|
+
const _hoisted_108 = { class: "add-field-item" };
|
|
1840
|
+
const _hoisted_109 = { class: "add-field-input" };
|
|
1841
|
+
const _hoisted_110 = { class: "add-field-item" };
|
|
1842
|
+
const _hoisted_111 = { class: "add-field-input" };
|
|
1843
|
+
const _hoisted_112 = { class: "add-field-item" };
|
|
1844
|
+
const _hoisted_113 = { class: "add-field-input" };
|
|
1845
|
+
const _hoisted_114 = { class: "add-field-item" };
|
|
1846
|
+
const _hoisted_115 = { class: "add-field-input" };
|
|
1847
|
+
const _hoisted_116 = { class: "add-field-item" };
|
|
1848
|
+
const _hoisted_117 = { class: "add-field-input" };
|
|
1849
|
+
const _hoisted_118 = { class: "add-field-item" };
|
|
1850
|
+
const _hoisted_119 = { class: "add-field-input" };
|
|
1851
|
+
const _hoisted_120 = { class: "add-field-item" };
|
|
1852
|
+
const _hoisted_121 = { class: "add-field-input" };
|
|
1853
|
+
const _hoisted_122 = {
|
|
1854
|
+
key: 1,
|
|
1855
|
+
class: "add-field-item"
|
|
1856
|
+
};
|
|
1857
|
+
const _hoisted_123 = { class: "add-field-input" };
|
|
1858
|
+
const _hoisted_124 = { class: "add-field-item" };
|
|
1859
|
+
const _hoisted_125 = { class: "add-field-input" };
|
|
1860
|
+
const _hoisted_126 = { class: "add-field-item" };
|
|
1861
|
+
const _hoisted_127 = { class: "add-field-input" };
|
|
1862
|
+
const _hoisted_128 = { class: "add-field-item" };
|
|
1863
|
+
const _hoisted_129 = { class: "add-field-input" };
|
|
1864
|
+
const _hoisted_130 = { class: "dialog-footer" };
|
|
1865
|
+
const _hoisted_131 = { class: "custom-dialog__content" };
|
|
1866
|
+
const _hoisted_132 = { class: "add-field-item" };
|
|
1867
|
+
const _hoisted_133 = { class: "add-field-input" };
|
|
1868
|
+
const _hoisted_134 = { class: "add-field-item" };
|
|
1869
|
+
const _hoisted_135 = { class: "add-field-input" };
|
|
1870
|
+
const _hoisted_136 = { class: "add-field-item" };
|
|
1871
|
+
const _hoisted_137 = { class: "add-field-input" };
|
|
1872
|
+
const _hoisted_138 = { class: "add-field-item" };
|
|
1873
|
+
const _hoisted_139 = { class: "add-field-input" };
|
|
1874
|
+
const _hoisted_140 = { class: "add-field-item" };
|
|
1875
|
+
const _hoisted_141 = { class: "add-field-input" };
|
|
1876
|
+
const _hoisted_142 = { class: "add-field-item" };
|
|
1877
|
+
const _hoisted_143 = { class: "add-field-input" };
|
|
1878
|
+
const _hoisted_144 = { class: "add-field-item" };
|
|
1879
|
+
const _hoisted_145 = { class: "add-field-input" };
|
|
1880
|
+
const _hoisted_146 = {
|
|
1881
|
+
key: 1,
|
|
1882
|
+
class: "add-field-item"
|
|
1883
|
+
};
|
|
1884
|
+
const _hoisted_147 = { class: "add-field-input" };
|
|
1885
|
+
const _hoisted_148 = { class: "add-field-item" };
|
|
1886
|
+
const _hoisted_149 = { class: "add-field-input" };
|
|
1887
|
+
const _hoisted_150 = { class: "add-field-item" };
|
|
1888
|
+
const _hoisted_151 = { class: "add-field-input" };
|
|
1889
|
+
const _hoisted_152 = { class: "add-field-item" };
|
|
1890
|
+
const _hoisted_153 = { class: "add-field-input" };
|
|
1891
|
+
const _hoisted_154 = {
|
|
1892
|
+
key: 3,
|
|
1893
|
+
class: "add-field-item"
|
|
1894
|
+
};
|
|
1895
|
+
const _hoisted_155 = { class: "add-field-input" };
|
|
1896
|
+
const _hoisted_156 = { class: "dialog-footer" };
|
|
1897
|
+
const _hoisted_157 = { class: "custom-dialog__content" };
|
|
1898
|
+
const _hoisted_158 = { class: "add-field-item" };
|
|
1899
|
+
const _hoisted_159 = { class: "add-field-input" };
|
|
1900
|
+
const _hoisted_160 = { class: "add-field-item" };
|
|
1901
|
+
const _hoisted_161 = { class: "add-field-input" };
|
|
1902
|
+
const _hoisted_162 = { class: "report-stat__operate" };
|
|
1903
|
+
const _hoisted_163 = { class: "add-field-item" };
|
|
1904
|
+
const _hoisted_164 = { class: "add-field-input" };
|
|
1905
|
+
const _hoisted_165 = { class: "dialog-footer" };
|
|
1906
|
+
const _hoisted_166 = {
|
|
1907
|
+
key: 0,
|
|
1908
|
+
class: "custom-dialog__content"
|
|
1909
|
+
};
|
|
1910
|
+
const _hoisted_167 = {
|
|
1911
|
+
key: 0,
|
|
1912
|
+
class: "add-field-item"
|
|
1913
|
+
};
|
|
1914
|
+
const _hoisted_168 = { class: "add-field-input" };
|
|
1915
|
+
const _hoisted_169 = {
|
|
1916
|
+
key: 1,
|
|
1917
|
+
class: "add-field-item"
|
|
1918
|
+
};
|
|
1919
|
+
const _hoisted_170 = { class: "add-field-input" };
|
|
1920
|
+
const _hoisted_171 = { class: "add-field-item" };
|
|
1921
|
+
const _hoisted_172 = { class: "add-field-input" };
|
|
1922
|
+
const _hoisted_173 = { class: "add-field-item" };
|
|
1923
|
+
const _hoisted_174 = { class: "add-field-input" };
|
|
1924
|
+
const _hoisted_175 = { class: "add-field-item" };
|
|
1925
|
+
const _hoisted_176 = { class: "add-field-input" };
|
|
1926
|
+
const _hoisted_177 = { class: "add-field-item" };
|
|
1927
|
+
const _hoisted_178 = { class: "add-field-input" };
|
|
1928
|
+
const _hoisted_179 = { class: "add-field-item" };
|
|
1929
|
+
const _hoisted_180 = { class: "add-field-input" };
|
|
1930
|
+
const _hoisted_181 = { class: "add-field-item" };
|
|
1931
|
+
const _hoisted_182 = { class: "add-field-input" };
|
|
1932
|
+
const _hoisted_183 = {
|
|
1933
|
+
key: 0,
|
|
1934
|
+
class: "add-field-item"
|
|
1935
|
+
};
|
|
1936
|
+
const _hoisted_184 = { class: "add-field-input" };
|
|
1937
|
+
const _hoisted_185 = { class: "add-field-item" };
|
|
1938
|
+
const _hoisted_186 = { class: "add-field-input" };
|
|
1939
|
+
const _hoisted_187 = {
|
|
1940
|
+
key: 0,
|
|
1941
|
+
class: "add-field-item"
|
|
1942
|
+
};
|
|
1943
|
+
const _hoisted_188 = { class: "add-field-input" };
|
|
1944
|
+
const _hoisted_189 = {
|
|
1945
|
+
key: 1,
|
|
1946
|
+
class: "add-field-item"
|
|
1947
|
+
};
|
|
1948
|
+
const _hoisted_190 = { class: "add-field-input" };
|
|
1949
|
+
const _hoisted_191 = { class: "add-field-item" };
|
|
1950
|
+
const _hoisted_192 = { class: "add-field-item" };
|
|
1951
|
+
const _hoisted_193 = { class: "add-field-item" };
|
|
1952
|
+
const _hoisted_194 = { class: "add-field-input" };
|
|
1953
|
+
const _hoisted_195 = {
|
|
1954
|
+
key: 1,
|
|
1955
|
+
class: "add-field-item"
|
|
1956
|
+
};
|
|
1957
|
+
const _hoisted_196 = { class: "add-field-input" };
|
|
1958
|
+
const _hoisted_197 = { class: "add-field-item" };
|
|
1959
|
+
const _hoisted_198 = { class: "add-field-input" };
|
|
1960
|
+
const _hoisted_199 = { class: "add-field-item" };
|
|
1961
|
+
const _hoisted_200 = { class: "add-field-input" };
|
|
1962
|
+
const _hoisted_201 = {
|
|
1963
|
+
key: 5,
|
|
1964
|
+
class: "add-field-item"
|
|
1965
|
+
};
|
|
1966
|
+
const _hoisted_202 = { class: "add-field-input" };
|
|
1967
|
+
const _hoisted_203 = { class: "common-field__list" };
|
|
1968
|
+
const _hoisted_204 = { class: "common-field__name" };
|
|
1969
|
+
const _hoisted_205 = ["onClick"];
|
|
1970
|
+
const _hoisted_206 = {
|
|
1971
|
+
key: 6,
|
|
1972
|
+
class: "add-field-item"
|
|
1973
|
+
};
|
|
1974
|
+
const _hoisted_207 = {
|
|
1975
|
+
key: 7,
|
|
1976
|
+
class: "add-field-item"
|
|
1977
|
+
};
|
|
1978
|
+
const _hoisted_208 = { class: "add-field-input" };
|
|
1979
|
+
const _hoisted_209 = {
|
|
1980
|
+
key: 8,
|
|
1981
|
+
class: "add-field-item"
|
|
1982
|
+
};
|
|
1983
|
+
const _hoisted_210 = { class: "add-field-item" };
|
|
1984
|
+
const _hoisted_211 = { class: "add-field-input" };
|
|
1985
|
+
const _hoisted_212 = { class: "add-field-item" };
|
|
1986
|
+
const _hoisted_213 = { class: "add-field-input" };
|
|
1987
|
+
const _hoisted_214 = { class: "add-field-item" };
|
|
1988
|
+
const _hoisted_215 = { class: "add-field-input" };
|
|
1989
|
+
const _hoisted_216 = { class: "add-field-item" };
|
|
1990
|
+
const _hoisted_217 = { class: "add-field-input" };
|
|
1991
|
+
const _hoisted_218 = { class: "add-field-item" };
|
|
1992
|
+
const _hoisted_219 = { class: "add-field-input" };
|
|
1993
|
+
const _hoisted_220 = { class: "add-field-item" };
|
|
1994
|
+
const _hoisted_221 = { class: "add-field-input" };
|
|
1995
|
+
const _hoisted_222 = { class: "add-field-item" };
|
|
1996
|
+
const _hoisted_223 = { class: "add-field-input" };
|
|
1997
|
+
const _hoisted_224 = {
|
|
1998
|
+
key: 1,
|
|
1999
|
+
class: "add-field-item"
|
|
2000
|
+
};
|
|
2001
|
+
const _hoisted_225 = { class: "add-field-input" };
|
|
2002
|
+
const _hoisted_226 = { class: "add-field-item" };
|
|
2003
|
+
const _hoisted_227 = { class: "add-field-input" };
|
|
2004
|
+
const _hoisted_228 = { class: "add-field-item" };
|
|
2005
|
+
const _hoisted_229 = { class: "add-field-input" };
|
|
2006
|
+
const _hoisted_230 = { class: "add-field-item" };
|
|
2007
|
+
const _hoisted_231 = { class: "add-field-input" };
|
|
2008
|
+
const _hoisted_232 = { class: "dialog-footer" };
|
|
2009
|
+
const _hoisted_233 = { class: "custom-dialog__content" };
|
|
2010
|
+
const _hoisted_234 = {
|
|
2011
|
+
key: 0,
|
|
2012
|
+
class: "add-field-item"
|
|
2013
|
+
};
|
|
2014
|
+
const _hoisted_235 = { class: "add-field-input" };
|
|
2015
|
+
const _hoisted_236 = { class: "add-field-item" };
|
|
2016
|
+
const _hoisted_237 = { class: "add-field-input" };
|
|
2017
|
+
const _hoisted_238 = { class: "add-field-item" };
|
|
2018
|
+
const _hoisted_239 = { class: "add-field-input" };
|
|
2019
|
+
const _hoisted_240 = { class: "add-field-item" };
|
|
2020
|
+
const _hoisted_241 = { class: "add-field-input" };
|
|
2021
|
+
const _hoisted_242 = { class: "add-field-item" };
|
|
2022
|
+
const _hoisted_243 = { class: "add-field-input" };
|
|
2023
|
+
const _hoisted_244 = { class: "add-field-item" };
|
|
2024
|
+
const _hoisted_245 = { class: "add-field-input" };
|
|
2025
|
+
const _hoisted_246 = { class: "add-field-item" };
|
|
2026
|
+
const _hoisted_247 = { class: "add-field-input" };
|
|
2027
|
+
const _hoisted_248 = {
|
|
2028
|
+
key: 1,
|
|
2029
|
+
class: "add-field-item"
|
|
2030
|
+
};
|
|
2031
|
+
const _hoisted_249 = { class: "add-field-input" };
|
|
2032
|
+
const _hoisted_250 = { class: "add-field-item" };
|
|
2033
|
+
const _hoisted_251 = { class: "add-field-input" };
|
|
2034
|
+
const _hoisted_252 = { class: "add-field-item" };
|
|
2035
|
+
const _hoisted_253 = { class: "add-field-input" };
|
|
2036
|
+
const _hoisted_254 = { class: "add-field-item" };
|
|
2037
|
+
const _hoisted_255 = { class: "add-field-input" };
|
|
2038
|
+
const _hoisted_256 = {
|
|
2039
|
+
key: 3,
|
|
2040
|
+
class: "add-field-item"
|
|
2041
|
+
};
|
|
2042
|
+
const _hoisted_257 = { class: "add-field-input" };
|
|
2043
|
+
const _hoisted_258 = { class: "dialog-footer" };
|
|
2044
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2045
|
+
const _component_el_input = resolveComponent("el-input");
|
|
2046
|
+
const _component_el_button = resolveComponent("el-button");
|
|
2047
|
+
const _component_el_popover = resolveComponent("el-popover");
|
|
2048
|
+
const _component_epx_scope_drawer = resolveComponent("epx-scope-drawer");
|
|
2049
|
+
const _component_el_button_group = resolveComponent("el-button-group");
|
|
2050
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
2051
|
+
const _component_el_popconfirm = resolveComponent("el-popconfirm");
|
|
2052
|
+
const _component_draggable = resolveComponent("draggable");
|
|
2053
|
+
const _component_epx_report_stat_list = resolveComponent("epx-report-stat-list");
|
|
2054
|
+
const _component_epx_report_config = resolveComponent("epx-report-config");
|
|
2055
|
+
const _component_epx_page = resolveComponent("epx-page");
|
|
2056
|
+
const _component_epx_table_form = resolveComponent("epx-table-form");
|
|
2057
|
+
const _component_el_drawer = resolveComponent("el-drawer");
|
|
2058
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
2059
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
2060
|
+
const _component_epx_radio = resolveComponent("epx-radio");
|
|
2061
|
+
const _component_el_option = resolveComponent("el-option");
|
|
2062
|
+
const _component_el_select = resolveComponent("el-select");
|
|
2063
|
+
const _component_epx_form_scope = resolveComponent("epx-form-scope");
|
|
2064
|
+
const _component_el_tree = resolveComponent("el-tree");
|
|
2065
|
+
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
2066
|
+
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
2067
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
2068
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
2069
|
+
const _component_epx_select = resolveComponent("epx-select");
|
|
2070
|
+
const _component_epx_rule = resolveComponent("epx-rule");
|
|
2071
|
+
const _component_el_tabs = resolveComponent("el-tabs");
|
|
2072
|
+
const _component_epx_table_form_item = resolveComponent("epx-table-form-item");
|
|
2073
|
+
return openBlock(), createElementBlock("div", {
|
|
2074
|
+
class: "container",
|
|
2075
|
+
ref: "container",
|
|
2076
|
+
style: normalizeStyle(_ctx.$component.style)
|
|
2077
|
+
}, [
|
|
2078
|
+
createElementVNode("div", _hoisted_1, [
|
|
2079
|
+
createElementVNode("div", _hoisted_2, [
|
|
2080
|
+
createElementVNode("i", {
|
|
2081
|
+
class: "report-back el-icon-arrow-left",
|
|
2082
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.backPage && _ctx.backPage(...args))
|
|
2083
|
+
}),
|
|
2084
|
+
createElementVNode("span", _hoisted_3, [
|
|
2085
|
+
!$data.editName ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString($data.reportInfo.NAME), 1)) : (openBlock(), createBlock(_component_el_input, {
|
|
2086
|
+
key: 1,
|
|
2087
|
+
modelValue: $data.reportInfo.NAME,
|
|
2088
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.reportInfo.NAME = $event),
|
|
2089
|
+
size: "small",
|
|
2090
|
+
onChange: $options.setReportName
|
|
2091
|
+
}, null, 8, ["modelValue", "onChange"])),
|
|
2092
|
+
!$data.editName ? (openBlock(), createElementBlock("i", {
|
|
2093
|
+
key: 2,
|
|
2094
|
+
class: "el-icon-edit-outline",
|
|
2095
|
+
onClick: _cache[2] || (_cache[2] = ($event) => $data.editName = !$data.editName)
|
|
2096
|
+
})) : (openBlock(), createElementBlock("i", {
|
|
2097
|
+
key: 3,
|
|
2098
|
+
class: "el-icon-circle-check",
|
|
2099
|
+
onClick: _cache[3] || (_cache[3] = (...args) => $options.setReportName && $options.setReportName(...args))
|
|
2100
|
+
}))
|
|
2101
|
+
])
|
|
2102
|
+
]),
|
|
2103
|
+
createElementVNode("div", _hoisted_5, [
|
|
2104
|
+
createVNode(_component_el_button, {
|
|
2105
|
+
type: "primary",
|
|
2106
|
+
link: "",
|
|
2107
|
+
onClick: _cache[4] || (_cache[4] = ($event) => $data.globalSetting = true)
|
|
2108
|
+
}, {
|
|
2109
|
+
default: withCtx(() => [..._cache[141] || (_cache[141] = [
|
|
2110
|
+
createTextVNode("全局设置", -1)
|
|
2111
|
+
])]),
|
|
2112
|
+
_: 1
|
|
2113
|
+
}),
|
|
2114
|
+
createVNode(_component_el_button, {
|
|
2115
|
+
size: "default",
|
|
2116
|
+
onClick: $options.exportReport,
|
|
2117
|
+
loading: $data.exportLoading
|
|
2118
|
+
}, {
|
|
2119
|
+
default: withCtx(() => [
|
|
2120
|
+
createTextVNode(toDisplayString($data.exportLoading ? "正在导出,请稍后..." : "导出"), 1)
|
|
2121
|
+
]),
|
|
2122
|
+
_: 1
|
|
2123
|
+
}, 8, ["onClick", "loading"]),
|
|
2124
|
+
createVNode(_component_el_button, {
|
|
2125
|
+
size: "default",
|
|
2126
|
+
type: "primary",
|
|
2127
|
+
onClick: _cache[5] || (_cache[5] = ($event) => $data.previewChart = !$data.previewChart)
|
|
2128
|
+
}, {
|
|
2129
|
+
default: withCtx(() => [..._cache[142] || (_cache[142] = [
|
|
2130
|
+
createTextVNode("预览", -1)
|
|
2131
|
+
])]),
|
|
2132
|
+
_: 1
|
|
2133
|
+
})
|
|
2134
|
+
])
|
|
2135
|
+
]),
|
|
2136
|
+
createElementVNode("div", _hoisted_6, [
|
|
2137
|
+
createElementVNode("span", _hoisted_7, " 统计对象:" + toDisplayString($data.reportInfo["OBJECT#"]), 1),
|
|
2138
|
+
$data.reportInfo["OBJECT_VIEW#"] ? (openBlock(), createElementBlock("span", _hoisted_8, " 统计对象视图:" + toDisplayString($data.reportInfo["OBJECT_VIEW#"]), 1)) : createCommentVNode("", true),
|
|
2139
|
+
createElementVNode("span", _hoisted_9, [
|
|
2140
|
+
_cache[143] || (_cache[143] = createTextVNode(" 报表类型: ", -1)),
|
|
2141
|
+
createVNode(_component_el_popover, {
|
|
2142
|
+
placement: "top-start",
|
|
2143
|
+
title: "",
|
|
2144
|
+
width: "280",
|
|
2145
|
+
trigger: "click"
|
|
2146
|
+
}, {
|
|
2147
|
+
reference: withCtx(() => [
|
|
2148
|
+
createVNode(_component_el_input, {
|
|
2149
|
+
class: "reprot-bar__type",
|
|
2150
|
+
"prefix-icon": "el-icon-date",
|
|
2151
|
+
"suffix-icon": "el-icon-arrow-down",
|
|
2152
|
+
size: "small",
|
|
2153
|
+
"model-value": $data.reportInfo.TYPE === "1" ? "统计表" : $data.reportInfo["CHART_TYPE#"],
|
|
2154
|
+
readonly: ""
|
|
2155
|
+
}, null, 8, ["model-value"])
|
|
2156
|
+
]),
|
|
2157
|
+
default: withCtx(() => [
|
|
2158
|
+
createElementVNode("ul", _hoisted_10, [
|
|
2159
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.reportTypeList, (reportType) => {
|
|
2160
|
+
return openBlock(), createElementBlock("li", {
|
|
2161
|
+
class: normalizeClass({ "report-type__item": true, active: $data.reportInfo.TYPE === reportType.type && $data.reportInfo.CHART_TYPE === reportType.chartType }),
|
|
2162
|
+
key: reportType.chartType,
|
|
2163
|
+
onClick: ($event) => $options.setReportType(reportType)
|
|
2164
|
+
}, [
|
|
2165
|
+
createElementVNode("i", {
|
|
2166
|
+
class: normalizeClass(reportType.icon)
|
|
2167
|
+
}, null, 2),
|
|
2168
|
+
createElementVNode("span", null, toDisplayString(reportType.text), 1)
|
|
2169
|
+
], 10, _hoisted_11);
|
|
2170
|
+
}), 128))
|
|
2171
|
+
])
|
|
2172
|
+
]),
|
|
2173
|
+
_: 1
|
|
2174
|
+
})
|
|
2175
|
+
]),
|
|
2176
|
+
createElementVNode("span", _hoisted_12, [
|
|
2177
|
+
_cache[145] || (_cache[145] = createTextVNode(" 统计范围: ", -1)),
|
|
2178
|
+
createElementVNode("span", {
|
|
2179
|
+
class: "report-scope__text",
|
|
2180
|
+
title: $options.scopeText
|
|
2181
|
+
}, toDisplayString($options.scopeText), 9, _hoisted_13),
|
|
2182
|
+
createVNode(_component_el_button, {
|
|
2183
|
+
type: "primary",
|
|
2184
|
+
link: "",
|
|
2185
|
+
onClick: _cache[6] || (_cache[6] = ($event) => $data.filterDrawer = !$data.filterDrawer)
|
|
2186
|
+
}, {
|
|
2187
|
+
default: withCtx(() => [..._cache[144] || (_cache[144] = [
|
|
2188
|
+
createTextVNode("设置", -1)
|
|
2189
|
+
])]),
|
|
2190
|
+
_: 1
|
|
2191
|
+
}),
|
|
2192
|
+
createVNode(_component_epx_scope_drawer, {
|
|
2193
|
+
visible: $data.filterDrawer,
|
|
2194
|
+
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.filterDrawer = $event),
|
|
2195
|
+
modelValue: $options.scopeParams,
|
|
2196
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $options.scopeParams = $event),
|
|
2197
|
+
ref: "filterDrawer",
|
|
2198
|
+
modeType: ["FIXED_VALUE", "SYSTEM_VARIABLE", "DYNAMIC_VALUE", "DEFINED"],
|
|
2199
|
+
metaId: $data.reportInfo.OBJECT
|
|
2200
|
+
}, null, 8, ["visible", "modelValue", "metaId"])
|
|
2201
|
+
])
|
|
2202
|
+
]),
|
|
2203
|
+
createElementVNode("div", _hoisted_14, [
|
|
2204
|
+
createElementVNode("div", _hoisted_15, [
|
|
2205
|
+
withDirectives(createElementVNode("i", {
|
|
2206
|
+
class: "report-left__foldicon el-icon-s-unfold",
|
|
2207
|
+
onClick: _cache[9] || (_cache[9] = ($event) => $data.foldFieldContainer = false)
|
|
2208
|
+
}, null, 512), [
|
|
2209
|
+
[vShow, $data.foldFieldContainer]
|
|
2210
|
+
]),
|
|
2211
|
+
createElementVNode("div", {
|
|
2212
|
+
class: normalizeClass(["report-left__inner", { "report-left__inner--fold": $data.foldFieldContainer }])
|
|
2213
|
+
}, [
|
|
2214
|
+
$data.reportInfo.CHART_TYPE !== "scatter" ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
2215
|
+
createElementVNode("div", _hoisted_17, [
|
|
2216
|
+
_cache[146] || (_cache[146] = createElementVNode("span", null, "字段", -1)),
|
|
2217
|
+
createElementVNode("i", {
|
|
2218
|
+
class: "report-left__foldicon el-icon-s-fold",
|
|
2219
|
+
onClick: _cache[10] || (_cache[10] = ($event) => $data.foldFieldContainer = true)
|
|
2220
|
+
})
|
|
2221
|
+
]),
|
|
2222
|
+
createElementVNode("div", _hoisted_18, [
|
|
2223
|
+
createVNode(_component_el_button_group, { class: "field-tab" }, {
|
|
2224
|
+
default: withCtx(() => [
|
|
2225
|
+
createVNode(_component_el_button, {
|
|
2226
|
+
type: $data.showFieldType === "entity" ? "primary" : "default",
|
|
2227
|
+
size: "small",
|
|
2228
|
+
onClick: _cache[11] || (_cache[11] = ($event) => $data.showFieldType = "entity")
|
|
2229
|
+
}, {
|
|
2230
|
+
default: withCtx(() => [..._cache[147] || (_cache[147] = [
|
|
2231
|
+
createTextVNode("对象字段", -1)
|
|
2232
|
+
])]),
|
|
2233
|
+
_: 1
|
|
2234
|
+
}, 8, ["type"]),
|
|
2235
|
+
createVNode(_component_el_button, {
|
|
2236
|
+
type: $data.showFieldType === "custom" ? "primary" : "default",
|
|
2237
|
+
size: "small",
|
|
2238
|
+
onClick: _cache[12] || (_cache[12] = ($event) => $data.showFieldType = "custom")
|
|
2239
|
+
}, {
|
|
2240
|
+
default: withCtx(() => [..._cache[148] || (_cache[148] = [
|
|
2241
|
+
createTextVNode("自定义字段", -1)
|
|
2242
|
+
])]),
|
|
2243
|
+
_: 1
|
|
2244
|
+
}, 8, ["type"])
|
|
2245
|
+
]),
|
|
2246
|
+
_: 1
|
|
2247
|
+
}),
|
|
2248
|
+
$data.showFieldType === "entity" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2249
|
+
$data.reportStatisFields.entityFields ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
2250
|
+
createElementVNode("div", _hoisted_20, [
|
|
2251
|
+
createElementVNode("div", _hoisted_21, [
|
|
2252
|
+
createVNode(_component_el_input, {
|
|
2253
|
+
modelValue: $data.searchEntityFieldText,
|
|
2254
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.searchEntityFieldText = $event),
|
|
2255
|
+
size: "default",
|
|
2256
|
+
placeholder: "请输入"
|
|
2257
|
+
}, null, 8, ["modelValue"])
|
|
2258
|
+
]),
|
|
2259
|
+
createElementVNode("ul", _hoisted_22, [
|
|
2260
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.showEntityFields, (field) => {
|
|
2261
|
+
return openBlock(), createElementBlock("li", {
|
|
2262
|
+
class: normalizeClass(["report-field__item", { "report-field__item--meta": field.type === "meta", "report-field__item--sub": field.relationType === "1" }]),
|
|
2263
|
+
key: field.id,
|
|
2264
|
+
onDragstart: ($event) => $options.dragstart(field),
|
|
2265
|
+
draggable: field.type !== "meta" ? "true" : "false"
|
|
2266
|
+
}, [
|
|
2267
|
+
createElementVNode("p", _hoisted_24, [
|
|
2268
|
+
field.children && field.children.length > 0 ? (openBlock(), createElementBlock("i", {
|
|
2269
|
+
key: 0,
|
|
2270
|
+
class: normalizeClass(["report-field__foldicon", { "report-field__foldicon--open": $data.openField[field.code] }, "el-icon-caret-right"]),
|
|
2271
|
+
onClick: ($event) => $data.openField[field.code] = !$data.openField[field.code]
|
|
2272
|
+
}, null, 10, _hoisted_25)) : createCommentVNode("", true),
|
|
2273
|
+
createElementVNode("span", {
|
|
2274
|
+
title: field.text
|
|
2275
|
+
}, toDisplayString(field.text), 9, _hoisted_26),
|
|
2276
|
+
_cache[149] || (_cache[149] = createElementVNode("i", { class: "report-field__handler el-icon-rank" }, null, -1))
|
|
2277
|
+
]),
|
|
2278
|
+
field.children && field.children.length > 0 ? withDirectives((openBlock(), createElementBlock("ul", _hoisted_27, [
|
|
2279
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(field.children, (child) => {
|
|
2280
|
+
return openBlock(), createElementBlock("li", {
|
|
2281
|
+
class: "report-field__item report-field__subitem",
|
|
2282
|
+
key: child.id,
|
|
2283
|
+
onDragstart: withModifiers(($event) => $options.dragstart(child), ["stop"]),
|
|
2284
|
+
draggable: child.type !== "meta" ? "true" : "false"
|
|
2285
|
+
}, [
|
|
2286
|
+
createElementVNode("p", _hoisted_29, [
|
|
2287
|
+
child.children && child.children.length > 0 ? (openBlock(), createElementBlock("i", {
|
|
2288
|
+
key: 0,
|
|
2289
|
+
class: normalizeClass(["report-field__foldicon", { "report-field__foldicon--open": $data.openField[child.code] }, "el-icon-caret-right"]),
|
|
2290
|
+
onClick: ($event) => $data.openField[child.code] = !$data.openField[child.code]
|
|
2291
|
+
}, null, 10, _hoisted_30)) : createCommentVNode("", true),
|
|
2292
|
+
createElementVNode("span", {
|
|
2293
|
+
title: child.text
|
|
2294
|
+
}, toDisplayString(child.text), 9, _hoisted_31),
|
|
2295
|
+
_cache[150] || (_cache[150] = createElementVNode("i", { class: "report-field__handler el-icon-rank" }, null, -1))
|
|
2296
|
+
]),
|
|
2297
|
+
child.children && child.children.length > 0 ? withDirectives((openBlock(), createElementBlock("ul", _hoisted_32, [
|
|
2298
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(child.children, (child2) => {
|
|
2299
|
+
return openBlock(), createElementBlock("li", {
|
|
2300
|
+
class: "report-field__item report-field__subitem",
|
|
2301
|
+
key: child2.id,
|
|
2302
|
+
onDragstart: withModifiers(($event) => $options.dragstart(child2), ["stop"]),
|
|
2303
|
+
draggable: child2.type !== "meta" ? "true" : "false"
|
|
2304
|
+
}, [
|
|
2305
|
+
createElementVNode("p", _hoisted_34, [
|
|
2306
|
+
createElementVNode("span", {
|
|
2307
|
+
title: child2.text
|
|
2308
|
+
}, toDisplayString(child2.text), 9, _hoisted_35),
|
|
2309
|
+
_cache[151] || (_cache[151] = createElementVNode("i", { class: "report-field__handler el-icon-rank" }, null, -1))
|
|
2310
|
+
])
|
|
2311
|
+
], 40, _hoisted_33);
|
|
2312
|
+
}), 128))
|
|
2313
|
+
], 512)), [
|
|
2314
|
+
[vShow, $data.openField[child.code]]
|
|
2315
|
+
]) : createCommentVNode("", true)
|
|
2316
|
+
], 40, _hoisted_28);
|
|
2317
|
+
}), 128))
|
|
2318
|
+
], 512)), [
|
|
2319
|
+
[vShow, $data.openField[field.code]]
|
|
2320
|
+
]) : createCommentVNode("", true)
|
|
2321
|
+
], 42, _hoisted_23);
|
|
2322
|
+
}), 128))
|
|
2323
|
+
]),
|
|
2324
|
+
createElementVNode("div", _hoisted_36, [
|
|
2325
|
+
createVNode(_component_el_checkbox, {
|
|
2326
|
+
modelValue: $data.showLogField,
|
|
2327
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.showLogField = $event)
|
|
2328
|
+
}, {
|
|
2329
|
+
default: withCtx(() => [..._cache[152] || (_cache[152] = [
|
|
2330
|
+
createTextVNode("日志字段", -1)
|
|
2331
|
+
])]),
|
|
2332
|
+
_: 1
|
|
2333
|
+
}, 8, ["modelValue"]),
|
|
2334
|
+
createVNode(_component_el_checkbox, {
|
|
2335
|
+
modelValue: $data.showSubField,
|
|
2336
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.showSubField = $event)
|
|
2337
|
+
}, {
|
|
2338
|
+
default: withCtx(() => [..._cache[153] || (_cache[153] = [
|
|
2339
|
+
createTextVNode("子集字段", -1)
|
|
2340
|
+
])]),
|
|
2341
|
+
_: 1
|
|
2342
|
+
}, 8, ["modelValue"])
|
|
2343
|
+
])
|
|
2344
|
+
])
|
|
2345
|
+
])) : createCommentVNode("", true)
|
|
2346
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_37, [
|
|
2347
|
+
createElementVNode("ul", _hoisted_38, [
|
|
2348
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.reportStatisFields.customFields, (field) => {
|
|
2349
|
+
return openBlock(), createElementBlock("li", {
|
|
2350
|
+
class: "report-field__item",
|
|
2351
|
+
key: field.id,
|
|
2352
|
+
onDragstart: ($event) => $options.dragstart(field, "custom"),
|
|
2353
|
+
draggable: "true"
|
|
2354
|
+
}, [
|
|
2355
|
+
createElementVNode("p", _hoisted_40, [
|
|
2356
|
+
createElementVNode("span", {
|
|
2357
|
+
title: field.text
|
|
2358
|
+
}, toDisplayString(field.text), 9, _hoisted_41),
|
|
2359
|
+
createElementVNode("span", _hoisted_42, [
|
|
2360
|
+
createVNode(_component_el_button, {
|
|
2361
|
+
type: "primary",
|
|
2362
|
+
link: "",
|
|
2363
|
+
icon: "el-icon-edit",
|
|
2364
|
+
onClick: ($event) => $options.editCustomField(field)
|
|
2365
|
+
}, null, 8, ["onClick"]),
|
|
2366
|
+
createVNode(_component_el_popconfirm, {
|
|
2367
|
+
title: "确认删除?",
|
|
2368
|
+
onConfirm: ($event) => $options.deleteCustomField(field)
|
|
2369
|
+
}, {
|
|
2370
|
+
reference: withCtx(() => [
|
|
2371
|
+
createVNode(_component_el_button, {
|
|
2372
|
+
class: "delete-icon",
|
|
2373
|
+
type: "primary",
|
|
2374
|
+
link: "",
|
|
2375
|
+
icon: "el-icon-delete"
|
|
2376
|
+
})
|
|
2377
|
+
]),
|
|
2378
|
+
_: 1
|
|
2379
|
+
}, 8, ["onConfirm"])
|
|
2380
|
+
])
|
|
2381
|
+
])
|
|
2382
|
+
], 40, _hoisted_39);
|
|
2383
|
+
}), 128))
|
|
2384
|
+
]),
|
|
2385
|
+
createElementVNode("div", _hoisted_43, [
|
|
2386
|
+
createVNode(_component_el_button, {
|
|
2387
|
+
type: "primary",
|
|
2388
|
+
link: "",
|
|
2389
|
+
onClick: _cache[16] || (_cache[16] = ($event) => {
|
|
2390
|
+
$data.addFieldDialog = true;
|
|
2391
|
+
$data.addFieldForm = {};
|
|
2392
|
+
})
|
|
2393
|
+
}, {
|
|
2394
|
+
default: withCtx(() => [..._cache[154] || (_cache[154] = [
|
|
2395
|
+
createTextVNode("添加自定义字段", -1)
|
|
2396
|
+
])]),
|
|
2397
|
+
_: 1
|
|
2398
|
+
})
|
|
2399
|
+
])
|
|
2400
|
+
]))
|
|
2401
|
+
])
|
|
2402
|
+
])) : createCommentVNode("", true),
|
|
2403
|
+
createElementVNode("div", {
|
|
2404
|
+
class: normalizeClass(["report-index", { "is-only": $data.reportInfo.CHART_TYPE === "scatter" }])
|
|
2405
|
+
}, [
|
|
2406
|
+
createElementVNode("div", _hoisted_44, [
|
|
2407
|
+
_cache[155] || (_cache[155] = createElementVNode("span", null, "指标", -1)),
|
|
2408
|
+
$data.reportInfo.CHART_TYPE === "scatter" ? (openBlock(), createElementBlock("i", {
|
|
2409
|
+
key: 0,
|
|
2410
|
+
class: "report-left__foldicon el-icon-s-fold",
|
|
2411
|
+
onClick: _cache[17] || (_cache[17] = ($event) => $data.foldFieldContainer = true)
|
|
2412
|
+
})) : createCommentVNode("", true)
|
|
2413
|
+
]),
|
|
2414
|
+
createElementVNode("div", _hoisted_45, [
|
|
2415
|
+
$data.reportStatisFields.statisIndexFields ? (openBlock(), createBlock(_component_draggable, {
|
|
2416
|
+
key: 0,
|
|
2417
|
+
tag: "ul",
|
|
2418
|
+
class: "report-field__list",
|
|
2419
|
+
list: $data.reportStatisFields.statisIndexFields,
|
|
2420
|
+
sort: false,
|
|
2421
|
+
group: { name: "stat", pull: "clone", put: false },
|
|
2422
|
+
clone: (el) => $options.cloneField(el, "1"),
|
|
2423
|
+
filter: ".report-field__item--meta"
|
|
2424
|
+
}, {
|
|
2425
|
+
default: withCtx(() => [
|
|
2426
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.reportStatisFields.statisIndexFields, (field) => {
|
|
2427
|
+
return openBlock(), createElementBlock("li", {
|
|
2428
|
+
class: normalizeClass(["report-field__item", { "report-field__item--meta": field.type === "meta", "report-field__item--sub": field.relationType === "1" }]),
|
|
2429
|
+
key: field.id
|
|
2430
|
+
}, [
|
|
2431
|
+
createElementVNode("p", _hoisted_46, [
|
|
2432
|
+
field.children && field.children.length > 0 ? (openBlock(), createElementBlock("i", {
|
|
2433
|
+
key: 0,
|
|
2434
|
+
class: normalizeClass(["report-field__foldicon", { "report-field__foldicon--open": $data.openField["index-" + field.code] }, "el-icon-caret-right"]),
|
|
2435
|
+
onClick: ($event) => $data.openField["index-" + field.code] = !$data.openField["index-" + field.code]
|
|
2436
|
+
}, null, 10, _hoisted_47)) : createCommentVNode("", true),
|
|
2437
|
+
createElementVNode("span", {
|
|
2438
|
+
title: field.text
|
|
2439
|
+
}, toDisplayString(field.text), 9, _hoisted_48),
|
|
2440
|
+
_cache[156] || (_cache[156] = createElementVNode("i", { class: "report-field__handler el-icon-rank" }, null, -1))
|
|
2441
|
+
]),
|
|
2442
|
+
withDirectives(createVNode(_component_draggable, {
|
|
2443
|
+
tag: "ul",
|
|
2444
|
+
class: "report-field__list",
|
|
2445
|
+
list: field.children,
|
|
2446
|
+
sort: false,
|
|
2447
|
+
group: { name: "stat", pull: "clone", put: false },
|
|
2448
|
+
clone: (el) => $options.cloneField(el, "1"),
|
|
2449
|
+
filter: ".report-field__item--meta"
|
|
2450
|
+
}, {
|
|
2451
|
+
default: withCtx(() => [
|
|
2452
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(field.children, (child) => {
|
|
2453
|
+
return openBlock(), createElementBlock("li", {
|
|
2454
|
+
class: normalizeClass(["report-field__item", "report-field__subitem", { "report-field__item--meta": child.dataType === "object" }]),
|
|
2455
|
+
key: child.id
|
|
2456
|
+
}, [
|
|
2457
|
+
createElementVNode("p", _hoisted_49, [
|
|
2458
|
+
child.children && child.children.length > 0 ? (openBlock(), createElementBlock("i", {
|
|
2459
|
+
key: 0,
|
|
2460
|
+
class: normalizeClass(["report-field__foldicon", { "report-field__foldicon--open": $data.openField["index-" + child.code] }, "el-icon-caret-right"]),
|
|
2461
|
+
onClick: ($event) => $data.openField["index-" + child.code] = !$data.openField["index-" + child.code]
|
|
2462
|
+
}, null, 10, _hoisted_50)) : createCommentVNode("", true),
|
|
2463
|
+
createElementVNode("span", {
|
|
2464
|
+
title: child.text
|
|
2465
|
+
}, toDisplayString(child.text), 9, _hoisted_51),
|
|
2466
|
+
_cache[157] || (_cache[157] = createElementVNode("i", { class: "report-field__handler el-icon-rank" }, null, -1))
|
|
2467
|
+
]),
|
|
2468
|
+
withDirectives(createVNode(_component_draggable, {
|
|
2469
|
+
tag: "ul",
|
|
2470
|
+
class: "report-field__list",
|
|
2471
|
+
list: child.children,
|
|
2472
|
+
sort: false,
|
|
2473
|
+
group: { name: "stat", pull: "clone", put: false },
|
|
2474
|
+
clone: (el) => $options.cloneField(el, "1")
|
|
2475
|
+
}, {
|
|
2476
|
+
default: withCtx(() => [
|
|
2477
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(child.children, (childItem) => {
|
|
2478
|
+
return openBlock(), createElementBlock("li", {
|
|
2479
|
+
class: normalizeClass(["report-field__item", "report-field__subitem"]),
|
|
2480
|
+
key: childItem.id
|
|
2481
|
+
}, [
|
|
2482
|
+
createElementVNode("p", _hoisted_52, [
|
|
2483
|
+
createElementVNode("span", {
|
|
2484
|
+
title: childItem.text
|
|
2485
|
+
}, toDisplayString(childItem.text), 9, _hoisted_53),
|
|
2486
|
+
_cache[158] || (_cache[158] = createElementVNode("i", { class: "report-field__handler el-icon-rank" }, null, -1))
|
|
2487
|
+
])
|
|
2488
|
+
]);
|
|
2489
|
+
}), 128))
|
|
2490
|
+
]),
|
|
2491
|
+
_: 2
|
|
2492
|
+
}, 1032, ["list", "clone"]), [
|
|
2493
|
+
[vShow, $data.openField["index-" + child.code]]
|
|
2494
|
+
])
|
|
2495
|
+
], 2);
|
|
2496
|
+
}), 128))
|
|
2497
|
+
]),
|
|
2498
|
+
_: 2
|
|
2499
|
+
}, 1032, ["list", "clone"]), [
|
|
2500
|
+
[vShow, $data.openField["index-" + field.code]]
|
|
2501
|
+
])
|
|
2502
|
+
], 2);
|
|
2503
|
+
}), 128))
|
|
2504
|
+
]),
|
|
2505
|
+
_: 1
|
|
2506
|
+
}, 8, ["list", "clone"])) : createCommentVNode("", true)
|
|
2507
|
+
])
|
|
2508
|
+
], 2)
|
|
2509
|
+
], 2)
|
|
2510
|
+
]),
|
|
2511
|
+
createElementVNode("div", _hoisted_54, [
|
|
2512
|
+
$data.reportInfo.CHART_TYPE !== "scatter" ? (openBlock(), createElementBlock("div", _hoisted_55, [
|
|
2513
|
+
createElementVNode("div", _hoisted_56, [
|
|
2514
|
+
_cache[160] || (_cache[160] = createElementVNode("span", null, "分类维度", -1)),
|
|
2515
|
+
createVNode(_component_el_button, {
|
|
2516
|
+
type: "primary",
|
|
2517
|
+
link: "",
|
|
2518
|
+
onClick: _cache[18] || (_cache[18] = ($event) => $options.showAddOptionDialog("1"))
|
|
2519
|
+
}, {
|
|
2520
|
+
default: withCtx(() => [..._cache[159] || (_cache[159] = [
|
|
2521
|
+
createTextVNode("+ 添加统计项", -1)
|
|
2522
|
+
])]),
|
|
2523
|
+
_: 1
|
|
2524
|
+
})
|
|
2525
|
+
]),
|
|
2526
|
+
$data.rowList ? (openBlock(), createElementBlock("div", {
|
|
2527
|
+
key: 0,
|
|
2528
|
+
class: "report-stat__content",
|
|
2529
|
+
ref: "rowStat",
|
|
2530
|
+
onDragover: _cache[21] || (_cache[21] = (ev) => $options.allowDrop(ev, "1")),
|
|
2531
|
+
onDrop: _cache[22] || (_cache[22] = (ev) => $options.drop(ev, "1"))
|
|
2532
|
+
}, [
|
|
2533
|
+
createVNode(_component_epx_report_stat_list, {
|
|
2534
|
+
modelValue: $data.rowList,
|
|
2535
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $data.rowList = $event),
|
|
2536
|
+
position: "1",
|
|
2537
|
+
dropType: $data.dropType,
|
|
2538
|
+
reportId: _ctx.$query.id,
|
|
2539
|
+
dropElementId: $data.dropElementId,
|
|
2540
|
+
onChange: $options.refreshData,
|
|
2541
|
+
onDragstart: $options.dragStatItem,
|
|
2542
|
+
onAdd: $options.addStatItem,
|
|
2543
|
+
onEdit: $options.editStatItem,
|
|
2544
|
+
onDelete: $options.deleteStatItem
|
|
2545
|
+
}, null, 8, ["modelValue", "dropType", "reportId", "dropElementId", "onChange", "onDragstart", "onAdd", "onEdit", "onDelete"]),
|
|
2546
|
+
createElementVNode("div", {
|
|
2547
|
+
class: "drop-indicator",
|
|
2548
|
+
onDragover: _cache[20] || (_cache[20] = withModifiers(() => {
|
|
2549
|
+
}, ["stop"])),
|
|
2550
|
+
style: normalizeStyle({ display: $data.dropPosition && $data.dropType === "1" ? "block" : "none", top: $data.dropPosition + "px" })
|
|
2551
|
+
}, null, 36),
|
|
2552
|
+
$data.rowList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_57, [..._cache[161] || (_cache[161] = [
|
|
2553
|
+
createElementVNode("i", { class: "epx-icon-color-kong" }, null, -1),
|
|
2554
|
+
createElementVNode("p", null, "您可以从左侧列表拖拽所需的统计字段, 也可以手动添加统计项", -1)
|
|
2555
|
+
])])) : createCommentVNode("", true)
|
|
2556
|
+
], 544)) : createCommentVNode("", true)
|
|
2557
|
+
])) : createCommentVNode("", true),
|
|
2558
|
+
$data.reportInfo.CHART_TYPE !== "pie" && $data.reportInfo.CHART_TYPE !== "circularPie" && $data.reportInfo.CHART_TYPE !== "funnel" && $data.reportInfo.CHART_TYPE !== "wordcloud" ? (openBlock(), createElementBlock("div", _hoisted_58, [
|
|
2559
|
+
createElementVNode("div", _hoisted_59, [
|
|
2560
|
+
_cache[163] || (_cache[163] = createElementVNode("span", null, "统计维度", -1)),
|
|
2561
|
+
createVNode(_component_el_button, {
|
|
2562
|
+
type: "primary",
|
|
2563
|
+
link: "",
|
|
2564
|
+
onClick: _cache[23] || (_cache[23] = ($event) => $options.showAddOptionDialog("2"))
|
|
2565
|
+
}, {
|
|
2566
|
+
default: withCtx(() => [..._cache[162] || (_cache[162] = [
|
|
2567
|
+
createTextVNode("+ 添加统计项", -1)
|
|
2568
|
+
])]),
|
|
2569
|
+
_: 1
|
|
2570
|
+
})
|
|
2571
|
+
]),
|
|
2572
|
+
$data.columnList ? (openBlock(), createElementBlock("div", {
|
|
2573
|
+
key: 0,
|
|
2574
|
+
class: "report-stat__content",
|
|
2575
|
+
ref: "columnStat",
|
|
2576
|
+
onDragover: _cache[25] || (_cache[25] = (e) => $options.allowDrop(e, "2")),
|
|
2577
|
+
onDrop: _cache[26] || (_cache[26] = (e) => $options.drop(e, "2"))
|
|
2578
|
+
}, [
|
|
2579
|
+
createVNode(_component_epx_report_stat_list, {
|
|
2580
|
+
modelValue: $data.columnList,
|
|
2581
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => $data.columnList = $event),
|
|
2582
|
+
dropElementId: $data.dropElementId,
|
|
2583
|
+
position: "2",
|
|
2584
|
+
dropType: $data.dropType,
|
|
2585
|
+
onDragstart: $options.dragStatItem,
|
|
2586
|
+
reportId: _ctx.$query.id,
|
|
2587
|
+
onChange: $options.refreshData,
|
|
2588
|
+
onAdd: $options.addStatItem,
|
|
2589
|
+
onEdit: $options.editStatItem,
|
|
2590
|
+
onDelete: $options.deleteStatItem
|
|
2591
|
+
}, null, 8, ["modelValue", "dropElementId", "dropType", "onDragstart", "reportId", "onChange", "onAdd", "onEdit", "onDelete"]),
|
|
2592
|
+
$data.columnList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_60, [..._cache[164] || (_cache[164] = [
|
|
2593
|
+
createElementVNode("i", { class: "epx-icon-color-kong" }, null, -1),
|
|
2594
|
+
createElementVNode("p", null, "您可以从左侧列表拖拽所需的统计字段, 也可以手动添加统计项", -1)
|
|
2595
|
+
])])) : createCommentVNode("", true),
|
|
2596
|
+
createElementVNode("div", {
|
|
2597
|
+
class: "drop-indicator",
|
|
2598
|
+
style: normalizeStyle({ display: $data.dropPosition && $data.dropType === "2" ? "block" : "none", top: $data.dropPosition + "px" })
|
|
2599
|
+
}, null, 4)
|
|
2600
|
+
], 544)) : createCommentVNode("", true)
|
|
2601
|
+
])) : createCommentVNode("", true),
|
|
2602
|
+
$data.reportInfo.CHART_TYPE !== "scatter" ? (openBlock(), createElementBlock("div", _hoisted_61, [
|
|
2603
|
+
createElementVNode("div", _hoisted_62, [
|
|
2604
|
+
_cache[166] || (_cache[166] = createElementVNode("span", null, "统计指标", -1)),
|
|
2605
|
+
createVNode(_component_el_button, {
|
|
2606
|
+
type: "primary",
|
|
2607
|
+
link: "",
|
|
2608
|
+
onClick: $options.openAddStatIndexDialog
|
|
2609
|
+
}, {
|
|
2610
|
+
default: withCtx(() => [..._cache[165] || (_cache[165] = [
|
|
2611
|
+
createTextVNode("+ 添加指标", -1)
|
|
2612
|
+
])]),
|
|
2613
|
+
_: 1
|
|
2614
|
+
}, 8, ["onClick"])
|
|
2615
|
+
]),
|
|
2616
|
+
createElementVNode("div", _hoisted_63, [
|
|
2617
|
+
createVNode(_component_draggable, {
|
|
2618
|
+
tag: "ul",
|
|
2619
|
+
class: "report-stat__list",
|
|
2620
|
+
list: $data.statisIndexList,
|
|
2621
|
+
group: { name: "stat", pull: false },
|
|
2622
|
+
onChange: $options.changeStatIndex
|
|
2623
|
+
}, {
|
|
2624
|
+
default: withCtx(() => [
|
|
2625
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.statisIndexList, (index) => {
|
|
2626
|
+
return openBlock(), createElementBlock("li", {
|
|
2627
|
+
class: normalizeClass(["report-stat__item"]),
|
|
2628
|
+
key: index.ID
|
|
2629
|
+
}, [
|
|
2630
|
+
createElementVNode("p", _hoisted_64, [
|
|
2631
|
+
createElementVNode("span", {
|
|
2632
|
+
class: "report-stat__text",
|
|
2633
|
+
title: index.NAME || index.INDEX_NAME
|
|
2634
|
+
}, toDisplayString(index.NAME || index.INDEX_NAME), 9, _hoisted_65),
|
|
2635
|
+
createElementVNode("span", _hoisted_66, [
|
|
2636
|
+
createVNode(_component_el_button, {
|
|
2637
|
+
type: "primary",
|
|
2638
|
+
link: "",
|
|
2639
|
+
icon: "el-icon-edit",
|
|
2640
|
+
onClick: ($event) => $options.editStatIndex(index)
|
|
2641
|
+
}, null, 8, ["onClick"]),
|
|
2642
|
+
createVNode(_component_el_popconfirm, {
|
|
2643
|
+
title: "确认删除?",
|
|
2644
|
+
onConfirm: ($event) => $options.deleteStatIndex(index)
|
|
2645
|
+
}, {
|
|
2646
|
+
reference: withCtx(() => [
|
|
2647
|
+
createVNode(_component_el_button, {
|
|
2648
|
+
class: "delete-icon",
|
|
2649
|
+
type: "primary",
|
|
2650
|
+
link: "",
|
|
2651
|
+
icon: "el-icon-delete"
|
|
2652
|
+
})
|
|
2653
|
+
]),
|
|
2654
|
+
_: 1
|
|
2655
|
+
}, 8, ["onConfirm"])
|
|
2656
|
+
])
|
|
2657
|
+
])
|
|
2658
|
+
]);
|
|
2659
|
+
}), 128))
|
|
2660
|
+
]),
|
|
2661
|
+
_: 1
|
|
2662
|
+
}, 8, ["list", "onChange"])
|
|
2663
|
+
])
|
|
2664
|
+
])) : createCommentVNode("", true)
|
|
2665
|
+
]),
|
|
2666
|
+
createElementVNode("div", _hoisted_67, [
|
|
2667
|
+
$data.rowList && $data.columnList && $data.rowList.length === 0 && $data.columnList.length === 0 && $data.statisIndexList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_68, [..._cache[167] || (_cache[167] = [
|
|
2668
|
+
createElementVNode("i", { class: "epx-icon-color-kong" }, null, -1),
|
|
2669
|
+
createElementVNode("span", null, "请先设置统计维度", -1)
|
|
2670
|
+
])])) : $options.chartComponent ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2671
|
+
$data.reportInfo.TYPE === "2" ? (openBlock(), createBlock(_component_epx_report_config, {
|
|
2672
|
+
key: 0,
|
|
2673
|
+
report: $data.reportInfo,
|
|
2674
|
+
onChange: $options.refreshChart
|
|
2675
|
+
}, null, 8, ["report", "onChange"])) : createCommentVNode("", true),
|
|
2676
|
+
$data.showChart ? (openBlock(), createElementBlock("div", _hoisted_69, [
|
|
2677
|
+
createVNode(_component_epx_page, {
|
|
2678
|
+
onRefreshData: $options.refreshData,
|
|
2679
|
+
onUpdate: _cache[27] || (_cache[27] = (v) => _ctx.updateCondition(v)),
|
|
2680
|
+
designMode: true,
|
|
2681
|
+
metaId: "FM_REPORT_BASE",
|
|
2682
|
+
inline: true,
|
|
2683
|
+
component: $options.chartComponent,
|
|
2684
|
+
reportInfo: $data.reportInfo,
|
|
2685
|
+
"init-config": $options.chartConfig
|
|
2686
|
+
}, null, 8, ["onRefreshData", "component", "reportInfo", "init-config"])
|
|
2687
|
+
])) : createCommentVNode("", true)
|
|
2688
|
+
], 64)) : createCommentVNode("", true)
|
|
2689
|
+
])
|
|
2690
|
+
]),
|
|
2691
|
+
createVNode(_component_el_drawer, {
|
|
2692
|
+
title: "全局设置",
|
|
2693
|
+
size: 520,
|
|
2694
|
+
modelValue: $data.globalSetting,
|
|
2695
|
+
"onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => $data.globalSetting = $event),
|
|
2696
|
+
"append-to-body": true,
|
|
2697
|
+
direction: "rtl",
|
|
2698
|
+
"with-header": false
|
|
2699
|
+
}, {
|
|
2700
|
+
default: withCtx(() => [
|
|
2701
|
+
createElementVNode("div", _hoisted_70, [
|
|
2702
|
+
_cache[168] || (_cache[168] = createElementVNode("span", null, "全局设置", -1)),
|
|
2703
|
+
createElementVNode("i", {
|
|
2704
|
+
class: "el-icon-close",
|
|
2705
|
+
onClick: _cache[28] || (_cache[28] = ($event) => $data.globalSetting = false)
|
|
2706
|
+
})
|
|
2707
|
+
]),
|
|
2708
|
+
$data.globalSetting ? (openBlock(), createElementBlock("div", _hoisted_71, [
|
|
2709
|
+
createVNode(_component_epx_table_form, {
|
|
2710
|
+
class: "form-content",
|
|
2711
|
+
ref: "form",
|
|
2712
|
+
metaId: "FM_REPORT_BASE",
|
|
2713
|
+
fieldsConfigs: $data.fieldsConfigs,
|
|
2714
|
+
fieldRelation: $data.fieldRelation,
|
|
2715
|
+
modelValue: $data.formData,
|
|
2716
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => $data.formData = $event),
|
|
2717
|
+
column: 1,
|
|
2718
|
+
"label-align": "left"
|
|
2719
|
+
}, null, 8, ["fieldsConfigs", "fieldRelation", "modelValue"]),
|
|
2720
|
+
createElementVNode("div", _hoisted_72, [
|
|
2721
|
+
createVNode(_component_el_button, {
|
|
2722
|
+
onClick: _cache[30] || (_cache[30] = ($event) => $data.globalSetting = false)
|
|
2723
|
+
}, {
|
|
2724
|
+
default: withCtx(() => [..._cache[169] || (_cache[169] = [
|
|
2725
|
+
createTextVNode("取消", -1)
|
|
2726
|
+
])]),
|
|
2727
|
+
_: 1
|
|
2728
|
+
}),
|
|
2729
|
+
createVNode(_component_el_button, {
|
|
2730
|
+
type: "primary",
|
|
2731
|
+
onClick: $options.updateForm
|
|
2732
|
+
}, {
|
|
2733
|
+
default: withCtx(() => [..._cache[170] || (_cache[170] = [
|
|
2734
|
+
createTextVNode("确定", -1)
|
|
2735
|
+
])]),
|
|
2736
|
+
_: 1
|
|
2737
|
+
}, 8, ["onClick"])
|
|
2738
|
+
])
|
|
2739
|
+
])) : createCommentVNode("", true)
|
|
2740
|
+
]),
|
|
2741
|
+
_: 1
|
|
2742
|
+
}, 8, ["modelValue"]),
|
|
2743
|
+
createVNode(_component_el_dialog, {
|
|
2744
|
+
title: "报表预览",
|
|
2745
|
+
modelValue: $data.previewChart,
|
|
2746
|
+
"onUpdate:modelValue": _cache[33] || (_cache[33] = ($event) => $data.previewChart = $event),
|
|
2747
|
+
"append-to-body": true,
|
|
2748
|
+
width: "80%"
|
|
2749
|
+
}, {
|
|
2750
|
+
default: withCtx(() => [
|
|
2751
|
+
$options.chartComponent && $data.showChart ? (openBlock(), createBlock(_component_epx_page, {
|
|
2752
|
+
key: 0,
|
|
2753
|
+
onRefreshData: $options.refreshData,
|
|
2754
|
+
onUpdate: _cache[32] || (_cache[32] = (v) => _ctx.updateCondition(v)),
|
|
2755
|
+
designMode: true,
|
|
2756
|
+
metaId: _ctx.$metaId,
|
|
2757
|
+
inline: true,
|
|
2758
|
+
component: $options.chartComponent,
|
|
2759
|
+
reportInfo: $data.reportInfo,
|
|
2760
|
+
"init-config": $options.chartConfig
|
|
2761
|
+
}, null, 8, ["onRefreshData", "metaId", "component", "reportInfo", "init-config"])) : createCommentVNode("", true)
|
|
2762
|
+
]),
|
|
2763
|
+
_: 1
|
|
2764
|
+
}, 8, ["modelValue"]),
|
|
2765
|
+
createVNode(_component_el_dialog, {
|
|
2766
|
+
class: "custom-dialog",
|
|
2767
|
+
title: "统计字段设置",
|
|
2768
|
+
modelValue: $data.editEntityFieldDialog,
|
|
2769
|
+
"onUpdate:modelValue": _cache[67] || (_cache[67] = ($event) => $data.editEntityFieldDialog = $event),
|
|
2770
|
+
"append-to-body": true,
|
|
2771
|
+
width: "560px"
|
|
2772
|
+
}, {
|
|
2773
|
+
footer: withCtx(() => [
|
|
2774
|
+
createElementVNode("div", _hoisted_130, [
|
|
2775
|
+
createVNode(_component_el_button, {
|
|
2776
|
+
onClick: withModifiers($options.closeEntityFieldDialog, ["stop"])
|
|
2777
|
+
}, {
|
|
2778
|
+
default: withCtx(() => [..._cache[206] || (_cache[206] = [
|
|
2779
|
+
createTextVNode("取 消", -1)
|
|
2780
|
+
])]),
|
|
2781
|
+
_: 1
|
|
2782
|
+
}, 8, ["onClick"]),
|
|
2783
|
+
createVNode(_component_el_button, {
|
|
2784
|
+
type: "primary",
|
|
2785
|
+
onClick: $options.saveEntityField
|
|
2786
|
+
}, {
|
|
2787
|
+
default: withCtx(() => [..._cache[207] || (_cache[207] = [
|
|
2788
|
+
createTextVNode("保 存", -1)
|
|
2789
|
+
])]),
|
|
2790
|
+
_: 1
|
|
2791
|
+
}, 8, ["onClick"])
|
|
2792
|
+
])
|
|
2793
|
+
]),
|
|
2794
|
+
default: withCtx(() => [
|
|
2795
|
+
$data.editEntityFieldDialog ? (openBlock(), createElementBlock("div", _hoisted_73, [
|
|
2796
|
+
createVNode(_component_el_tabs, {
|
|
2797
|
+
modelValue: $data.statFieldTabs,
|
|
2798
|
+
"onUpdate:modelValue": _cache[66] || (_cache[66] = ($event) => $data.statFieldTabs = $event),
|
|
2799
|
+
class: normalizeClass({ "hide-tabs": $data.editFieldForm.POSITION !== "2" })
|
|
2800
|
+
}, {
|
|
2801
|
+
default: withCtx(() => [
|
|
2802
|
+
createVNode(_component_el_tab_pane, {
|
|
2803
|
+
label: "统计字段",
|
|
2804
|
+
name: "stat"
|
|
2805
|
+
}, {
|
|
2806
|
+
default: withCtx(() => [
|
|
2807
|
+
createElementVNode("div", _hoisted_74, [
|
|
2808
|
+
_cache[172] || (_cache[172] = createElementVNode("label", { for: "" }, "统计字段:", -1)),
|
|
2809
|
+
createElementVNode("div", _hoisted_75, [
|
|
2810
|
+
createElementVNode("span", null, toDisplayString($data.editFieldForm["NAME"]), 1),
|
|
2811
|
+
createVNode(_component_el_popover, {
|
|
2812
|
+
placement: "bottom",
|
|
2813
|
+
width: "330",
|
|
2814
|
+
trigger: "click"
|
|
2815
|
+
}, {
|
|
2816
|
+
reference: withCtx(() => [..._cache[171] || (_cache[171] = [
|
|
2817
|
+
createElementVNode("i", { class: "language-icon epx-icon-diqiu" }, null, -1)
|
|
2818
|
+
])]),
|
|
2819
|
+
default: withCtx(() => [
|
|
2820
|
+
createElementVNode("div", _hoisted_76, [
|
|
2821
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.languageList, (language) => {
|
|
2822
|
+
return openBlock(), createElementBlock("div", {
|
|
2823
|
+
class: "language-item",
|
|
2824
|
+
key: language.id
|
|
2825
|
+
}, [
|
|
2826
|
+
createElementVNode("label", _hoisted_77, toDisplayString(language.name) + ":", 1),
|
|
2827
|
+
createVNode(_component_el_input, {
|
|
2828
|
+
class: "language-item__input",
|
|
2829
|
+
size: "default",
|
|
2830
|
+
"model-value": $data.editFieldForm.NAME_I18N[language.id],
|
|
2831
|
+
"onUpdate:modelValue": (v) => $options.editFieldLanguage(language, v),
|
|
2832
|
+
placeholder: _ctx.$t("please enter")
|
|
2833
|
+
}, null, 8, ["model-value", "onUpdate:modelValue", "placeholder"])
|
|
2834
|
+
]);
|
|
2835
|
+
}), 128))
|
|
2836
|
+
])
|
|
2837
|
+
]),
|
|
2838
|
+
_: 1
|
|
2839
|
+
})
|
|
2840
|
+
])
|
|
2841
|
+
]),
|
|
2842
|
+
$data.reportInfo.TYPE === "1" ? (openBlock(), createElementBlock("div", _hoisted_78, [
|
|
2843
|
+
_cache[173] || (_cache[173] = createElementVNode("label", { for: "" }, "是否合计项:", -1)),
|
|
2844
|
+
createElementVNode("div", _hoisted_79, [
|
|
2845
|
+
createVNode(_component_el_switch, {
|
|
2846
|
+
modelValue: $data.editFieldForm.TOTAL_ITEM_FLAG,
|
|
2847
|
+
"onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => $data.editFieldForm.TOTAL_ITEM_FLAG = $event),
|
|
2848
|
+
"active-value": "1",
|
|
2849
|
+
"inactive-value": "0"
|
|
2850
|
+
}, null, 8, ["modelValue"])
|
|
2851
|
+
])
|
|
2852
|
+
])) : createCommentVNode("", true),
|
|
2853
|
+
$data.reportInfo.TYPE === "1" && $data.editFieldForm.TOTAL_ITEM_FLAG === "1" ? (openBlock(), createElementBlock("div", _hoisted_80, [
|
|
2854
|
+
_cache[174] || (_cache[174] = createElementVNode("label", { for: "" }, "合计项位置:", -1)),
|
|
2855
|
+
createElementVNode("div", _hoisted_81, [
|
|
2856
|
+
createVNode(_component_epx_radio, {
|
|
2857
|
+
modelValue: $data.editFieldForm.TOTAL_ITEM_POSITION,
|
|
2858
|
+
"onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => $data.editFieldForm.TOTAL_ITEM_POSITION = $event),
|
|
2859
|
+
fieldConfigs: { codeKey: "TOTAL_ITEM_POSITION", state: "EDIT" }
|
|
2860
|
+
}, null, 8, ["modelValue"])
|
|
2861
|
+
])
|
|
2862
|
+
])) : createCommentVNode("", true),
|
|
2863
|
+
$data.editFieldForm.POSITION === "2" ? (openBlock(), createElementBlock("div", _hoisted_82, [
|
|
2864
|
+
_cache[175] || (_cache[175] = createElementVNode("label", {
|
|
2865
|
+
class: "add-field-item__label",
|
|
2866
|
+
for: ""
|
|
2867
|
+
}, "是否置空:", -1)),
|
|
2868
|
+
createElementVNode("div", _hoisted_83, [
|
|
2869
|
+
createVNode(_component_el_switch, {
|
|
2870
|
+
modelValue: $data.editFieldForm.IS_SET_NULL,
|
|
2871
|
+
"onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => $data.editFieldForm.IS_SET_NULL = $event),
|
|
2872
|
+
"active-value": "1",
|
|
2873
|
+
"inactive-value": "0"
|
|
2874
|
+
}, null, 8, ["modelValue"])
|
|
2875
|
+
])
|
|
2876
|
+
])) : createCommentVNode("", true),
|
|
2877
|
+
$data.editFieldForm.INDEX_FLAG === "1" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
2878
|
+
createElementVNode("div", _hoisted_84, [
|
|
2879
|
+
_cache[176] || (_cache[176] = createElementVNode("label", {
|
|
2880
|
+
class: "is-required",
|
|
2881
|
+
for: ""
|
|
2882
|
+
}, "标题:", -1)),
|
|
2883
|
+
createElementVNode("div", _hoisted_85, [
|
|
2884
|
+
createVNode(_component_el_input, {
|
|
2885
|
+
size: "small",
|
|
2886
|
+
modelValue: $data.editFieldForm.NAME,
|
|
2887
|
+
"onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => $data.editFieldForm.NAME = $event)
|
|
2888
|
+
}, null, 8, ["modelValue"])
|
|
2889
|
+
])
|
|
2890
|
+
]),
|
|
2891
|
+
createElementVNode("div", _hoisted_86, [
|
|
2892
|
+
_cache[177] || (_cache[177] = createElementVNode("label", { for: "" }, "计算方式:", -1)),
|
|
2893
|
+
createElementVNode("div", _hoisted_87, [
|
|
2894
|
+
createVNode(_component_epx_radio, {
|
|
2895
|
+
modelValue: $data.editFieldForm.MODE,
|
|
2896
|
+
"onUpdate:modelValue": _cache[38] || (_cache[38] = ($event) => $data.editFieldForm.MODE = $event),
|
|
2897
|
+
fieldConfigs: { codeKey: "FM_REPORT_TIME_MODE", state: "EDIT" }
|
|
2898
|
+
}, null, 8, ["modelValue"])
|
|
2899
|
+
])
|
|
2900
|
+
])
|
|
2901
|
+
], 64)) : $options.statField ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
2902
|
+
$options.statField.dataType === "object" || $options.statField.dataType === "user" || $options.statField.dataType === "dept" ? (openBlock(), createElementBlock("div", _hoisted_88, [
|
|
2903
|
+
_cache[178] || (_cache[178] = createElementVNode("label", { for: "" }, "排序方式:", -1)),
|
|
2904
|
+
createElementVNode("div", _hoisted_89, [
|
|
2905
|
+
createVNode(_component_el_select, {
|
|
2906
|
+
class: "add-field__order",
|
|
2907
|
+
modelValue: $data.editFieldForm.ORDER_FIELD,
|
|
2908
|
+
"onUpdate:modelValue": _cache[39] || (_cache[39] = ($event) => $data.editFieldForm.ORDER_FIELD = $event),
|
|
2909
|
+
size: "small",
|
|
2910
|
+
clearable: ""
|
|
2911
|
+
}, {
|
|
2912
|
+
default: withCtx(() => [
|
|
2913
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getMetaFields($options.statField.relatedEntity), (item) => {
|
|
2914
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
2915
|
+
key: item.attriName,
|
|
2916
|
+
label: item.attriLabel,
|
|
2917
|
+
value: item.attriName
|
|
2918
|
+
}, null, 8, ["label", "value"]);
|
|
2919
|
+
}), 128))
|
|
2920
|
+
]),
|
|
2921
|
+
_: 1
|
|
2922
|
+
}, 8, ["modelValue"]),
|
|
2923
|
+
createVNode(_component_el_select, {
|
|
2924
|
+
class: "add-field__order",
|
|
2925
|
+
modelValue: $data.editFieldForm.ORDER_FIELD_SORT,
|
|
2926
|
+
"onUpdate:modelValue": _cache[40] || (_cache[40] = ($event) => $data.editFieldForm.ORDER_FIELD_SORT = $event),
|
|
2927
|
+
size: "small",
|
|
2928
|
+
clearable: "",
|
|
2929
|
+
style: { width: "100px" }
|
|
2930
|
+
}, {
|
|
2931
|
+
default: withCtx(() => [
|
|
2932
|
+
createVNode(_component_el_option, {
|
|
2933
|
+
label: "升序",
|
|
2934
|
+
value: "ASC"
|
|
2935
|
+
}),
|
|
2936
|
+
createVNode(_component_el_option, {
|
|
2937
|
+
label: "逆序",
|
|
2938
|
+
value: "DESC"
|
|
2939
|
+
})
|
|
2940
|
+
]),
|
|
2941
|
+
_: 1
|
|
2942
|
+
}, 8, ["modelValue"])
|
|
2943
|
+
])
|
|
2944
|
+
])) : createCommentVNode("", true),
|
|
2945
|
+
$options.statField.dataType === "text" ? (openBlock(), createElementBlock("div", _hoisted_90, [
|
|
2946
|
+
_cache[179] || (_cache[179] = createElementVNode("label", { for: "" }, "排序方式:", -1)),
|
|
2947
|
+
createElementVNode("div", _hoisted_91, [
|
|
2948
|
+
createVNode(_component_el_select, {
|
|
2949
|
+
class: "add-field__order",
|
|
2950
|
+
modelValue: $data.editFieldForm.ORDER_FIELD_SORT,
|
|
2951
|
+
"onUpdate:modelValue": _cache[41] || (_cache[41] = ($event) => $data.editFieldForm.ORDER_FIELD_SORT = $event),
|
|
2952
|
+
size: "small",
|
|
2953
|
+
clearable: "",
|
|
2954
|
+
style: { width: "100px" }
|
|
2955
|
+
}, {
|
|
2956
|
+
default: withCtx(() => [
|
|
2957
|
+
createVNode(_component_el_option, {
|
|
2958
|
+
label: "升序",
|
|
2959
|
+
value: "ASC"
|
|
2960
|
+
}),
|
|
2961
|
+
createVNode(_component_el_option, {
|
|
2962
|
+
label: "逆序",
|
|
2963
|
+
value: "DESC"
|
|
2964
|
+
})
|
|
2965
|
+
]),
|
|
2966
|
+
_: 1
|
|
2967
|
+
}, 8, ["modelValue"])
|
|
2968
|
+
])
|
|
2969
|
+
])) : createCommentVNode("", true),
|
|
2970
|
+
$options.statField.dataType === "object" || $options.statField.dataType === "user" || $options.statField.dataType === "dept" ? (openBlock(), createElementBlock("div", _hoisted_92, [
|
|
2971
|
+
_cache[180] || (_cache[180] = createElementVNode("label", { for: "" }, "对象范围:", -1)),
|
|
2972
|
+
createElementVNode("div", _hoisted_93, [
|
|
2973
|
+
createVNode(_component_epx_form_scope, {
|
|
2974
|
+
modelValue: $data.editFieldForm.OBJECT_FIELD_SCOPE,
|
|
2975
|
+
"onUpdate:modelValue": _cache[42] || (_cache[42] = ($event) => $data.editFieldForm.OBJECT_FIELD_SCOPE = $event),
|
|
2976
|
+
metaId: $options.statField.relatedEntity,
|
|
2977
|
+
fieldConfigs: { attriName: $options.statField.code, attriLabel: $options.statField.text, state: "EDIT" }
|
|
2978
|
+
}, null, 8, ["modelValue", "metaId", "fieldConfigs"])
|
|
2979
|
+
])
|
|
2980
|
+
])) : createCommentVNode("", true),
|
|
2981
|
+
$options.statField.dataType === "object" || $options.statField.dataType === "user" || $options.statField.dataType === "dept" ? (openBlock(), createElementBlock("div", _hoisted_94, [
|
|
2982
|
+
_cache[181] || (_cache[181] = createElementVNode("label", { for: "" }, "是否树形:", -1)),
|
|
2983
|
+
createElementVNode("div", _hoisted_95, [
|
|
2984
|
+
createVNode(_component_el_switch, {
|
|
2985
|
+
modelValue: $data.editFieldForm.IS_SHOW_TREE,
|
|
2986
|
+
"onUpdate:modelValue": _cache[43] || (_cache[43] = ($event) => $data.editFieldForm.IS_SHOW_TREE = $event),
|
|
2987
|
+
"active-value": "1",
|
|
2988
|
+
"inactive-value": "0"
|
|
2989
|
+
}, null, 8, ["modelValue"])
|
|
2990
|
+
])
|
|
2991
|
+
])) : $options.statField.dataType === "date" ? (openBlock(), createElementBlock("div", _hoisted_96, [
|
|
2992
|
+
_cache[182] || (_cache[182] = createElementVNode("label", { for: "" }, "分组方式:", -1)),
|
|
2993
|
+
createElementVNode("div", _hoisted_97, [
|
|
2994
|
+
createVNode(_component_epx_radio, {
|
|
2995
|
+
modelValue: $data.editFieldForm.DATE_GROUP_TYPE,
|
|
2996
|
+
"onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => $data.editFieldForm.DATE_GROUP_TYPE = $event),
|
|
2997
|
+
fieldConfigs: { codeKey: "DATE_GROUP_TYPE", state: "EDIT" }
|
|
2998
|
+
}, null, 8, ["modelValue"])
|
|
2999
|
+
])
|
|
3000
|
+
])) : $options.statField.dataType === "list" && $options.statField.optionType === "treeList" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
3001
|
+
createElementVNode("div", _hoisted_98, [
|
|
3002
|
+
_cache[183] || (_cache[183] = createElementVNode("label", { for: "" }, "统计层级:", -1)),
|
|
3003
|
+
createVNode(_component_epx_radio, {
|
|
3004
|
+
modelValue: $data.editFieldForm.STATIS_FIELD_LEVEL,
|
|
3005
|
+
"onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => $data.editFieldForm.STATIS_FIELD_LEVEL = $event),
|
|
3006
|
+
fieldConfigs: { codeKey: "STATIS_FIELD_LEVEL", state: "EDIT" },
|
|
3007
|
+
onChange: _cache[46] || (_cache[46] = ($event) => {
|
|
3008
|
+
$options.statFieldTreeOptionSelectAll = false;
|
|
3009
|
+
_ctx.$nextTick(() => $options.statFieldTreeOptionSelectAll = true);
|
|
3010
|
+
})
|
|
3011
|
+
}, null, 8, ["modelValue"])
|
|
3012
|
+
]),
|
|
3013
|
+
createElementVNode("div", _hoisted_99, [
|
|
3014
|
+
_cache[185] || (_cache[185] = createElementVNode("label", { for: "" }, "统计选项:", -1)),
|
|
3015
|
+
createElementVNode("div", _hoisted_100, [
|
|
3016
|
+
createVNode(_component_el_checkbox, {
|
|
3017
|
+
class: "add-field__checkall",
|
|
3018
|
+
modelValue: $options.statFieldTreeOptionSelectAll,
|
|
3019
|
+
"onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => $options.statFieldTreeOptionSelectAll = $event)
|
|
3020
|
+
}, {
|
|
3021
|
+
default: withCtx(() => [..._cache[184] || (_cache[184] = [
|
|
3022
|
+
createTextVNode("全选", -1)
|
|
3023
|
+
])]),
|
|
3024
|
+
_: 1
|
|
3025
|
+
}, 8, ["modelValue"]),
|
|
3026
|
+
$data.editFieldForm.STATIS_FIELD_LEVEL === "all" ? (openBlock(), createBlock(_component_el_tree, {
|
|
3027
|
+
key: 0,
|
|
3028
|
+
ref: "fieldOptionTree",
|
|
3029
|
+
"node-key": "id",
|
|
3030
|
+
class: "option-tree",
|
|
3031
|
+
data: _ctx.getTreeCodeById($options.statField.codeKey),
|
|
3032
|
+
"check-strictly": true,
|
|
3033
|
+
onCheckChange: $options.checkChange,
|
|
3034
|
+
"show-checkbox": "",
|
|
3035
|
+
props: { label: "name", children: "children" }
|
|
3036
|
+
}, null, 8, ["data", "onCheckChange"])) : (openBlock(), createBlock(_component_el_checkbox_group, {
|
|
3037
|
+
key: 1,
|
|
3038
|
+
class: "add-field__checkgroup",
|
|
3039
|
+
modelValue: $data.editFieldForm.STATIS_CUSTOM_OPTIONS,
|
|
3040
|
+
"onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => $data.editFieldForm.STATIS_CUSTOM_OPTIONS = $event)
|
|
3041
|
+
}, {
|
|
3042
|
+
default: withCtx(() => [
|
|
3043
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.statFieldTreeOptions, (option) => {
|
|
3044
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
3045
|
+
"node-key": "id",
|
|
3046
|
+
label: option.id,
|
|
3047
|
+
value: option.id,
|
|
3048
|
+
key: option.id
|
|
3049
|
+
}, {
|
|
3050
|
+
default: withCtx(() => [
|
|
3051
|
+
createTextVNode(toDisplayString(option.name), 1)
|
|
3052
|
+
]),
|
|
3053
|
+
_: 2
|
|
3054
|
+
}, 1032, ["label", "value"]);
|
|
3055
|
+
}), 128))
|
|
3056
|
+
]),
|
|
3057
|
+
_: 1
|
|
3058
|
+
}, 8, ["modelValue"]))
|
|
3059
|
+
])
|
|
3060
|
+
]),
|
|
3061
|
+
$data.editFieldForm.POSITION === "2" && $data.reportInfo.TYPE === "1" ? (openBlock(), createElementBlock("div", _hoisted_101, [
|
|
3062
|
+
_cache[186] || (_cache[186] = createElementVNode("label", { for: "" }, "统计排序:", -1)),
|
|
3063
|
+
createElementVNode("div", _hoisted_102, [
|
|
3064
|
+
createVNode(_component_el_popover, {
|
|
3065
|
+
class: "add-field__order",
|
|
3066
|
+
trigger: "click",
|
|
3067
|
+
placement: "bottom",
|
|
3068
|
+
width: "160"
|
|
3069
|
+
}, {
|
|
3070
|
+
reference: withCtx(() => [
|
|
3071
|
+
createVNode(_component_el_input, {
|
|
3072
|
+
size: "small",
|
|
3073
|
+
"suffix-icon": "el-icon-search",
|
|
3074
|
+
"model-value": $data.editFieldForm["STA_SORT_OPTION#"]
|
|
3075
|
+
}, null, 8, ["model-value"])
|
|
3076
|
+
]),
|
|
3077
|
+
default: withCtx(() => [
|
|
3078
|
+
createVNode(_component_el_tree, {
|
|
3079
|
+
ref: "statFieldSortTree",
|
|
3080
|
+
"node-key": "id",
|
|
3081
|
+
class: "option-tree",
|
|
3082
|
+
data: _ctx.getTreeCodeById($options.statField.codeKey),
|
|
3083
|
+
"check-strictly": true,
|
|
3084
|
+
"show-checkbox": "",
|
|
3085
|
+
props: { label: "name", children: "children", disabled: $options.getNodeIsDiabled },
|
|
3086
|
+
onCheckChange: $options.checkStatFieldTreeChange
|
|
3087
|
+
}, null, 8, ["data", "props", "onCheckChange"])
|
|
3088
|
+
]),
|
|
3089
|
+
_: 1
|
|
3090
|
+
}),
|
|
3091
|
+
createVNode(_component_el_select, {
|
|
3092
|
+
class: "add-field__order",
|
|
3093
|
+
modelValue: $data.editFieldForm.SORT,
|
|
3094
|
+
"onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => $data.editFieldForm.SORT = $event),
|
|
3095
|
+
clearable: "",
|
|
3096
|
+
size: "small",
|
|
3097
|
+
style: { width: "100px" }
|
|
3098
|
+
}, {
|
|
3099
|
+
default: withCtx(() => [
|
|
3100
|
+
createVNode(_component_el_option, {
|
|
3101
|
+
label: "升序",
|
|
3102
|
+
value: "ASC"
|
|
3103
|
+
}),
|
|
3104
|
+
createVNode(_component_el_option, {
|
|
3105
|
+
label: "逆序",
|
|
3106
|
+
value: "DESC"
|
|
3107
|
+
})
|
|
3108
|
+
]),
|
|
3109
|
+
_: 1
|
|
3110
|
+
}, 8, ["modelValue"])
|
|
3111
|
+
])
|
|
3112
|
+
])) : createCommentVNode("", true)
|
|
3113
|
+
], 64)) : $options.statField.dataType === "list" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
3114
|
+
createElementVNode("div", _hoisted_103, [
|
|
3115
|
+
_cache[188] || (_cache[188] = createElementVNode("label", { for: "" }, "统计选项:", -1)),
|
|
3116
|
+
createElementVNode("div", _hoisted_104, [
|
|
3117
|
+
createVNode(_component_el_checkbox, {
|
|
3118
|
+
class: "add-field__checkall",
|
|
3119
|
+
modelValue: $options.statFieldOptionSelectAll,
|
|
3120
|
+
"onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => $options.statFieldOptionSelectAll = $event)
|
|
3121
|
+
}, {
|
|
3122
|
+
default: withCtx(() => [..._cache[187] || (_cache[187] = [
|
|
3123
|
+
createTextVNode("全选", -1)
|
|
3124
|
+
])]),
|
|
3125
|
+
_: 1
|
|
3126
|
+
}, 8, ["modelValue"]),
|
|
3127
|
+
createVNode(_component_el_checkbox_group, {
|
|
3128
|
+
class: "add-field__checkgroup",
|
|
3129
|
+
modelValue: $data.editFieldForm.STATIS_CUSTOM_OPTIONS,
|
|
3130
|
+
"onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => $data.editFieldForm.STATIS_CUSTOM_OPTIONS = $event)
|
|
3131
|
+
}, {
|
|
3132
|
+
default: withCtx(() => [
|
|
3133
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.statFieldOptions, (option) => {
|
|
3134
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
3135
|
+
label: option.id,
|
|
3136
|
+
value: option.id,
|
|
3137
|
+
key: option.id
|
|
3138
|
+
}, {
|
|
3139
|
+
default: withCtx(() => [
|
|
3140
|
+
createTextVNode(toDisplayString(option.name), 1)
|
|
3141
|
+
]),
|
|
3142
|
+
_: 2
|
|
3143
|
+
}, 1032, ["label", "value"]);
|
|
3144
|
+
}), 128))
|
|
3145
|
+
]),
|
|
3146
|
+
_: 1
|
|
3147
|
+
}, 8, ["modelValue"])
|
|
3148
|
+
])
|
|
3149
|
+
]),
|
|
3150
|
+
$data.editFieldForm.POSITION === "2" && $data.reportInfo.TYPE === "1" ? (openBlock(), createElementBlock("div", _hoisted_105, [
|
|
3151
|
+
_cache[189] || (_cache[189] = createElementVNode("label", { for: "" }, "选项排序:", -1)),
|
|
3152
|
+
createElementVNode("div", _hoisted_106, [
|
|
3153
|
+
createVNode(_component_el_select, {
|
|
3154
|
+
class: "add-field__order",
|
|
3155
|
+
size: "small",
|
|
3156
|
+
modelValue: $data.editFieldForm.STA_SORT_OPTION,
|
|
3157
|
+
"onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => $data.editFieldForm.STA_SORT_OPTION = $event),
|
|
3158
|
+
clearable: ""
|
|
3159
|
+
}, {
|
|
3160
|
+
default: withCtx(() => [
|
|
3161
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.selectStatFieldOptions, (option) => {
|
|
3162
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
3163
|
+
label: option.name,
|
|
3164
|
+
value: option.id,
|
|
3165
|
+
key: option.id
|
|
3166
|
+
}, null, 8, ["label", "value"]);
|
|
3167
|
+
}), 128))
|
|
3168
|
+
]),
|
|
3169
|
+
_: 1
|
|
3170
|
+
}, 8, ["modelValue"]),
|
|
3171
|
+
createVNode(_component_el_select, {
|
|
3172
|
+
class: "add-field__order",
|
|
3173
|
+
modelValue: $data.editFieldForm.SORT,
|
|
3174
|
+
"onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => $data.editFieldForm.SORT = $event),
|
|
3175
|
+
size: "small",
|
|
3176
|
+
clearable: "",
|
|
3177
|
+
style: { width: "100px" }
|
|
3178
|
+
}, {
|
|
3179
|
+
default: withCtx(() => [
|
|
3180
|
+
createVNode(_component_el_option, {
|
|
3181
|
+
label: "升序",
|
|
3182
|
+
value: "ASC"
|
|
3183
|
+
}),
|
|
3184
|
+
createVNode(_component_el_option, {
|
|
3185
|
+
label: "逆序",
|
|
3186
|
+
value: "DESC"
|
|
3187
|
+
})
|
|
3188
|
+
]),
|
|
3189
|
+
_: 1
|
|
3190
|
+
}, 8, ["modelValue"])
|
|
3191
|
+
])
|
|
3192
|
+
])) : createCommentVNode("", true)
|
|
3193
|
+
], 64)) : createCommentVNode("", true),
|
|
3194
|
+
$data.editFieldForm.POSITION === "2" && $data.reportInfo.CHART_TYPE === "columnAndLine" ? (openBlock(), createElementBlock("div", _hoisted_107, [
|
|
3195
|
+
_cache[190] || (_cache[190] = createElementVNode("label", { for: "" }, "展示报表类型:", -1)),
|
|
3196
|
+
createVNode(_component_epx_radio, {
|
|
3197
|
+
modelValue: $data.editFieldForm.SHOW_REPORT_TYPE,
|
|
3198
|
+
"onUpdate:modelValue": _cache[54] || (_cache[54] = ($event) => $data.editFieldForm.SHOW_REPORT_TYPE = $event),
|
|
3199
|
+
fieldConfigs: { codeKey: "zzhhReportType", state: "EDIT" }
|
|
3200
|
+
}, null, 8, ["modelValue"])
|
|
3201
|
+
])) : createCommentVNode("", true)
|
|
3202
|
+
], 64)) : createCommentVNode("", true)
|
|
3203
|
+
]),
|
|
3204
|
+
_: 1
|
|
3205
|
+
}),
|
|
3206
|
+
createVNode(_component_el_tab_pane, {
|
|
3207
|
+
label: "统计指标",
|
|
3208
|
+
name: "index"
|
|
3209
|
+
}, {
|
|
3210
|
+
default: withCtx(() => [
|
|
3211
|
+
createElementVNode("div", _hoisted_108, [
|
|
3212
|
+
_cache[194] || (_cache[194] = createElementVNode("label", { for: "" }, "指标类别:", -1)),
|
|
3213
|
+
createElementVNode("div", _hoisted_109, [
|
|
3214
|
+
createVNode(_component_el_radio_group, {
|
|
3215
|
+
modelValue: $data.editFieldForm.STA_INDEX_TYPE,
|
|
3216
|
+
"onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.editFieldForm.STA_INDEX_TYPE = $event)
|
|
3217
|
+
}, {
|
|
3218
|
+
default: withCtx(() => [
|
|
3219
|
+
createVNode(_component_el_radio, {
|
|
3220
|
+
label: "default",
|
|
3221
|
+
value: "default"
|
|
3222
|
+
}, {
|
|
3223
|
+
default: withCtx(() => [..._cache[191] || (_cache[191] = [
|
|
3224
|
+
createTextVNode("默认", -1)
|
|
3225
|
+
])]),
|
|
3226
|
+
_: 1
|
|
3227
|
+
}),
|
|
3228
|
+
createVNode(_component_el_radio, {
|
|
3229
|
+
label: "field",
|
|
3230
|
+
value: "field"
|
|
3231
|
+
}, {
|
|
3232
|
+
default: withCtx(() => [..._cache[192] || (_cache[192] = [
|
|
3233
|
+
createTextVNode("指标字段", -1)
|
|
3234
|
+
])]),
|
|
3235
|
+
_: 1
|
|
3236
|
+
}),
|
|
3237
|
+
createVNode(_component_el_radio, {
|
|
3238
|
+
label: "custom",
|
|
3239
|
+
value: "custom"
|
|
3240
|
+
}, {
|
|
3241
|
+
default: withCtx(() => [..._cache[193] || (_cache[193] = [
|
|
3242
|
+
createTextVNode("自定义", -1)
|
|
3243
|
+
])]),
|
|
3244
|
+
_: 1
|
|
3245
|
+
})
|
|
3246
|
+
]),
|
|
3247
|
+
_: 1
|
|
3248
|
+
}, 8, ["modelValue"])
|
|
3249
|
+
])
|
|
3250
|
+
]),
|
|
3251
|
+
$data.editFieldForm.STA_INDEX_TYPE === "field" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3252
|
+
createElementVNode("div", _hoisted_110, [
|
|
3253
|
+
_cache[195] || (_cache[195] = createElementVNode("label", { for: "" }, "指标字段:", -1)),
|
|
3254
|
+
createElementVNode("div", _hoisted_111, [
|
|
3255
|
+
createVNode(_component_el_popover, {
|
|
3256
|
+
trigger: "click",
|
|
3257
|
+
placement: "bottom",
|
|
3258
|
+
width: "160"
|
|
3259
|
+
}, {
|
|
3260
|
+
reference: withCtx(() => [
|
|
3261
|
+
createVNode(_component_el_input, {
|
|
3262
|
+
size: "small",
|
|
3263
|
+
placeholder: "请输入内容",
|
|
3264
|
+
"suffix-icon": "el-icon-search",
|
|
3265
|
+
"model-value": $options.getLabel($data.editFieldForm.STA_INDEX_FIELD, $data.reportStatisFields.statisIndexFields)
|
|
3266
|
+
}, null, 8, ["model-value"])
|
|
3267
|
+
]),
|
|
3268
|
+
default: withCtx(() => [
|
|
3269
|
+
createVNode(_component_el_tree, {
|
|
3270
|
+
class: "field-tree",
|
|
3271
|
+
data: $data.reportStatisFields.statisIndexFields,
|
|
3272
|
+
props: { label: "text", value: "id" },
|
|
3273
|
+
onNodeClick: _cache[56] || (_cache[56] = (node) => {
|
|
3274
|
+
$data.editFieldForm["STA_INDEX_FIELD"] = node.id;
|
|
3275
|
+
$data.editFieldForm["STA_INDEX_FIELD_CODE"] = node.code;
|
|
3276
|
+
})
|
|
3277
|
+
}, null, 8, ["data"])
|
|
3278
|
+
]),
|
|
3279
|
+
_: 1
|
|
3280
|
+
})
|
|
3281
|
+
])
|
|
3282
|
+
]),
|
|
3283
|
+
createElementVNode("div", _hoisted_112, [
|
|
3284
|
+
_cache[196] || (_cache[196] = createElementVNode("label", {
|
|
3285
|
+
class: "add-field-item__label is-required",
|
|
3286
|
+
for: ""
|
|
3287
|
+
}, "计算方式:", -1)),
|
|
3288
|
+
createElementVNode("div", _hoisted_113, [
|
|
3289
|
+
createVNode(_component_epx_radio, {
|
|
3290
|
+
modelValue: $data.editFieldForm.MODE,
|
|
3291
|
+
"onUpdate:modelValue": _cache[57] || (_cache[57] = ($event) => $data.editFieldForm.MODE = $event),
|
|
3292
|
+
fieldConfigs: { codeKey: "FM_REPORT_TIME_MODE", state: "EDIT" }
|
|
3293
|
+
}, null, 8, ["modelValue"])
|
|
3294
|
+
])
|
|
3295
|
+
]),
|
|
3296
|
+
createElementVNode("div", _hoisted_114, [
|
|
3297
|
+
_cache[197] || (_cache[197] = createElementVNode("label", {
|
|
3298
|
+
class: "add-field-item__label",
|
|
3299
|
+
for: ""
|
|
3300
|
+
}, "数值单位:", -1)),
|
|
3301
|
+
createElementVNode("div", _hoisted_115, [
|
|
3302
|
+
createVNode(_component_epx_radio, {
|
|
3303
|
+
modelValue: $data.editFieldForm.NUM_UNIT,
|
|
3304
|
+
"onUpdate:modelValue": _cache[58] || (_cache[58] = ($event) => $data.editFieldForm.NUM_UNIT = $event),
|
|
3305
|
+
fieldConfigs: { codeKey: "report_num_nuit", state: "EDIT" }
|
|
3306
|
+
}, null, 8, ["modelValue"])
|
|
3307
|
+
])
|
|
3308
|
+
]),
|
|
3309
|
+
createElementVNode("div", _hoisted_116, [
|
|
3310
|
+
_cache[198] || (_cache[198] = createElementVNode("label", {
|
|
3311
|
+
class: "add-field-item__label",
|
|
3312
|
+
for: ""
|
|
3313
|
+
}, "单位后缀:", -1)),
|
|
3314
|
+
createElementVNode("div", _hoisted_117, [
|
|
3315
|
+
createVNode(_component_el_input, {
|
|
3316
|
+
size: "small",
|
|
3317
|
+
modelValue: $data.editFieldForm.UNIT_SUFFIX,
|
|
3318
|
+
"onUpdate:modelValue": _cache[59] || (_cache[59] = ($event) => $data.editFieldForm.UNIT_SUFFIX = $event)
|
|
3319
|
+
}, null, 8, ["modelValue"])
|
|
3320
|
+
])
|
|
3321
|
+
]),
|
|
3322
|
+
createElementVNode("div", _hoisted_118, [
|
|
3323
|
+
_cache[199] || (_cache[199] = createElementVNode("label", {
|
|
3324
|
+
class: "add-field-item__label",
|
|
3325
|
+
for: ""
|
|
3326
|
+
}, "小数点位数:", -1)),
|
|
3327
|
+
createElementVNode("div", _hoisted_119, [
|
|
3328
|
+
createVNode(_component_epx_select, {
|
|
3329
|
+
modelValue: $data.editFieldForm.DECIMAL_LENGTH,
|
|
3330
|
+
"onUpdate:modelValue": _cache[60] || (_cache[60] = ($event) => $data.editFieldForm.DECIMAL_LENGTH = $event),
|
|
3331
|
+
fieldConfigs: { attriLabel: "小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
3332
|
+
}, null, 8, ["modelValue"])
|
|
3333
|
+
])
|
|
3334
|
+
]),
|
|
3335
|
+
createElementVNode("div", _hoisted_120, [
|
|
3336
|
+
_cache[200] || (_cache[200] = createElementVNode("label", {
|
|
3337
|
+
class: "add-field-item__label",
|
|
3338
|
+
for: ""
|
|
3339
|
+
}, "千分符标识:", -1)),
|
|
3340
|
+
createElementVNode("div", _hoisted_121, [
|
|
3341
|
+
createVNode(_component_el_switch, {
|
|
3342
|
+
modelValue: $data.editFieldForm.THOUSAND_CENTS_FLAG,
|
|
3343
|
+
"onUpdate:modelValue": _cache[61] || (_cache[61] = ($event) => $data.editFieldForm.THOUSAND_CENTS_FLAG = $event),
|
|
3344
|
+
"active-value": "1",
|
|
3345
|
+
"inactive-value": "0"
|
|
3346
|
+
}, null, 8, ["modelValue"])
|
|
3347
|
+
])
|
|
3348
|
+
])
|
|
3349
|
+
], 64)) : $data.editFieldForm.STA_INDEX_TYPE === "custom" ? (openBlock(), createElementBlock("div", _hoisted_122, [
|
|
3350
|
+
_cache[201] || (_cache[201] = createElementVNode("label", { for: "" }, "计算公式:", -1)),
|
|
3351
|
+
createElementVNode("div", _hoisted_123, [
|
|
3352
|
+
createVNode(_component_epx_rule, {
|
|
3353
|
+
modelValue: $data.editFieldForm.INDEX_FORMULA,
|
|
3354
|
+
"onUpdate:modelValue": _cache[62] || (_cache[62] = ($event) => $data.editFieldForm.INDEX_FORMULA = $event),
|
|
3355
|
+
metaId: $data.reportInfo.OBJECT,
|
|
3356
|
+
fieldConfigs: { state: "EDIT" }
|
|
3357
|
+
}, null, 8, ["modelValue", "metaId"])
|
|
3358
|
+
])
|
|
3359
|
+
])) : createCommentVNode("", true),
|
|
3360
|
+
_cache[205] || (_cache[205] = createElementVNode("hr", null, null, -1)),
|
|
3361
|
+
createElementVNode("div", _hoisted_124, [
|
|
3362
|
+
_cache[202] || (_cache[202] = createElementVNode("label", {
|
|
3363
|
+
class: "add-field-item__label",
|
|
3364
|
+
for: ""
|
|
3365
|
+
}, "二次计算:", -1)),
|
|
3366
|
+
createElementVNode("div", _hoisted_125, [
|
|
3367
|
+
createVNode(_component_epx_select, {
|
|
3368
|
+
modelValue: $data.editFieldForm.AGAIN_COMPUTE,
|
|
3369
|
+
"onUpdate:modelValue": _cache[63] || (_cache[63] = ($event) => $data.editFieldForm.AGAIN_COMPUTE = $event),
|
|
3370
|
+
fieldConfigs: { attriLabel: "二次计算", codeKey: "AGAIN_COMPUTE", state: "EDIT" }
|
|
3371
|
+
}, null, 8, ["modelValue"])
|
|
3372
|
+
])
|
|
3373
|
+
]),
|
|
3374
|
+
$data.editFieldForm.AGAIN_COMPUTE && $data.editFieldForm.AGAIN_COMPUTE !== "no" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
3375
|
+
createElementVNode("div", _hoisted_126, [
|
|
3376
|
+
_cache[203] || (_cache[203] = createElementVNode("label", {
|
|
3377
|
+
class: "add-field-item__label",
|
|
3378
|
+
for: ""
|
|
3379
|
+
}, "二次计算范围:", -1)),
|
|
3380
|
+
createElementVNode("div", _hoisted_127, [
|
|
3381
|
+
createVNode(_component_epx_select, {
|
|
3382
|
+
modelValue: $data.editFieldForm.AGAIN_COMPUTE_SCOPE,
|
|
3383
|
+
"onUpdate:modelValue": _cache[64] || (_cache[64] = ($event) => $data.editFieldForm.AGAIN_COMPUTE_SCOPE = $event),
|
|
3384
|
+
fieldConfigs: { attriLabel: "二次计算范围", codeKey: "AGAIN_COMPUTE_SCOPE", state: "EDIT" }
|
|
3385
|
+
}, null, 8, ["modelValue"])
|
|
3386
|
+
])
|
|
3387
|
+
]),
|
|
3388
|
+
createElementVNode("div", _hoisted_128, [
|
|
3389
|
+
_cache[204] || (_cache[204] = createElementVNode("label", {
|
|
3390
|
+
class: "add-field-item__label",
|
|
3391
|
+
for: ""
|
|
3392
|
+
}, "百分比小数点位数:", -1)),
|
|
3393
|
+
createElementVNode("div", _hoisted_129, [
|
|
3394
|
+
createVNode(_component_epx_select, {
|
|
3395
|
+
modelValue: $data.editFieldForm.PER_RADIO_NUM,
|
|
3396
|
+
"onUpdate:modelValue": _cache[65] || (_cache[65] = ($event) => $data.editFieldForm.PER_RADIO_NUM = $event),
|
|
3397
|
+
fieldConfigs: { attriLabel: "百分比小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
3398
|
+
}, null, 8, ["modelValue"])
|
|
3399
|
+
])
|
|
3400
|
+
])
|
|
3401
|
+
], 64)) : createCommentVNode("", true)
|
|
3402
|
+
]),
|
|
3403
|
+
_: 1
|
|
3404
|
+
})
|
|
3405
|
+
]),
|
|
3406
|
+
_: 1
|
|
3407
|
+
}, 8, ["modelValue", "class"])
|
|
3408
|
+
])) : createCommentVNode("", true)
|
|
3409
|
+
]),
|
|
3410
|
+
_: 1
|
|
3411
|
+
}, 8, ["modelValue"]),
|
|
3412
|
+
createVNode(_component_el_dialog, {
|
|
3413
|
+
class: "custom-dialog",
|
|
3414
|
+
title: "统计指标",
|
|
3415
|
+
modelValue: $data.editStatIndexDialog,
|
|
3416
|
+
"onUpdate:modelValue": _cache[81] || (_cache[81] = ($event) => $data.editStatIndexDialog = $event),
|
|
3417
|
+
"append-to-body": true,
|
|
3418
|
+
"destroy-on-close": "",
|
|
3419
|
+
width: "560px"
|
|
3420
|
+
}, {
|
|
3421
|
+
footer: withCtx(() => [
|
|
3422
|
+
createElementVNode("div", _hoisted_156, [
|
|
3423
|
+
createVNode(_component_el_button, {
|
|
3424
|
+
onClick: _cache[80] || (_cache[80] = ($event) => $data.editStatIndexDialog = false)
|
|
3425
|
+
}, {
|
|
3426
|
+
default: withCtx(() => [..._cache[221] || (_cache[221] = [
|
|
3427
|
+
createTextVNode("取 消", -1)
|
|
3428
|
+
])]),
|
|
3429
|
+
_: 1
|
|
3430
|
+
}),
|
|
3431
|
+
createVNode(_component_el_button, {
|
|
3432
|
+
type: "primary",
|
|
3433
|
+
onClick: $options.saveStatIndex
|
|
3434
|
+
}, {
|
|
3435
|
+
default: withCtx(() => [..._cache[222] || (_cache[222] = [
|
|
3436
|
+
createTextVNode("保 存", -1)
|
|
3437
|
+
])]),
|
|
3438
|
+
_: 1
|
|
3439
|
+
}, 8, ["onClick"])
|
|
3440
|
+
])
|
|
3441
|
+
]),
|
|
3442
|
+
default: withCtx(() => [
|
|
3443
|
+
createElementVNode("div", _hoisted_131, [
|
|
3444
|
+
createElementVNode("div", _hoisted_132, [
|
|
3445
|
+
_cache[208] || (_cache[208] = createElementVNode("label", {
|
|
3446
|
+
class: "add-field-item__label is-required",
|
|
3447
|
+
for: ""
|
|
3448
|
+
}, "指标标题:", -1)),
|
|
3449
|
+
createElementVNode("div", _hoisted_133, [
|
|
3450
|
+
createVNode(_component_epx_table_form_item, {
|
|
3451
|
+
modelValue: $data.editStatIndexForm.INDEX_NAME,
|
|
3452
|
+
"onUpdate:modelValue": _cache[68] || (_cache[68] = ($event) => $data.editStatIndexForm.INDEX_NAME = $event),
|
|
3453
|
+
i18nValue: $data.editStatIndexForm.INDEX_NAME_I18N,
|
|
3454
|
+
onChangeLanguage: _cache[69] || (_cache[69] = (v) => $data.editStatIndexForm["INDEX_NAME_I18N"] = v),
|
|
3455
|
+
"field-configs": { attriName: "INDEX_NAME", dataType: "text", state: "EDIT", attriLabel: "名称", attribute: { international: "1" } }
|
|
3456
|
+
}, null, 8, ["modelValue", "i18nValue"])
|
|
3457
|
+
])
|
|
3458
|
+
]),
|
|
3459
|
+
$data.editStatIndexForm.INDEX_TYPE === "field" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3460
|
+
createElementVNode("div", _hoisted_134, [
|
|
3461
|
+
_cache[209] || (_cache[209] = createElementVNode("label", { for: "" }, "指标字段:", -1)),
|
|
3462
|
+
createElementVNode("div", _hoisted_135, [
|
|
3463
|
+
createElementVNode("span", null, toDisplayString($data.editFieldForm["INDEX_FIELD#"] || $options.getLabel($data.editStatIndexForm.INDEX_FIELD, $data.reportStatisFields.statisIndexFields)), 1)
|
|
3464
|
+
])
|
|
3465
|
+
]),
|
|
3466
|
+
createElementVNode("div", _hoisted_136, [
|
|
3467
|
+
_cache[210] || (_cache[210] = createElementVNode("label", {
|
|
3468
|
+
class: "add-field-item__label is-required",
|
|
3469
|
+
for: ""
|
|
3470
|
+
}, "计算方式:", -1)),
|
|
3471
|
+
createElementVNode("div", _hoisted_137, [
|
|
3472
|
+
createVNode(_component_epx_radio, {
|
|
3473
|
+
modelValue: $data.editStatIndexForm.INDEX_CALCULATE_METHOD,
|
|
3474
|
+
"onUpdate:modelValue": _cache[70] || (_cache[70] = ($event) => $data.editStatIndexForm.INDEX_CALCULATE_METHOD = $event),
|
|
3475
|
+
fieldConfigs: { codeKey: "FM_REPORT_TIME_MODE", state: "EDIT" }
|
|
3476
|
+
}, null, 8, ["modelValue"])
|
|
3477
|
+
])
|
|
3478
|
+
]),
|
|
3479
|
+
createElementVNode("div", _hoisted_138, [
|
|
3480
|
+
_cache[211] || (_cache[211] = createElementVNode("label", {
|
|
3481
|
+
class: "add-field-item__label",
|
|
3482
|
+
for: ""
|
|
3483
|
+
}, "数值单位:", -1)),
|
|
3484
|
+
createElementVNode("div", _hoisted_139, [
|
|
3485
|
+
createVNode(_component_epx_radio, {
|
|
3486
|
+
modelValue: $data.editStatIndexForm.NUM_UNIT,
|
|
3487
|
+
"onUpdate:modelValue": _cache[71] || (_cache[71] = ($event) => $data.editStatIndexForm.NUM_UNIT = $event),
|
|
3488
|
+
fieldConfigs: { codeKey: "report_num_nuit", state: "EDIT" }
|
|
3489
|
+
}, null, 8, ["modelValue"])
|
|
3490
|
+
])
|
|
3491
|
+
]),
|
|
3492
|
+
createElementVNode("div", _hoisted_140, [
|
|
3493
|
+
_cache[212] || (_cache[212] = createElementVNode("label", {
|
|
3494
|
+
class: "add-field-item__label",
|
|
3495
|
+
for: ""
|
|
3496
|
+
}, "单位后缀:", -1)),
|
|
3497
|
+
createElementVNode("div", _hoisted_141, [
|
|
3498
|
+
createVNode(_component_el_input, {
|
|
3499
|
+
size: "small",
|
|
3500
|
+
modelValue: $data.editStatIndexForm.UNIT_SUFFIX,
|
|
3501
|
+
"onUpdate:modelValue": _cache[72] || (_cache[72] = ($event) => $data.editStatIndexForm.UNIT_SUFFIX = $event)
|
|
3502
|
+
}, null, 8, ["modelValue"])
|
|
3503
|
+
])
|
|
3504
|
+
]),
|
|
3505
|
+
createElementVNode("div", _hoisted_142, [
|
|
3506
|
+
_cache[213] || (_cache[213] = createElementVNode("label", {
|
|
3507
|
+
class: "add-field-item__label",
|
|
3508
|
+
for: ""
|
|
3509
|
+
}, "小数点位数:", -1)),
|
|
3510
|
+
createElementVNode("div", _hoisted_143, [
|
|
3511
|
+
createVNode(_component_epx_select, {
|
|
3512
|
+
modelValue: $data.editStatIndexForm.DECIMAL_LENGTH,
|
|
3513
|
+
"onUpdate:modelValue": _cache[73] || (_cache[73] = ($event) => $data.editStatIndexForm.DECIMAL_LENGTH = $event),
|
|
3514
|
+
fieldConfigs: { attriLabel: "小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
3515
|
+
}, null, 8, ["modelValue"])
|
|
3516
|
+
])
|
|
3517
|
+
]),
|
|
3518
|
+
createElementVNode("div", _hoisted_144, [
|
|
3519
|
+
_cache[214] || (_cache[214] = createElementVNode("label", {
|
|
3520
|
+
class: "add-field-item__label",
|
|
3521
|
+
for: ""
|
|
3522
|
+
}, "千分符标识:", -1)),
|
|
3523
|
+
createElementVNode("div", _hoisted_145, [
|
|
3524
|
+
createVNode(_component_el_switch, {
|
|
3525
|
+
modelValue: $data.editStatIndexForm.THOUSAND_CENTS_FLAG,
|
|
3526
|
+
"onUpdate:modelValue": _cache[74] || (_cache[74] = ($event) => $data.editStatIndexForm.THOUSAND_CENTS_FLAG = $event),
|
|
3527
|
+
"active-value": "1",
|
|
3528
|
+
"inactive-value": "0"
|
|
3529
|
+
}, null, 8, ["modelValue"])
|
|
3530
|
+
])
|
|
3531
|
+
])
|
|
3532
|
+
], 64)) : $data.editStatIndexForm.IS_RECORED_FLAG !== "1" ? (openBlock(), createElementBlock("div", _hoisted_146, [
|
|
3533
|
+
_cache[215] || (_cache[215] = createElementVNode("label", { for: "" }, "计算公式:", -1)),
|
|
3534
|
+
createElementVNode("div", _hoisted_147, [
|
|
3535
|
+
createVNode(_component_epx_rule, {
|
|
3536
|
+
modelValue: $data.editStatIndexForm.INDEX_FORMULA,
|
|
3537
|
+
"onUpdate:modelValue": _cache[75] || (_cache[75] = ($event) => $data.editStatIndexForm.INDEX_FORMULA = $event),
|
|
3538
|
+
metaId: $data.reportInfo.OBJECT,
|
|
3539
|
+
fieldConfigs: { state: "EDIT" }
|
|
3540
|
+
}, null, 8, ["modelValue", "metaId"])
|
|
3541
|
+
])
|
|
3542
|
+
])) : createCommentVNode("", true),
|
|
3543
|
+
_cache[220] || (_cache[220] = createElementVNode("hr", null, null, -1)),
|
|
3544
|
+
createElementVNode("div", _hoisted_148, [
|
|
3545
|
+
_cache[216] || (_cache[216] = createElementVNode("label", {
|
|
3546
|
+
class: "add-field-item__label",
|
|
3547
|
+
for: ""
|
|
3548
|
+
}, "二次计算:", -1)),
|
|
3549
|
+
createElementVNode("div", _hoisted_149, [
|
|
3550
|
+
createVNode(_component_epx_select, {
|
|
3551
|
+
modelValue: $data.editStatIndexForm.AGAIN_COMPUTE,
|
|
3552
|
+
"onUpdate:modelValue": _cache[76] || (_cache[76] = ($event) => $data.editStatIndexForm.AGAIN_COMPUTE = $event),
|
|
3553
|
+
fieldConfigs: { attriLabel: "二次计算", codeKey: "AGAIN_COMPUTE", state: "EDIT" }
|
|
3554
|
+
}, null, 8, ["modelValue"])
|
|
3555
|
+
])
|
|
3556
|
+
]),
|
|
3557
|
+
$data.editStatIndexForm.AGAIN_COMPUTE && $data.editStatIndexForm.AGAIN_COMPUTE !== "no" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
3558
|
+
createElementVNode("div", _hoisted_150, [
|
|
3559
|
+
_cache[217] || (_cache[217] = createElementVNode("label", {
|
|
3560
|
+
class: "add-field-item__label",
|
|
3561
|
+
for: ""
|
|
3562
|
+
}, "二次计算范围:", -1)),
|
|
3563
|
+
createElementVNode("div", _hoisted_151, [
|
|
3564
|
+
createVNode(_component_epx_select, {
|
|
3565
|
+
modelValue: $data.editStatIndexForm.AGAIN_COMPUTE_SCOPE,
|
|
3566
|
+
"onUpdate:modelValue": _cache[77] || (_cache[77] = ($event) => $data.editStatIndexForm.AGAIN_COMPUTE_SCOPE = $event),
|
|
3567
|
+
fieldConfigs: { attriLabel: "二次计算范围", codeKey: "AGAIN_COMPUTE_SCOPE", state: "EDIT" }
|
|
3568
|
+
}, null, 8, ["modelValue"])
|
|
3569
|
+
])
|
|
3570
|
+
]),
|
|
3571
|
+
createElementVNode("div", _hoisted_152, [
|
|
3572
|
+
_cache[218] || (_cache[218] = createElementVNode("label", {
|
|
3573
|
+
class: "add-field-item__label",
|
|
3574
|
+
for: ""
|
|
3575
|
+
}, "百分比小数点位数:", -1)),
|
|
3576
|
+
createElementVNode("div", _hoisted_153, [
|
|
3577
|
+
createVNode(_component_epx_select, {
|
|
3578
|
+
modelValue: $data.editStatIndexForm.PER_RADIO_NUM,
|
|
3579
|
+
"onUpdate:modelValue": _cache[78] || (_cache[78] = ($event) => $data.editStatIndexForm.PER_RADIO_NUM = $event),
|
|
3580
|
+
fieldConfigs: { attriLabel: "百分比小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
3581
|
+
}, null, 8, ["modelValue"])
|
|
3582
|
+
])
|
|
3583
|
+
])
|
|
3584
|
+
], 64)) : createCommentVNode("", true),
|
|
3585
|
+
$data.reportInfo.CHART_TYPE === "column" || $data.reportInfo.CHART_TYPE === "line" ? (openBlock(), createElementBlock("div", _hoisted_154, [
|
|
3586
|
+
_cache[219] || (_cache[219] = createElementVNode("label", { for: "" }, "排序方式:", -1)),
|
|
3587
|
+
createElementVNode("div", _hoisted_155, [
|
|
3588
|
+
createVNode(_component_el_select, {
|
|
3589
|
+
modelValue: $data.editStatIndexForm.SORT,
|
|
3590
|
+
"onUpdate:modelValue": _cache[79] || (_cache[79] = ($event) => $data.editStatIndexForm.SORT = $event),
|
|
3591
|
+
size: "small",
|
|
3592
|
+
clearable: ""
|
|
3593
|
+
}, {
|
|
3594
|
+
default: withCtx(() => [
|
|
3595
|
+
createVNode(_component_el_option, {
|
|
3596
|
+
label: "升序",
|
|
3597
|
+
value: "ASC"
|
|
3598
|
+
}),
|
|
3599
|
+
createVNode(_component_el_option, {
|
|
3600
|
+
label: "逆序",
|
|
3601
|
+
value: "DESC"
|
|
3602
|
+
})
|
|
3603
|
+
]),
|
|
3604
|
+
_: 1
|
|
3605
|
+
}, 8, ["modelValue"])
|
|
3606
|
+
])
|
|
3607
|
+
])) : createCommentVNode("", true)
|
|
3608
|
+
])
|
|
3609
|
+
]),
|
|
3610
|
+
_: 1
|
|
3611
|
+
}, 8, ["modelValue"]),
|
|
3612
|
+
createVNode(_component_el_dialog, {
|
|
3613
|
+
class: "custom-dialog",
|
|
3614
|
+
title: "新增编辑自定义字段",
|
|
3615
|
+
modelValue: $data.addFieldDialog,
|
|
3616
|
+
"onUpdate:modelValue": _cache[86] || (_cache[86] = ($event) => $data.addFieldDialog = $event),
|
|
3617
|
+
"append-to-body": true,
|
|
3618
|
+
"destroy-on-close": "",
|
|
3619
|
+
width: "560px"
|
|
3620
|
+
}, {
|
|
3621
|
+
footer: withCtx(() => [
|
|
3622
|
+
createElementVNode("div", _hoisted_165, [
|
|
3623
|
+
createVNode(_component_el_button, {
|
|
3624
|
+
onClick: _cache[85] || (_cache[85] = ($event) => $data.addFieldDialog = false)
|
|
3625
|
+
}, {
|
|
3626
|
+
default: withCtx(() => [..._cache[228] || (_cache[228] = [
|
|
3627
|
+
createTextVNode("取 消", -1)
|
|
3628
|
+
])]),
|
|
3629
|
+
_: 1
|
|
3630
|
+
}),
|
|
3631
|
+
createVNode(_component_el_button, {
|
|
3632
|
+
type: "primary",
|
|
3633
|
+
onClick: $options.addCustomField
|
|
3634
|
+
}, {
|
|
3635
|
+
default: withCtx(() => [..._cache[229] || (_cache[229] = [
|
|
3636
|
+
createTextVNode("确 定", -1)
|
|
3637
|
+
])]),
|
|
3638
|
+
_: 1
|
|
3639
|
+
}, 8, ["onClick"])
|
|
3640
|
+
])
|
|
3641
|
+
]),
|
|
3642
|
+
default: withCtx(() => [
|
|
3643
|
+
createElementVNode("div", _hoisted_157, [
|
|
3644
|
+
createElementVNode("div", _hoisted_158, [
|
|
3645
|
+
_cache[223] || (_cache[223] = createElementVNode("label", {
|
|
3646
|
+
class: "is-required",
|
|
3647
|
+
for: ""
|
|
3648
|
+
}, "字段名称:", -1)),
|
|
3649
|
+
createElementVNode("div", _hoisted_159, [
|
|
3650
|
+
createVNode(_component_epx_table_form_item, {
|
|
3651
|
+
modelValue: $data.addFieldForm.FIELD_NAME,
|
|
3652
|
+
"onUpdate:modelValue": _cache[82] || (_cache[82] = ($event) => $data.addFieldForm.FIELD_NAME = $event),
|
|
3653
|
+
i18nValue: $data.addFieldForm.FIELD_NAME_I18N,
|
|
3654
|
+
onChangeLanguage: _cache[83] || (_cache[83] = (v) => $data.addFieldForm["FIELD_NAME_I18N"] = v),
|
|
3655
|
+
"field-configs": { attriName: "FIELD_NAME", dataType: "text", state: "EDIT", attriLabel: "名称", attribute: { international: "1" } }
|
|
3656
|
+
}, null, 8, ["modelValue", "i18nValue"])
|
|
3657
|
+
])
|
|
3658
|
+
]),
|
|
3659
|
+
createElementVNode("div", _hoisted_160, [
|
|
3660
|
+
_cache[226] || (_cache[226] = createElementVNode("label", {
|
|
3661
|
+
class: "is-required",
|
|
3662
|
+
for: ""
|
|
3663
|
+
}, "统计项:", -1)),
|
|
3664
|
+
createElementVNode("div", _hoisted_161, [
|
|
3665
|
+
createVNode(_component_draggable, {
|
|
3666
|
+
tag: "ul",
|
|
3667
|
+
class: "field-option__list",
|
|
3668
|
+
list: $data.addFieldForm.options
|
|
3669
|
+
}, {
|
|
3670
|
+
default: withCtx(() => [
|
|
3671
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.addFieldForm.options, (option, index) => {
|
|
3672
|
+
return openBlock(), createElementBlock("li", {
|
|
3673
|
+
class: "field-option__item",
|
|
3674
|
+
key: option.ID || option.NAME
|
|
3675
|
+
}, [
|
|
3676
|
+
_cache[224] || (_cache[224] = createElementVNode("i", { class: "report-field__handler el-icon-rank" }, null, -1)),
|
|
3677
|
+
createElementVNode("span", null, toDisplayString(option.NAME), 1),
|
|
3678
|
+
createElementVNode("span", _hoisted_162, [
|
|
3679
|
+
createVNode(_component_el_button, {
|
|
3680
|
+
type: "primary",
|
|
3681
|
+
link: "",
|
|
3682
|
+
icon: "el-icon-edit",
|
|
3683
|
+
onClick: ($event) => $options.editFieldOption(option, index)
|
|
3684
|
+
}, null, 8, ["onClick"]),
|
|
3685
|
+
createVNode(_component_el_popconfirm, {
|
|
3686
|
+
title: "确认删除?",
|
|
3687
|
+
onConfirm: ($event) => $data.addFieldForm.options.splice(index, 1)
|
|
3688
|
+
}, {
|
|
3689
|
+
reference: withCtx(() => [
|
|
3690
|
+
createVNode(_component_el_button, {
|
|
3691
|
+
class: "delete-icon",
|
|
3692
|
+
type: "primary",
|
|
3693
|
+
link: "",
|
|
3694
|
+
icon: "el-icon-delete"
|
|
3695
|
+
})
|
|
3696
|
+
]),
|
|
3697
|
+
_: 1
|
|
3698
|
+
}, 8, ["onConfirm"])
|
|
3699
|
+
])
|
|
3700
|
+
]);
|
|
3701
|
+
}), 128))
|
|
3702
|
+
]),
|
|
3703
|
+
_: 1
|
|
3704
|
+
}, 8, ["list"]),
|
|
3705
|
+
createVNode(_component_el_button, {
|
|
3706
|
+
type: "primary",
|
|
3707
|
+
link: "",
|
|
3708
|
+
onClick: $options.showAddOptionToField
|
|
3709
|
+
}, {
|
|
3710
|
+
default: withCtx(() => [..._cache[225] || (_cache[225] = [
|
|
3711
|
+
createTextVNode("+ 添加", -1)
|
|
3712
|
+
])]),
|
|
3713
|
+
_: 1
|
|
3714
|
+
}, 8, ["onClick"])
|
|
3715
|
+
])
|
|
3716
|
+
]),
|
|
3717
|
+
createElementVNode("div", _hoisted_163, [
|
|
3718
|
+
_cache[227] || (_cache[227] = createElementVNode("label", { for: "" }, "设为常用:", -1)),
|
|
3719
|
+
createElementVNode("div", _hoisted_164, [
|
|
3720
|
+
createVNode(_component_el_switch, {
|
|
3721
|
+
modelValue: $data.addFieldForm.IS_FAVORITE,
|
|
3722
|
+
"onUpdate:modelValue": _cache[84] || (_cache[84] = ($event) => $data.addFieldForm.IS_FAVORITE = $event),
|
|
3723
|
+
"active-value": "1",
|
|
3724
|
+
"inactive-value": "0"
|
|
3725
|
+
}, null, 8, ["modelValue"])
|
|
3726
|
+
])
|
|
3727
|
+
])
|
|
3728
|
+
])
|
|
3729
|
+
]),
|
|
3730
|
+
_: 1
|
|
3731
|
+
}, 8, ["modelValue"]),
|
|
3732
|
+
createVNode(_component_el_dialog, {
|
|
3733
|
+
class: "custom-dialog",
|
|
3734
|
+
title: "新增自定义统计项",
|
|
3735
|
+
modelValue: $data.addOptionDialog,
|
|
3736
|
+
"onUpdate:modelValue": _cache[127] || (_cache[127] = ($event) => $data.addOptionDialog = $event),
|
|
3737
|
+
"append-to-body": true,
|
|
3738
|
+
width: "560px"
|
|
3739
|
+
}, {
|
|
3740
|
+
footer: withCtx(() => [
|
|
3741
|
+
createElementVNode("div", _hoisted_232, [
|
|
3742
|
+
createVNode(_component_el_button, {
|
|
3743
|
+
onClick: _cache[126] || (_cache[126] = ($event) => $data.addOptionDialog = false)
|
|
3744
|
+
}, {
|
|
3745
|
+
default: withCtx(() => [..._cache[273] || (_cache[273] = [
|
|
3746
|
+
createTextVNode("取 消", -1)
|
|
3747
|
+
])]),
|
|
3748
|
+
_: 1
|
|
3749
|
+
}),
|
|
3750
|
+
createVNode(_component_el_button, {
|
|
3751
|
+
type: "primary",
|
|
3752
|
+
onClick: $options.addStatOption
|
|
3753
|
+
}, {
|
|
3754
|
+
default: withCtx(() => [..._cache[274] || (_cache[274] = [
|
|
3755
|
+
createTextVNode("确 定", -1)
|
|
3756
|
+
])]),
|
|
3757
|
+
_: 1
|
|
3758
|
+
}, 8, ["onClick"])
|
|
3759
|
+
])
|
|
3760
|
+
]),
|
|
3761
|
+
default: withCtx(() => [
|
|
3762
|
+
$data.addOptionDialog ? (openBlock(), createElementBlock("div", _hoisted_166, [
|
|
3763
|
+
createVNode(_component_el_tabs, {
|
|
3764
|
+
modelValue: $data.statFieldTabs,
|
|
3765
|
+
"onUpdate:modelValue": _cache[125] || (_cache[125] = ($event) => $data.statFieldTabs = $event),
|
|
3766
|
+
class: normalizeClass({ "hide-tabs": $data.addOptionForm.POSITION !== "2" || $data.addOptionForm.isToField })
|
|
3767
|
+
}, {
|
|
3768
|
+
default: withCtx(() => [
|
|
3769
|
+
createVNode(_component_el_tab_pane, {
|
|
3770
|
+
label: "统计字段",
|
|
3771
|
+
name: "stat"
|
|
3772
|
+
}, {
|
|
3773
|
+
default: withCtx(() => [
|
|
3774
|
+
$data.addOptionForm.UP ? (openBlock(), createElementBlock("div", _hoisted_167, [
|
|
3775
|
+
_cache[230] || (_cache[230] = createElementVNode("label", { for: "" }, "上级:", -1)),
|
|
3776
|
+
createElementVNode("div", _hoisted_168, [
|
|
3777
|
+
createElementVNode("span", null, toDisplayString($data.addOptionForm["UP#"]), 1)
|
|
3778
|
+
])
|
|
3779
|
+
])) : createCommentVNode("", true),
|
|
3780
|
+
$data.addOptionForm.ID === void 0 ? (openBlock(), createElementBlock("div", _hoisted_169, [
|
|
3781
|
+
_cache[234] || (_cache[234] = createElementVNode("label", { for: "" }, "添加方式:", -1)),
|
|
3782
|
+
createElementVNode("div", _hoisted_170, [
|
|
3783
|
+
createVNode(_component_el_radio_group, {
|
|
3784
|
+
modelValue: $data.addOptionForm.ADD_TYPE,
|
|
3785
|
+
"onUpdate:modelValue": _cache[87] || (_cache[87] = ($event) => $data.addOptionForm.ADD_TYPE = $event)
|
|
3786
|
+
}, {
|
|
3787
|
+
default: withCtx(() => [
|
|
3788
|
+
createVNode(_component_el_radio, {
|
|
3789
|
+
label: "custom",
|
|
3790
|
+
value: "custom"
|
|
3791
|
+
}, {
|
|
3792
|
+
default: withCtx(() => [..._cache[231] || (_cache[231] = [
|
|
3793
|
+
createTextVNode("自定义", -1)
|
|
3794
|
+
])]),
|
|
3795
|
+
_: 1
|
|
3796
|
+
}),
|
|
3797
|
+
createVNode(_component_el_radio, {
|
|
3798
|
+
label: "field",
|
|
3799
|
+
value: "field"
|
|
3800
|
+
}, {
|
|
3801
|
+
default: withCtx(() => [..._cache[232] || (_cache[232] = [
|
|
3802
|
+
createTextVNode("字段选项", -1)
|
|
3803
|
+
])]),
|
|
3804
|
+
_: 1
|
|
3805
|
+
}),
|
|
3806
|
+
createVNode(_component_el_radio, {
|
|
3807
|
+
label: "favorite_item",
|
|
3808
|
+
value: "favorite_item"
|
|
3809
|
+
}, {
|
|
3810
|
+
default: withCtx(() => [..._cache[233] || (_cache[233] = [
|
|
3811
|
+
createTextVNode("常用统计项", -1)
|
|
3812
|
+
])]),
|
|
3813
|
+
_: 1
|
|
3814
|
+
})
|
|
3815
|
+
]),
|
|
3816
|
+
_: 1
|
|
3817
|
+
}, 8, ["modelValue"])
|
|
3818
|
+
])
|
|
3819
|
+
])) : createCommentVNode("", true),
|
|
3820
|
+
$data.addOptionForm.INDEX_FLAG === "1" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
3821
|
+
createElementVNode("div", _hoisted_171, [
|
|
3822
|
+
_cache[235] || (_cache[235] = createElementVNode("label", {
|
|
3823
|
+
class: "is-required",
|
|
3824
|
+
for: ""
|
|
3825
|
+
}, "标题:", -1)),
|
|
3826
|
+
createElementVNode("div", _hoisted_172, [
|
|
3827
|
+
createVNode(_component_epx_table_form_item, {
|
|
3828
|
+
modelValue: $data.addOptionForm.NAME,
|
|
3829
|
+
"onUpdate:modelValue": _cache[88] || (_cache[88] = ($event) => $data.addOptionForm.NAME = $event),
|
|
3830
|
+
i18nValue: $data.addOptionForm.NAME_I18N,
|
|
3831
|
+
onChangeLanguage: _cache[89] || (_cache[89] = (v) => $data.addOptionForm["NAME_I18N"] = v),
|
|
3832
|
+
"field-configs": { attriName: "NAME", dataType: "text", state: "EDIT", attriLabel: "名称", attribute: { international: "1" } }
|
|
3833
|
+
}, null, 8, ["modelValue", "i18nValue"])
|
|
3834
|
+
])
|
|
3835
|
+
]),
|
|
3836
|
+
createElementVNode("div", _hoisted_173, [
|
|
3837
|
+
_cache[236] || (_cache[236] = createElementVNode("label", {
|
|
3838
|
+
class: "add-field-item__label is-required",
|
|
3839
|
+
for: ""
|
|
3840
|
+
}, "计算方式:", -1)),
|
|
3841
|
+
createElementVNode("div", _hoisted_174, [
|
|
3842
|
+
createVNode(_component_epx_radio, {
|
|
3843
|
+
modelValue: $data.addOptionForm.MODE,
|
|
3844
|
+
"onUpdate:modelValue": _cache[90] || (_cache[90] = ($event) => $data.addOptionForm.MODE = $event),
|
|
3845
|
+
fieldConfigs: { codeKey: "FM_REPORT_TIME_MODE", state: "EDIT" }
|
|
3846
|
+
}, null, 8, ["modelValue"])
|
|
3847
|
+
])
|
|
3848
|
+
]),
|
|
3849
|
+
createElementVNode("div", _hoisted_175, [
|
|
3850
|
+
_cache[237] || (_cache[237] = createElementVNode("label", {
|
|
3851
|
+
class: "add-field-item__label",
|
|
3852
|
+
for: ""
|
|
3853
|
+
}, "数值单位:", -1)),
|
|
3854
|
+
createElementVNode("div", _hoisted_176, [
|
|
3855
|
+
createVNode(_component_epx_radio, {
|
|
3856
|
+
modelValue: $data.addOptionForm.NUM_UNIT,
|
|
3857
|
+
"onUpdate:modelValue": _cache[91] || (_cache[91] = ($event) => $data.addOptionForm.NUM_UNIT = $event),
|
|
3858
|
+
fieldConfigs: { codeKey: "report_num_nuit", state: "EDIT" }
|
|
3859
|
+
}, null, 8, ["modelValue"])
|
|
3860
|
+
])
|
|
3861
|
+
]),
|
|
3862
|
+
createElementVNode("div", _hoisted_177, [
|
|
3863
|
+
_cache[238] || (_cache[238] = createElementVNode("label", {
|
|
3864
|
+
class: "add-field-item__label",
|
|
3865
|
+
for: ""
|
|
3866
|
+
}, "单位后缀:", -1)),
|
|
3867
|
+
createElementVNode("div", _hoisted_178, [
|
|
3868
|
+
createVNode(_component_el_input, {
|
|
3869
|
+
size: "small",
|
|
3870
|
+
modelValue: $data.addOptionForm.UNIT_SUFFIX,
|
|
3871
|
+
"onUpdate:modelValue": _cache[92] || (_cache[92] = ($event) => $data.addOptionForm.UNIT_SUFFIX = $event)
|
|
3872
|
+
}, null, 8, ["modelValue"])
|
|
3873
|
+
])
|
|
3874
|
+
]),
|
|
3875
|
+
createElementVNode("div", _hoisted_179, [
|
|
3876
|
+
_cache[239] || (_cache[239] = createElementVNode("label", {
|
|
3877
|
+
class: "add-field-item__label",
|
|
3878
|
+
for: ""
|
|
3879
|
+
}, "小数点位数:", -1)),
|
|
3880
|
+
createElementVNode("div", _hoisted_180, [
|
|
3881
|
+
createVNode(_component_epx_select, {
|
|
3882
|
+
modelValue: $data.addOptionForm.DECIMAL_LENGTH,
|
|
3883
|
+
"onUpdate:modelValue": _cache[93] || (_cache[93] = ($event) => $data.addOptionForm.DECIMAL_LENGTH = $event),
|
|
3884
|
+
fieldConfigs: { attriLabel: "小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
3885
|
+
}, null, 8, ["modelValue"])
|
|
3886
|
+
])
|
|
3887
|
+
]),
|
|
3888
|
+
createElementVNode("div", _hoisted_181, [
|
|
3889
|
+
_cache[240] || (_cache[240] = createElementVNode("label", {
|
|
3890
|
+
class: "add-field-item__label",
|
|
3891
|
+
for: ""
|
|
3892
|
+
}, "千分符标识:", -1)),
|
|
3893
|
+
createElementVNode("div", _hoisted_182, [
|
|
3894
|
+
createVNode(_component_el_switch, {
|
|
3895
|
+
modelValue: $data.addOptionForm.THOUSAND_CENTS_FLAG,
|
|
3896
|
+
"onUpdate:modelValue": _cache[94] || (_cache[94] = ($event) => $data.addOptionForm.THOUSAND_CENTS_FLAG = $event),
|
|
3897
|
+
"active-value": "1",
|
|
3898
|
+
"inactive-value": "0"
|
|
3899
|
+
}, null, 8, ["modelValue"])
|
|
3900
|
+
])
|
|
3901
|
+
]),
|
|
3902
|
+
$data.addOptionForm.IS_RECORED_FLAG !== "1" ? (openBlock(), createElementBlock("div", _hoisted_183, [
|
|
3903
|
+
_cache[241] || (_cache[241] = createElementVNode("label", { for: "" }, "统计范围:", -1)),
|
|
3904
|
+
createElementVNode("div", _hoisted_184, [
|
|
3905
|
+
$data.addOptionDialog ? (openBlock(), createBlock(_component_epx_form_scope, {
|
|
3906
|
+
key: 0,
|
|
3907
|
+
modelValue: $data.addOptionForm.SCOPE,
|
|
3908
|
+
"onUpdate:modelValue": _cache[95] || (_cache[95] = ($event) => $data.addOptionForm.SCOPE = $event),
|
|
3909
|
+
metaId: $data.reportInfo.OBJECT,
|
|
3910
|
+
fieldConfigs: { state: "EDIT" }
|
|
3911
|
+
}, null, 8, ["modelValue", "metaId"])) : createCommentVNode("", true)
|
|
3912
|
+
])
|
|
3913
|
+
])) : createCommentVNode("", true)
|
|
3914
|
+
], 64)) : $data.addOptionForm.ADD_TYPE === "custom" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
3915
|
+
createElementVNode("div", _hoisted_185, [
|
|
3916
|
+
_cache[242] || (_cache[242] = createElementVNode("label", {
|
|
3917
|
+
class: "is-required",
|
|
3918
|
+
for: ""
|
|
3919
|
+
}, "标题:", -1)),
|
|
3920
|
+
createElementVNode("div", _hoisted_186, [
|
|
3921
|
+
createVNode(_component_epx_table_form_item, {
|
|
3922
|
+
modelValue: $data.addOptionForm.NAME,
|
|
3923
|
+
"onUpdate:modelValue": _cache[96] || (_cache[96] = ($event) => $data.addOptionForm.NAME = $event),
|
|
3924
|
+
i18nValue: $data.addOptionForm.NAME_I18N,
|
|
3925
|
+
onChangeLanguage: _cache[97] || (_cache[97] = (v) => $data.addOptionForm["NAME_I18N"] = v),
|
|
3926
|
+
"field-configs": { attriName: "NAME", dataType: "text", state: "EDIT", attriLabel: "名称", attribute: { international: "1" } }
|
|
3927
|
+
}, null, 8, ["modelValue", "i18nValue"])
|
|
3928
|
+
])
|
|
3929
|
+
]),
|
|
3930
|
+
$data.addOptionForm.IS_RECORED_FLAG !== "1" ? (openBlock(), createElementBlock("div", _hoisted_187, [
|
|
3931
|
+
_cache[243] || (_cache[243] = createElementVNode("label", { for: "" }, "统计范围:", -1)),
|
|
3932
|
+
createElementVNode("div", _hoisted_188, [
|
|
3933
|
+
$data.addOptionDialog ? (openBlock(), createBlock(_component_epx_form_scope, {
|
|
3934
|
+
key: 0,
|
|
3935
|
+
modelValue: $data.addOptionForm.SCOPE,
|
|
3936
|
+
"onUpdate:modelValue": _cache[98] || (_cache[98] = ($event) => $data.addOptionForm.SCOPE = $event),
|
|
3937
|
+
metaId: $data.reportInfo.OBJECT,
|
|
3938
|
+
fieldConfigs: { state: "EDIT" }
|
|
3939
|
+
}, null, 8, ["modelValue", "metaId"])) : createCommentVNode("", true)
|
|
3940
|
+
])
|
|
3941
|
+
])) : createCommentVNode("", true),
|
|
3942
|
+
$data.addOptionForm.POSITION === "2" && $data.reportInfo.TYPE === "1" ? (openBlock(), createElementBlock("div", _hoisted_189, [
|
|
3943
|
+
_cache[244] || (_cache[244] = createElementVNode("label", { for: "" }, "排序方式:", -1)),
|
|
3944
|
+
createElementVNode("div", _hoisted_190, [
|
|
3945
|
+
createVNode(_component_el_select, {
|
|
3946
|
+
modelValue: $data.addOptionForm.SORT,
|
|
3947
|
+
"onUpdate:modelValue": _cache[99] || (_cache[99] = ($event) => $data.addOptionForm.SORT = $event),
|
|
3948
|
+
size: "small",
|
|
3949
|
+
clearable: ""
|
|
3950
|
+
}, {
|
|
3951
|
+
default: withCtx(() => [
|
|
3952
|
+
createVNode(_component_el_option, {
|
|
3953
|
+
label: "升序",
|
|
3954
|
+
value: "ASC"
|
|
3955
|
+
}),
|
|
3956
|
+
createVNode(_component_el_option, {
|
|
3957
|
+
label: "逆序",
|
|
3958
|
+
value: "DESC"
|
|
3959
|
+
})
|
|
3960
|
+
]),
|
|
3961
|
+
_: 1
|
|
3962
|
+
}, 8, ["modelValue"])
|
|
3963
|
+
])
|
|
3964
|
+
])) : createCommentVNode("", true)
|
|
3965
|
+
], 64)) : $data.addOptionForm.ADD_TYPE === "field" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
3966
|
+
createElementVNode("div", _hoisted_191, [
|
|
3967
|
+
_cache[245] || (_cache[245] = createElementVNode("label", { for: "" }, "统计字段:", -1)),
|
|
3968
|
+
createVNode(_component_el_popover, {
|
|
3969
|
+
trigger: "click",
|
|
3970
|
+
placement: "bottom",
|
|
3971
|
+
width: "160"
|
|
3972
|
+
}, {
|
|
3973
|
+
reference: withCtx(() => [
|
|
3974
|
+
createVNode(_component_el_input, {
|
|
3975
|
+
size: "small",
|
|
3976
|
+
placeholder: "请输入内容",
|
|
3977
|
+
"suffix-icon": "el-icon-search",
|
|
3978
|
+
"model-value": $options.getLabel($data.addOptionForm.STA_FIELD, $data.reportStatisFields.entityFields)
|
|
3979
|
+
}, null, 8, ["model-value"])
|
|
3980
|
+
]),
|
|
3981
|
+
default: withCtx(() => [
|
|
3982
|
+
createVNode(_component_el_tree, {
|
|
3983
|
+
class: "field-tree",
|
|
3984
|
+
data: $options.entityListFields,
|
|
3985
|
+
props: { label: "text", value: "id" },
|
|
3986
|
+
onNodeClick: _cache[100] || (_cache[100] = (node) => {
|
|
3987
|
+
node.dataType === "list" || node.dataType === "treeList" || node.dataType === "object" || node.dataType === "user" || node.dataType === "dept" ? $data.addOptionForm["STA_FIELD"] = node.id : _ctx.$message.error("请选择选项类型的字段");
|
|
3988
|
+
})
|
|
3989
|
+
}, null, 8, ["data"])
|
|
3990
|
+
]),
|
|
3991
|
+
_: 1
|
|
3992
|
+
})
|
|
3993
|
+
]),
|
|
3994
|
+
$options.statOptionField ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3995
|
+
$options.statOptionField.dataType === "list" && $options.statOptionField.optionType === "treeList" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3996
|
+
createElementVNode("div", _hoisted_192, [
|
|
3997
|
+
_cache[246] || (_cache[246] = createElementVNode("label", { for: "" }, "统计层级:", -1)),
|
|
3998
|
+
createVNode(_component_epx_radio, {
|
|
3999
|
+
modelValue: $data.addOptionForm.STATIS_FIELD_LEVEL,
|
|
4000
|
+
"onUpdate:modelValue": _cache[101] || (_cache[101] = ($event) => $data.addOptionForm.STATIS_FIELD_LEVEL = $event),
|
|
4001
|
+
fieldConfigs: { codeKey: "STATIS_FIELD_LEVEL", state: "EDIT" },
|
|
4002
|
+
onChange: _cache[102] || (_cache[102] = ($event) => $data.addOptionForm["STATIS_CUSTOM_OPTIONS"] = [])
|
|
4003
|
+
}, null, 8, ["modelValue"])
|
|
4004
|
+
]),
|
|
4005
|
+
createElementVNode("div", _hoisted_193, [
|
|
4006
|
+
_cache[248] || (_cache[248] = createElementVNode("label", { for: "" }, "统计选项:", -1)),
|
|
4007
|
+
createElementVNode("div", _hoisted_194, [
|
|
4008
|
+
createVNode(_component_el_checkbox, {
|
|
4009
|
+
class: "add-field__checkall",
|
|
4010
|
+
modelValue: $options.statOptionFieldTreeOptionSelectAll,
|
|
4011
|
+
"onUpdate:modelValue": _cache[103] || (_cache[103] = ($event) => $options.statOptionFieldTreeOptionSelectAll = $event)
|
|
4012
|
+
}, {
|
|
4013
|
+
default: withCtx(() => [..._cache[247] || (_cache[247] = [
|
|
4014
|
+
createTextVNode("全选", -1)
|
|
4015
|
+
])]),
|
|
4016
|
+
_: 1
|
|
4017
|
+
}, 8, ["modelValue"]),
|
|
4018
|
+
$data.addOptionForm.STATIS_FIELD_LEVEL === "all" ? (openBlock(), createBlock(_component_el_tree, {
|
|
4019
|
+
key: 0,
|
|
4020
|
+
ref: "addOptionTree",
|
|
4021
|
+
"node-key": "id",
|
|
4022
|
+
class: "option-tree",
|
|
4023
|
+
data: _ctx.getTreeCodeById($options.statOptionField.codeKey),
|
|
4024
|
+
"check-strictly": true,
|
|
4025
|
+
onCheckChange: $options.checkOptionChange,
|
|
4026
|
+
"show-checkbox": "",
|
|
4027
|
+
props: { label: "name", children: "children" }
|
|
4028
|
+
}, null, 8, ["data", "onCheckChange"])) : (openBlock(), createBlock(_component_el_checkbox_group, {
|
|
4029
|
+
key: 1,
|
|
4030
|
+
class: "add-field__checkgroup",
|
|
4031
|
+
modelValue: $data.addOptionForm.STATIS_CUSTOM_OPTIONS,
|
|
4032
|
+
"onUpdate:modelValue": _cache[104] || (_cache[104] = ($event) => $data.addOptionForm.STATIS_CUSTOM_OPTIONS = $event)
|
|
4033
|
+
}, {
|
|
4034
|
+
default: withCtx(() => [
|
|
4035
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.statOptionFieldTreeOptions, (option) => {
|
|
4036
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
4037
|
+
label: option.id,
|
|
4038
|
+
value: option.id,
|
|
4039
|
+
key: option.id
|
|
4040
|
+
}, {
|
|
4041
|
+
default: withCtx(() => [
|
|
4042
|
+
createTextVNode(toDisplayString(option.name), 1)
|
|
4043
|
+
]),
|
|
4044
|
+
_: 2
|
|
4045
|
+
}, 1032, ["label", "value"]);
|
|
4046
|
+
}), 128))
|
|
4047
|
+
]),
|
|
4048
|
+
_: 1
|
|
4049
|
+
}, 8, ["modelValue"]))
|
|
4050
|
+
])
|
|
4051
|
+
])
|
|
4052
|
+
], 64)) : $options.statOptionField.dataType === "list" ? (openBlock(), createElementBlock("div", _hoisted_195, [
|
|
4053
|
+
_cache[250] || (_cache[250] = createElementVNode("label", { for: "" }, "统计选项:", -1)),
|
|
4054
|
+
createElementVNode("div", _hoisted_196, [
|
|
4055
|
+
createVNode(_component_el_checkbox, {
|
|
4056
|
+
class: "add-field__checkall",
|
|
4057
|
+
modelValue: $options.statOptionFieldOptionSelectAll,
|
|
4058
|
+
"onUpdate:modelValue": _cache[105] || (_cache[105] = ($event) => $options.statOptionFieldOptionSelectAll = $event)
|
|
4059
|
+
}, {
|
|
4060
|
+
default: withCtx(() => [..._cache[249] || (_cache[249] = [
|
|
4061
|
+
createTextVNode("全选", -1)
|
|
4062
|
+
])]),
|
|
4063
|
+
_: 1
|
|
4064
|
+
}, 8, ["modelValue"]),
|
|
4065
|
+
createVNode(_component_el_checkbox_group, {
|
|
4066
|
+
class: "add-field__checkgroup",
|
|
4067
|
+
modelValue: $data.addOptionForm.STATIS_CUSTOM_OPTIONS,
|
|
4068
|
+
"onUpdate:modelValue": _cache[106] || (_cache[106] = ($event) => $data.addOptionForm.STATIS_CUSTOM_OPTIONS = $event)
|
|
4069
|
+
}, {
|
|
4070
|
+
default: withCtx(() => [
|
|
4071
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.statOptionFieldOptions, (option) => {
|
|
4072
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
4073
|
+
label: option.id,
|
|
4074
|
+
value: option.id,
|
|
4075
|
+
key: option.id
|
|
4076
|
+
}, {
|
|
4077
|
+
default: withCtx(() => [
|
|
4078
|
+
createTextVNode(toDisplayString(option.name), 1)
|
|
4079
|
+
]),
|
|
4080
|
+
_: 2
|
|
4081
|
+
}, 1032, ["label", "value"]);
|
|
4082
|
+
}), 128))
|
|
4083
|
+
]),
|
|
4084
|
+
_: 1
|
|
4085
|
+
}, 8, ["modelValue"])
|
|
4086
|
+
])
|
|
4087
|
+
])) : createCommentVNode("", true),
|
|
4088
|
+
$options.statOptionField.dataType === "object" || $options.statOptionField.dataType === "user" || $options.statOptionField.dataType === "dept" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
4089
|
+
createElementVNode("div", _hoisted_197, [
|
|
4090
|
+
_cache[251] || (_cache[251] = createElementVNode("label", { for: "" }, "统计范围:", -1)),
|
|
4091
|
+
createElementVNode("div", _hoisted_198, [
|
|
4092
|
+
createVNode(_component_epx_form_scope, {
|
|
4093
|
+
modelValue: $data.addOptionForm.SCOPE,
|
|
4094
|
+
"onUpdate:modelValue": _cache[107] || (_cache[107] = ($event) => $data.addOptionForm.SCOPE = $event),
|
|
4095
|
+
metaId: $options.statOptionField.relatedEntity,
|
|
4096
|
+
fieldConfigs: { state: "EDIT" }
|
|
4097
|
+
}, null, 8, ["modelValue", "metaId"])
|
|
4098
|
+
])
|
|
4099
|
+
]),
|
|
4100
|
+
createElementVNode("div", _hoisted_199, [
|
|
4101
|
+
_cache[253] || (_cache[253] = createElementVNode("label", { for: "" }, "统计选项:", -1)),
|
|
4102
|
+
createElementVNode("div", _hoisted_200, [
|
|
4103
|
+
createVNode(_component_el_checkbox, {
|
|
4104
|
+
class: "add-field__checkall",
|
|
4105
|
+
modelValue: $options.statOptionFieldOptionSelectAll,
|
|
4106
|
+
"onUpdate:modelValue": _cache[108] || (_cache[108] = ($event) => $options.statOptionFieldOptionSelectAll = $event)
|
|
4107
|
+
}, {
|
|
4108
|
+
default: withCtx(() => [..._cache[252] || (_cache[252] = [
|
|
4109
|
+
createTextVNode("全选", -1)
|
|
4110
|
+
])]),
|
|
4111
|
+
_: 1
|
|
4112
|
+
}, 8, ["modelValue"]),
|
|
4113
|
+
createVNode(_component_el_checkbox_group, {
|
|
4114
|
+
class: "add-field__checkgroup",
|
|
4115
|
+
modelValue: $data.addOptionForm.STATIS_CUSTOM_OPTIONS,
|
|
4116
|
+
"onUpdate:modelValue": _cache[109] || (_cache[109] = ($event) => $data.addOptionForm.STATIS_CUSTOM_OPTIONS = $event)
|
|
4117
|
+
}, {
|
|
4118
|
+
default: withCtx(() => [
|
|
4119
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.statOptionFieldData, (option) => {
|
|
4120
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
4121
|
+
label: option.id,
|
|
4122
|
+
value: option.id,
|
|
4123
|
+
key: option.id
|
|
4124
|
+
}, {
|
|
4125
|
+
default: withCtx(() => [
|
|
4126
|
+
createTextVNode(toDisplayString(option.text), 1)
|
|
4127
|
+
]),
|
|
4128
|
+
_: 2
|
|
4129
|
+
}, 1032, ["label", "value"]);
|
|
4130
|
+
}), 128))
|
|
4131
|
+
]),
|
|
4132
|
+
_: 1
|
|
4133
|
+
}, 8, ["modelValue"])
|
|
4134
|
+
])
|
|
4135
|
+
])
|
|
4136
|
+
], 64)) : createCommentVNode("", true)
|
|
4137
|
+
], 64)) : createCommentVNode("", true)
|
|
4138
|
+
], 64)) : $data.addOptionForm.ADD_TYPE === "favorite_item" ? (openBlock(), createElementBlock("div", _hoisted_201, [
|
|
4139
|
+
_cache[254] || (_cache[254] = createElementVNode("label", { for: "" }, "常用统计项:", -1)),
|
|
4140
|
+
createElementVNode("div", _hoisted_202, [
|
|
4141
|
+
createElementVNode("ul", _hoisted_203, [
|
|
4142
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.reportStatisFields.customFields, (field) => {
|
|
4143
|
+
return openBlock(), createElementBlock("li", {
|
|
4144
|
+
class: normalizeClass(["common-field__item", { "fold": $data.foldCommonField[field.id] }]),
|
|
4145
|
+
key: field.id
|
|
4146
|
+
}, [
|
|
4147
|
+
createElementVNode("p", _hoisted_204, [
|
|
4148
|
+
createVNode(_component_el_checkbox, {
|
|
4149
|
+
modelValue: $data.checkfieldAllOptions[field.id],
|
|
4150
|
+
"onUpdate:modelValue": ($event) => $data.checkfieldAllOptions[field.id] = $event
|
|
4151
|
+
}, {
|
|
4152
|
+
default: withCtx(() => [
|
|
4153
|
+
createTextVNode(toDisplayString(field.text), 1)
|
|
4154
|
+
]),
|
|
4155
|
+
_: 2
|
|
4156
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
4157
|
+
createElementVNode("i", {
|
|
4158
|
+
class: "common-field__fold el-icon-arrow-up",
|
|
4159
|
+
onClick: ($event) => $data.foldCommonField[field.id] = !$data.foldCommonField[field.id]
|
|
4160
|
+
}, null, 8, _hoisted_205)
|
|
4161
|
+
]),
|
|
4162
|
+
withDirectives(createVNode(_component_el_checkbox_group, {
|
|
4163
|
+
class: "common-field-option__checkboxgroup",
|
|
4164
|
+
modelValue: $data.addOptionForm.FAVORITE_ITEM,
|
|
4165
|
+
"onUpdate:modelValue": _cache[110] || (_cache[110] = ($event) => $data.addOptionForm.FAVORITE_ITEM = $event)
|
|
4166
|
+
}, {
|
|
4167
|
+
default: withCtx(() => [
|
|
4168
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(field["children"], (option) => {
|
|
4169
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
4170
|
+
label: option.id,
|
|
4171
|
+
value: option.id,
|
|
4172
|
+
key: option.id
|
|
4173
|
+
}, {
|
|
4174
|
+
default: withCtx(() => [
|
|
4175
|
+
createTextVNode(toDisplayString(option.text), 1)
|
|
4176
|
+
]),
|
|
4177
|
+
_: 2
|
|
4178
|
+
}, 1032, ["label", "value"]);
|
|
4179
|
+
}), 128))
|
|
4180
|
+
]),
|
|
4181
|
+
_: 2
|
|
4182
|
+
}, 1032, ["modelValue"]), [
|
|
4183
|
+
[vShow, !$data.foldCommonField[field.id]]
|
|
4184
|
+
])
|
|
4185
|
+
], 2);
|
|
4186
|
+
}), 128))
|
|
4187
|
+
])
|
|
4188
|
+
])
|
|
4189
|
+
])) : createCommentVNode("", true),
|
|
4190
|
+
($data.addOptionForm.ADD_TYPE === "custom" || $data.addOptionForm.ADD_TYPE === "field") && ($data.reportInfo.CHART_TYPE === "column" || $data.reportInfo.CHART_TYPE === "line") ? (openBlock(), createElementBlock("div", _hoisted_206, [
|
|
4191
|
+
_cache[255] || (_cache[255] = createElementVNode("label", { for: "" }, "显示方式:", -1)),
|
|
4192
|
+
createVNode(_component_epx_radio, {
|
|
4193
|
+
modelValue: $data.addOptionForm.LINE_SHOW_TYPE,
|
|
4194
|
+
"onUpdate:modelValue": _cache[111] || (_cache[111] = ($event) => $data.addOptionForm.LINE_SHOW_TYPE = $event),
|
|
4195
|
+
fieldConfigs: { codeKey: "LINE_SHOW_TYPE", state: "EDIT" }
|
|
4196
|
+
}, null, 8, ["modelValue"])
|
|
4197
|
+
])) : createCommentVNode("", true),
|
|
4198
|
+
($data.addOptionForm.ADD_TYPE === "custom" || $data.addOptionForm.ADD_TYPE === "field") && $data.addOptionForm.POSITION === "2" ? (openBlock(), createElementBlock("div", _hoisted_207, [
|
|
4199
|
+
_cache[256] || (_cache[256] = createElementVNode("label", {
|
|
4200
|
+
class: "add-field-item__label",
|
|
4201
|
+
for: ""
|
|
4202
|
+
}, "是否置空:", -1)),
|
|
4203
|
+
createElementVNode("div", _hoisted_208, [
|
|
4204
|
+
createVNode(_component_el_switch, {
|
|
4205
|
+
modelValue: $data.addOptionForm.IS_SET_NULL,
|
|
4206
|
+
"onUpdate:modelValue": _cache[112] || (_cache[112] = ($event) => $data.addOptionForm.IS_SET_NULL = $event),
|
|
4207
|
+
"active-value": "1",
|
|
4208
|
+
"inactive-value": "0"
|
|
4209
|
+
}, null, 8, ["modelValue"])
|
|
4210
|
+
])
|
|
4211
|
+
])) : createCommentVNode("", true),
|
|
4212
|
+
$data.addOptionForm.POSITION === "2" && $data.reportInfo.CHART_TYPE === "columnAndLine" ? (openBlock(), createElementBlock("div", _hoisted_209, [
|
|
4213
|
+
_cache[257] || (_cache[257] = createElementVNode("label", { for: "" }, "展示报表类型:", -1)),
|
|
4214
|
+
createVNode(_component_epx_radio, {
|
|
4215
|
+
modelValue: $data.addOptionForm.SHOW_REPORT_TYPE,
|
|
4216
|
+
"onUpdate:modelValue": _cache[113] || (_cache[113] = ($event) => $data.addOptionForm.SHOW_REPORT_TYPE = $event),
|
|
4217
|
+
fieldConfigs: { codeKey: "zzhhReportType", state: "EDIT" }
|
|
4218
|
+
}, null, 8, ["modelValue"])
|
|
4219
|
+
])) : createCommentVNode("", true)
|
|
4220
|
+
]),
|
|
4221
|
+
_: 1
|
|
4222
|
+
}),
|
|
4223
|
+
createVNode(_component_el_tab_pane, {
|
|
4224
|
+
label: "统计指标",
|
|
4225
|
+
name: "index"
|
|
4226
|
+
}, {
|
|
4227
|
+
default: withCtx(() => [
|
|
4228
|
+
createElementVNode("div", _hoisted_210, [
|
|
4229
|
+
_cache[261] || (_cache[261] = createElementVNode("label", { for: "" }, "指标类别:", -1)),
|
|
4230
|
+
createElementVNode("div", _hoisted_211, [
|
|
4231
|
+
createVNode(_component_el_radio_group, {
|
|
4232
|
+
modelValue: $data.addOptionForm.STA_INDEX_TYPE,
|
|
4233
|
+
"onUpdate:modelValue": _cache[114] || (_cache[114] = ($event) => $data.addOptionForm.STA_INDEX_TYPE = $event)
|
|
4234
|
+
}, {
|
|
4235
|
+
default: withCtx(() => [
|
|
4236
|
+
createVNode(_component_el_radio, {
|
|
4237
|
+
label: "default",
|
|
4238
|
+
value: "default"
|
|
4239
|
+
}, {
|
|
4240
|
+
default: withCtx(() => [..._cache[258] || (_cache[258] = [
|
|
4241
|
+
createTextVNode("默认", -1)
|
|
4242
|
+
])]),
|
|
4243
|
+
_: 1
|
|
4244
|
+
}),
|
|
4245
|
+
createVNode(_component_el_radio, {
|
|
4246
|
+
label: "field",
|
|
4247
|
+
value: "field"
|
|
4248
|
+
}, {
|
|
4249
|
+
default: withCtx(() => [..._cache[259] || (_cache[259] = [
|
|
4250
|
+
createTextVNode("指标字段", -1)
|
|
4251
|
+
])]),
|
|
4252
|
+
_: 1
|
|
4253
|
+
}),
|
|
4254
|
+
createVNode(_component_el_radio, {
|
|
4255
|
+
label: "custom",
|
|
4256
|
+
value: "custom"
|
|
4257
|
+
}, {
|
|
4258
|
+
default: withCtx(() => [..._cache[260] || (_cache[260] = [
|
|
4259
|
+
createTextVNode("自定义", -1)
|
|
4260
|
+
])]),
|
|
4261
|
+
_: 1
|
|
4262
|
+
})
|
|
4263
|
+
]),
|
|
4264
|
+
_: 1
|
|
4265
|
+
}, 8, ["modelValue"])
|
|
4266
|
+
])
|
|
4267
|
+
]),
|
|
4268
|
+
$data.addOptionForm.STA_INDEX_TYPE === "field" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4269
|
+
createElementVNode("div", _hoisted_212, [
|
|
4270
|
+
_cache[262] || (_cache[262] = createElementVNode("label", { for: "" }, "指标字段:", -1)),
|
|
4271
|
+
createElementVNode("div", _hoisted_213, [
|
|
4272
|
+
createVNode(_component_el_popover, {
|
|
4273
|
+
trigger: "click",
|
|
4274
|
+
placement: "bottom",
|
|
4275
|
+
width: "160"
|
|
4276
|
+
}, {
|
|
4277
|
+
reference: withCtx(() => [
|
|
4278
|
+
createVNode(_component_el_input, {
|
|
4279
|
+
size: "small",
|
|
4280
|
+
placeholder: "请输入内容",
|
|
4281
|
+
"suffix-icon": "el-icon-search",
|
|
4282
|
+
"model-value": $options.getLabel($data.addOptionForm.STA_INDEX_FIELD, $data.reportStatisFields.statisIndexFields)
|
|
4283
|
+
}, null, 8, ["model-value"])
|
|
4284
|
+
]),
|
|
4285
|
+
default: withCtx(() => [
|
|
4286
|
+
createVNode(_component_el_tree, {
|
|
4287
|
+
class: "field-tree",
|
|
4288
|
+
data: $data.reportStatisFields.statisIndexFields,
|
|
4289
|
+
props: { label: "text", value: "id" },
|
|
4290
|
+
onNodeClick: _cache[115] || (_cache[115] = (node) => {
|
|
4291
|
+
$data.addOptionForm["STA_INDEX_FIELD"] = node.id;
|
|
4292
|
+
$data.addOptionForm["STA_INDEX_FIELD_CODE"] = node.code;
|
|
4293
|
+
})
|
|
4294
|
+
}, null, 8, ["data"])
|
|
4295
|
+
]),
|
|
4296
|
+
_: 1
|
|
4297
|
+
})
|
|
4298
|
+
])
|
|
4299
|
+
]),
|
|
4300
|
+
createElementVNode("div", _hoisted_214, [
|
|
4301
|
+
_cache[263] || (_cache[263] = createElementVNode("label", {
|
|
4302
|
+
class: "add-field-item__label is-required",
|
|
4303
|
+
for: ""
|
|
4304
|
+
}, "计算方式:", -1)),
|
|
4305
|
+
createElementVNode("div", _hoisted_215, [
|
|
4306
|
+
createVNode(_component_epx_radio, {
|
|
4307
|
+
modelValue: $data.addOptionForm.MODE,
|
|
4308
|
+
"onUpdate:modelValue": _cache[116] || (_cache[116] = ($event) => $data.addOptionForm.MODE = $event),
|
|
4309
|
+
fieldConfigs: { codeKey: "FM_REPORT_TIME_MODE", state: "EDIT" }
|
|
4310
|
+
}, null, 8, ["modelValue"])
|
|
4311
|
+
])
|
|
4312
|
+
]),
|
|
4313
|
+
createElementVNode("div", _hoisted_216, [
|
|
4314
|
+
_cache[264] || (_cache[264] = createElementVNode("label", {
|
|
4315
|
+
class: "add-field-item__label",
|
|
4316
|
+
for: ""
|
|
4317
|
+
}, "数值单位:", -1)),
|
|
4318
|
+
createElementVNode("div", _hoisted_217, [
|
|
4319
|
+
createVNode(_component_epx_radio, {
|
|
4320
|
+
modelValue: $data.addOptionForm.NUM_UNIT,
|
|
4321
|
+
"onUpdate:modelValue": _cache[117] || (_cache[117] = ($event) => $data.addOptionForm.NUM_UNIT = $event),
|
|
4322
|
+
fieldConfigs: { codeKey: "report_num_nuit", state: "EDIT" }
|
|
4323
|
+
}, null, 8, ["modelValue"])
|
|
4324
|
+
])
|
|
4325
|
+
]),
|
|
4326
|
+
createElementVNode("div", _hoisted_218, [
|
|
4327
|
+
_cache[265] || (_cache[265] = createElementVNode("label", {
|
|
4328
|
+
class: "add-field-item__label",
|
|
4329
|
+
for: ""
|
|
4330
|
+
}, "单位后缀:", -1)),
|
|
4331
|
+
createElementVNode("div", _hoisted_219, [
|
|
4332
|
+
createVNode(_component_el_input, {
|
|
4333
|
+
size: "small",
|
|
4334
|
+
modelValue: $data.addOptionForm.UNIT_SUFFIX,
|
|
4335
|
+
"onUpdate:modelValue": _cache[118] || (_cache[118] = ($event) => $data.addOptionForm.UNIT_SUFFIX = $event)
|
|
4336
|
+
}, null, 8, ["modelValue"])
|
|
4337
|
+
])
|
|
4338
|
+
]),
|
|
4339
|
+
createElementVNode("div", _hoisted_220, [
|
|
4340
|
+
_cache[266] || (_cache[266] = createElementVNode("label", {
|
|
4341
|
+
class: "add-field-item__label",
|
|
4342
|
+
for: ""
|
|
4343
|
+
}, "小数点位数:", -1)),
|
|
4344
|
+
createElementVNode("div", _hoisted_221, [
|
|
4345
|
+
createVNode(_component_epx_select, {
|
|
4346
|
+
modelValue: $data.addOptionForm.DECIMAL_LENGTH,
|
|
4347
|
+
"onUpdate:modelValue": _cache[119] || (_cache[119] = ($event) => $data.addOptionForm.DECIMAL_LENGTH = $event),
|
|
4348
|
+
fieldConfigs: { attriLabel: "小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
4349
|
+
}, null, 8, ["modelValue"])
|
|
4350
|
+
])
|
|
4351
|
+
]),
|
|
4352
|
+
createElementVNode("div", _hoisted_222, [
|
|
4353
|
+
_cache[267] || (_cache[267] = createElementVNode("label", {
|
|
4354
|
+
class: "add-field-item__label",
|
|
4355
|
+
for: ""
|
|
4356
|
+
}, "千分符标识:", -1)),
|
|
4357
|
+
createElementVNode("div", _hoisted_223, [
|
|
4358
|
+
createVNode(_component_el_switch, {
|
|
4359
|
+
modelValue: $data.addOptionForm.THOUSAND_CENTS_FLAG,
|
|
4360
|
+
"onUpdate:modelValue": _cache[120] || (_cache[120] = ($event) => $data.addOptionForm.THOUSAND_CENTS_FLAG = $event),
|
|
4361
|
+
"active-value": "1",
|
|
4362
|
+
"inactive-value": "0"
|
|
4363
|
+
}, null, 8, ["modelValue"])
|
|
4364
|
+
])
|
|
4365
|
+
])
|
|
4366
|
+
], 64)) : $data.addOptionForm.STA_INDEX_TYPE === "custom" ? (openBlock(), createElementBlock("div", _hoisted_224, [
|
|
4367
|
+
_cache[268] || (_cache[268] = createElementVNode("label", { for: "" }, "计算公式:", -1)),
|
|
4368
|
+
createElementVNode("div", _hoisted_225, [
|
|
4369
|
+
createVNode(_component_epx_rule, {
|
|
4370
|
+
modelValue: $data.addOptionForm.INDEX_FORMULA,
|
|
4371
|
+
"onUpdate:modelValue": _cache[121] || (_cache[121] = ($event) => $data.addOptionForm.INDEX_FORMULA = $event),
|
|
4372
|
+
metaId: $data.reportInfo.OBJECT,
|
|
4373
|
+
fieldConfigs: { state: "EDIT" }
|
|
4374
|
+
}, null, 8, ["modelValue", "metaId"])
|
|
4375
|
+
])
|
|
4376
|
+
])) : createCommentVNode("", true),
|
|
4377
|
+
_cache[272] || (_cache[272] = createElementVNode("hr", null, null, -1)),
|
|
4378
|
+
createElementVNode("div", _hoisted_226, [
|
|
4379
|
+
_cache[269] || (_cache[269] = createElementVNode("label", {
|
|
4380
|
+
class: "add-field-item__label",
|
|
4381
|
+
for: ""
|
|
4382
|
+
}, "二次计算:", -1)),
|
|
4383
|
+
createElementVNode("div", _hoisted_227, [
|
|
4384
|
+
createVNode(_component_epx_select, {
|
|
4385
|
+
modelValue: $data.addOptionForm.AGAIN_COMPUTE,
|
|
4386
|
+
"onUpdate:modelValue": _cache[122] || (_cache[122] = ($event) => $data.addOptionForm.AGAIN_COMPUTE = $event),
|
|
4387
|
+
fieldConfigs: { attriLabel: "二次计算", codeKey: "AGAIN_COMPUTE", state: "EDIT" }
|
|
4388
|
+
}, null, 8, ["modelValue"])
|
|
4389
|
+
])
|
|
4390
|
+
]),
|
|
4391
|
+
$data.addOptionForm.AGAIN_COMPUTE && $data.addOptionForm.AGAIN_COMPUTE !== "no" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
4392
|
+
createElementVNode("div", _hoisted_228, [
|
|
4393
|
+
_cache[270] || (_cache[270] = createElementVNode("label", {
|
|
4394
|
+
class: "add-field-item__label",
|
|
4395
|
+
for: ""
|
|
4396
|
+
}, "二次计算范围:", -1)),
|
|
4397
|
+
createElementVNode("div", _hoisted_229, [
|
|
4398
|
+
createVNode(_component_epx_select, {
|
|
4399
|
+
modelValue: $data.addOptionForm.AGAIN_COMPUTE_SCOPE,
|
|
4400
|
+
"onUpdate:modelValue": _cache[123] || (_cache[123] = ($event) => $data.addOptionForm.AGAIN_COMPUTE_SCOPE = $event),
|
|
4401
|
+
fieldConfigs: { attriLabel: "二次计算范围", codeKey: "AGAIN_COMPUTE_SCOPE", state: "EDIT" }
|
|
4402
|
+
}, null, 8, ["modelValue"])
|
|
4403
|
+
])
|
|
4404
|
+
]),
|
|
4405
|
+
createElementVNode("div", _hoisted_230, [
|
|
4406
|
+
_cache[271] || (_cache[271] = createElementVNode("label", {
|
|
4407
|
+
class: "add-field-item__label",
|
|
4408
|
+
for: ""
|
|
4409
|
+
}, "百分比小数点位数:", -1)),
|
|
4410
|
+
createElementVNode("div", _hoisted_231, [
|
|
4411
|
+
createVNode(_component_epx_select, {
|
|
4412
|
+
modelValue: $data.addOptionForm.PER_RADIO_NUM,
|
|
4413
|
+
"onUpdate:modelValue": _cache[124] || (_cache[124] = ($event) => $data.addOptionForm.PER_RADIO_NUM = $event),
|
|
4414
|
+
fieldConfigs: { attriLabel: "百分比小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
4415
|
+
}, null, 8, ["modelValue"])
|
|
4416
|
+
])
|
|
4417
|
+
])
|
|
4418
|
+
], 64)) : createCommentVNode("", true)
|
|
4419
|
+
]),
|
|
4420
|
+
_: 1
|
|
4421
|
+
})
|
|
4422
|
+
]),
|
|
4423
|
+
_: 1
|
|
4424
|
+
}, 8, ["modelValue", "class"])
|
|
4425
|
+
])) : createCommentVNode("", true)
|
|
4426
|
+
]),
|
|
4427
|
+
_: 1
|
|
4428
|
+
}, 8, ["modelValue"]),
|
|
4429
|
+
createVNode(_component_el_dialog, {
|
|
4430
|
+
class: "custom-dialog",
|
|
4431
|
+
title: "编辑指标",
|
|
4432
|
+
modelValue: $data.editIndexDialog,
|
|
4433
|
+
"onUpdate:modelValue": _cache[140] || (_cache[140] = ($event) => $data.editIndexDialog = $event),
|
|
4434
|
+
"append-to-body": true,
|
|
4435
|
+
"destroy-on-close": "",
|
|
4436
|
+
width: "560px"
|
|
4437
|
+
}, {
|
|
4438
|
+
footer: withCtx(() => [
|
|
4439
|
+
createElementVNode("div", _hoisted_258, [
|
|
4440
|
+
createVNode(_component_el_button, {
|
|
4441
|
+
onClick: _cache[139] || (_cache[139] = ($event) => $data.editIndexDialog = false)
|
|
4442
|
+
}, {
|
|
4443
|
+
default: withCtx(() => [..._cache[288] || (_cache[288] = [
|
|
4444
|
+
createTextVNode("取 消", -1)
|
|
4445
|
+
])]),
|
|
4446
|
+
_: 1
|
|
4447
|
+
}),
|
|
4448
|
+
createVNode(_component_el_button, {
|
|
4449
|
+
type: "primary",
|
|
4450
|
+
onClick: $options.addStatOption
|
|
4451
|
+
}, {
|
|
4452
|
+
default: withCtx(() => [..._cache[289] || (_cache[289] = [
|
|
4453
|
+
createTextVNode("确 定", -1)
|
|
4454
|
+
])]),
|
|
4455
|
+
_: 1
|
|
4456
|
+
}, 8, ["onClick"])
|
|
4457
|
+
])
|
|
4458
|
+
]),
|
|
4459
|
+
default: withCtx(() => [
|
|
4460
|
+
createElementVNode("div", _hoisted_233, [
|
|
4461
|
+
$data.addOptionForm.UP ? (openBlock(), createElementBlock("div", _hoisted_234, [
|
|
4462
|
+
_cache[275] || (_cache[275] = createElementVNode("label", { for: "" }, "上级:", -1)),
|
|
4463
|
+
createElementVNode("div", _hoisted_235, [
|
|
4464
|
+
createElementVNode("span", null, toDisplayString($data.addOptionForm["UP#"]), 1)
|
|
4465
|
+
])
|
|
4466
|
+
])) : createCommentVNode("", true),
|
|
4467
|
+
createElementVNode("div", _hoisted_236, [
|
|
4468
|
+
_cache[276] || (_cache[276] = createElementVNode("label", {
|
|
4469
|
+
class: "is-required",
|
|
4470
|
+
for: ""
|
|
4471
|
+
}, "标题:", -1)),
|
|
4472
|
+
createElementVNode("div", _hoisted_237, [
|
|
4473
|
+
createVNode(_component_el_input, {
|
|
4474
|
+
size: "small",
|
|
4475
|
+
modelValue: $data.addOptionForm.NAME,
|
|
4476
|
+
"onUpdate:modelValue": _cache[128] || (_cache[128] = ($event) => $data.addOptionForm.NAME = $event)
|
|
4477
|
+
}, null, 8, ["modelValue"])
|
|
4478
|
+
])
|
|
4479
|
+
]),
|
|
4480
|
+
createElementVNode("div", _hoisted_238, [
|
|
4481
|
+
_cache[277] || (_cache[277] = createElementVNode("label", {
|
|
4482
|
+
class: "add-field-item__label is-required",
|
|
4483
|
+
for: ""
|
|
4484
|
+
}, "计算方式:", -1)),
|
|
4485
|
+
createElementVNode("div", _hoisted_239, [
|
|
4486
|
+
createVNode(_component_epx_radio, {
|
|
4487
|
+
modelValue: $data.addOptionForm.MODE,
|
|
4488
|
+
"onUpdate:modelValue": _cache[129] || (_cache[129] = ($event) => $data.addOptionForm.MODE = $event),
|
|
4489
|
+
fieldConfigs: { codeKey: "FM_REPORT_TIME_MODE", state: "EDIT" }
|
|
4490
|
+
}, null, 8, ["modelValue"])
|
|
4491
|
+
])
|
|
4492
|
+
]),
|
|
4493
|
+
createElementVNode("div", _hoisted_240, [
|
|
4494
|
+
_cache[278] || (_cache[278] = createElementVNode("label", {
|
|
4495
|
+
class: "add-field-item__label",
|
|
4496
|
+
for: ""
|
|
4497
|
+
}, "数值单位:", -1)),
|
|
4498
|
+
createElementVNode("div", _hoisted_241, [
|
|
4499
|
+
createVNode(_component_epx_radio, {
|
|
4500
|
+
modelValue: $data.addOptionForm.NUM_UNIT,
|
|
4501
|
+
"onUpdate:modelValue": _cache[130] || (_cache[130] = ($event) => $data.addOptionForm.NUM_UNIT = $event),
|
|
4502
|
+
fieldConfigs: { codeKey: "report_num_nuit", state: "EDIT" }
|
|
4503
|
+
}, null, 8, ["modelValue"])
|
|
4504
|
+
])
|
|
4505
|
+
]),
|
|
4506
|
+
createElementVNode("div", _hoisted_242, [
|
|
4507
|
+
_cache[279] || (_cache[279] = createElementVNode("label", {
|
|
4508
|
+
class: "add-field-item__label",
|
|
4509
|
+
for: ""
|
|
4510
|
+
}, "单位后缀:", -1)),
|
|
4511
|
+
createElementVNode("div", _hoisted_243, [
|
|
4512
|
+
createVNode(_component_el_input, {
|
|
4513
|
+
size: "small",
|
|
4514
|
+
modelValue: $data.addOptionForm.UNIT_SUFFIX,
|
|
4515
|
+
"onUpdate:modelValue": _cache[131] || (_cache[131] = ($event) => $data.addOptionForm.UNIT_SUFFIX = $event)
|
|
4516
|
+
}, null, 8, ["modelValue"])
|
|
4517
|
+
])
|
|
4518
|
+
]),
|
|
4519
|
+
createElementVNode("div", _hoisted_244, [
|
|
4520
|
+
_cache[280] || (_cache[280] = createElementVNode("label", {
|
|
4521
|
+
class: "add-field-item__label",
|
|
4522
|
+
for: ""
|
|
4523
|
+
}, "小数点位数:", -1)),
|
|
4524
|
+
createElementVNode("div", _hoisted_245, [
|
|
4525
|
+
createVNode(_component_epx_select, {
|
|
4526
|
+
modelValue: $data.addOptionForm.DECIMAL_LENGTH,
|
|
4527
|
+
"onUpdate:modelValue": _cache[132] || (_cache[132] = ($event) => $data.addOptionForm.DECIMAL_LENGTH = $event),
|
|
4528
|
+
fieldConfigs: { attriLabel: "小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
4529
|
+
}, null, 8, ["modelValue"])
|
|
4530
|
+
])
|
|
4531
|
+
]),
|
|
4532
|
+
createElementVNode("div", _hoisted_246, [
|
|
4533
|
+
_cache[281] || (_cache[281] = createElementVNode("label", {
|
|
4534
|
+
class: "add-field-item__label",
|
|
4535
|
+
for: ""
|
|
4536
|
+
}, "千分符标识:", -1)),
|
|
4537
|
+
createElementVNode("div", _hoisted_247, [
|
|
4538
|
+
createVNode(_component_el_switch, {
|
|
4539
|
+
modelValue: $data.addOptionForm.THOUSAND_CENTS_FLAG,
|
|
4540
|
+
"onUpdate:modelValue": _cache[133] || (_cache[133] = ($event) => $data.addOptionForm.THOUSAND_CENTS_FLAG = $event),
|
|
4541
|
+
"active-value": "1",
|
|
4542
|
+
"inactive-value": "0"
|
|
4543
|
+
}, null, 8, ["modelValue"])
|
|
4544
|
+
])
|
|
4545
|
+
]),
|
|
4546
|
+
$data.addOptionForm.IS_RECORED_FLAG !== "1" ? (openBlock(), createElementBlock("div", _hoisted_248, [
|
|
4547
|
+
_cache[282] || (_cache[282] = createElementVNode("label", { for: "" }, "统计范围:", -1)),
|
|
4548
|
+
createElementVNode("div", _hoisted_249, [
|
|
4549
|
+
$data.editIndexDialog ? (openBlock(), createBlock(_component_epx_form_scope, {
|
|
4550
|
+
key: 0,
|
|
4551
|
+
modelValue: $data.addOptionForm.SCOPE,
|
|
4552
|
+
"onUpdate:modelValue": _cache[134] || (_cache[134] = ($event) => $data.addOptionForm.SCOPE = $event),
|
|
4553
|
+
metaId: $data.reportInfo.OBJECT,
|
|
4554
|
+
fieldConfigs: { state: "EDIT" }
|
|
4555
|
+
}, null, 8, ["modelValue", "metaId"])) : createCommentVNode("", true)
|
|
4556
|
+
])
|
|
4557
|
+
])) : createCommentVNode("", true),
|
|
4558
|
+
_cache[287] || (_cache[287] = createElementVNode("hr", null, null, -1)),
|
|
4559
|
+
createElementVNode("div", _hoisted_250, [
|
|
4560
|
+
_cache[283] || (_cache[283] = createElementVNode("label", {
|
|
4561
|
+
class: "add-field-item__label",
|
|
4562
|
+
for: ""
|
|
4563
|
+
}, "二次计算:", -1)),
|
|
4564
|
+
createElementVNode("div", _hoisted_251, [
|
|
4565
|
+
createVNode(_component_epx_select, {
|
|
4566
|
+
modelValue: $data.addOptionForm.AGAIN_COMPUTE,
|
|
4567
|
+
"onUpdate:modelValue": _cache[135] || (_cache[135] = ($event) => $data.addOptionForm.AGAIN_COMPUTE = $event),
|
|
4568
|
+
fieldConfigs: { attriLabel: "二次计算", codeKey: "AGAIN_COMPUTE", state: "EDIT" }
|
|
4569
|
+
}, null, 8, ["modelValue"])
|
|
4570
|
+
])
|
|
4571
|
+
]),
|
|
4572
|
+
$data.addOptionForm.AGAIN_COMPUTE && $data.addOptionForm.AGAIN_COMPUTE !== "no" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
4573
|
+
createElementVNode("div", _hoisted_252, [
|
|
4574
|
+
_cache[284] || (_cache[284] = createElementVNode("label", {
|
|
4575
|
+
class: "add-field-item__label",
|
|
4576
|
+
for: ""
|
|
4577
|
+
}, "二次计算范围:", -1)),
|
|
4578
|
+
createElementVNode("div", _hoisted_253, [
|
|
4579
|
+
createVNode(_component_epx_select, {
|
|
4580
|
+
modelValue: $data.addOptionForm.AGAIN_COMPUTE_SCOPE,
|
|
4581
|
+
"onUpdate:modelValue": _cache[136] || (_cache[136] = ($event) => $data.addOptionForm.AGAIN_COMPUTE_SCOPE = $event),
|
|
4582
|
+
fieldConfigs: { attriLabel: "二次计算范围", codeKey: "AGAIN_COMPUTE_SCOPE", state: "EDIT" }
|
|
4583
|
+
}, null, 8, ["modelValue"])
|
|
4584
|
+
])
|
|
4585
|
+
]),
|
|
4586
|
+
createElementVNode("div", _hoisted_254, [
|
|
4587
|
+
_cache[285] || (_cache[285] = createElementVNode("label", {
|
|
4588
|
+
class: "add-field-item__label",
|
|
4589
|
+
for: ""
|
|
4590
|
+
}, "百分比小数点位数:", -1)),
|
|
4591
|
+
createElementVNode("div", _hoisted_255, [
|
|
4592
|
+
createVNode(_component_epx_select, {
|
|
4593
|
+
modelValue: $data.addOptionForm.PER_RADIO_NUM,
|
|
4594
|
+
"onUpdate:modelValue": _cache[137] || (_cache[137] = ($event) => $data.addOptionForm.PER_RADIO_NUM = $event),
|
|
4595
|
+
fieldConfigs: { attriLabel: "百分比小数点位数", codeKey: "REPORT_DECIMAL_LENGTH", state: "EDIT" }
|
|
4596
|
+
}, null, 8, ["modelValue"])
|
|
4597
|
+
])
|
|
4598
|
+
])
|
|
4599
|
+
], 64)) : createCommentVNode("", true),
|
|
4600
|
+
$data.reportInfo.CHART_TYPE === "column" || $data.reportInfo.CHART_TYPE === "line" ? (openBlock(), createElementBlock("div", _hoisted_256, [
|
|
4601
|
+
_cache[286] || (_cache[286] = createElementVNode("label", { for: "" }, "排序方式:", -1)),
|
|
4602
|
+
createElementVNode("div", _hoisted_257, [
|
|
4603
|
+
createVNode(_component_el_select, {
|
|
4604
|
+
modelValue: $data.addOptionForm.SORT,
|
|
4605
|
+
"onUpdate:modelValue": _cache[138] || (_cache[138] = ($event) => $data.addOptionForm.SORT = $event),
|
|
4606
|
+
size: "small",
|
|
4607
|
+
clearable: ""
|
|
4608
|
+
}, {
|
|
4609
|
+
default: withCtx(() => [
|
|
4610
|
+
createVNode(_component_el_option, {
|
|
4611
|
+
label: "升序",
|
|
4612
|
+
value: "ASC"
|
|
4613
|
+
}),
|
|
4614
|
+
createVNode(_component_el_option, {
|
|
4615
|
+
label: "逆序",
|
|
4616
|
+
value: "DESC"
|
|
4617
|
+
})
|
|
4618
|
+
]),
|
|
4619
|
+
_: 1
|
|
4620
|
+
}, 8, ["modelValue"])
|
|
4621
|
+
])
|
|
4622
|
+
])) : createCommentVNode("", true)
|
|
4623
|
+
])
|
|
4624
|
+
]),
|
|
4625
|
+
_: 1
|
|
4626
|
+
}, 8, ["modelValue"])
|
|
4627
|
+
], 4);
|
|
4628
|
+
}
|
|
4629
|
+
const Design = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3a064eae"]]);
|
|
4630
|
+
export {
|
|
4631
|
+
Design as default
|
|
4632
|
+
};
|