- 将AdminView中的header和main标签替换为el-header和el-main组件 - 移除自定义的导航菜单样式,使用Element Plus的导航组件 - 将管理员下拉菜单替换为el-dropdown组件 - 更新所有颜色变量为Element Plus的CSS变量 - 移除自定义按钮和表单样式,统一使用Element Plus组件 - 优化响应式布局和间距处理
This commit is contained in:
@@ -318,7 +318,6 @@ const statCards = [
|
||||
|
||||
<style scoped>
|
||||
.token-detail {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
@@ -345,7 +344,7 @@ const statCards = [
|
||||
}
|
||||
|
||||
.no-permission-text {
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
}
|
||||
|
||||
/* Token 选择 */
|
||||
@@ -359,7 +358,7 @@ const statCards = [
|
||||
|
||||
.update-time {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
}
|
||||
|
||||
/* 信息卡片 */
|
||||
@@ -411,14 +410,14 @@ const statCards = [
|
||||
|
||||
.stat-label {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
color: var(--el-text-color-primary);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
@@ -430,7 +429,7 @@ const statCards = [
|
||||
.section-subtitle {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
margin: 24px 0 16px;
|
||||
}
|
||||
|
||||
@@ -462,12 +461,12 @@ const statCards = [
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--primary-color);
|
||||
background: var(--el-color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.action-icon.warning {
|
||||
background: var(--warning-color);
|
||||
background: var(--el-color-warning);
|
||||
}
|
||||
|
||||
.action-info {
|
||||
@@ -478,13 +477,13 @@ const statCards = [
|
||||
.action-label {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
color: var(--el-text-color-primary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.action-desc {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
}
|
||||
|
||||
/* 空状态 */
|
||||
@@ -493,7 +492,7 @@ const statCards = [
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 64px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
|
||||
@@ -261,7 +261,8 @@ const deleteToken = async (row: any) => {
|
||||
<span class="table-count">共 {{ tableData.length }} 条</span>
|
||||
</div>
|
||||
|
||||
<el-table :data="tableData" v-loading="loading" stripe style="width: 100%">
|
||||
<el-table empty-text="没有数据" stripe style="width: 100%"
|
||||
:data="tableData" v-loading="loading">
|
||||
<el-table-column prop="token" label="Token" min-width="100" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<div class="token-cell">
|
||||
@@ -385,7 +386,6 @@ const deleteToken = async (row: any) => {
|
||||
|
||||
<style scoped>
|
||||
.token-manage {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
@@ -416,13 +416,13 @@ const deleteToken = async (row: any) => {
|
||||
.login-title {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
color: var(--el-text-color-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.login-subtitle {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ const deleteToken = async (row: any) => {
|
||||
.form-title {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
color: var(--el-text-color-primary);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ const deleteToken = async (row: any) => {
|
||||
|
||||
.table-count {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
}
|
||||
|
||||
.token-cell {
|
||||
@@ -494,7 +494,7 @@ const deleteToken = async (row: any) => {
|
||||
}
|
||||
|
||||
.notes-text {
|
||||
color: var(--text-secondary);
|
||||
color: var(--el-text-color-secondary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
Reference in New Issue
Block a user