From 24f30ab19855e57bcbc6215abbc1b98c5aad4809 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 27 Dec 2024 19:08:51 +0800 Subject: [PATCH] perf: update detail --- src/components/Cards/DetailCard/index.vue | 104 +++++++++--------- src/components/Cards/RelationCard/index.vue | 2 +- src/components/Drawer/index.vue | 5 + src/components/QuickActions/index.vue | 46 ++++---- .../AccountBackupDetail/AccountBackupInfo.vue | 2 +- .../AccountBackupExecutionInfo.vue | 2 +- .../AccountChangeSecretAsset/index.vue | 2 +- .../AccountChangeSecretExecutionInfo.vue | 2 +- .../AccountChangeSecretInfo.vue | 2 +- .../AccountDiscover/AccountDetail/info.vue | 2 +- .../AccountDiscover/AccountDetail/more.vue | 2 +- .../AccountDiscover/ExecutionDetail/info.vue | 2 +- .../AccountDiscover/TaskDetail/Detail.vue | 2 +- .../AccountPushDetail/AccountPushInfo.vue | 2 +- .../AccountPushExecutionInfo.vue | 2 +- .../VirtualAccount/VirtualDetail/Detail.vue | 2 +- .../AssetLoginAclDetail/Detail.vue | 2 +- .../CommandFilterAclDetail/Detail.vue | 2 +- .../CommandGroupDetail/Detail.vue | 2 +- .../ConnectMethodAclDetail/Detail.vue | 2 +- .../acl/UserLoginACL/UserDetail/Detail.vue | 2 +- .../Account/AccountDetail/AccountDetail.vue | 2 +- .../StrategyDetail/StrategyDetail.vue | 2 +- .../assets/Platform/PlatformDetail/Detail.vue | 2 +- .../audits/LoginLog/LoginLogDetail/Detail.vue | 2 +- .../OperateLog/OperateLogDetail/Detail.vue | 2 +- .../ExecutionDetail/JobExecutionDetail.vue | 2 +- .../Adhoc/AdhocDetail/AdhocDetail.vue | 2 +- .../PlaybookDetail/PlaybookDetail.vue | 2 +- .../ApplicationDetail/ServiceInfo.vue | 2 +- .../AccountCheckDetail/AccountPushInfo.vue | 2 +- .../AccountPushExecutionInfo.vue | 2 +- .../AssetPermissionAccount.vue | 2 +- .../AssetPermissionAsset.vue | 2 +- .../AssetPermissionDetail.vue | 2 +- .../AssetPermissionUser.vue | 2 +- src/views/profile/index.vue | 2 +- .../SessionDetail/SessionDetailInfo.vue | 2 +- .../AppletHost/AppletHostDetail/Applets.vue | 2 +- .../AppletHost/AppletHostDetail/Detail.vue | 2 +- .../AppletHostDetail/Devployments.vue | 2 +- src/views/settings/License.vue | 2 +- .../OrganizationDetail/OrganizationDetail.vue | 2 +- .../users/Group/UserGroupDetail/GroupUser.vue | 2 +- src/views/users/Role/RoleDetail/RoleInfo.vue | 4 +- src/views/users/Role/RoleDetail/RoleUsers.vue | 2 +- .../users/Role/RoleList/BaseRoleList.vue | 7 ++ src/views/users/User/UserDetail/UserInfo.vue | 21 +++- 48 files changed, 150 insertions(+), 121 deletions(-) diff --git a/src/components/Cards/DetailCard/index.vue b/src/components/Cards/DetailCard/index.vue index 66644aac0..805f76cdf 100644 --- a/src/components/Cards/DetailCard/index.vue +++ b/src/components/Cards/DetailCard/index.vue @@ -13,7 +13,6 @@ - @@ -45,7 +44,7 @@ export default { }, labelWidth: { type: String, - default: '25%' + default: '' } }, data() { @@ -71,55 +70,60 @@ export default { padding: 20px 40px; } -.el-form-item { - border-bottom: 1px dashed #EBEEF5; - padding: 1px 0; - margin-bottom: 0; - - &:last-child { - border-bottom: none; - } - - &.array-item { - border-bottom: none; - - ::v-deep .el-form-item__content { - border-bottom: 1px dashed #EBEEF5 - } - - ::v-deep .el-form-item__label:last-child { - border: 1px dashed #EBEEF5; - } - } - - ::v-deep .el-form-item__label { - padding-right: 8%; - overflow: hidden; - color: var(--color-icon-primary); - - span { - display: inline-block; - line-height: 1.5; - } - } - - ::v-deep .el-form-item__content { - color: var(--color-text-primary); - font-size: 13px; - line-height: 40px; - } - - ::v-deep .el-tag--mini { - margin-right: 3px; - } -} - -.item-value span { - word-break: break-word; -} - .content { font-size: 13px; - line-height: 2.5; + line-height: 2; + + ::v-deep .el-form-item { + //border-bottom: 1px dashed #EBEEF5; + padding: 1px 0; + margin-bottom: 0; + text-align: end; + + &:last-child { + //border-bottom: none; + } + + &.array-item { + border-bottom: none; + + ::v-deep .el-form-item__content { + border-bottom: 1px dashed #EBEEF5 + } + + ::v-deep .el-form-item__label:last-child { + border: 1px dashed #EBEEF5; + } + } + + .el-form-item__label { + //padding-right: 8%; + overflow: hidden; + color: var(--color-icon-primary); + font-size: 12px; + line-height: 1.4; + font-weight: 400; + + span { + display: inline-block; + //line-height: 1.1; + } + } + + .el-form-item__content { + color: var(--color-text-primary); + font-size: 13px; + //line-height: 1.3; + //padding-bottom: 10px; + } + + ::v-deep .el-tag--mini { + margin-right: 3px; + } + } + + .item-value span { + word-break: break-word; + } } diff --git a/src/components/Cards/RelationCard/index.vue b/src/components/Cards/RelationCard/index.vue index 386d6fb62..d66096d74 100644 --- a/src/components/Cards/RelationCard/index.vue +++ b/src/components/Cards/RelationCard/index.vue @@ -341,7 +341,7 @@ b, strong { tr td { line-height: 1.42857; - padding: 8px; + padding: 8px 0; vertical-align: top; } diff --git a/src/components/Drawer/index.vue b/src/components/Drawer/index.vue index 4b75a7674..a81a96b17 100644 --- a/src/components/Drawer/index.vue +++ b/src/components/Drawer/index.vue @@ -89,6 +89,11 @@ export default { margin-right: 30px; height: 100%; + // Detail 中 + &.content { + margin-right: 0; + } + &.el-form--label-top { .el-radio-group { .el-radio { diff --git a/src/components/QuickActions/index.vue b/src/components/QuickActions/index.vue index a1b74b502..6e6f6c52e 100644 --- a/src/components/QuickActions/index.vue +++ b/src/components/QuickActions/index.vue @@ -39,32 +39,32 @@ export default { diff --git a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue index b6fef77f2..d45f040fd 100644 --- a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue +++ b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue @@ -3,7 +3,7 @@ - + diff --git a/src/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionDetail/AccountBackupExecutionInfo.vue b/src/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionDetail/AccountBackupExecutionInfo.vue index 0e4b6b8fd..146868afb 100644 --- a/src/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionDetail/AccountBackupExecutionInfo.vue +++ b/src/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionDetail/AccountBackupExecutionInfo.vue @@ -1,6 +1,6 @@