CN-1612 feat: 部分css重构内容: system下的plugin

This commit is contained in:
刘洪洪
2024-04-08 16:31:03 +08:00
parent 7e1192bc1d
commit 36489d2aa8
6 changed files with 104 additions and 85 deletions

View File

@@ -210,11 +210,12 @@
} }
.btn-customize { .btn-customize {
color: var(--el-color-business-dark-2); color: var(--el-color-primary);
font-size: 12px; font-size: 12px;
padding: 2px 11px;
.icon-gear { .icon-gear {
color: var(--el-color-business-dark-2); color: var(--el-color-primary);
width: 12px; width: 12px;
height: 12px; height: 12px;
margin-right: 2px; margin-right: 2px;
@@ -224,6 +225,8 @@
.btn-customize:hover { .btn-customize:hover {
cursor: pointer; cursor: pointer;
background: var(--el-color-primary-light-9);
border-radius: 2px;
} }
.top-tool-btn--dropdown { .top-tool-btn--dropdown {

View File

@@ -22,7 +22,7 @@
} }
.el-pagination .btn-prev { .el-pagination .btn-prev {
background-color: var(--el-bg-color-page) !important; background-color: var(--el-fill-color-blank) !important;
} }
.el-pager li:hover, .el-pagination .btn-next:hover, .el-pagination .btn-prev:hover { .el-pager li:hover, .el-pagination .btn-next:hover, .el-pagination .btn-prev:hover {
@@ -32,7 +32,7 @@
} }
.btn-next, .btn-prev { .btn-next, .btn-prev {
background-color: var(--el-bg-color-page) !important; background-color: var(--el-fill-color-blank) !important;
} }
.el-pager li.is-active { .el-pager li.is-active {

View File

@@ -1,55 +1,65 @@
.plugin-management .list-page { .plugin-management {
.list-page {
.cn-table { .cn-table {
height: 100%; height: 100%;
.el-table { .el-table {
height: 100%; height: 100%;
} }
.el-table--group::after, .el-table--border::after, .el-table::before { .el-table--group::after, .el-table--border::after, .el-table::before {
height: 0; height: 0;
} }
} }
.cn-pagination { .cn-pagination {
display: none; display: none;
} }
} }
.plugin { .plugin {
font-size: 12px; font-size: 12px;
color: #353636; color: var(--el-text-color-primary);
line-height: 14px; line-height: 14px;
font-weight: 400; font-weight: 400;
.type-tag { .type-tag {
display: inline-block; display: inline-block;
padding: 0 10px; padding: 0 10px;
background-color: #EBF7FA; background-color: var(--el-color-primary-light-9);
color: #046ECA; color: var(--el-color-primary);
box-shadow: 0 2px 4px 0 rgba(51, 51, 51, 0.02); box-shadow: 0 2px 4px 0 rgba(51, 51, 51, 0.02);
border-radius: 12px; border-radius: 12px;
margin-right: 10px; margin-right: 10px;
} }
.plugin-name { .plugin-name {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: left; justify-content: left;
align-items: center; align-items: center;
.icon-background { .icon-background {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 32px; width: 32px;
height: 32px; height: 32px;
background: #ECECEC; background: var(--el-color-info-light-8);
border-radius: 4px; border-radius: 4px;
margin-right: 6px; margin-right: 6px;
.plugin-name-icon { .plugin-name-icon {
width: 25px; width: 25px;
height: 25px; height: 25px;
color:red; color: var(--el-color-danger);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
} }
} }
.two-line { .two-line {
overflow: hidden; //超出的文本隐藏 overflow: hidden; //超出的文本隐藏
text-overflow: ellipsis; //溢出用省略号显示 text-overflow: ellipsis; //溢出用省略号显示
@@ -58,7 +68,9 @@
-webkit-line-clamp: 2; // 超出多少行 -webkit-line-clamp: 2; // 超出多少行
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.cn-table .el-table:not(.chart-table) td { .cn-table .el-table:not(.chart-table) td {
padding: 8px 0 !important; padding: 8px 0 !important;
} }
} }
}

View File

@@ -50,7 +50,7 @@
v-model="showConfirmDialog" v-model="showConfirmDialog"
:title="$t('overall.hint')" :title="$t('overall.hint')"
width="480px" width="480px"
custom-class="del-model-hint" class="del-model-hint"
:before-close="handleClose"> :before-close="handleClose">
<div class="dialog-message">{{ $t('knowledge.deleteDataHint') }}</div> <div class="dialog-message">{{ $t('knowledge.deleteDataHint') }}</div>
<el-table v-model="delItemList" <el-table v-model="delItemList"

View File

@@ -4,7 +4,7 @@
<div class="explorer-top-tools explorer-detection-top-tools"> <div class="explorer-top-tools explorer-detection-top-tools">
<div class="explorer-top-tools-title">{{$t('overall.system')}}</div> <div class="explorer-top-tools-title">{{$t('overall.system')}}</div>
</div> </div>
<div style="width: 100%;padding-bottom: 26px;"> <div class="administration__tabs">
<chart-tabs :data="tabsData" router></chart-tabs> <chart-tabs :data="tabsData" router></chart-tabs>
</div> </div>
<!-- 内容区 --> <!-- 内容区 -->

View File

@@ -1,5 +1,5 @@
<template> <template>
<div style="height: 100%;" class="plugin-management"> <div class="plugin-management">
<cn-data-list <cn-data-list
ref="dataList" ref="dataList"
:tableId="tableId" :tableId="tableId"
@@ -71,7 +71,11 @@ export default {
this.searchLabel = { ...this.searchLabel, ...params } this.searchLabel = { ...this.searchLabel, ...params }
} }
// this.searchLabel = { ...this.searchLabel, ...this.pageObj } // this.searchLabel = { ...this.searchLabel, ...this.pageObj }
this.searchLabel = { ...this.searchLabel, jobGroup: 3, pageSize: -1 } this.searchLabel = {
...this.searchLabel,
jobGroup: 3,
pageSize: -1
}
this.isNoData = false this.isNoData = false
this.toggleLoading(true) this.toggleLoading(true)
delete this.searchLabel.total delete this.searchLabel.total