mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 10:03:54 +08:00
feat: 完成服务端管理页面样式改造
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="custom-table-wrapper">
|
<div class="custom-table-wrapper">
|
||||||
<div class="table-container">
|
<div class="table-container" :style="{ height: tableContainerHeight }">
|
||||||
<el-table
|
<el-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
:data="data"
|
:data="data"
|
||||||
@@ -79,10 +79,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
<div class="table-footer">
|
<div class="table-footer" v-if="showPagination">
|
||||||
<slot name="footer-btns"></slot>
|
<slot name="footer-btns"></slot>
|
||||||
<CustomPagination
|
<CustomPagination
|
||||||
v-if="showPagination"
|
|
||||||
:total="total"
|
:total="total"
|
||||||
:current-page="currentPage"
|
:current-page="currentPage"
|
||||||
:page-size="pageSize"
|
:page-size="pageSize"
|
||||||
@@ -182,26 +181,13 @@ export default {
|
|||||||
type: [String, Function],
|
type: [String, Function],
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
// 敏感值相关
|
},
|
||||||
hideText: {
|
computed: {
|
||||||
type: String,
|
tableContainerHeight() {
|
||||||
default: '隐藏'
|
return this.showPagination ? 'calc(100% - 48px)' : '100%';
|
||||||
},
|
|
||||||
viewText: {
|
|
||||||
type: String,
|
|
||||||
default: '查看'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 掩码处理
|
|
||||||
maskValue(value) {
|
|
||||||
if (!value) return '';
|
|
||||||
return '*'.repeat(Math.min(value.length, 8));
|
|
||||||
},
|
|
||||||
// 切换显示/隐藏
|
|
||||||
toggleValue(row, prop) {
|
|
||||||
this.$set(row, 'showValue', !row.showValue);
|
|
||||||
},
|
|
||||||
// 复选框变化
|
// 复选框变化
|
||||||
handleCheckboxChange(row) {
|
handleCheckboxChange(row) {
|
||||||
this.$set(row, 'selected', !row.selected);
|
this.$set(row, 'selected', !row.selected);
|
||||||
@@ -221,10 +207,6 @@ export default {
|
|||||||
handleRowClick(row, column, event) {
|
handleRowClick(row, column, event) {
|
||||||
this.$emit('row-click', row, column, event);
|
this.$emit('row-click', row, column, event);
|
||||||
},
|
},
|
||||||
// 获取表格实例
|
|
||||||
getTable() {
|
|
||||||
return this.$refs.tableRef;
|
|
||||||
},
|
|
||||||
// 清除选择
|
// 清除选择
|
||||||
clearSelection() {
|
clearSelection() {
|
||||||
this.$refs.tableRef && this.$refs.tableRef.clearSelection();
|
this.$refs.tableRef && this.$refs.tableRef.clearSelection();
|
||||||
@@ -244,7 +226,6 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
.table-container {
|
.table-container {
|
||||||
height: calc(100% - 48px);
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-shadow: 0 2px 12px rgba(74, 124, 253, 0.12);
|
box-shadow: 0 2px 12px rgba(74, 124, 253, 0.12);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|||||||
@@ -708,6 +708,9 @@ export default {
|
|||||||
'common.cancel': 'Abbrechen',
|
'common.cancel': 'Abbrechen',
|
||||||
'common.sensitive': 'Sensibel',
|
'common.sensitive': 'Sensibel',
|
||||||
'common.loading': 'Lädt',
|
'common.loading': 'Lädt',
|
||||||
|
'common.copySuccess': 'Erfolgreich kopiert',
|
||||||
|
'common.copyFailed': 'Kopieren fehlgeschlagen',
|
||||||
|
'common.copyAddress': 'Adresse kopieren',
|
||||||
|
|
||||||
// Language switch
|
// Language switch
|
||||||
'language.zhCN': '中文简体',
|
'language.zhCN': '中文简体',
|
||||||
|
|||||||
@@ -708,6 +708,9 @@ export default {
|
|||||||
'common.cancel': 'Cancel',
|
'common.cancel': 'Cancel',
|
||||||
'common.sensitive': 'Sensitive',
|
'common.sensitive': 'Sensitive',
|
||||||
'common.loading': 'Loading',
|
'common.loading': 'Loading',
|
||||||
|
'common.copySuccess': 'Copy successful',
|
||||||
|
'common.copyFailed': 'Copy failed',
|
||||||
|
'common.copyAddress': 'Copy address',
|
||||||
|
|
||||||
// Language switch
|
// Language switch
|
||||||
'language.zhCN': '中文简体',
|
'language.zhCN': '中文简体',
|
||||||
|
|||||||
@@ -708,6 +708,9 @@ export default {
|
|||||||
'common.cancel': 'Cancelar',
|
'common.cancel': 'Cancelar',
|
||||||
'common.sensitive': 'Sensível',
|
'common.sensitive': 'Sensível',
|
||||||
'common.loading': 'Carregando',
|
'common.loading': 'Carregando',
|
||||||
|
'common.copySuccess': 'Cópia bem-sucedida',
|
||||||
|
'common.copyFailed': 'Falha ao copiar',
|
||||||
|
'common.copyAddress': 'Copiar endereço',
|
||||||
|
|
||||||
// Troca de idioma
|
// Troca de idioma
|
||||||
'language.zhCN': '中文简体',
|
'language.zhCN': '中文简体',
|
||||||
|
|||||||
@@ -708,6 +708,9 @@ export default {
|
|||||||
'common.cancel': 'Hủy bỏ',
|
'common.cancel': 'Hủy bỏ',
|
||||||
'common.sensitive': 'Nhạy cảm',
|
'common.sensitive': 'Nhạy cảm',
|
||||||
'common.loading': 'Đang tải',
|
'common.loading': 'Đang tải',
|
||||||
|
'common.copySuccess': 'Sao chép thành công',
|
||||||
|
'common.copyFailed': 'Sao chép thất bại',
|
||||||
|
'common.copyAddress': 'Sao chép địa chỉ',
|
||||||
|
|
||||||
// Language switch
|
// Language switch
|
||||||
'language.zhCN': '中文简体',
|
'language.zhCN': '中文简体',
|
||||||
|
|||||||
@@ -708,6 +708,9 @@ export default {
|
|||||||
'common.cancel': '取消',
|
'common.cancel': '取消',
|
||||||
'common.sensitive': '敏感',
|
'common.sensitive': '敏感',
|
||||||
'common.loading': '加载中',
|
'common.loading': '加载中',
|
||||||
|
'common.copySuccess': '复制成功',
|
||||||
|
'common.copyFailed': '复制失败',
|
||||||
|
'common.copyAddress': '复制地址',
|
||||||
|
|
||||||
// 语言切换
|
// 语言切换
|
||||||
'language.zhCN': '中文简体',
|
'language.zhCN': '中文简体',
|
||||||
|
|||||||
@@ -708,6 +708,9 @@ export default {
|
|||||||
'common.cancel': '取消',
|
'common.cancel': '取消',
|
||||||
'common.sensitive': '敏感',
|
'common.sensitive': '敏感',
|
||||||
'common.loading': '載入中',
|
'common.loading': '載入中',
|
||||||
|
'common.copySuccess': '複製成功',
|
||||||
|
'common.copyFailed': '複製失敗',
|
||||||
|
'common.copyAddress': '複製地址',
|
||||||
|
|
||||||
// 語言切換
|
// 語言切換
|
||||||
'language.zhCN': '中文简体',
|
'language.zhCN': '中文简体',
|
||||||
|
|||||||
@@ -1,38 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="welcome">
|
<div class="welcome">
|
||||||
<HeaderBar />
|
<HeaderBar />
|
||||||
|
|
||||||
<div class="operation-bar">
|
|
||||||
<h2 class="page-title">{{ $t('serverSideManager.pageTitle') }}</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="main-wrapper">
|
<div class="main-wrapper">
|
||||||
<div class="content-panel">
|
<div class="content-panel">
|
||||||
<div class="content-area">
|
<div class="content-area">
|
||||||
<el-card class="params-card" shadow="never">
|
<el-card class="params-card" shadow="never">
|
||||||
<el-table ref="paramsTable" :data="paramsList" class="transparent-table" v-loading="loading"
|
<div class="operation-header">
|
||||||
:element-loading-text="$t('serverSideManager.loading')" element-loading-spinner="el-icon-loading"
|
<h2 class="page-title">{{ $t('serverSideManager.pageTitle') }}</h2>
|
||||||
element-loading-background="rgba(255, 255, 255, 0.7)" :header-cell-class-name="headerCellClassName">
|
</div>
|
||||||
<el-table-column :label="$t('modelConfig.select')" align="center" width="120">
|
<el-card class="server-list-card">
|
||||||
<template slot-scope="scope">
|
<div v-for="(item, index) in paramsList" :key="index" class="server-list" v-loading="loading">
|
||||||
<el-checkbox v-model="scope.row.selected"></el-checkbox>
|
<div class="server-card">
|
||||||
</template>
|
<div class="server-info">
|
||||||
</el-table-column>
|
<span class="server-label">{{ $t('serverSideManager.wsAddress') }}</span>
|
||||||
<el-table-column :label="$t('serverSideManager.wsAddress')" prop="address" align="center"></el-table-column>
|
<span class="server-value">{{ item.address }}</span>
|
||||||
<el-table-column :label="$t('serverSideManager.operation')" prop="operator" align="center" show-overflow-tooltip>
|
</div>
|
||||||
<template slot-scope="scope">
|
<el-button class="copy-button" type="text" size="small" @click="copyAddress(item.address)">{{ $t('common.copyAddress') }}</el-button>
|
||||||
<el-button size="medium" type="text" @click="emitAction(scope.row, actionMap.restart)">{{ $t('serverSideManager.restart') }}</el-button>
|
</div>
|
||||||
<el-button size="medium" type="text"
|
<el-divider />
|
||||||
@click="emitAction(scope.row, actionMap.update_config)">{{ $t('serverSideManager.updateConfig') }}</el-button>
|
<div class="header-actions">
|
||||||
</template>
|
<CustomButton icon="el-icon-refresh-right" size="small" @click="emitAction(item, actionMap.restart)">{{
|
||||||
</el-table-column>
|
$t('serverSideManager.restart') }}</CustomButton>
|
||||||
</el-table>
|
<CustomButton icon="el-icon-setting" size="small" type="confirm" @click="emitAction(item, actionMap.update_config)">
|
||||||
|
{{ $t('serverSideManager.updateConfig') }}
|
||||||
|
</CustomButton>
|
||||||
|
</div>
|
||||||
|
<el-empty v-if="paramsList.length === 0 && !loading" :description="$t('common.noData')"></el-empty>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<el-footer>
|
<el-footer>
|
||||||
<version-footer />
|
<version-footer />
|
||||||
</el-footer>
|
</el-footer>
|
||||||
@@ -41,59 +40,22 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Api from "@/apis/api";
|
import Api from "@/apis/api";
|
||||||
|
import CustomButton from "@/components/CustomButton.vue";
|
||||||
import HeaderBar from "@/components/HeaderBar.vue";
|
import HeaderBar from "@/components/HeaderBar.vue";
|
||||||
import ParamDialog from "@/components/ParamDialog.vue";
|
|
||||||
import VersionFooter from "@/components/VersionFooter.vue";
|
import VersionFooter from "@/components/VersionFooter.vue";
|
||||||
import i18n from '@/i18n';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { HeaderBar, ParamDialog, VersionFooter },
|
components: { HeaderBar, VersionFooter, CustomButton },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
paramsList: [],
|
paramsList: [],
|
||||||
currentPage: 1,
|
|
||||||
loading: false,
|
loading: false,
|
||||||
pageSize: 10,
|
|
||||||
pageSizeOptions: [10, 20, 50, 100],
|
|
||||||
total: 0,
|
|
||||||
dialogVisible: false,
|
|
||||||
dialogTitle: '',
|
|
||||||
isAllSelected: false,
|
|
||||||
sensitive_keys: ["api_key", "personal_access_token", "access_token", "token", "secret", "access_key_secret", "secret_key"],
|
|
||||||
paramForm: {
|
|
||||||
id: null,
|
|
||||||
paramCode: "",
|
|
||||||
paramValue: "",
|
|
||||||
remark: ""
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchParams();
|
this.fetchParams();
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.dialogTitle = this.$t('paramManagement.addParam');
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
pageCount() {
|
|
||||||
return Math.ceil(this.total / this.pageSize);
|
|
||||||
},
|
|
||||||
visiblePages() {
|
|
||||||
const pages = [];
|
|
||||||
const maxVisible = 3;
|
|
||||||
let start = Math.max(1, this.currentPage - 1);
|
|
||||||
let end = Math.min(this.pageCount, start + maxVisible - 1);
|
|
||||||
|
|
||||||
if (end - start + 1 < maxVisible) {
|
|
||||||
start = Math.max(1, end - maxVisible + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = start; i <= end; i++) {
|
|
||||||
pages.push(i);
|
|
||||||
}
|
|
||||||
return pages;
|
|
||||||
},
|
|
||||||
actionMap() {
|
actionMap() {
|
||||||
return {
|
return {
|
||||||
restart: {
|
restart: {
|
||||||
@@ -112,11 +74,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handlePageSizeChange(val) {
|
|
||||||
this.pageSize = val;
|
|
||||||
this.currentPage = 1;
|
|
||||||
this.fetchParams();
|
|
||||||
},
|
|
||||||
fetchParams() {
|
fetchParams() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
Api.admin.getWsServerList(
|
Api.admin.getWsServerList(
|
||||||
@@ -125,7 +82,6 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (data.code === 0) {
|
if (data.code === 0) {
|
||||||
this.paramsList = data.data.map(item => ({ address: item }));
|
this.paramsList = data.data.map(item => ({ address: item }));
|
||||||
this.total = data.data.length;
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error({
|
this.$message.error({
|
||||||
message: data.msg || this.$t('serverSideManager.getServerListFailed'),
|
message: data.msg || this.$t('serverSideManager.getServerListFailed'),
|
||||||
@@ -139,12 +95,10 @@ export default {
|
|||||||
if (actionItem === undefined || rowItem.address === undefined) {
|
if (actionItem === undefined || rowItem.address === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 弹开询问框
|
|
||||||
this.$confirm(actionItem.message, actionItem.title, {
|
this.$confirm(actionItem.message, actionItem.title, {
|
||||||
confirmButtonText: actionItem.confirmText, // 确认按钮文本
|
confirmButtonText: actionItem.confirmText,
|
||||||
cancelButtonText: this.$t('common.cancel') // 取消按钮文本
|
cancelButtonText: this.$t('common.cancel')
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 用户点击了确认按钮
|
|
||||||
Api.admin.sendWsServerAction({
|
Api.admin.sendWsServerAction({
|
||||||
targetWs: rowItem.address,
|
targetWs: rowItem.address,
|
||||||
action: actionItem.value
|
action: actionItem.value
|
||||||
@@ -163,13 +117,14 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
headerCellClassName({ columnIndex }) {
|
copyAddress(address) {
|
||||||
if (columnIndex === 0) {
|
navigator.clipboard.writeText(address).then(() => {
|
||||||
return "custom-selection-header";
|
this.$message.success(this.$t('common.copySuccess'));
|
||||||
}
|
}).catch(() => {
|
||||||
return "";
|
this.$message.error(this.$t('common.copyFailed'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -189,47 +144,21 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main-wrapper {
|
.main-wrapper {
|
||||||
// 顶部 63px 底部 35px 查询58px
|
height: calc(100vh - 63px - 35px);
|
||||||
height: calc(100vh - 63px - 35px - 58px);
|
padding: 20px 22px 0;
|
||||||
margin: 0 22px;
|
|
||||||
border-radius: 15px;
|
|
||||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
||||||
position: relative;
|
position: relative;
|
||||||
background: rgba(237, 242, 255, 0.5);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
box-sizing: border-box;
|
||||||
|
|
||||||
.operation-bar {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
padding: 16px 24px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
|
font-weight: 500;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-operations {
|
|
||||||
display: flex;
|
|
||||||
gap: 10px;
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-input {
|
|
||||||
width: 240px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-search {
|
|
||||||
background: linear-gradient(135deg, #6b8cff, #a966ff);
|
|
||||||
border: none;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content-panel {
|
.content-panel {
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -258,7 +187,7 @@ export default {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
::v-deep .el-card__body {
|
::v-deep .el-card__body {
|
||||||
padding: 15px;
|
padding: 14px 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -266,197 +195,78 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.table_bottom {
|
.server-list {
|
||||||
display: flex;
|
padding: 16px 20px;
|
||||||
justify-content: space-between;
|
border-radius: 10px;
|
||||||
align-items: center;
|
box-shadow: 0 0 8px #ececec;
|
||||||
margin-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ctrl_btn {
|
.server-list-card {
|
||||||
display: flex;
|
|
||||||
gap: 8px;
|
|
||||||
padding-left: 26px;
|
|
||||||
|
|
||||||
.el-button {
|
|
||||||
min-width: 72px;
|
|
||||||
height: 32px;
|
|
||||||
padding: 7px 12px 7px 10px;
|
|
||||||
font-size: 12px;
|
|
||||||
border-radius: 4px;
|
|
||||||
line-height: 1;
|
|
||||||
font-weight: 500;
|
|
||||||
border: none;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: translateY(-1px);
|
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-button--primary {
|
|
||||||
background: #5f70f3;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-button--danger {
|
|
||||||
background: #fd5b63;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.transparent-table) {
|
|
||||||
background: white;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 100%;
|
border: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
::v-deep .el-card__body {
|
||||||
|
gap: 20px;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 16px;
|
||||||
|
height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-divider {
|
||||||
|
margin: 16px 0 !important;
|
||||||
|
background: #ecf2fb !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operation-header {
|
||||||
|
height: 56px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0 0 16px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.server-card {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 16px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: rgba(239, 243, 252, 0.4);
|
||||||
|
border: 1px solid #ecf2fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.server-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
.el-table__body-wrapper {
|
|
||||||
flex: 1;
|
|
||||||
overflow-y: auto;
|
|
||||||
max-height: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-table__header-wrapper {
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-table__header th {
|
|
||||||
background: white !important;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-table__body tr {
|
|
||||||
background-color: white;
|
|
||||||
|
|
||||||
td {
|
|
||||||
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.04);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.server-label {
|
||||||
:deep(.el-checkbox__inner) {
|
font-size: 16px;
|
||||||
background-color: #ffffff !important;
|
font-weight: 500;
|
||||||
border-color: #cccccc !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-checkbox__inner:hover) {
|
.server-value {
|
||||||
border-color: #cccccc !important;
|
margin-top: 10px;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-checkbox__input.is-checked .el-checkbox__inner) {
|
.server-actions {
|
||||||
background-color: #5f70f3 !important;
|
display: flex;
|
||||||
border-color: #5f70f3 !important;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
.copy-button {
|
||||||
@media (min-width: 1144px) {
|
font-size: 14px;
|
||||||
.table_bottom {
|
color: #5778ff;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
margin-top: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.transparent-table) {
|
|
||||||
.el-table__body tr {
|
|
||||||
td {
|
|
||||||
padding-top: 16px;
|
|
||||||
padding-bottom: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&+tr {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.el-table .el-button--text) {
|
|
||||||
color: #7079aa;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.el-table .el-button--text:hover) {
|
|
||||||
color: #5a64b5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-button--success {
|
|
||||||
background: #5bc98c;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.el-table .cell) {
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-size-select {
|
|
||||||
width: 100px;
|
|
||||||
margin-right: 10px;
|
|
||||||
|
|
||||||
:deep(.el-input__inner) {
|
|
||||||
height: 32px;
|
|
||||||
line-height: 32px;
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 1px solid #e4e7ed;
|
|
||||||
background: #dee7ff;
|
|
||||||
color: #606266;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.el-input__suffix) {
|
|
||||||
right: 6px;
|
|
||||||
width: 15px;
|
|
||||||
height: 20px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
top: 6px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.el-input__suffix-inner) {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.el-icon-arrow-up:before) {
|
|
||||||
content: "";
|
|
||||||
display: inline-block;
|
|
||||||
border-left: 6px solid transparent;
|
|
||||||
border-right: 6px solid transparent;
|
|
||||||
border-top: 9px solid #606266;
|
|
||||||
position: relative;
|
|
||||||
transform: rotate(0deg);
|
|
||||||
transition: transform 0.3s;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.el-table) {
|
|
||||||
.el-table__body-wrapper {
|
|
||||||
transition: height 0.3s ease;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-table {
|
|
||||||
--table-max-height: calc(100vh - 40vh);
|
|
||||||
max-height: var(--table-max-height);
|
|
||||||
|
|
||||||
.el-table__body-wrapper {
|
|
||||||
max-height: calc(var(--table-max-height) - 40px);
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user