ace-front-end 1.0.0
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/.editorconfig +8 -0
- package/.hintrc +9 -0
- package/.run/build-app-bolts.run.xml +12 -0
- package/.run/build-app-manager-ui.run.xml +12 -0
- package/.run/build-cloud-shell.run.xml +12 -0
- package/.run/build-element-plus-component.run.xml +12 -0
- package/.run/build-monnolith-shell.run.xml +12 -0
- package/.run/dev-app-manager.run.xml +12 -0
- package/.run/dev-monolith-shell.run.xml +12 -0
- package/README.md +59 -0
- package/ace-app-bolts-ui/.eslintrc.cjs +15 -0
- package/ace-app-bolts-ui/.vscode/extensions.json +3 -0
- package/ace-app-bolts-ui/.vscode/settings.json +27 -0
- package/ace-app-bolts-ui/folder-alias.json +1 -0
- package/ace-app-bolts-ui/package.json +76 -0
- package/ace-app-bolts-ui/src/api/apiCache.ts +26 -0
- package/ace-app-bolts-ui/src/api/appService/aceInstall.ts +29 -0
- package/ace-app-bolts-ui/src/api/appService/appAdmin.ts +58 -0
- package/ace-app-bolts-ui/src/api/appService/appInstance.ts +186 -0
- package/ace-app-bolts-ui/src/api/appService/appMessage.ts +123 -0
- package/ace-app-bolts-ui/src/api/appService/appRoute.ts +128 -0
- package/ace-app-bolts-ui/src/api/appService/appService.ts +135 -0
- package/ace-app-bolts-ui/src/api/appService/appSetting.ts +163 -0
- package/ace-app-bolts-ui/src/api/appService/appSettingGroup.ts +129 -0
- package/ace-app-bolts-ui/src/api/appService/appliedPasswordPolicy.ts +77 -0
- package/ace-app-bolts-ui/src/api/appService/eventCompensation.ts +61 -0
- package/ace-app-bolts-ui/src/api/appService/externalApp.ts +209 -0
- package/ace-app-bolts-ui/src/api/auditService/auditLog.ts +63 -0
- package/ace-app-bolts-ui/src/api/bizFlow/flowComment.ts +76 -0
- package/ace-app-bolts-ui/src/api/bizFlow/flowDefinition.ts +321 -0
- package/ace-app-bolts-ui/src/api/bizFlow/taskQuery.ts +91 -0
- package/ace-app-bolts-ui/src/api/domainModel/aggregate.ts +107 -0
- package/ace-app-bolts-ui/src/api/domainModel/command.ts +257 -0
- package/ace-app-bolts-ui/src/api/domainModel/constraint.ts +101 -0
- package/ace-app-bolts-ui/src/api/domainModel/dataScope.ts +84 -0
- package/ace-app-bolts-ui/src/api/domainModel/dataSource.ts +194 -0
- package/ace-app-bolts-ui/src/api/domainModel/dto.ts +243 -0
- package/ace-app-bolts-ui/src/api/domainModel/dtoConstraint.ts +101 -0
- package/ace-app-bolts-ui/src/api/domainModel/entity.ts +207 -0
- package/ace-app-bolts-ui/src/api/domainModel/enum.ts +170 -0
- package/ace-app-bolts-ui/src/api/domainModel/indexDef.ts +82 -0
- package/ace-app-bolts-ui/src/api/domainModel/query.ts +292 -0
- package/ace-app-bolts-ui/src/api/domainModel/release.ts +97 -0
- package/ace-app-bolts-ui/src/api/fileService/fileConfiguration.ts +161 -0
- package/ace-app-bolts-ui/src/api/fileService/fileStorage.ts +165 -0
- package/ace-app-bolts-ui/src/api/fileService/files.ts +207 -0
- package/ace-app-bolts-ui/src/api/idGenService/leafSegment.ts +55 -0
- package/ace-app-bolts-ui/src/api/idGenService/stringIdTemplate.ts +170 -0
- package/ace-app-bolts-ui/src/api/orgService/customGroup.ts +73 -0
- package/ace-app-bolts-ui/src/api/orgService/department.ts +186 -0
- package/ace-app-bolts-ui/src/api/orgService/departmentAttrDef.ts +90 -0
- package/ace-app-bolts-ui/src/api/orgService/group.ts +249 -0
- package/ace-app-bolts-ui/src/api/orgService/realm.ts +70 -0
- package/ace-app-bolts-ui/src/api/orgService/resourceScope.ts +132 -0
- package/ace-app-bolts-ui/src/api/orgService/role.ts +145 -0
- package/ace-app-bolts-ui/src/api/orgService/roleCategory.ts +77 -0
- package/ace-app-bolts-ui/src/api/orgService/session.ts +74 -0
- package/ace-app-bolts-ui/src/api/orgService/user.ts +1187 -0
- package/ace-app-bolts-ui/src/api/orgService/userAttrDef.ts +86 -0
- package/ace-app-bolts-ui/src/api/orgService/userAvatar.ts +32 -0
- package/ace-app-bolts-ui/src/api/pushService/MessageTemplate.ts +109 -0
- package/ace-app-bolts-ui/src/api/pushService/MessengerTemplateMap.ts +68 -0
- package/ace-app-bolts-ui/src/api/pushService/channel.ts +109 -0
- package/ace-app-bolts-ui/src/api/pushService/messenger.ts +82 -0
- package/ace-app-bolts-ui/src/api/pushService/sockJs.ts +43 -0
- package/ace-app-bolts-ui/src/api/pushService/soketIo.ts +50 -0
- package/ace-app-bolts-ui/src/api/pushService/userSubscription.ts +62 -0
- package/ace-app-bolts-ui/src/global.ts +238 -0
- package/ace-app-bolts-ui/src/http/IAceAxios.ts +183 -0
- package/ace-app-bolts-ui/src/http/types.ts +154 -0
- package/ace-app-bolts-ui/src/http/useAxios.ts +42 -0
- package/ace-app-bolts-ui/src/http/useLoading.ts +18 -0
- package/ace-app-bolts-ui/src/index.ts +250 -0
- package/ace-app-bolts-ui/src/locales/i18nLoader.ts +42 -0
- package/ace-app-bolts-ui/src/locales/setupI18n.ts +77 -0
- package/ace-app-bolts-ui/src/locales/useLocale.ts +70 -0
- package/ace-app-bolts-ui/src/models/AppBridge.ts +68 -0
- package/ace-app-bolts-ui/src/models/EntityBase.ts +10 -0
- package/ace-app-bolts-ui/src/models/LinkTreeNodeAddParam.ts +9 -0
- package/ace-app-bolts-ui/src/models/Page.ts +49 -0
- package/ace-app-bolts-ui/src/models/PageModel.ts +30 -0
- package/ace-app-bolts-ui/src/models/ProjectedSortPathTreeNode.ts +21 -0
- package/ace-app-bolts-ui/src/models/ProjectedUser.ts +17 -0
- package/ace-app-bolts-ui/src/models/Roles.ts +223 -0
- package/ace-app-bolts-ui/src/models/SortPathTreeNode.ts +21 -0
- package/ace-app-bolts-ui/src/models/SortPathTreeNodeAddParam.ts +13 -0
- package/ace-app-bolts-ui/src/models/SysSetting.ts +35 -0
- package/ace-app-bolts-ui/src/models/SystemSetting.ts +0 -0
- package/ace-app-bolts-ui/src/models/appService/AceInstallInfo.ts +43 -0
- package/ace-app-bolts-ui/src/models/appService/AppAdmin.ts +71 -0
- package/ace-app-bolts-ui/src/models/appService/AppInstance.ts +210 -0
- package/ace-app-bolts-ui/src/models/appService/AppMessage.ts +64 -0
- package/ace-app-bolts-ui/src/models/appService/AppRouter.ts +121 -0
- package/ace-app-bolts-ui/src/models/appService/AppService.ts +113 -0
- package/ace-app-bolts-ui/src/models/appService/AppSettingGroup.ts +81 -0
- package/ace-app-bolts-ui/src/models/appService/AppSettings.ts +163 -0
- package/ace-app-bolts-ui/src/models/appService/AppliedPasswordPolicy.ts +87 -0
- package/ace-app-bolts-ui/src/models/appService/ExternalApp.ts +272 -0
- package/ace-app-bolts-ui/src/models/appService/FailedEvent.ts +85 -0
- package/ace-app-bolts-ui/src/models/auditService/Audit.ts +160 -0
- package/ace-app-bolts-ui/src/models/bizFlow/CandidateNode.ts +43 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowCommentDto.ts +45 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowDefinitionDto.ts +80 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowInstanceDto.ts +84 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowProcessRequest.ts +80 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowVariableValueDto.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/NodeInstanceDto.ts +56 -0
- package/ace-app-bolts-ui/src/models/bizFlow/NodeLinkDto.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/ProjectedFlowDefinitionDto.ts +62 -0
- package/ace-app-bolts-ui/src/models/bizFlow/ReplyCommentCommand.ts +47 -0
- package/ace-app-bolts-ui/src/models/bizFlow/SearchFlowDefinitionDto.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/TaskInstanceDto.ts +57 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/AbstractNode.ts +37 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CancelCheckoutFlowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CheckinFlowDefinitionCommand.ts +26 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CheckoutFlowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CreateFlowDefinitionCommand.ts +58 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/DeleteWorkflowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/EndNode.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Flow.ts +95 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/ForwardCriteria.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Link.ts +40 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/StartNode.ts +82 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/TaskNode.ts +180 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/UpdateFlowModelCommand.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Variable.ts +33 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/index.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BaseParty.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyAll.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyByGroup.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyByUserAttribute.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyCustomFilter.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyDeptSpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyEntityOfDeptSpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyHasRole.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInDept.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInInitiatorDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInInitiatorEntityDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInitiator.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfElResult.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevNode.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevOwnerDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevOwnerEntityDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfSpecificNode.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecific.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecificNodeDept.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecificNodeEntityDept.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecifiedByGroupVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/ConditionalParty.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/MergeParty.ts +25 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/Party.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/index.ts +31 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/AbstractCompareRule.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/AndOrRule.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/BizRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/ExpressionRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/IsNullOrEmptyRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/NotRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/NumberCompareRule.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/ReferencedRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/StringCompareRule.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/index.ts +15 -0
- package/ace-app-bolts-ui/src/models/bizFlow/enums.ts +219 -0
- package/ace-app-bolts-ui/src/models/bizFlow/index.ts +21 -0
- package/ace-app-bolts-ui/src/models/domainModel/index.ts +4145 -0
- package/ace-app-bolts-ui/src/models/expr/ExpressionBuilder.ts +654 -0
- package/ace-app-bolts-ui/src/models/expr/Interfaces.ts +1081 -0
- package/ace-app-bolts-ui/src/models/expr/impls/agg.ts +192 -0
- package/ace-app-bolts-ui/src/models/expr/impls/any.ts +92 -0
- package/ace-app-bolts-ui/src/models/expr/impls/base.ts +24 -0
- package/ace-app-bolts-ui/src/models/expr/impls/bool.ts +321 -0
- package/ace-app-bolts-ui/src/models/expr/impls/collection.ts +14 -0
- package/ace-app-bolts-ui/src/models/expr/impls/constant.ts +85 -0
- package/ace-app-bolts-ui/src/models/expr/impls/dateTime.ts +59 -0
- package/ace-app-bolts-ui/src/models/expr/impls/nullfun.ts +170 -0
- package/ace-app-bolts-ui/src/models/expr/impls/num.ts +75 -0
- package/ace-app-bolts-ui/src/models/expr/impls/path.ts +317 -0
- package/ace-app-bolts-ui/src/models/expr/impls/strfun.ts +112 -0
- package/ace-app-bolts-ui/src/models/expr/impls/subQuery.ts +211 -0
- package/ace-app-bolts-ui/src/models/expr/impls/when.ts +125 -0
- package/ace-app-bolts-ui/src/models/expr/mixins.ts +1946 -0
- package/ace-app-bolts-ui/src/models/expr/querySpecification.ts +136 -0
- package/ace-app-bolts-ui/src/models/fileService/index.ts +1060 -0
- package/ace-app-bolts-ui/src/models/idGenService/LeafSegment.ts +48 -0
- package/ace-app-bolts-ui/src/models/idGenService/StringIdTemplate.ts +199 -0
- package/ace-app-bolts-ui/src/models/orgService/CustomGroup.ts +62 -0
- package/ace-app-bolts-ui/src/models/orgService/Department.ts +125 -0
- package/ace-app-bolts-ui/src/models/orgService/DepartmentAttributeDef.ts +121 -0
- package/ace-app-bolts-ui/src/models/orgService/Group.ts +244 -0
- package/ace-app-bolts-ui/src/models/orgService/Realm.ts +34 -0
- package/ace-app-bolts-ui/src/models/orgService/Role.ts +284 -0
- package/ace-app-bolts-ui/src/models/orgService/Session.ts +33 -0
- package/ace-app-bolts-ui/src/models/orgService/User.ts +650 -0
- package/ace-app-bolts-ui/src/models/orgService/UserAttributeDef.ts +53 -0
- package/ace-app-bolts-ui/src/models/orgService/dsl.ts +254 -0
- package/ace-app-bolts-ui/src/models/pushService/Messenger.ts +519 -0
- package/ace-app-bolts-ui/src/settings/cacheSetting.ts +20 -0
- package/ace-app-bolts-ui/src/settings/localeSetting.ts +133 -0
- package/ace-app-bolts-ui/src/stores/index.ts +19 -0
- package/ace-app-bolts-ui/src/stores/loginUserStore.ts +35 -0
- package/ace-app-bolts-ui/src/stores/useEnums.ts +45 -0
- package/ace-app-bolts-ui/src/utils/LRUCache.ts +52 -0
- package/ace-app-bolts-ui/src/utils/cache/index.ts +50 -0
- package/ace-app-bolts-ui/src/utils/cache/storageCache.ts +124 -0
- package/ace-app-bolts-ui/src/utils/cipher.ts +81 -0
- package/ace-app-bolts-ui/src/utils/common.ts +13 -0
- package/ace-app-bolts-ui/src/utils/treeSort.ts +0 -0
- package/ace-app-bolts-ui/src/vite-env.d.ts +2 -0
- package/ace-app-bolts-ui/tsconfig.json +22 -0
- package/ace-app-bolts-ui/tsconfig.tsbuildinfo +1 -0
- package/ace-app-manager-ui/.env +5 -0
- package/ace-app-manager-ui/.env.development +1 -0
- package/ace-app-manager-ui/.env.production +1 -0
- package/ace-app-manager-ui/.eslintrc.cjs +48 -0
- package/ace-app-manager-ui/README.md +18 -0
- package/ace-app-manager-ui/auto-imports.d.ts +11 -0
- package/ace-app-manager-ui/components.d.ts +118 -0
- package/ace-app-manager-ui/customVitePlugin.d.ts +6 -0
- package/ace-app-manager-ui/customVitePlugin.js +37 -0
- package/ace-app-manager-ui/customVitePlugin.ts +44 -0
- package/ace-app-manager-ui/index.html +12 -0
- package/ace-app-manager-ui/jsconfig.json +19 -0
- package/ace-app-manager-ui/package.json +66 -0
- package/ace-app-manager-ui/src/App.vue +32 -0
- package/ace-app-manager-ui/src/assets/baseData/AppManageMenu.ts +284 -0
- package/ace-app-manager-ui/src/assets/baseData/GlobalManageMenu.ts +75 -0
- package/ace-app-manager-ui/src/assets/logo.png +0 -0
- package/ace-app-manager-ui/src/assets/scss/element/element-var.scss +1117 -0
- package/ace-app-manager-ui/src/assets/scss/element/index.scss +72 -0
- package/ace-app-manager-ui/src/assets/scss/normalize.scss +524 -0
- package/ace-app-manager-ui/src/assets/scss/vars.scss +12 -0
- package/ace-app-manager-ui/src/components/appSelector/Index.vue +23 -0
- package/ace-app-manager-ui/src/components/departmentPicker/index.ts +3 -0
- package/ace-app-manager-ui/src/components/departmentPicker/src/SinglePicker.vue +102 -0
- package/ace-app-manager-ui/src/components/departmentSelector/index.ts +4 -0
- package/ace-app-manager-ui/src/components/departmentSelector/src/SingleSelector.vue +123 -0
- package/ace-app-manager-ui/src/components/departmentSelector/src/consts.ts +2 -0
- package/ace-app-manager-ui/src/components/enumPicker/EnumPicker.vue +57 -0
- package/ace-app-manager-ui/src/components/fieldControl/index.ts +2 -0
- package/ace-app-manager-ui/src/components/fieldControl/src/FieldControl.vue +130 -0
- package/ace-app-manager-ui/src/components/header/ManageHeader.vue +43 -0
- package/ace-app-manager-ui/src/components/icon/JaIcon.vue +50 -0
- package/ace-app-manager-ui/src/components/icon/svg/SvgIcon.vue +56 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/index.ts +7 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/IconColorPicker.vue +104 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/colorPicker/ColorPicker.vue +128 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/colorPicker/baseData/colors.ts +155 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/iconPicker/IconPicker.vue +221 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/iconPicker/baseData/icons.json +1364 -0
- package/ace-app-manager-ui/src/components/multipleSelector/MultipleSelector.vue +136 -0
- package/ace-app-manager-ui/src/components/pages/AppEnter.vue +358 -0
- package/ace-app-manager-ui/src/components/pages/PageEnter.vue +227 -0
- package/ace-app-manager-ui/src/components/pages/components/topBar.vue +93 -0
- package/ace-app-manager-ui/src/components/realmPicker/index.ts +3 -0
- package/ace-app-manager-ui/src/components/realmPicker/src/RealmPicker.vue +194 -0
- package/ace-app-manager-ui/src/components/realmPicker/src/components/RealmEditor.vue +149 -0
- package/ace-app-manager-ui/src/components/roleSelector/index.ts +3 -0
- package/ace-app-manager-ui/src/components/roleSelector/src/RoleMultiSelector.vue +194 -0
- package/ace-app-manager-ui/src/components/settingValueEditor/ValueEditor.vue +180 -0
- package/ace-app-manager-ui/src/components/subPage/index.ts +3 -0
- package/ace-app-manager-ui/src/components/subPage/src/SubPage.vue +90 -0
- package/ace-app-manager-ui/src/components/userGroupSelector/index.ts +3 -0
- package/ace-app-manager-ui/src/components/userGroupSelector/src/UserGroupMultiSelector.vue +131 -0
- package/ace-app-manager-ui/src/hooks/useAppState.ts +31 -0
- package/ace-app-manager-ui/src/hooks/useDateFormats.ts +34 -0
- package/ace-app-manager-ui/src/hooks/usePageSize.ts +1 -0
- package/ace-app-manager-ui/src/hooks/useRealms.ts +27 -0
- package/ace-app-manager-ui/src/hooks/useUserQuery.ts +133 -0
- package/ace-app-manager-ui/src/init.ts +18 -0
- package/ace-app-manager-ui/src/locales/lang/en/common.json +3 -0
- package/ace-app-manager-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-app-manager-ui/src/locales/lang/en.ts +14 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN/common.json +218 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN.ts +13 -0
- package/ace-app-manager-ui/src/locales/setupI18n.ts +14 -0
- package/ace-app-manager-ui/src/main.ts +114 -0
- package/ace-app-manager-ui/src/public-path.js +10 -0
- package/ace-app-manager-ui/src/router/index.ts +33 -0
- package/ace-app-manager-ui/src/router/modules/appRoutes.ts +24 -0
- package/ace-app-manager-ui/src/router/modules/demoRoutes.ts +22 -0
- package/ace-app-manager-ui/src/router/routes.ts +690 -0
- package/ace-app-manager-ui/src/stores/index.ts +3 -0
- package/ace-app-manager-ui/src/stores/modules/locale.ts +60 -0
- package/ace-app-manager-ui/src/stores/modules/system.ts +51 -0
- package/ace-app-manager-ui/src/types/ext.d.ts +13 -0
- package/ace-app-manager-ui/src/types/style.d.ts +7 -0
- package/ace-app-manager-ui/src/types/window.d.ts +24 -0
- package/ace-app-manager-ui/src/utils/index.ts +7 -0
- package/ace-app-manager-ui/src/utils/vxeTable.ts +58 -0
- package/ace-app-manager-ui/src/vars.scss +12 -0
- package/ace-app-manager-ui/src/views/appManage/AppManage.vue +266 -0
- package/ace-app-manager-ui/src/views/appManage/appInfo/AppInfo.vue +309 -0
- package/ace-app-manager-ui/src/views/appManage/appRelease/AppRelease.vue +181 -0
- package/ace-app-manager-ui/src/views/appManage/appRelease/components/Editor.vue +253 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/AppRouter.vue +381 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/base/index.ts +204 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/components/Editor.vue +368 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/components/MenuSelector.vue +12 -0
- package/ace-app-manager-ui/src/views/appManage/assignAppAdmin/AssignAppAdmin.vue +231 -0
- package/ace-app-manager-ui/src/views/appManage/assignAppAdmin/components/Editor.vue +135 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/Index.vue +53 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CommandEditor.vue +209 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CommandParamEditor.vue +246 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/ConstraintsEditor.vue +239 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CreateEntityOperationsEditor.vue +90 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/LeftPanel.vue +282 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/RightPanel.vue +249 -0
- package/ace-app-manager-ui/src/views/appManage/components/AppManageLayout.vue +94 -0
- package/ace-app-manager-ui/src/views/appManage/components/GlobalUserGroupSingleSelector.vue +124 -0
- package/ace-app-manager-ui/src/views/appManage/components/SelectRealmForApp.vue +59 -0
- package/ace-app-manager-ui/src/views/appManage/components/ServiceSelector.vue +34 -0
- package/ace-app-manager-ui/src/views/appManage/components/SubMenu.vue +32 -0
- package/ace-app-manager-ui/src/views/appManage/components/UserGroupAuthSFC.vue +453 -0
- package/ace-app-manager-ui/src/views/appManage/components/UserGroupSingleSelector.vue +115 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/ConfigDefine.vue +392 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/GroupEditor.vue +133 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/SettingEditor.vue +231 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/DataSourceDefine.vue +198 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/createNewDidalog.vue +177 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/editDialog.vue +137 -0
- package/ace-app-manager-ui/src/views/appManage/digitalSequence/DigitalSequence.vue +163 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/AppendEntityPropToDtoDlg.vue +351 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/CreateDtoPropFromEntityPropEditor.vue +516 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/CreateFromEntityEditor.vue +217 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/DtoDefine.vue +77 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/DtoEditor.vue +144 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/LeftPanel.vue +283 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/PropertyEditor.vue +586 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/RightPanel.vue +574 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/uilts.ts +108 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/types.ts +42 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/EntityDefine.vue +80 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/AggregateEditor.vue +93 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/EntityEditor.vue +281 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/ImportEditor.vue +329 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/IndexDefinitionEditor.vue +424 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/LeftPanel.vue +343 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/MonacoEditor.vue +1659 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/PropertyEditor.vue +956 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/RightPanel.vue +660 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/monacoEditorType.ts +74 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/uilts.ts +108 -0
- package/ace-app-manager-ui/src/views/appManage/enumDefine/EnumDefine.vue +169 -0
- package/ace-app-manager-ui/src/views/appManage/enumDefine/editDialog.vue +266 -0
- package/ace-app-manager-ui/src/views/appManage/extendedDepartmentAttr/ExtendedDepartmentAttr.vue +272 -0
- package/ace-app-manager-ui/src/views/appManage/extendedDepartmentAttr/components/Editor.vue +267 -0
- package/ace-app-manager-ui/src/views/appManage/extendedUserAttr/ExtendedUserAttr.vue +270 -0
- package/ace-app-manager-ui/src/views/appManage/extendedUserAttr/components/Editor.vue +291 -0
- package/ace-app-manager-ui/src/views/appManage/globalUserGroupAuth/GlobalUserGroupAuth.vue +18 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/BundleEditor.vue +77 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/Editor.vue +78 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/I18nDefine.vue +173 -0
- package/ace-app-manager-ui/src/views/appManage/messageTemplate/Editor.vue +191 -0
- package/ace-app-manager-ui/src/views/appManage/messageTemplate/MessageTemplate.vue +142 -0
- package/ace-app-manager-ui/src/views/appManage/numberTemplate/NumberTemplate.vue +166 -0
- package/ace-app-manager-ui/src/views/appManage/numberTemplate/components/Editor.vue +373 -0
- package/ace-app-manager-ui/src/views/appManage/processDefinition/Editor.vue +168 -0
- package/ace-app-manager-ui/src/views/appManage/processDefinition/ProcessDefinition.vue +362 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/Index.vue +52 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/ConstraintsEditor.vue +239 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/JpqlEditor.vue +229 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/LeftPanel.vue +282 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/QueryEditor.vue +294 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/QueryParamEditor.vue +253 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/RightPanel.vue +247 -0
- package/ace-app-manager-ui/src/views/appManage/registerMessenger/Editor.vue +108 -0
- package/ace-app-manager-ui/src/views/appManage/registerMessenger/RegisterMessenger.vue +127 -0
- package/ace-app-manager-ui/src/views/appManage/registerPassageway/Editor.vue +117 -0
- package/ace-app-manager-ui/src/views/appManage/registerPassageway/RegisterPassageway.vue +150 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/RegisterUpload.vue +267 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/Editor.vue +425 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/QuotaEditor.vue +202 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/WebHookEditor.vue +174 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/ReverseAuth.vue +620 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/components/AddRoleUserDialog.vue +59 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/types.d.ts +7 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/RoleDefine.vue +272 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/CompositeRole.vue +195 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/RoleEditor.vue +161 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/RoleSelector.vue +135 -0
- package/ace-app-manager-ui/src/views/appManage/serviceManage/AppServiceManage.vue +204 -0
- package/ace-app-manager-ui/src/views/appManage/serviceManage/components/Editor.vue +153 -0
- package/ace-app-manager-ui/src/views/appManage/thirdPartyAppAuth/ThirdPartyAppAuth.vue +178 -0
- package/ace-app-manager-ui/src/views/appManage/types.ts +1 -0
- package/ace-app-manager-ui/src/views/appManage/userAuth/UserAuth.vue +668 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupAuth/UserGroupAuth.vue +18 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/UserGroupManage.vue +326 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/components/Editor.vue +217 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/components/MemberUsers.vue +101 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/Index.vue +94 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/components/enumPicker/index.ts +1 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/components/enumPicker/src/EnumPicker.vue +103 -0
- package/ace-app-manager-ui/src/views/globalManage/GlobalManage.vue +150 -0
- package/ace-app-manager-ui/src/views/globalManage/aboutPlatform/AboutPlatform.vue +7 -0
- package/ace-app-manager-ui/src/views/globalManage/auditLogsManage/AuditLogDetail.vue +127 -0
- package/ace-app-manager-ui/src/views/globalManage/auditLogsManage/AuditLogsManage.vue +387 -0
- package/ace-app-manager-ui/src/views/globalManage/components/ExtendedAttrRender.vue +311 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/DepartmentManage.vue +336 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/RecycleBin.vue +127 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/components/DefaultGroupEditor.vue +191 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/components/Editor.vue +164 -0
- package/ace-app-manager-ui/src/views/globalManage/eventCompensate/Index.vue +189 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/ExternalAppManage.vue +305 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/components/Editor.vue +227 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/components/RenewSecret.vue +91 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/Editor.vue +177 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/GlobalSettingManage.vue +201 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/types.ts +14 -0
- package/ace-app-manager-ui/src/views/globalManage/passwordManage/PasswordManage.vue +224 -0
- package/ace-app-manager-ui/src/views/globalManage/passwordManage/ValueEditor.vue +92 -0
- package/ace-app-manager-ui/src/views/globalManage/sessionManage/SessionManage.vue +251 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/UserGroupManage.vue +332 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/components/Editor.vue +160 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/components/MemberUsers.vue +100 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/RecycleBin.vue +344 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/UserManage.vue +631 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/AttributeEditor.vue +191 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/ClassifiedLevelEditor.vue +79 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/DepartmentEditor.vue +70 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/Editor.vue +475 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/ExpirationEditor.vue +82 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/MaxSessionEditor.vue +76 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/PasswordEditor.vue +107 -0
- package/ace-app-manager-ui/src/views/home/Index.vue +457 -0
- package/ace-app-manager-ui/src/views/home/components/AppEditor.vue +208 -0
- package/ace-app-manager-ui/src/views/home/components/AppManage.vue +252 -0
- package/ace-app-manager-ui/src/views/home/components/FileRepositoryEditor.vue +292 -0
- package/ace-app-manager-ui/src/views/home/components/FileRepositoryManage.vue +246 -0
- package/ace-app-manager-ui/src/vite-env.d.ts +4 -0
- package/ace-app-manager-ui/tsconfig.json +41 -0
- package/ace-app-manager-ui/tsconfig.node.json +15 -0
- package/ace-app-manager-ui/tsconfig.node.tsbuildinfo +1 -0
- package/ace-app-manager-ui/vite.config.d.ts +2 -0
- package/ace-app-manager-ui/vite.config.js +112 -0
- package/ace-app-manager-ui/vite.config.ts +116 -0
- package/ace-app-manager-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-cloud-shell-ui/.env +2 -0
- package/ace-cloud-shell-ui/.env.development +5 -0
- package/ace-cloud-shell-ui/.env.production +1 -0
- package/ace-cloud-shell-ui/.eslintrc.js +33 -0
- package/ace-cloud-shell-ui/.vscode/extensions.json +6 -0
- package/ace-cloud-shell-ui/.vscode/settings.json +27 -0
- package/ace-cloud-shell-ui/auto-imports.d.ts +9 -0
- package/ace-cloud-shell-ui/components.d.ts +58 -0
- package/ace-cloud-shell-ui/doc/issue.md +6 -0
- package/ace-cloud-shell-ui/index.html +19 -0
- package/ace-cloud-shell-ui/package.json +72 -0
- package/ace-cloud-shell-ui/public/res/build/shell/favicon.ico +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/.keep +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/index.html +156 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.css +2583 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.eot +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.glyph.json +1 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.less +2585 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.module.less +2567 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.scss +5103 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.styl +2554 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.svg +7633 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.symbol.svg +11 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.ttf +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff2 +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/symbol.html +17913 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/tags.json +1364 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/unicode.html +175 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/hidden-right-sidebar.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/icon/deliver.svg +1 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/icon/logout.svg +28 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/jari-logo-2.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/jari-logo.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/public-code.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/show-right-sidebar.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/shezhi.svg +11 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/tuichu.svg +13 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/xiaoxi.svg +13 -0
- package/ace-cloud-shell-ui/src/App.vue +24 -0
- package/ace-cloud-shell-ui/src/assets/base.css +80 -0
- package/ace-cloud-shell-ui/src/assets/element/index.scss +13 -0
- package/ace-cloud-shell-ui/src/assets/element/var.scss +1123 -0
- package/ace-cloud-shell-ui/src/assets/logo.svg +7 -0
- package/ace-cloud-shell-ui/src/assets/main.scss +128 -0
- package/ace-cloud-shell-ui/src/env.d.ts +14 -0
- package/ace-cloud-shell-ui/src/hooks/useSockJs.ts +146 -0
- package/ace-cloud-shell-ui/src/init.ts +21 -0
- package/ace-cloud-shell-ui/src/layout/Main.vue +160 -0
- package/ace-cloud-shell-ui/src/layout/components/AppMenu.vue +329 -0
- package/ace-cloud-shell-ui/src/layout/components/Fillet.vue +105 -0
- package/ace-cloud-shell-ui/src/layout/components/Sidebar.vue +194 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/common.json +17 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/layout.json +8 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/updatePsw.json +9 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/userProfile.json +3 -0
- package/ace-cloud-shell-ui/src/locales/lang/en.ts +14 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/layout.json +8 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/updatePsw.json +9 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/userProfile.json +3 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN.ts +14 -0
- package/ace-cloud-shell-ui/src/locales/setupI18n.ts +14 -0
- package/ace-cloud-shell-ui/src/main.ts +130 -0
- package/ace-cloud-shell-ui/src/router/index.ts +107 -0
- package/ace-cloud-shell-ui/src/shims-vue.d.ts +21 -0
- package/ace-cloud-shell-ui/src/stores/modules/accessibleApps.ts +149 -0
- package/ace-cloud-shell-ui/src/stores/modules/app.ts +147 -0
- package/ace-cloud-shell-ui/src/stores/modules/appContext.ts +53 -0
- package/ace-cloud-shell-ui/src/stores/modules/locale.ts +63 -0
- package/ace-cloud-shell-ui/src/stores/modules/oidc.ts +71 -0
- package/ace-cloud-shell-ui/src/stores/modules/system.ts +32 -0
- package/ace-cloud-shell-ui/src/types/ext.d.ts +35 -0
- package/ace-cloud-shell-ui/src/types/router.d.ts +12 -0
- package/ace-cloud-shell-ui/src/types/window.d.ts +15 -0
- package/ace-cloud-shell-ui/src/utils/axios/AceAxios.ts +657 -0
- package/ace-cloud-shell-ui/src/utils/axios/cache.ts +11 -0
- package/ace-cloud-shell-ui/src/utils/axios/index.ts +37 -0
- package/ace-cloud-shell-ui/src/utils/microApp/index.ts +6 -0
- package/ace-cloud-shell-ui/src/views/AboutView.vue +140 -0
- package/ace-cloud-shell-ui/src/views/DlgUpdatePassword.vue +120 -0
- package/ace-cloud-shell-ui/src/views/ExtendedAttrRender.vue +311 -0
- package/ace-cloud-shell-ui/src/views/MicroApp.vue +234 -0
- package/ace-cloud-shell-ui/src/views/UserProfileEditor.vue +303 -0
- package/ace-cloud-shell-ui/src/views/WorkBench.vue +10 -0
- package/ace-cloud-shell-ui/src/views/errors/HttpState404.vue +136 -0
- package/ace-cloud-shell-ui/src/views/errors/NoAppAvailable.vue +16 -0
- package/ace-cloud-shell-ui/src/vite-env.d.ts +3 -0
- package/ace-cloud-shell-ui/tsconfig.app.json +33 -0
- package/ace-cloud-shell-ui/tsconfig.app.tsbuildinfo +1 -0
- package/ace-cloud-shell-ui/tsconfig.config.json +23 -0
- package/ace-cloud-shell-ui/tsconfig.config.tsbuildinfo +1 -0
- package/ace-cloud-shell-ui/tsconfig.json +11 -0
- package/ace-cloud-shell-ui/vbuild/vite/proxy.ts +46 -0
- package/ace-cloud-shell-ui/vite.config.ts +119 -0
- package/ace-cloud-shell-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-element-plus-component/.babelrc +8 -0
- package/ace-element-plus-component/.env +1 -0
- package/ace-element-plus-component/.env.development +3 -0
- package/ace-element-plus-component/.env.production +1 -0
- package/ace-element-plus-component/.vscode/extensions.json +3 -0
- package/ace-element-plus-component/CHANGE.md +16 -0
- package/ace-element-plus-component/README.md +1 -0
- package/ace-element-plus-component/index.html +14 -0
- package/ace-element-plus-component/index.ts +20 -0
- package/ace-element-plus-component/package.json +72 -0
- package/ace-element-plus-component/packages/components/autoComplete/JaAutoComplete.vue +57 -0
- package/ace-element-plus-component/packages/components/autoComplete/README.md +35 -0
- package/ace-element-plus-component/packages/components/autoComplete/index.ts +5 -0
- package/ace-element-plus-component/packages/components/avatar/JaAvatar.vue +137 -0
- package/ace-element-plus-component/packages/components/avatar/README.md +45 -0
- package/ace-element-plus-component/packages/components/avatar/avatarToken.ts +11 -0
- package/ace-element-plus-component/packages/components/avatar/defaultImg.ts +14 -0
- package/ace-element-plus-component/packages/components/avatar/index.ts +7 -0
- package/ace-element-plus-component/packages/components/button/JaButton.vue +76 -0
- package/ace-element-plus-component/packages/components/button/README.md +57 -0
- package/ace-element-plus-component/packages/components/button/index.ts +4 -0
- package/ace-element-plus-component/packages/components/channelPicker/index.ts +7 -0
- package/ace-element-plus-component/packages/components/channelPicker/src/ChannelPicker.vue +43 -0
- package/ace-element-plus-component/packages/components/channelPicker/src/JaChannelPicker.vue +42 -0
- package/ace-element-plus-component/packages/components/checkbox/JaCheckbox.vue +63 -0
- package/ace-element-plus-component/packages/components/checkbox/README.md +21 -0
- package/ace-element-plus-component/packages/components/checkbox/index.ts +4 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/JaCheckboxGroup.vue +56 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/README.md +24 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/index.ts +4 -0
- package/ace-element-plus-component/packages/components/customGroupTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/customGroupTree/src/customGroupTree.vue +91 -0
- package/ace-element-plus-component/packages/components/datePicker/JaDatePicker.vue +65 -0
- package/ace-element-plus-component/packages/components/datePicker/README.md +21 -0
- package/ace-element-plus-component/packages/components/datePicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/departmentPicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/departmentPicker/src/DepartmentPicker.vue +107 -0
- package/ace-element-plus-component/packages/components/departmentPicker/src/consts.ts +2 -0
- package/ace-element-plus-component/packages/components/departmentTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/departmentTree/src/departmentTree.vue +135 -0
- package/ace-element-plus-component/packages/components/dropdownButton/JaDropdownButton.vue +77 -0
- package/ace-element-plus-component/packages/components/dropdownButton/README.md +30 -0
- package/ace-element-plus-component/packages/components/dropdownButton/index.ts +4 -0
- package/ace-element-plus-component/packages/components/enumList/EnumListInput.vue +107 -0
- package/ace-element-plus-component/packages/components/enumList/JaEnumList.vue +39 -0
- package/ace-element-plus-component/packages/components/enumList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/enumPicker/index.ts +5 -0
- package/ace-element-plus-component/packages/components/enumPicker/src/EnumPicker.vue +103 -0
- package/ace-element-plus-component/packages/components/flowShell/FlowFormShell.vue +628 -0
- package/ace-element-plus-component/packages/components/flowShell/index.ts +5 -0
- package/ace-element-plus-component/packages/components/form/JaForm.vue +186 -0
- package/ace-element-plus-component/packages/components/form/README.md +30 -0
- package/ace-element-plus-component/packages/components/form/index.ts +5 -0
- package/ace-element-plus-component/packages/components/form/types.ts +4 -0
- package/ace-element-plus-component/packages/components/formItem/JaFormItem.vue +123 -0
- package/ace-element-plus-component/packages/components/formItem/README.md +28 -0
- package/ace-element-plus-component/packages/components/formItem/index.ts +4 -0
- package/ace-element-plus-component/packages/components/index.ts +35 -0
- package/ace-element-plus-component/packages/components/input/JaInput.vue +107 -0
- package/ace-element-plus-component/packages/components/input/README.md +23 -0
- package/ace-element-plus-component/packages/components/input/index.ts +4 -0
- package/ace-element-plus-component/packages/components/inputI18n/I18nBundleEditor.vue +76 -0
- package/ace-element-plus-component/packages/components/inputI18n/InputI18n.vue +152 -0
- package/ace-element-plus-component/packages/components/inputI18n/JaInputI18n.vue +50 -0
- package/ace-element-plus-component/packages/components/inputI18n/index.ts +8 -0
- package/ace-element-plus-component/packages/components/inputNumber/JaInputNumber.vue +79 -0
- package/ace-element-plus-component/packages/components/inputNumber/README.md +21 -0
- package/ace-element-plus-component/packages/components/inputNumber/index.ts +4 -0
- package/ace-element-plus-component/packages/components/mapItemList/JaMapItemList.vue +35 -0
- package/ace-element-plus-component/packages/components/mapItemList/MapItemListInput.vue +191 -0
- package/ace-element-plus-component/packages/components/mapItemList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/numberList/JaNumberList.vue +36 -0
- package/ace-element-plus-component/packages/components/numberList/NumberListInput.vue +111 -0
- package/ace-element-plus-component/packages/components/numberList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/properyPicker/JaPropertyPicker.vue +38 -0
- package/ace-element-plus-component/packages/components/properyPicker/PropertyPicker.vue +310 -0
- package/ace-element-plus-component/packages/components/properyPicker/index.ts +7 -0
- package/ace-element-plus-component/packages/components/radioGroup/JaRadioGroup.vue +61 -0
- package/ace-element-plus-component/packages/components/radioGroup/README.md +24 -0
- package/ace-element-plus-component/packages/components/radioGroup/index.ts +4 -0
- package/ace-element-plus-component/packages/components/rolePicker/RoleCategorySelector.vue +154 -0
- package/ace-element-plus-component/packages/components/rolePicker/RoleEditor.vue +138 -0
- package/ace-element-plus-component/packages/components/rolePicker/RolePicker.vue +44 -0
- package/ace-element-plus-component/packages/components/rolePicker/RolePickerRaw.vue +56 -0
- package/ace-element-plus-component/packages/components/rolePicker/baseRolePicker.vue +84 -0
- package/ace-element-plus-component/packages/components/rolePicker/index.ts +13 -0
- package/ace-element-plus-component/packages/components/scrollbar/README.md +23 -0
- package/ace-element-plus-component/packages/components/scrollbar/Scrollbar.vue +100 -0
- package/ace-element-plus-component/packages/components/scrollbar/index.ts +5 -0
- package/ace-element-plus-component/packages/components/scrollbar/utils.ts +17 -0
- package/ace-element-plus-component/packages/components/select/JaSelect.vue +60 -0
- package/ace-element-plus-component/packages/components/select/README.md +24 -0
- package/ace-element-plus-component/packages/components/select/index.ts +4 -0
- package/ace-element-plus-component/packages/components/stringList/JaStringList.vue +36 -0
- package/ace-element-plus-component/packages/components/stringList/StringListInput.vue +96 -0
- package/ace-element-plus-component/packages/components/stringList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/switch/JaSwitch.vue +61 -0
- package/ace-element-plus-component/packages/components/switch/README.md +21 -0
- package/ace-element-plus-component/packages/components/switch/index.ts +4 -0
- package/ace-element-plus-component/packages/components/timePicker/JaTimePicker.vue +65 -0
- package/ace-element-plus-component/packages/components/timePicker/README.md +21 -0
- package/ace-element-plus-component/packages/components/timePicker/index.ts +5 -0
- package/ace-element-plus-component/packages/components/tip/README.md +20 -0
- package/ace-element-plus-component/packages/components/tip/index.ts +4 -0
- package/ace-element-plus-component/packages/components/tip/src/AceTip.vue +51 -0
- package/ace-element-plus-component/packages/components/upload/FilePreviewer.vue +245 -0
- package/ace-element-plus-component/packages/components/upload/JaUploader.vue +72 -0
- package/ace-element-plus-component/packages/components/upload/README.md +24 -0
- package/ace-element-plus-component/packages/components/upload/index.ts +8 -0
- package/ace-element-plus-component/packages/components/upload/pdf-viewer/PdfViewerModal.vue +32 -0
- package/ace-element-plus-component/packages/components/upload/types.ts +4 -0
- package/ace-element-plus-component/packages/components/upload/uploader-locale-zh-cn.ts +223 -0
- package/ace-element-plus-component/packages/components/upload/uploader.vue +876 -0
- package/ace-element-plus-component/packages/components/userGroupPicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/userGroupPicker/src/UserGroupPicker.vue +94 -0
- package/ace-element-plus-component/packages/components/userGroupTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/userGroupTree/src/userGroupTree.vue +193 -0
- package/ace-element-plus-component/packages/components/userPicker/index.ts +10 -0
- package/ace-element-plus-component/packages/components/userPicker/src/CustomGroupManager.vue +189 -0
- package/ace-element-plus-component/packages/components/userPicker/src/JaUserList.vue +328 -0
- package/ace-element-plus-component/packages/components/userPicker/src/JaUserPicker.vue +40 -0
- package/ace-element-plus-component/packages/components/userPicker/src/UserPicker.vue +515 -0
- package/ace-element-plus-component/packages/components/userSelectDialog/index.ts +6 -0
- package/ace-element-plus-component/packages/components/userSelectDialog/src/userSelectDialog.vue +499 -0
- package/ace-element-plus-component/packages/components/userTag/UserInfoTag.vue +419 -0
- package/ace-element-plus-component/packages/components/userTag/index.ts +6 -0
- package/ace-element-plus-component/packages/components/userTag/sharedAxios.ts +8 -0
- package/ace-element-plus-component/packages/directives/auth/index.ts +41 -0
- package/ace-element-plus-component/packages/directives/autofocus/index.ts +29 -0
- package/ace-element-plus-component/packages/directives/index.ts +10 -0
- package/ace-element-plus-component/packages/directives/shortcut/index.ts +192 -0
- package/ace-element-plus-component/packages/hooks/useAppInstances.ts +130 -0
- package/ace-element-plus-component/packages/hooks/useBackendValidations.ts +81 -0
- package/ace-element-plus-component/packages/hooks/useBridage.ts +157 -0
- package/ace-element-plus-component/packages/hooks/useClassificationLevels.ts +86 -0
- package/ace-element-plus-component/packages/hooks/useConstraintProviders.ts +36 -0
- package/ace-element-plus-component/packages/hooks/useDateTimeShortCuts.ts +65 -0
- package/ace-element-plus-component/packages/hooks/useEntities.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useEntityPropDataTypes.ts +37 -0
- package/ace-element-plus-component/packages/hooks/useFileConfigurations.ts +41 -0
- package/ace-element-plus-component/packages/hooks/useGroups.ts +81 -0
- package/ace-element-plus-component/packages/hooks/useNumberTemplates.ts +43 -0
- package/ace-element-plus-component/packages/hooks/useProperties.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useRealms.ts +28 -0
- package/ace-element-plus-component/packages/hooks/useRoleCategories.ts +42 -0
- package/ace-element-plus-component/packages/hooks/useRoles.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useRouteableVisible.ts +35 -0
- package/ace-element-plus-component/packages/hooks/useTreeData.ts +45 -0
- package/ace-element-plus-component/packages/hooks/useUserRefQuery.ts +232 -0
- package/ace-element-plus-component/packages/index.ts +34 -0
- package/ace-element-plus-component/packages/list.json +8 -0
- package/ace-element-plus-component/packages/types/custom.d.ts +13 -0
- package/ace-element-plus-component/packages/types/window.d.ts +16 -0
- package/ace-element-plus-component/packages/utils/formUtils.ts +57 -0
- package/ace-element-plus-component/packages/utils/install.ts +43 -0
- package/ace-element-plus-component/packages/utils/objectUtils.ts +31 -0
- package/ace-element-plus-component/public/vite.svg +1 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.js +1 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.json +5196 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.ttf +0 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.woff +0 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.woff2 +0 -0
- package/ace-element-plus-component/theme-style/index.scss +11 -0
- package/ace-element-plus-component/theme-style/styles/element-plus-var.scss +1419 -0
- package/ace-element-plus-component/theme-style/styles/iconfont.css +2979 -0
- package/ace-element-plus-component/theme-style/styles/reset.scss +0 -0
- package/ace-element-plus-component/theme-style/styles/theme-var.scss +72 -0
- package/ace-element-plus-component/theme-style/styles/transition.scss +122 -0
- package/ace-element-plus-component/tsconfig.json +42 -0
- package/ace-element-plus-component/tsconfig.node.json +9 -0
- package/ace-element-plus-component/tsconfig.node.tsbuildinfo +1 -0
- package/ace-element-plus-component/vite.config.d.ts +2 -0
- package/ace-element-plus-component/vite.config.js +55 -0
- package/ace-element-plus-component/vite.config.ts +59 -0
- package/ace-install-system-ui/.env +2 -0
- package/ace-install-system-ui/.env.development +5 -0
- package/ace-install-system-ui/.env.production +1 -0
- package/ace-install-system-ui/.eslintrc.cjs +18 -0
- package/ace-install-system-ui/CHANGE.md +1 -0
- package/ace-install-system-ui/README.md +18 -0
- package/ace-install-system-ui/index.html +13 -0
- package/ace-install-system-ui/lib.zip +0 -0
- package/ace-install-system-ui/package.json +45 -0
- package/ace-install-system-ui/public/images/desktopAppInstall/not-data.svg +1 -0
- package/ace-install-system-ui/public/images/login/Line.png +0 -0
- package/ace-install-system-ui/public/images/login/Path.png +0 -0
- package/ace-install-system-ui/public/images/login/Vector.png +0 -0
- package/ace-install-system-ui/public/images/login/down_line.png +0 -0
- package/ace-install-system-ui/public/images/login/exclamation.png +0 -0
- package/ace-install-system-ui/public/images/login/login_bg_img.png +0 -0
- package/ace-install-system-ui/public/images/title_01.png +0 -0
- package/ace-install-system-ui/public/images/title_02.png +0 -0
- package/ace-install-system-ui/public/images/title_03.png +0 -0
- package/ace-install-system-ui/public/images/title_04.png +0 -0
- package/ace-install-system-ui/public/images/uploader/upload-empty.svg +1 -0
- package/ace-install-system-ui/public/images/uploader/upload-files.svg +1710 -0
- package/ace-install-system-ui/public/logo.svg +1 -0
- package/ace-install-system-ui/public/vite.svg +1 -0
- package/ace-install-system-ui/src/App.vue +7 -0
- package/ace-install-system-ui/src/api/apiCache.ts +25 -0
- package/ace-install-system-ui/src/api/cache.ts +9 -0
- package/ace-install-system-ui/src/api/desktopAppApi.ts +149 -0
- package/ace-install-system-ui/src/api/desktopMachineApi.ts +75 -0
- package/ace-install-system-ui/src/api/loginApi.ts +46 -0
- package/ace-install-system-ui/src/api/taskReportApi.ts +46 -0
- package/ace-install-system-ui/src/assets/vue.svg +1 -0
- package/ace-install-system-ui/src/components/AppsManage/AddApp.vue +283 -0
- package/ace-install-system-ui/src/components/AppsManage/AppForm.vue +321 -0
- package/ace-install-system-ui/src/components/AppsManage/AppManageDrawer.vue +164 -0
- package/ace-install-system-ui/src/components/AppsManage/AppSelector.vue +93 -0
- package/ace-install-system-ui/src/components/AppsManage/AppsManage.vue +441 -0
- package/ace-install-system-ui/src/components/AppsManage/EditAppMetaData.vue +203 -0
- package/ace-install-system-ui/src/components/AppsManage/EnvForm.vue +180 -0
- package/ace-install-system-ui/src/components/AppsManage/IniForm.vue +294 -0
- package/ace-install-system-ui/src/components/AppsManage/UpdateAppForm.vue +218 -0
- package/ace-install-system-ui/src/components/CustomDialog.vue +170 -0
- package/ace-install-system-ui/src/components/HostMachineManage/AddHostMachine.vue +173 -0
- package/ace-install-system-ui/src/components/HostMachineManage/HostMachineManage.vue +509 -0
- package/ace-install-system-ui/src/components/HostMachineManage/HostMachineManageDrawer.vue +143 -0
- package/ace-install-system-ui/src/components/HostMachineManage/MachineSelector.vue +119 -0
- package/ace-install-system-ui/src/components/InstallModuleHeader.vue +36 -0
- package/ace-install-system-ui/src/components/Log/ViewAllLog.vue +175 -0
- package/ace-install-system-ui/src/components/Log/ViewLog.vue +80 -0
- package/ace-install-system-ui/src/components/TaskList/AppInstallTask.vue +33 -0
- package/ace-install-system-ui/src/components/TaskList/AppInstallTaskGroup.vue +152 -0
- package/ace-install-system-ui/src/components/TaskList/AppScanTask.vue +80 -0
- package/ace-install-system-ui/src/components/TaskList/AppUninstallTask.vue +33 -0
- package/ace-install-system-ui/src/components/TaskList/AppUninstallTaskGroup.vue +152 -0
- package/ace-install-system-ui/src/components/TaskList/TaskList.vue +314 -0
- package/ace-install-system-ui/src/components/TaskList/TaskListDrawer.vue +127 -0
- package/ace-install-system-ui/src/components/Uploader/GlobalUploader.vue +297 -0
- package/ace-install-system-ui/src/components/Uploader/Uploader.vue +346 -0
- package/ace-install-system-ui/src/components/WebTerminal/MachineTerminals.vue +187 -0
- package/ace-install-system-ui/src/components/WebTerminal/WebTerminal.vue +136 -0
- package/ace-install-system-ui/src/components/WebTerminal/WebTerminalDialog.vue +80 -0
- package/ace-install-system-ui/src/env.d.ts +15 -0
- package/ace-install-system-ui/src/init.ts +22 -0
- package/ace-install-system-ui/src/locales/lang/en/common.json +17 -0
- package/ace-install-system-ui/src/locales/lang/en/errors.json +40 -0
- package/ace-install-system-ui/src/locales/lang/en/layout.json +7 -0
- package/ace-install-system-ui/src/locales/lang/en.ts +14 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/layout.json +7 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN.ts +15 -0
- package/ace-install-system-ui/src/locales/setupI18n.ts +14 -0
- package/ace-install-system-ui/src/main.ts +28 -0
- package/ace-install-system-ui/src/model/Common.ts +8 -0
- package/ace-install-system-ui/src/model/DesktopApp.ts +472 -0
- package/ace-install-system-ui/src/model/TaskLog.ts +64 -0
- package/ace-install-system-ui/src/model/TaskReport.ts +136 -0
- package/ace-install-system-ui/src/pages/Home/Home.vue +307 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/InstallDesktopApp.vue +363 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/DependentApp.vue +138 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep1 copy.vue +232 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep1.vue +577 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep2.vue +267 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep3.vue +176 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/ViewDependencies.vue +74 -0
- package/ace-install-system-ui/src/pages/UninstallDesktopApp.vue +167 -0
- package/ace-install-system-ui/src/router/index.ts +118 -0
- package/ace-install-system-ui/src/stores/index.ts +181 -0
- package/ace-install-system-ui/src/stores/modules/locale.ts +60 -0
- package/ace-install-system-ui/src/styles/main.scss +73 -0
- package/ace-install-system-ui/src/styles/modules/cutom-element-table-cell.scss +33 -0
- package/ace-install-system-ui/src/styles/modules/element-dark-theme.scss +126 -0
- package/ace-install-system-ui/src/styles/modules/task-install-detail.scss +127 -0
- package/ace-install-system-ui/src/styles/modules/var-notused.scss +156 -0
- package/ace-install-system-ui/src/styles/modules/var.scss +151 -0
- package/ace-install-system-ui/src/types/global.d.ts +10 -0
- package/ace-install-system-ui/src/types/shims-vue-simple-uploader.d.ts +4 -0
- package/ace-install-system-ui/src/utils/EventBus.ts +5 -0
- package/ace-install-system-ui/src/utils/axios/AceAxios.ts +535 -0
- package/ace-install-system-ui/src/utils/axios/cache.ts +9 -0
- package/ace-install-system-ui/src/utils/axios/index.ts +35 -0
- package/ace-install-system-ui/src/views/Layout/Layout.vue +140 -0
- package/ace-install-system-ui/src/views/Layout/components/Header.vue +198 -0
- package/ace-install-system-ui/src/views/Login/Login.vue +283 -0
- package/ace-install-system-ui/src/views/NotFound/NotFound.vue +7 -0
- package/ace-install-system-ui/src/views/SignUp/SignUp.vue +204 -0
- package/ace-install-system-ui/src/views/WebSsh.vue +12 -0
- package/ace-install-system-ui/tsconfig.json +24 -0
- package/ace-install-system-ui/tsconfig.node.json +11 -0
- package/ace-install-system-ui/vite.config.ts +114 -0
- package/ace-monolith-shell-ui/.env +3 -0
- package/ace-monolith-shell-ui/.env.development +5 -0
- package/ace-monolith-shell-ui/.env.production +1 -0
- package/ace-monolith-shell-ui/.eslintrc.cjs +15 -0
- package/ace-monolith-shell-ui/.prettierrc.json +8 -0
- package/ace-monolith-shell-ui/.vscode/extensions.json +7 -0
- package/ace-monolith-shell-ui/.vscode/launch.json +22 -0
- package/ace-monolith-shell-ui/.vscode/settings.json +26 -0
- package/ace-monolith-shell-ui/README.md +7 -0
- package/ace-monolith-shell-ui/auto-imports.d.ts +9 -0
- package/ace-monolith-shell-ui/components.d.ts +45 -0
- package/ace-monolith-shell-ui/index.html +20 -0
- package/ace-monolith-shell-ui/package.json +67 -0
- package/ace-monolith-shell-ui/public/res/build/shell/favicon.ico +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/.keep +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/index.html +5348 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.css +2583 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.eot +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.glyph.json +1 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.less +2585 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.module.less +2567 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.scss +5103 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.styl +2554 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.svg +7633 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.symbol.svg +11 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.ttf +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff2 +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/symbol.html +18032 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/tags.json +1364 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/unicode.html +175 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/hidden-right-sidebar.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/deliver.svg +1 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/logout.svg +28 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/notification.svg +17 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/jari-logo-2.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/jari-logo.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/public-code.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/show-right-sidebar.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/shezhi.svg +11 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/tuichu.svg +13 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/xiaoxi.svg +13 -0
- package/ace-monolith-shell-ui/public/res/build/shell/styles/element-plus.css +1 -0
- package/ace-monolith-shell-ui/src/App.vue +25 -0
- package/ace-monolith-shell-ui/src/assets/base.css +80 -0
- package/ace-monolith-shell-ui/src/assets/element/index.scss +18 -0
- package/ace-monolith-shell-ui/src/assets/element/var.scss +1123 -0
- package/ace-monolith-shell-ui/src/assets/logo.svg +7 -0
- package/ace-monolith-shell-ui/src/assets/main.scss +123 -0
- package/ace-monolith-shell-ui/src/demo/Bridge.vue +176 -0
- package/ace-monolith-shell-ui/src/env.d.ts +17 -0
- package/ace-monolith-shell-ui/src/hooks/useBridge.ts +148 -0
- package/ace-monolith-shell-ui/src/hooks/usePreferences.ts +116 -0
- package/ace-monolith-shell-ui/src/hooks/useSockJs.ts +123 -0
- package/ace-monolith-shell-ui/src/http/AceAxios.ts +645 -0
- package/ace-monolith-shell-ui/src/http/cache.ts +11 -0
- package/ace-monolith-shell-ui/src/http/index.ts +33 -0
- package/ace-monolith-shell-ui/src/init.ts +21 -0
- package/ace-monolith-shell-ui/src/layout/Main.vue +176 -0
- package/ace-monolith-shell-ui/src/layout/components/AppMenu.vue +334 -0
- package/ace-monolith-shell-ui/src/layout/components/Fillet.vue +105 -0
- package/ace-monolith-shell-ui/src/layout/components/Sidebar.vue +213 -0
- package/ace-monolith-shell-ui/src/layout/widgets/notification/Notification.vue +307 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/common.json +17 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/layout.json +8 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/updatePsw.json +9 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/userProfile.json +3 -0
- package/ace-monolith-shell-ui/src/locales/lang/en.ts +14 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/layout.json +8 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/updatePsw.json +9 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/userProfile.json +3 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN.ts +14 -0
- package/ace-monolith-shell-ui/src/locales/setupI18n.ts +14 -0
- package/ace-monolith-shell-ui/src/main.ts +164 -0
- package/ace-monolith-shell-ui/src/router/index.ts +111 -0
- package/ace-monolith-shell-ui/src/shims-vue.d.ts +22 -0
- package/ace-monolith-shell-ui/src/stores/modules/accessibleApps.ts +149 -0
- package/ace-monolith-shell-ui/src/stores/modules/app.ts +164 -0
- package/ace-monolith-shell-ui/src/stores/modules/appContext.ts +57 -0
- package/ace-monolith-shell-ui/src/stores/modules/auth.ts +65 -0
- package/ace-monolith-shell-ui/src/stores/modules/locale.ts +63 -0
- package/ace-monolith-shell-ui/src/stores/modules/system.ts +41 -0
- package/ace-monolith-shell-ui/src/types/ext.d.ts +13 -0
- package/ace-monolith-shell-ui/src/types/router.d.ts +12 -0
- package/ace-monolith-shell-ui/src/types/window.d.ts +16 -0
- package/ace-monolith-shell-ui/src/views/AboutView.vue +141 -0
- package/ace-monolith-shell-ui/src/views/DlgUpdatePassword.vue +119 -0
- package/ace-monolith-shell-ui/src/views/ExtendedAttrRender.vue +311 -0
- package/ace-monolith-shell-ui/src/views/MicroAppContainer.vue +270 -0
- package/ace-monolith-shell-ui/src/views/UserProfileEditor.vue +303 -0
- package/ace-monolith-shell-ui/src/views/WorkBench.vue +10 -0
- package/ace-monolith-shell-ui/src/views/errors/HttpState404.vue +137 -0
- package/ace-monolith-shell-ui/src/views/errors/NoAppAvailable.vue +16 -0
- package/ace-monolith-shell-ui/src/vite-env.d.ts +3 -0
- package/ace-monolith-shell-ui/tsconfig.app.json +26 -0
- package/ace-monolith-shell-ui/tsconfig.json +11 -0
- package/ace-monolith-shell-ui/tsconfig.node.json +25 -0
- package/ace-monolith-shell-ui/vbuild/vite/proxy.ts +47 -0
- package/ace-monolith-shell-ui/vite.config.ts +127 -0
- package/ace-monolith-shell-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-vue-frame/.env +2 -0
- package/ace-vue-frame/.env.development +1 -0
- package/ace-vue-frame/.env.production +1 -0
- package/ace-vue-frame/.eslintrc.cjs +29 -0
- package/ace-vue-frame/.vscode/extensions.json +3 -0
- package/ace-vue-frame/README.md +18 -0
- package/ace-vue-frame/auto-imports.d.ts +9 -0
- package/ace-vue-frame/components.d.ts +16 -0
- package/ace-vue-frame/folder-alias.json +1 -0
- package/ace-vue-frame/index.html +13 -0
- package/ace-vue-frame/jsconfig.json +13 -0
- package/ace-vue-frame/package.json +30 -0
- package/ace-vue-frame/prettier.config.js +17 -0
- package/ace-vue-frame/public/vite.svg +1 -0
- package/ace-vue-frame/src/App.vue +30 -0
- package/ace-vue-frame/src/api/demo.ts +24 -0
- package/ace-vue-frame/src/assets/vue.svg +1 -0
- package/ace-vue-frame/src/components/HelloWorld.vue +38 -0
- package/ace-vue-frame/src/main.ts +38 -0
- package/ace-vue-frame/src/router/index.ts +18 -0
- package/ace-vue-frame/src/router/routes.ts +7 -0
- package/ace-vue-frame/src/router/whiteList.ts +4 -0
- package/ace-vue-frame/src/stores/index.ts +3 -0
- package/ace-vue-frame/src/stores/modules/main.ts +19 -0
- package/ace-vue-frame/src/style.css +80 -0
- package/ace-vue-frame/src/types/ext.d.ts +13 -0
- package/ace-vue-frame/src/types/style.d.ts +7 -0
- package/ace-vue-frame/src/types/window.d.ts +16 -0
- package/ace-vue-frame/src/utils/axios/index.ts +20 -0
- package/ace-vue-frame/src/utils/index.ts +7 -0
- package/ace-vue-frame/src/vite-env.d.ts +1 -0
- package/ace-vue-frame/tsconfig.json +52 -0
- package/ace-vue-frame/tsconfig.node.json +10 -0
- package/ace-vue-frame/vite.config.ts +75 -0
- package/folder-alias.json +1 -0
- package/frontends.code-workspace +10 -0
- package/package.json +35 -0
- package/pnpm-workspace.yaml +11 -0
- package/pom.xml +114 -0
|
@@ -0,0 +1,956 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
type AppInstance,
|
|
4
|
+
type ConstraintProvider,
|
|
5
|
+
createAxiosWithoutCache,
|
|
6
|
+
type CreateOrderByDescriptorCommand,
|
|
7
|
+
type CreatePropertyCommand,
|
|
8
|
+
type EntityDefinition,
|
|
9
|
+
type EntityDefinitionReference,
|
|
10
|
+
type FileConfiguration,
|
|
11
|
+
type ProjectedFileConfiguration,
|
|
12
|
+
type ProjectedPropertyDefinition,
|
|
13
|
+
type ProjectedStringIdTemplate,
|
|
14
|
+
type PropertyCollectionType,
|
|
15
|
+
type PropertyDataType,
|
|
16
|
+
type PropertyDataTypes,
|
|
17
|
+
type PropertyDefinitionReference,
|
|
18
|
+
type StringIdTemplate,
|
|
19
|
+
type UpdatePropertyCommand,
|
|
20
|
+
useEntityApi,
|
|
21
|
+
useEnumApi,
|
|
22
|
+
useLoading
|
|
23
|
+
} from "@jari-ace/app-bolts";
|
|
24
|
+
import {computed, nextTick, ref, watch} from "vue";
|
|
25
|
+
import {
|
|
26
|
+
JaDatePicker,
|
|
27
|
+
JaDropdownButton,
|
|
28
|
+
JaForm,
|
|
29
|
+
JaInput,
|
|
30
|
+
JaInputI18nRaw,
|
|
31
|
+
JaInputNumber,
|
|
32
|
+
JaPropertyPickerRaw,
|
|
33
|
+
JaRolePicker,
|
|
34
|
+
JaSwitch,
|
|
35
|
+
JaTimePicker,
|
|
36
|
+
useAppInstances,
|
|
37
|
+
useBackendValidations, useConstraintProviders,
|
|
38
|
+
useEntities, useEntityPropDataTypes, useFileConfigurations,
|
|
39
|
+
useNumberTemplates
|
|
40
|
+
} from "@jari-ace/element-plus-component";
|
|
41
|
+
import {Minus, Plus} from "@element-plus/icons-vue";
|
|
42
|
+
import {ElMessage, ElScrollbar} from "element-plus";
|
|
43
|
+
import {
|
|
44
|
+
type EditingOrderByDescriptor,
|
|
45
|
+
getParameterComponent,
|
|
46
|
+
getParameterComponentProps,
|
|
47
|
+
scrollToBottom,
|
|
48
|
+
useConstraintsEditor
|
|
49
|
+
} from "@/views/appManage/entityDefine/uilts";
|
|
50
|
+
import FileConfigEditor from '../../registerUpload/components/Editor.vue';
|
|
51
|
+
import StringIdTemplateEditor from '../../numberTemplate/components/Editor.vue';
|
|
52
|
+
import EnumPicker from "@/components/enumPicker/EnumPicker.vue";
|
|
53
|
+
|
|
54
|
+
const props = defineProps<{
|
|
55
|
+
mode: 'create' | 'update',
|
|
56
|
+
entity?: EntityDefinition,
|
|
57
|
+
property?: ProjectedPropertyDefinition,
|
|
58
|
+
appName?: string,
|
|
59
|
+
serviceName?: string,
|
|
60
|
+
dataSourceId?: string,
|
|
61
|
+
properties?: ProjectedPropertyDefinition[],
|
|
62
|
+
}>()
|
|
63
|
+
const visible = defineModel<boolean>({
|
|
64
|
+
default: false,
|
|
65
|
+
required: true
|
|
66
|
+
})
|
|
67
|
+
const title = ref<string>("");
|
|
68
|
+
const state = ref<{
|
|
69
|
+
formData: CreatePropertyCommand | UpdatePropertyCommand
|
|
70
|
+
}>({
|
|
71
|
+
formData: newPropertyCommand()
|
|
72
|
+
});
|
|
73
|
+
const axios = createAxiosWithoutCache();
|
|
74
|
+
const api = useEntityApi(axios);
|
|
75
|
+
const validator = useBackendValidations(Object.keys(state.value.formData), axios);
|
|
76
|
+
const loading = useLoading();
|
|
77
|
+
const form = ref<InstanceType<typeof JaForm>>();
|
|
78
|
+
const emits = defineEmits(["success", "closed"]);
|
|
79
|
+
const activeTab = ref("general");
|
|
80
|
+
const enumApi = useEnumApi(axios);
|
|
81
|
+
const appInfo = ref<AppInstance>()
|
|
82
|
+
const entities = ref<EntityDefinitionReference[]>();
|
|
83
|
+
let manualNamed: boolean = false;
|
|
84
|
+
const canBePrimaryKey = computed(() => {
|
|
85
|
+
const dt = state.value.formData?.dataType;
|
|
86
|
+
return !props.entity?.autoId && dt != 'BLOB' && dt != 'CLOB'
|
|
87
|
+
&& dt != 'ENUM' && dt != 'ENTITY' && dt != 'ATTACHMENT'
|
|
88
|
+
&& dt != 'I18N_STRING' && dt != 'BOOLEAN';
|
|
89
|
+
})
|
|
90
|
+
const reverseProperties = computed(() => {
|
|
91
|
+
return propertiesForOrderBy.value?.filter(p => p.dataType == 'ENTITY'
|
|
92
|
+
&& p.collectionType == 'NONE') ?? [];
|
|
93
|
+
})
|
|
94
|
+
const isTreeStructure = computed(() => props.entity?.treeStructure && 'NONE'
|
|
95
|
+
!== props.entity?.treeStructure)
|
|
96
|
+
const isCollection = computed(() => state.value.formData?.collectionType !== 'NONE');
|
|
97
|
+
const isMap = computed(() => state.value.formData?.collectionType === 'MAP');
|
|
98
|
+
const isEntity = computed(() => state.value.formData?.dataType === 'ENTITY');
|
|
99
|
+
const isEnum = computed(() => state.value.formData?.dataType === 'ENUM');
|
|
100
|
+
const isAttach = computed(() => state.value.formData?.dataType === 'ATTACHMENT');
|
|
101
|
+
const isAutoNumber = computed(() => state.value.formData?.dataType === 'AUTO_NUMBER');
|
|
102
|
+
const orderBys = ref<EditingOrderByDescriptor[]>([]);
|
|
103
|
+
let deletedOrderBys: EditingOrderByDescriptor[] = [];
|
|
104
|
+
const propertiesForOrderBy = ref<ProjectedPropertyDefinition[]>([]);
|
|
105
|
+
let currentEntityType: EntityDefinitionReference | undefined;
|
|
106
|
+
const baseScrollbar = ref<InstanceType<typeof ElScrollbar>>();
|
|
107
|
+
const providers = ref<ConstraintProvider[]>([]);
|
|
108
|
+
let allProviders: ConstraintProvider[] = [];
|
|
109
|
+
const dataTypes = ref<PropertyDataTypes>();
|
|
110
|
+
const fileConfigs = ref<ProjectedFileConfiguration[]>();
|
|
111
|
+
const fileConfigEditorVisible = ref(false);
|
|
112
|
+
const templates = ref<ProjectedStringIdTemplate[]>()
|
|
113
|
+
const templateEditorVisible = ref(false);
|
|
114
|
+
const originalCollectionType = ref<PropertyCollectionType>('NONE');
|
|
115
|
+
const defaultValueComponent = ref<any>();
|
|
116
|
+
const defaultValueComponentProps = ref<any>()
|
|
117
|
+
const {getDataTypes} = useEntityPropDataTypes()
|
|
118
|
+
const {getConstraintProviders} = useConstraintProviders()
|
|
119
|
+
const {getFileConfigurations} = useFileConfigurations()
|
|
120
|
+
const {getNumberTemplates} = useNumberTemplates()
|
|
121
|
+
const {getEntities} = useEntities()
|
|
122
|
+
const {
|
|
123
|
+
constraints,
|
|
124
|
+
deletedConstraints,
|
|
125
|
+
cstScrollbar,
|
|
126
|
+
onConstraintChanged,
|
|
127
|
+
onDelConstraintClick,
|
|
128
|
+
onAddConstraintClick
|
|
129
|
+
} = useConstraintsEditor();
|
|
130
|
+
|
|
131
|
+
function newPropertyCommand() {
|
|
132
|
+
return {
|
|
133
|
+
/**
|
|
134
|
+
* 所属实体
|
|
135
|
+
*/
|
|
136
|
+
entity: {
|
|
137
|
+
id: props.entity?.id,
|
|
138
|
+
dataVersion: props.entity?.dataVersion,
|
|
139
|
+
name: props.entity?.name,
|
|
140
|
+
caption: props.entity?.caption
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* 属性名
|
|
144
|
+
*/
|
|
145
|
+
name: "",
|
|
146
|
+
/**
|
|
147
|
+
* 存储列名
|
|
148
|
+
*/
|
|
149
|
+
columnName: "",
|
|
150
|
+
/**
|
|
151
|
+
* 标题
|
|
152
|
+
*/
|
|
153
|
+
caption: "",
|
|
154
|
+
/**
|
|
155
|
+
* 备注
|
|
156
|
+
*/
|
|
157
|
+
comment: "",
|
|
158
|
+
/**
|
|
159
|
+
* 数据类型
|
|
160
|
+
*/
|
|
161
|
+
dataType: "STRING",
|
|
162
|
+
/**
|
|
163
|
+
* 属性值的集合类型
|
|
164
|
+
*/
|
|
165
|
+
collectionType: "NONE",
|
|
166
|
+
/**
|
|
167
|
+
* 表名
|
|
168
|
+
*/
|
|
169
|
+
collectionTableName: "",
|
|
170
|
+
/**
|
|
171
|
+
* 键类型
|
|
172
|
+
*/
|
|
173
|
+
mapKeyDataType: "STRING",
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* 映射键所属的枚举类型
|
|
177
|
+
*/
|
|
178
|
+
mapKeyEnum: undefined,
|
|
179
|
+
/**
|
|
180
|
+
* Map键列名
|
|
181
|
+
*/
|
|
182
|
+
mapKeyColumnName: "",
|
|
183
|
+
/**
|
|
184
|
+
* dataType为实体的属性引用的实体类型
|
|
185
|
+
*/
|
|
186
|
+
entityType: undefined,
|
|
187
|
+
/**
|
|
188
|
+
* 一对多双向关系中对方的关联属性
|
|
189
|
+
*/
|
|
190
|
+
mappedByProperty: undefined,
|
|
191
|
+
/**
|
|
192
|
+
* 枚举类型属性引用的枚举类型
|
|
193
|
+
*/
|
|
194
|
+
enumType: undefined,
|
|
195
|
+
/**
|
|
196
|
+
* 对关联实体的级联操作
|
|
197
|
+
*/
|
|
198
|
+
cascadeType: [],
|
|
199
|
+
/**
|
|
200
|
+
* 是否自动删除移出集合的孤立实体
|
|
201
|
+
*/
|
|
202
|
+
orphanRemoval: false,
|
|
203
|
+
/**
|
|
204
|
+
* 关联方式
|
|
205
|
+
*/
|
|
206
|
+
relationMode: undefined,
|
|
207
|
+
/**
|
|
208
|
+
* 非实体集合是否保持有序
|
|
209
|
+
*/
|
|
210
|
+
orderedCollection: true,
|
|
211
|
+
/**
|
|
212
|
+
* 有序集合类型,并且元素为实体类型,使用OrderBy指定排序字段
|
|
213
|
+
*/
|
|
214
|
+
createdOrderByDescriptors: [],
|
|
215
|
+
/**
|
|
216
|
+
* 属性上定义的约束
|
|
217
|
+
*/
|
|
218
|
+
createdConstraints: [],
|
|
219
|
+
/**
|
|
220
|
+
* 能否为空
|
|
221
|
+
*/
|
|
222
|
+
notNull: false,
|
|
223
|
+
/**
|
|
224
|
+
* 是否主键
|
|
225
|
+
*/
|
|
226
|
+
primaryKey: false,
|
|
227
|
+
/**
|
|
228
|
+
* 文本类型长度
|
|
229
|
+
*/
|
|
230
|
+
size: 255,
|
|
231
|
+
/**
|
|
232
|
+
* 附件配置标识
|
|
233
|
+
*/
|
|
234
|
+
attachConfigKey: "",
|
|
235
|
+
/**
|
|
236
|
+
* 编码模版名称
|
|
237
|
+
*/
|
|
238
|
+
numberTemplateName: "",
|
|
239
|
+
/**
|
|
240
|
+
*缺省值
|
|
241
|
+
*/
|
|
242
|
+
defaultValue: ""
|
|
243
|
+
} as CreatePropertyCommand;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const apps = useAppInstances()
|
|
247
|
+
|
|
248
|
+
async function init() {
|
|
249
|
+
appInfo.value = await apps.getByName(props.appName!)
|
|
250
|
+
title.value = props.mode === 'create' ? '创建属性定义' : '修改属性定义';
|
|
251
|
+
loadEntities();
|
|
252
|
+
loadDataTypes();
|
|
253
|
+
await loadConstraintProviders();
|
|
254
|
+
if (props.mode === 'create') {
|
|
255
|
+
state.value.formData = newPropertyCommand();
|
|
256
|
+
orderBys.value = [];
|
|
257
|
+
constraints.value = [];
|
|
258
|
+
activeTab.value = "general";
|
|
259
|
+
} else {
|
|
260
|
+
if (!props.entity || !props.property) return;
|
|
261
|
+
const r = await api.getProperty(props.property.id);
|
|
262
|
+
originalCollectionType.value = r.collectionType;
|
|
263
|
+
state.value.formData = r as UpdatePropertyCommand;
|
|
264
|
+
if (isEntity.value) {
|
|
265
|
+
loadPropertiesForOrderBy();
|
|
266
|
+
currentEntityType = state.value.formData?.entityType;
|
|
267
|
+
orderBys.value = r.orderByDescriptors?.map(d => (
|
|
268
|
+
{
|
|
269
|
+
...d,
|
|
270
|
+
state: 'unmodified',
|
|
271
|
+
}
|
|
272
|
+
)) ?? [];
|
|
273
|
+
}
|
|
274
|
+
if (r.constraints) {
|
|
275
|
+
constraints.value = r.constraints
|
|
276
|
+
.filter(
|
|
277
|
+
c => allProviders
|
|
278
|
+
.findIndex(p =>
|
|
279
|
+
p.constraintName === c.constraintName) >= 0)
|
|
280
|
+
.map(c => (
|
|
281
|
+
{
|
|
282
|
+
...c,
|
|
283
|
+
state: 'unmodified',
|
|
284
|
+
provider: allProviders.find(p =>
|
|
285
|
+
p.constraintName
|
|
286
|
+
=== c.constraintName)
|
|
287
|
+
}
|
|
288
|
+
))
|
|
289
|
+
} else {
|
|
290
|
+
constraints.value = [];
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
deletedOrderBys = [];
|
|
294
|
+
deletedConstraints.value = [];
|
|
295
|
+
getSupportedProviders();
|
|
296
|
+
manualNamed = false;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
function onClosed() {
|
|
300
|
+
//关闭后要清理状态,防止再打开其它
|
|
301
|
+
state.value.formData = newPropertyCommand();
|
|
302
|
+
emits("closed")
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
async function loadDataTypes() {
|
|
306
|
+
dataTypes.value = await getDataTypes()
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
async function loadConstraintProviders() {
|
|
310
|
+
const r = await getConstraintProviders()
|
|
311
|
+
allProviders = r.filter(p => p.singleProperty);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
async function loadFileConfigs(searchKey?: string) {
|
|
315
|
+
if (!props.serviceName) return
|
|
316
|
+
const configs = await getFileConfigurations(props.serviceName)
|
|
317
|
+
if (searchKey && searchKey.length > 0) {
|
|
318
|
+
fileConfigs.value = configs.filter(c => c.configKey.indexOf(searchKey) > -1);
|
|
319
|
+
} else {
|
|
320
|
+
fileConfigs.value = [...configs];
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
async function loadNumberTemplates(nameToSearch?: string) {
|
|
325
|
+
if (!props.appName) return
|
|
326
|
+
const _templates = await getNumberTemplates(props.appName)
|
|
327
|
+
if (nameToSearch && nameToSearch.length > 0) {
|
|
328
|
+
templates.value = _templates.filter(t => t.name.indexOf(nameToSearch) > -1);
|
|
329
|
+
} else {
|
|
330
|
+
templates.value = [..._templates];
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function getSupportedProviders() {
|
|
335
|
+
const f = state.value.formData;
|
|
336
|
+
providers.value = allProviders.filter(
|
|
337
|
+
p => (
|
|
338
|
+
p.supportCollection === (
|
|
339
|
+
f.collectionType !== 'NONE'
|
|
340
|
+
)
|
|
341
|
+
|| (
|
|
342
|
+
f.collectionType === 'NONE' && (
|
|
343
|
+
f.dataType === 'STRING'
|
|
344
|
+
|| f.dataType === 'I18N_STRING'
|
|
345
|
+
|| f.dataType === 'ENUM'
|
|
346
|
+
)
|
|
347
|
+
)
|
|
348
|
+
)
|
|
349
|
+
&& p.supportedDataTypes.findIndex(t => t === f.dataType) >= 0
|
|
350
|
+
&& (
|
|
351
|
+
(
|
|
352
|
+
!p.canRepeat && !constraints.value.some((
|
|
353
|
+
c => c.constraintName === p.constraintName
|
|
354
|
+
)
|
|
355
|
+
) || p.canRepeat
|
|
356
|
+
)
|
|
357
|
+
))
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
async function loadEntities() {
|
|
361
|
+
if (!props.dataSourceId) return;
|
|
362
|
+
entities.value = await getEntities(props.dataSourceId);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
async function loadPropertiesForOrderBy() {
|
|
366
|
+
propertiesForOrderBy.value = await api.getProperties(state.value.formData?.entityType?.id
|
|
367
|
+
?? '0');
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
function submit() {
|
|
371
|
+
if (!form.value) return;
|
|
372
|
+
if (isEntity.value) {
|
|
373
|
+
for (let o of orderBys.value) {
|
|
374
|
+
if (!o.orderByProperty) {
|
|
375
|
+
ElMessage.error('排序属性不能为空!')
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
if (!o.sortIndex) {
|
|
379
|
+
ElMessage.error('序号不能为空!')
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
if (props.mode === 'create') {
|
|
385
|
+
const cmd = state.value.formData as CreatePropertyCommand;
|
|
386
|
+
if (cmd.dataType === 'ATTACHMENT') {
|
|
387
|
+
cmd.size = 36;
|
|
388
|
+
}
|
|
389
|
+
cmd.createdOrderByDescriptors = orderBys.value.map(o => (
|
|
390
|
+
{
|
|
391
|
+
...o,
|
|
392
|
+
orderByProperty: o.orderByProperty!,
|
|
393
|
+
sourceId: undefined
|
|
394
|
+
} as CreateOrderByDescriptorCommand
|
|
395
|
+
));
|
|
396
|
+
cmd.createdConstraints = constraints.value.map(c => (
|
|
397
|
+
{
|
|
398
|
+
...c,
|
|
399
|
+
entity: {
|
|
400
|
+
id: props.entity!.id,
|
|
401
|
+
dataVersion: props.entity!.dataVersion,
|
|
402
|
+
name: props.entity!.name
|
|
403
|
+
} as EntityDefinitionReference,
|
|
404
|
+
properties: [] as PropertyDefinitionReference[],
|
|
405
|
+
sourceId: undefined
|
|
406
|
+
}
|
|
407
|
+
))
|
|
408
|
+
form.value.validate(() => api.createProperty(cmd)
|
|
409
|
+
.then(() => {
|
|
410
|
+
emits('success');
|
|
411
|
+
visible.value = false;
|
|
412
|
+
}));
|
|
413
|
+
} else {
|
|
414
|
+
const cmd = state.value.formData as UpdatePropertyCommand;
|
|
415
|
+
if (cmd.dataType === 'ATTACHMENT') {
|
|
416
|
+
cmd.size = 36;
|
|
417
|
+
}
|
|
418
|
+
cmd.createdOrderByDescriptors = orderBys.value.filter(o => o.state === 'new').map(o => (
|
|
419
|
+
{
|
|
420
|
+
...o,
|
|
421
|
+
definedOnProperty: props.property,
|
|
422
|
+
orderByProperty: o.orderByProperty!,
|
|
423
|
+
sourceId: undefined
|
|
424
|
+
}
|
|
425
|
+
));
|
|
426
|
+
cmd.updatedOrderByDescriptors = orderBys.value.filter(o => o.state === 'modified')
|
|
427
|
+
.map(o => (
|
|
428
|
+
{
|
|
429
|
+
...o,
|
|
430
|
+
definedOnProperty: o.definedOnProperty!,
|
|
431
|
+
orderByProperty: o.orderByProperty!,
|
|
432
|
+
}
|
|
433
|
+
));
|
|
434
|
+
cmd.deletedOrderByDescriptors = deletedOrderBys;
|
|
435
|
+
cmd.createdConstraints = constraints.value.filter(c => c.state === 'new').map(o => (
|
|
436
|
+
{
|
|
437
|
+
...o,
|
|
438
|
+
entity: {
|
|
439
|
+
id: props.entity!.id,
|
|
440
|
+
dataVersion: props.entity!.dataVersion,
|
|
441
|
+
name: props.entity!.name
|
|
442
|
+
} as EntityDefinitionReference,
|
|
443
|
+
properties: [] as PropertyDefinitionReference[],
|
|
444
|
+
sourceId: undefined
|
|
445
|
+
}
|
|
446
|
+
));
|
|
447
|
+
cmd.updatedConstraints = constraints.value.filter(c => c.state === 'modified');
|
|
448
|
+
cmd.deletedConstraints = deletedConstraints.value;
|
|
449
|
+
form.value.validate(() => api.updateProperty(cmd)
|
|
450
|
+
.then(() => {
|
|
451
|
+
emits('success');
|
|
452
|
+
visible.value = false;
|
|
453
|
+
}));
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
function pascalToCamelCase(input?: string) {
|
|
458
|
+
if (!input) return "";
|
|
459
|
+
return input.charAt(0).toLowerCase() + input.slice(1);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function pascalToUnderscore(input?: string) {
|
|
463
|
+
if (!input) return "";
|
|
464
|
+
return input
|
|
465
|
+
.replace(/([A-Z])/g, '_$1')
|
|
466
|
+
.toLowerCase() // 转换为大写
|
|
467
|
+
.replace(/^_/, '');
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
function onAddOrderByClick() {
|
|
471
|
+
const sortIndex = orderBys.value.length > 0 ? Math.max(...orderBys.value.map(o => o.sortIndex))
|
|
472
|
+
+ 1 : 1;
|
|
473
|
+
const id = Date.now().toString();
|
|
474
|
+
orderBys.value.push({
|
|
475
|
+
dataVersion: 0,
|
|
476
|
+
definedOnProperty: undefined,
|
|
477
|
+
direction: "ASC",
|
|
478
|
+
id: id.toString(),
|
|
479
|
+
orderByProperty: undefined,
|
|
480
|
+
releaseSource: "",
|
|
481
|
+
sortIndex: sortIndex,
|
|
482
|
+
state: 'new'
|
|
483
|
+
})
|
|
484
|
+
nextTick(() => scrollToBottom(baseScrollbar.value));
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
function onDeleteOrderByClick(o: EditingOrderByDescriptor) {
|
|
488
|
+
const id = orderBys.value.findIndex(x => x.id === o.id);
|
|
489
|
+
if (id >= 0) {
|
|
490
|
+
orderBys.value.splice(id, 1);
|
|
491
|
+
if (o.state != 'new') {
|
|
492
|
+
deletedOrderBys.push(o);
|
|
493
|
+
o.state = 'deleted'
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function onCreateFileConfigClick() {
|
|
499
|
+
fileConfigEditorVisible.value = true;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
function onFileConfigCreated(fileConfig: FileConfiguration) {
|
|
503
|
+
state.value.formData.attachConfigKey = fileConfig.configKey;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
function onCreateNumberTemplateClick() {
|
|
507
|
+
templateEditorVisible.value = true;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function onNumberTemplateCreated(template: StringIdTemplate) {
|
|
511
|
+
state.value.formData.numberTemplateName = template.name;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
watch(() => state.value.formData, async () => {
|
|
515
|
+
const f = state.value.formData;
|
|
516
|
+
if (isEntity && !f.relationMode) {
|
|
517
|
+
f.relationMode = 'MANY_TO_ONE';
|
|
518
|
+
}
|
|
519
|
+
if (isEntity.value && f.relationMode === 'ONE_TO_MANY' && !isCollection.value) {
|
|
520
|
+
f.collectionType = 'LIST';
|
|
521
|
+
}
|
|
522
|
+
if (isEntity.value && f.relationMode !== 'ONE_TO_MANY' && isCollection.value) {
|
|
523
|
+
f.collectionType = 'NONE';
|
|
524
|
+
}
|
|
525
|
+
if (isEntity.value && props.mode === 'create' && !manualNamed && !isCollection.value) {
|
|
526
|
+
const camel = pascalToCamelCase(f.entityType?.name);
|
|
527
|
+
if (f.name !== camel) {
|
|
528
|
+
f.name = camel;
|
|
529
|
+
}
|
|
530
|
+
const caption = (
|
|
531
|
+
await api.getById(f.entityType!.id)
|
|
532
|
+
).caption;
|
|
533
|
+
if (f.caption !== caption) {
|
|
534
|
+
f.caption = caption;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
if (isEnum.value && props.mode === 'create' && !manualNamed && !isCollection.value) {
|
|
538
|
+
const camel = pascalToCamelCase(f.enumType?.name);
|
|
539
|
+
if (f.name !== camel) {
|
|
540
|
+
f.name = camel;
|
|
541
|
+
}
|
|
542
|
+
const caption = (
|
|
543
|
+
await enumApi.getById(f.enumType!.id)
|
|
544
|
+
).caption;
|
|
545
|
+
if (f.caption !== caption) {
|
|
546
|
+
f.caption = caption;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
if (f.entityType !== currentEntityType) {
|
|
550
|
+
currentEntityType = f.entityType;
|
|
551
|
+
loadPropertiesForOrderBy();
|
|
552
|
+
}
|
|
553
|
+
if (isAttach.value && isCollection.value) {
|
|
554
|
+
f.collectionType = 'NONE';
|
|
555
|
+
}
|
|
556
|
+
if (isAutoNumber.value && isCollection.value) {
|
|
557
|
+
f.collectionType = 'NONE';
|
|
558
|
+
}
|
|
559
|
+
getSupportedProviders();
|
|
560
|
+
|
|
561
|
+
}, {
|
|
562
|
+
deep: true
|
|
563
|
+
})
|
|
564
|
+
|
|
565
|
+
function setupDefaultValueComponent() {
|
|
566
|
+
const type = state.value.formData.dataType;
|
|
567
|
+
if (type === 'STRING' || type === 'I18N_STRING' || type === 'CLOB' || type === 'ENUM' || type
|
|
568
|
+
=== 'CHAR' || type === 'ATTACHMENT' || type === 'AUTO_NUMBER') {
|
|
569
|
+
defaultValueComponent.value = JaInput
|
|
570
|
+
} else if (type === 'LONG' || type === 'INTEGER' || type === 'SHORT' || type === 'BYTE') {
|
|
571
|
+
defaultValueComponent.value = JaInputNumber
|
|
572
|
+
defaultValueComponentProps.value = {
|
|
573
|
+
precision: 0,
|
|
574
|
+
step: 1
|
|
575
|
+
}
|
|
576
|
+
} else if (type === 'DECIMAL') {
|
|
577
|
+
defaultValueComponent.value = JaInputNumber
|
|
578
|
+
defaultValueComponentProps.value = {
|
|
579
|
+
precision: 2,
|
|
580
|
+
step: 0.01
|
|
581
|
+
}
|
|
582
|
+
} else if (type === 'DATETIME') {
|
|
583
|
+
defaultValueComponent.value = JaDatePicker
|
|
584
|
+
defaultValueComponentProps.value = {
|
|
585
|
+
type: "datetime",
|
|
586
|
+
format: "YYYY-MM-DD HH:mm:ss",
|
|
587
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss"
|
|
588
|
+
}
|
|
589
|
+
} else if (type === 'DATE') {
|
|
590
|
+
defaultValueComponent.value = JaDatePicker
|
|
591
|
+
defaultValueComponentProps.value = {
|
|
592
|
+
type: "date",
|
|
593
|
+
format: "YYYY-MM-DD",
|
|
594
|
+
valueFormat: "YYYY-MM-DD"
|
|
595
|
+
}
|
|
596
|
+
} else if (type === 'TIME') {
|
|
597
|
+
defaultValueComponent.value = JaTimePicker
|
|
598
|
+
defaultValueComponentProps.value = {
|
|
599
|
+
format: "HH:mm:ss",
|
|
600
|
+
valueFormat: "HH:mm:ss"
|
|
601
|
+
}
|
|
602
|
+
} else if (type === 'BOOLEAN') {
|
|
603
|
+
defaultValueComponent.value = JaSwitch
|
|
604
|
+
defaultValueComponentProps.value = undefined
|
|
605
|
+
} else {
|
|
606
|
+
defaultValueComponent.value = undefined
|
|
607
|
+
defaultValueComponentProps.value = undefined
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
watch(() => state.value.formData.dataType, () => {
|
|
612
|
+
if (isEntity.value) {
|
|
613
|
+
loadPropertiesForOrderBy();
|
|
614
|
+
}
|
|
615
|
+
setupDefaultValueComponent();
|
|
616
|
+
})
|
|
617
|
+
|
|
618
|
+
setupDefaultValueComponent()
|
|
619
|
+
|
|
620
|
+
watch(constraints, getSupportedProviders, {
|
|
621
|
+
deep: true
|
|
622
|
+
})
|
|
623
|
+
</script>
|
|
624
|
+
|
|
625
|
+
<template>
|
|
626
|
+
<el-drawer destroy-on-close append-to-body v-model="visible" :title="title"
|
|
627
|
+
@open="init" @closed="onClosed">
|
|
628
|
+
<el-tabs v-model="activeTab" type="card" style="height: 100%">
|
|
629
|
+
<el-tab-pane label="基本定义" name="general" style="height: 100%;">
|
|
630
|
+
<el-scrollbar class="el-form-scrollbar"
|
|
631
|
+
ref="baseScrollbar">
|
|
632
|
+
<ja-form :validator="validator" :model="state" ref="form">
|
|
633
|
+
<ja-form-item label="属性名称" prop="name" required>
|
|
634
|
+
<ja-input v-focus @input="manualNamed=true"></ja-input>
|
|
635
|
+
</ja-form-item>
|
|
636
|
+
<ja-form-item label="属性标题" prop="caption" required>
|
|
637
|
+
<ja-input-i18n-raw :app-id="appInfo?.id" size="small"
|
|
638
|
+
v-model="state.formData.caption"></ja-input-i18n-raw>
|
|
639
|
+
</ja-form-item>
|
|
640
|
+
<ja-form-item label="存储列名" prop="columnName"
|
|
641
|
+
v-if="!(isEntity && isCollection)">
|
|
642
|
+
<ja-input @input="manualNamed=true"></ja-input>
|
|
643
|
+
</ja-form-item>
|
|
644
|
+
<ja-form-item label="备注" prop="comment">
|
|
645
|
+
<ja-input></ja-input>
|
|
646
|
+
</ja-form-item>
|
|
647
|
+
<ja-form-item label="是否主键" prop="primaryKey" required
|
|
648
|
+
v-if="canBePrimaryKey">
|
|
649
|
+
<ja-input></ja-input>
|
|
650
|
+
</ja-form-item>
|
|
651
|
+
<ja-form-item label="是否树区分字段" prop="treeDiscriminator"
|
|
652
|
+
v-if="isTreeStructure && !isCollection">
|
|
653
|
+
<ja-switch></ja-switch>
|
|
654
|
+
</ja-form-item>
|
|
655
|
+
<ja-form-item label="不能为空" prop="notNull"
|
|
656
|
+
v-if="!(isCollection && isEntity)">
|
|
657
|
+
<ja-switch/>
|
|
658
|
+
</ja-form-item>
|
|
659
|
+
<ja-form-item label="缺省值" prop="defaultValue"
|
|
660
|
+
v-if="defaultValueComponent">
|
|
661
|
+
<ja-input/>
|
|
662
|
+
<!-- <component :is="defaultValueComponent"-->
|
|
663
|
+
<!-- v-bind="defaultValueComponentProps"/>-->
|
|
664
|
+
</ja-form-item>
|
|
665
|
+
<ja-form-item label="数据类型" prop="dataType" required>
|
|
666
|
+
<ja-select filterable>
|
|
667
|
+
<el-option
|
|
668
|
+
v-for="dt in (dataTypes ? Object.keys(dataTypes as object): [])"
|
|
669
|
+
:key="dt"
|
|
670
|
+
:label="dataTypes ? dataTypes[dt as PropertyDataType]: undefined"
|
|
671
|
+
:value="dt"></el-option>
|
|
672
|
+
</ja-select>
|
|
673
|
+
</ja-form-item>
|
|
674
|
+
<ja-form-item label="附件配置" prop="attachConfigKey" required
|
|
675
|
+
v-if="isAttach">
|
|
676
|
+
<ja-select filterable remote remote-show-suffix
|
|
677
|
+
placeholder="请选择附件配置"
|
|
678
|
+
:remote-method="loadFileConfigs"
|
|
679
|
+
:loading="loading">
|
|
680
|
+
<template #footer>
|
|
681
|
+
<el-button type="primary" link @click="onCreateFileConfigClick"
|
|
682
|
+
style="width: 100%; text-align: left">
|
|
683
|
+
新建附件配置
|
|
684
|
+
</el-button>
|
|
685
|
+
<file-config-editor mode="create"
|
|
686
|
+
v-model="fileConfigEditorVisible"
|
|
687
|
+
@success="onFileConfigCreated"
|
|
688
|
+
:app-service-name="serviceName"
|
|
689
|
+
:app-name="appName"
|
|
690
|
+
menu-type="develop">
|
|
691
|
+
</file-config-editor>
|
|
692
|
+
</template>
|
|
693
|
+
<el-option disabled value="" label="无可选项"
|
|
694
|
+
v-if="fileConfigs?.length === 0"></el-option>
|
|
695
|
+
<el-option v-for="c in fileConfigs" :key="c.configKey"
|
|
696
|
+
:value="c.configKey" :label="c.configKey"></el-option>
|
|
697
|
+
</ja-select>
|
|
698
|
+
</ja-form-item>
|
|
699
|
+
<ja-form-item label="编号规则" prop="numberTemplateName" required
|
|
700
|
+
v-if="isAutoNumber">
|
|
701
|
+
<ja-select filterable remote remote-show-suffix
|
|
702
|
+
placeholder="请选择编号模板"
|
|
703
|
+
:remote-method="loadNumberTemplates"
|
|
704
|
+
:loading="loading">
|
|
705
|
+
<template #footer>
|
|
706
|
+
<el-button type="primary" link
|
|
707
|
+
@click="onCreateNumberTemplateClick"
|
|
708
|
+
style="width: 100%;">
|
|
709
|
+
新建编号模板
|
|
710
|
+
</el-button>
|
|
711
|
+
<string-id-template-editor mode="new"
|
|
712
|
+
v-model="templateEditorVisible"
|
|
713
|
+
@success="onNumberTemplateCreated"
|
|
714
|
+
:app-id="appInfo?.id"
|
|
715
|
+
dev-mode="develop"></string-id-template-editor>
|
|
716
|
+
</template>
|
|
717
|
+
<el-option disabled value="" label="无可选项"
|
|
718
|
+
v-if="templates?.length === 0"></el-option>
|
|
719
|
+
<el-option v-for="c in templates" :key="c.name"
|
|
720
|
+
:value="c.name" :label="c.name"></el-option>
|
|
721
|
+
</ja-select>
|
|
722
|
+
</ja-form-item>
|
|
723
|
+
<ja-form-item label="文本长度" prop="size" required
|
|
724
|
+
v-if="state.formData.dataType === 'STRING'
|
|
725
|
+
|| state.formData.dataType === 'I18N_STRING'
|
|
726
|
+
|| state.formData.dataType === 'ENUM'
|
|
727
|
+
|| state.formData.dataType === 'AUTO_NUMBER'">
|
|
728
|
+
<ja-input-number></ja-input-number>
|
|
729
|
+
</ja-form-item>
|
|
730
|
+
<ja-form-item label="枚举类型" prop="enumType" required
|
|
731
|
+
v-if="state.formData.dataType === 'ENUM'">
|
|
732
|
+
<enum-picker :app-name="appInfo?.name"
|
|
733
|
+
:service-name="serviceName"></enum-picker>
|
|
734
|
+
</ja-form-item>
|
|
735
|
+
<template v-if="isEntity">
|
|
736
|
+
<ja-form-item label="关联实体" prop="entityType" required>
|
|
737
|
+
<ja-select filterable value-key="id">
|
|
738
|
+
<el-option v-for="e in entities" :key="e.id"
|
|
739
|
+
:label="e.name + (e.caption ? ' (' + e.caption + ')' : '')"
|
|
740
|
+
:value="e"></el-option>
|
|
741
|
+
</ja-select>
|
|
742
|
+
</ja-form-item>
|
|
743
|
+
<ja-form-item label="关联类型" prop="relationMode" required>
|
|
744
|
+
<ja-radio-group>
|
|
745
|
+
<el-radio-button label="多对一"
|
|
746
|
+
value="MANY_TO_ONE"></el-radio-button>
|
|
747
|
+
<el-radio-button label="一对多"
|
|
748
|
+
value="ONE_TO_MANY"></el-radio-button>
|
|
749
|
+
<el-radio-button label="一对一"
|
|
750
|
+
value="ONE_TO_ONE"></el-radio-button>
|
|
751
|
+
</ja-radio-group>
|
|
752
|
+
</ja-form-item>
|
|
753
|
+
<ja-form-item label="对方关联属性" prop="mappedByProperty" required
|
|
754
|
+
v-if="state.formData.relationMode === 'ONE_TO_MANY'">
|
|
755
|
+
<ja-select value-key="p" clearable>
|
|
756
|
+
<el-option v-for="p in reverseProperties" :key="p.id"
|
|
757
|
+
:label="p.name" :value="p"></el-option>
|
|
758
|
+
</ja-select>
|
|
759
|
+
</ja-form-item>
|
|
760
|
+
<ja-form-item label="级联操作" prop="cascadeType">
|
|
761
|
+
<ja-select multiple>
|
|
762
|
+
<el-option label="全部" value="ALL"></el-option>
|
|
763
|
+
<el-option label="新存" value="PERSIST"></el-option>
|
|
764
|
+
<el-option label="更新" value="MERGE"></el-option>
|
|
765
|
+
<el-option label="删除" value="REMOVE"></el-option>
|
|
766
|
+
<el-option label="刷新" value="REFRESH"></el-option>
|
|
767
|
+
<el-option label="脱离" value="DETACH"></el-option>
|
|
768
|
+
</ja-select>
|
|
769
|
+
</ja-form-item>
|
|
770
|
+
</template>
|
|
771
|
+
<ja-form-item label="集合类型" prop="collectionType"
|
|
772
|
+
v-if="!isEntity || state.formData.relationMode === 'ONE_TO_MANY'">
|
|
773
|
+
<ja-radio-group>
|
|
774
|
+
<el-radio-button label="单值" value="NONE"
|
|
775
|
+
v-if="!isEntity"></el-radio-button>
|
|
776
|
+
<el-radio-button label="List" value="LIST"
|
|
777
|
+
:disabled="isAttach || isAutoNumber"></el-radio-button>
|
|
778
|
+
<el-radio-button label="Set" value="SET"
|
|
779
|
+
:disabled="isAttach || isAutoNumber || (props.mode === 'update' && originalCollectionType !== 'NONE')"></el-radio-button>
|
|
780
|
+
<el-radio-button label="Map" value="MAP"
|
|
781
|
+
:disabled="isAttach || isAutoNumber || (props.mode === 'update' && originalCollectionType !== 'NONE')"></el-radio-button>
|
|
782
|
+
</ja-radio-group>
|
|
783
|
+
</ja-form-item>
|
|
784
|
+
<template v-if="isCollection">
|
|
785
|
+
<ja-form-item label="集合存储表名" prop="collectionTableName" required
|
|
786
|
+
v-if="!(isEntity && isCollection)">
|
|
787
|
+
<ja-input></ja-input>
|
|
788
|
+
</ja-form-item>
|
|
789
|
+
<template v-if="isMap">
|
|
790
|
+
<ja-form-item label="Map键类型" prop="mapKeyDataType" required>
|
|
791
|
+
<ja-select filterable>
|
|
792
|
+
<el-option label="STRING" value="STRING"></el-option>
|
|
793
|
+
<el-option label="BOOLEAN" value="BOOLEAN"></el-option>
|
|
794
|
+
<el-option label="INTEGER" value="INTEGER"></el-option>
|
|
795
|
+
<el-option label="LONG" value="LONG"></el-option>
|
|
796
|
+
<el-option label="ENUM" value="ENUM"></el-option>
|
|
797
|
+
<el-option label="SHORT" value="SHORT"></el-option>
|
|
798
|
+
<el-option label="DECIMAL" value="DECIMAL"></el-option>
|
|
799
|
+
<el-option label="CHAR" value="CHAR"></el-option>
|
|
800
|
+
<el-option label="BYTE" value="BYTE"></el-option>
|
|
801
|
+
</ja-select>
|
|
802
|
+
</ja-form-item>
|
|
803
|
+
<ja-form-item label="Map键枚举类型" prop="mapKeyEnum" required
|
|
804
|
+
v-if="state.formData.mapKeyDataType === 'ENUM'">
|
|
805
|
+
<enum-picker :app-name="appInfo?.name"
|
|
806
|
+
:service-name="serviceName"></enum-picker>
|
|
807
|
+
</ja-form-item>
|
|
808
|
+
</template>
|
|
809
|
+
<ja-form-item label="保持有序" prop="orderedCollection"
|
|
810
|
+
v-if="!isEntity"
|
|
811
|
+
label-remark="加载数据时集合保持原顺序不变">
|
|
812
|
+
<ja-switch></ja-switch>
|
|
813
|
+
</ja-form-item>
|
|
814
|
+
</template>
|
|
815
|
+
<div class="order-by-list"
|
|
816
|
+
v-if="isEntity && isCollection">
|
|
817
|
+
<div class="order-by-list-row">
|
|
818
|
+
<div class="order-by-list-row-title">按以下属性排序</div>
|
|
819
|
+
<ja-button circle :icon="Plus" tooltip="添加排序属性" size="small"
|
|
820
|
+
@click="onAddOrderByClick"></ja-button>
|
|
821
|
+
</div>
|
|
822
|
+
<div class="order-by-list-row" v-for="o in orderBys"
|
|
823
|
+
v-if="orderBys.length > 0">
|
|
824
|
+
<ja-property-picker-raw :entity-id="state.formData.entityType?.id"
|
|
825
|
+
style="flex: auto"
|
|
826
|
+
v-model="o.orderByProperty"></ja-property-picker-raw>
|
|
827
|
+
<!-- <el-select v-model="o.orderByProperty" value-key="id" size="small"-->
|
|
828
|
+
<!-- @change="onOrderByChanged(o)" style="flex: auto;">-->
|
|
829
|
+
<!-- <el-option v-for="p in propertiesForOrderBy" :key="p.id"-->
|
|
830
|
+
<!-- :label="p.name + (p.caption? '(' + p.caption + ')' : '')"-->
|
|
831
|
+
<!-- :value="p"></el-option>-->
|
|
832
|
+
<!-- </el-select>-->
|
|
833
|
+
<el-radio-group v-model="o.direction" size="small"
|
|
834
|
+
style="flex: none;">
|
|
835
|
+
<el-radio-button label="升序" value="ASC"></el-radio-button>
|
|
836
|
+
<el-radio-button label="降序" value="DESC"></el-radio-button>
|
|
837
|
+
</el-radio-group>
|
|
838
|
+
<ja-button circle :icon="Minus" tooltip="删除" size="small"
|
|
839
|
+
@click="onDeleteOrderByClick(o)"></ja-button>
|
|
840
|
+
</div>
|
|
841
|
+
<div class="order-by-list-empty" v-else>暂未添加排序属性</div>
|
|
842
|
+
</div>
|
|
843
|
+
<ja-form-item label="读取属性值需要拥有的角色" prop="readRole"
|
|
844
|
+
label-remark="置空表示不限制访问,如果设置了读取角色,但是没有设置修改角色,那么默认修改也是需要该角色的">
|
|
845
|
+
<ja-role-picker :app-name="props.appName"></ja-role-picker>
|
|
846
|
+
</ja-form-item>
|
|
847
|
+
<ja-form-item label="修改属性值需要拥有的角色" prop="writeRole"
|
|
848
|
+
label-remark="置空表示不限制修改权限">
|
|
849
|
+
<ja-role-picker :app-name="props.appName"></ja-role-picker>
|
|
850
|
+
</ja-form-item>
|
|
851
|
+
</ja-form>
|
|
852
|
+
|
|
853
|
+
</el-scrollbar>
|
|
854
|
+
</el-tab-pane>
|
|
855
|
+
<el-tab-pane label="属性约束" name="constraints" style="height: 100%;">
|
|
856
|
+
<div style="width: 100%; height: 100%; align-items: start;" class="gap-rows">
|
|
857
|
+
<ja-dropdown-button type="success" size="default"
|
|
858
|
+
plain
|
|
859
|
+
cirlce
|
|
860
|
+
shortcut="Alt+O"
|
|
861
|
+
buttonText="添加约束"
|
|
862
|
+
@command="onAddConstraintClick">
|
|
863
|
+
<template #dropdown>
|
|
864
|
+
<el-dropdown-menu>
|
|
865
|
+
<el-dropdown-item
|
|
866
|
+
tabindex="0"
|
|
867
|
+
v-for="item in providers"
|
|
868
|
+
:key="item.constraintName"
|
|
869
|
+
:command="item">
|
|
870
|
+
{{ item.localeCaption }}
|
|
871
|
+
</el-dropdown-item>
|
|
872
|
+
</el-dropdown-menu>
|
|
873
|
+
</template>
|
|
874
|
+
</ja-dropdown-button>
|
|
875
|
+
<el-scrollbar ref="cstScrollbar"
|
|
876
|
+
style="width: 100%; height: 100%; padding: 0 16px 0 0 !important; margin: 0 !important;">
|
|
877
|
+
<div class="gap-rows">
|
|
878
|
+
<el-card shadow="hover" v-for="c in constraints" :key="c.id">
|
|
879
|
+
<template #header>
|
|
880
|
+
<div style="font-weight: 550; font-size: 14px;">
|
|
881
|
+
{{
|
|
882
|
+
c.provider?.localeCaption ?? c.provider?.constraintName
|
|
883
|
+
}}
|
|
884
|
+
<div style="float:right">
|
|
885
|
+
<ja-button circle :icon="Minus" size="small"
|
|
886
|
+
@click="onDelConstraintClick(c)"
|
|
887
|
+
tooltip="删除"></ja-button>
|
|
888
|
+
</div>
|
|
889
|
+
</div>
|
|
890
|
+
</template>
|
|
891
|
+
<el-form size="small" label-position="top">
|
|
892
|
+
<el-form-item
|
|
893
|
+
v-for="d in c.provider?.propertyDescriptors.filter(d => d.dataType !== 'LIST')"
|
|
894
|
+
:key="d.name" :label="d.localeCaption">
|
|
895
|
+
<component
|
|
896
|
+
:is="getParameterComponent(d.dataType)"
|
|
897
|
+
v-model="c.constraintParameters[d.name]"
|
|
898
|
+
v-bind="getParameterComponentProps(d.dataType)"
|
|
899
|
+
@change="onConstraintChanged(c)"></component>
|
|
900
|
+
</el-form-item>
|
|
901
|
+
<el-form-item label="验证失败的提示信息">
|
|
902
|
+
<ja-input-i18n-raw v-model="c.message" v-focus size="small"
|
|
903
|
+
:app-id="appInfo?.id"
|
|
904
|
+
@change="onConstraintChanged(c)">
|
|
905
|
+
</ja-input-i18n-raw>
|
|
906
|
+
</el-form-item>
|
|
907
|
+
</el-form>
|
|
908
|
+
</el-card>
|
|
909
|
+
</div>
|
|
910
|
+
<el-empty v-if="constraints.length === 0"></el-empty>
|
|
911
|
+
</el-scrollbar>
|
|
912
|
+
</div>
|
|
913
|
+
</el-tab-pane>
|
|
914
|
+
</el-tabs>
|
|
915
|
+
|
|
916
|
+
<template #footer>
|
|
917
|
+
<ja-button type="primary" shortcut="Alt+Enter" @click="submit" :loading="loading"
|
|
918
|
+
:disabled="loading">确定
|
|
919
|
+
</ja-button>
|
|
920
|
+
<el-button plain @click="visible=false">取消</el-button>
|
|
921
|
+
</template>
|
|
922
|
+
</el-drawer>
|
|
923
|
+
</template>
|
|
924
|
+
|
|
925
|
+
<style scoped lang="scss">
|
|
926
|
+
.gap-rows {
|
|
927
|
+
display: flex;
|
|
928
|
+
flex-direction: column;
|
|
929
|
+
gap: 8px;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.order-by-list {
|
|
933
|
+
margin-top: 8px;
|
|
934
|
+
display: flex;
|
|
935
|
+
flex-direction: column;
|
|
936
|
+
gap: 8px;
|
|
937
|
+
|
|
938
|
+
&-row {
|
|
939
|
+
flex: none;
|
|
940
|
+
display: flex;
|
|
941
|
+
align-items: center;
|
|
942
|
+
gap: 8px;
|
|
943
|
+
|
|
944
|
+
&-title {
|
|
945
|
+
flex: auto;
|
|
946
|
+
font-size: 12px;
|
|
947
|
+
font-weight: 550;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
&-empty {
|
|
952
|
+
text-align: center;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
}
|
|
956
|
+
</style>
|