feat: redesign admin layout and stats dashboards
This commit is contained in:
@@ -20,6 +20,7 @@ import { fetchEmailStats } from '../api/email'
|
||||
import { fetchDockerStats, fetchRunningTasks, fetchServerInfo, fetchTaskStats } from '../api/tasks'
|
||||
import { fetchBrowserPoolStats } from '../api/browser_pool'
|
||||
import { fetchSystemConfig } from '../api/system'
|
||||
import MetricGrid from '../components/MetricGrid.vue'
|
||||
|
||||
const refreshStats = inject('refreshStats', null)
|
||||
const adminStats = inject('adminStats', null)
|
||||
@@ -143,6 +144,50 @@ const taskTodaySuccessRate = computed(() => {
|
||||
|
||||
const emailSuccessRate = computed(() => normalizeCount(emailStats.value?.success_rate))
|
||||
|
||||
const taskTodayCards = computed(() => [
|
||||
{ label: '总任务', value: normalizeCount(taskToday.value.total_tasks), tone: 'blue' },
|
||||
{ label: '成功', value: normalizeCount(taskToday.value.success_tasks), tone: 'green' },
|
||||
{ label: '失败', value: normalizeCount(taskToday.value.failed_tasks), tone: 'red' },
|
||||
{ label: '浏览内容', value: normalizeCount(taskToday.value.total_items), tone: 'purple' },
|
||||
{ label: '查看附件', value: normalizeCount(taskToday.value.total_attachments), tone: 'cyan' },
|
||||
])
|
||||
|
||||
const taskTotalCards = computed(() => [
|
||||
{ label: '总任务', value: normalizeCount(taskTotal.value.total_tasks), tone: 'blue' },
|
||||
{ label: '成功', value: normalizeCount(taskTotal.value.success_tasks), tone: 'green' },
|
||||
{ label: '失败', value: normalizeCount(taskTotal.value.failed_tasks), tone: 'red' },
|
||||
{ label: '浏览内容', value: normalizeCount(taskTotal.value.total_items), tone: 'purple' },
|
||||
{ label: '查看附件', value: normalizeCount(taskTotal.value.total_attachments), tone: 'cyan' },
|
||||
])
|
||||
|
||||
const emailCards = computed(() => [
|
||||
{ label: '总发送', value: normalizeCount(emailStats.value?.total_sent), tone: 'blue' },
|
||||
{ label: '成功', value: normalizeCount(emailStats.value?.total_success), tone: 'green' },
|
||||
{ label: '失败', value: normalizeCount(emailStats.value?.total_failed), tone: 'red' },
|
||||
{ label: '成功率', value: `${emailSuccessRate.value}%`, tone: 'purple' },
|
||||
])
|
||||
|
||||
const emailTypeCards = computed(() => [
|
||||
{ label: '注册验证', value: normalizeCount(emailStats.value?.register_sent), tone: 'cyan' },
|
||||
{ label: '密码重置', value: normalizeCount(emailStats.value?.reset_sent), tone: 'orange' },
|
||||
{ label: '邮箱绑定', value: normalizeCount(emailStats.value?.bind_sent), tone: 'purple' },
|
||||
{ label: '任务完成', value: normalizeCount(emailStats.value?.task_complete_sent), tone: 'green' },
|
||||
])
|
||||
|
||||
const feedbackCards = computed(() => [
|
||||
{ label: '总反馈', value: normalizeCount(feedbackStats.value?.total), tone: 'blue' },
|
||||
{ label: '待处理', value: normalizeCount(feedbackStats.value?.pending), tone: 'orange' },
|
||||
{ label: '已回复', value: normalizeCount(feedbackStats.value?.replied), tone: 'green' },
|
||||
])
|
||||
|
||||
const browserPoolCards = computed(() => [
|
||||
{ label: '总 Worker', value: browserPoolTotalWorkers.value, tone: 'blue' },
|
||||
{ label: '活跃 Worker', value: browserPoolActiveWorkers.value, tone: 'green' },
|
||||
{ label: '空闲 Worker', value: browserPoolIdleWorkers.value, tone: 'cyan' },
|
||||
{ label: '忙碌 Worker', value: browserPoolBusyWorkers.value, tone: 'orange' },
|
||||
{ label: '队列', value: browserPoolQueueSize.value, tone: 'purple' },
|
||||
])
|
||||
|
||||
const scheduleEnabled = computed(() => (systemConfig.value?.schedule_enabled ?? 0) === 1)
|
||||
const scheduleTime = computed(() => systemConfig.value?.schedule_time || '-')
|
||||
const scheduleBrowseType = computed(() => systemConfig.value?.schedule_browse_type || '-')
|
||||
@@ -250,12 +295,10 @@ onUnmounted(() => {
|
||||
|
||||
<template>
|
||||
<div class="page-stack">
|
||||
<div class="hero">
|
||||
<div class="hero-top">
|
||||
<div class="hero-title">
|
||||
<div class="hero-title-row">
|
||||
<h2>报表中心</h2>
|
||||
</div>
|
||||
<section class="report-hero">
|
||||
<div class="hero-head">
|
||||
<div class="hero-main">
|
||||
<h2>报表中心</h2>
|
||||
<div class="hero-meta app-muted">
|
||||
<span v-if="lastUpdatedAt">更新时间:{{ lastUpdatedAt }}</span>
|
||||
<span v-if="serverInfo?.uptime" class="hero-dot">·</span>
|
||||
@@ -264,23 +307,12 @@ onUnmounted(() => {
|
||||
</div>
|
||||
|
||||
<div class="hero-actions">
|
||||
<el-button type="primary" plain :loading="loading" @click="manualRefresh">刷新</el-button>
|
||||
<el-button type="primary" :loading="loading" @click="manualRefresh">刷新数据</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kpi-grid">
|
||||
<div v-for="c in overviewCards" :key="c.label" class="kpi-card" :class="`kpi-tone--${c.tone}`">
|
||||
<div class="kpi-icon">
|
||||
<el-icon><component :is="c.icon" /></el-icon>
|
||||
</div>
|
||||
<div class="kpi-body">
|
||||
<div class="kpi-value">{{ c.value }}</div>
|
||||
<div class="kpi-label">{{ c.label }}</div>
|
||||
<div v-if="c.sub" class="kpi-sub app-muted">{{ c.sub }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<MetricGrid :items="overviewCards" :loading="loading" :min-width="165" />
|
||||
</section>
|
||||
|
||||
<el-row :gutter="12">
|
||||
<el-col :xs="24" :lg="12">
|
||||
@@ -309,58 +341,16 @@ onUnmounted(() => {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="tile-section">
|
||||
<div class="tile-title app-muted">今日</div>
|
||||
<div class="tile-grid">
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(taskToday.total_tasks) }}</div>
|
||||
<div class="tile-k app-muted">总任务</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v ok">{{ normalizeCount(taskToday.success_tasks) }}</div>
|
||||
<div class="tile-k app-muted">成功</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v err">{{ normalizeCount(taskToday.failed_tasks) }}</div>
|
||||
<div class="tile-k app-muted">失败</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(taskToday.total_items) }}</div>
|
||||
<div class="tile-k app-muted">浏览内容</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(taskToday.total_attachments) }}</div>
|
||||
<div class="tile-k app-muted">查看附件</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="metrics-block">
|
||||
<div class="block-title">今日</div>
|
||||
<MetricGrid :items="taskTodayCards" :loading="refreshing" :min-width="120" />
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="tile-section">
|
||||
<div class="tile-title app-muted">累计</div>
|
||||
<div class="tile-grid">
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(taskTotal.total_tasks) }}</div>
|
||||
<div class="tile-k app-muted">总任务</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v ok">{{ normalizeCount(taskTotal.success_tasks) }}</div>
|
||||
<div class="tile-k app-muted">成功</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v err">{{ normalizeCount(taskTotal.failed_tasks) }}</div>
|
||||
<div class="tile-k app-muted">失败</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(taskTotal.total_items) }}</div>
|
||||
<div class="tile-k app-muted">浏览内容</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(taskTotal.total_attachments) }}</div>
|
||||
<div class="tile-k app-muted">查看附件</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="metrics-block">
|
||||
<div class="block-title">累计</div>
|
||||
<MetricGrid :items="taskTotalCards" :loading="refreshing" :min-width="120" />
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
@@ -466,41 +456,13 @@ onUnmounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tile-grid tile-grid--3">
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(emailStats?.total_sent) }}</div>
|
||||
<div class="tile-k app-muted">总发送</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v ok">{{ normalizeCount(emailStats?.total_success) }}</div>
|
||||
<div class="tile-k app-muted">成功</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v err">{{ normalizeCount(emailStats?.total_failed) }}</div>
|
||||
<div class="tile-k app-muted">失败</div>
|
||||
</div>
|
||||
</div>
|
||||
<MetricGrid :items="emailCards" :loading="refreshing" :min-width="132" />
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="sub-title">类型统计</div>
|
||||
<div class="type-grid">
|
||||
<div class="type-item">
|
||||
<div class="type-v">{{ normalizeCount(emailStats?.register_sent) }}</div>
|
||||
<div class="type-k app-muted">注册验证</div>
|
||||
</div>
|
||||
<div class="type-item">
|
||||
<div class="type-v">{{ normalizeCount(emailStats?.reset_sent) }}</div>
|
||||
<div class="type-k app-muted">密码重置</div>
|
||||
</div>
|
||||
<div class="type-item">
|
||||
<div class="type-v">{{ normalizeCount(emailStats?.bind_sent) }}</div>
|
||||
<div class="type-k app-muted">邮箱绑定</div>
|
||||
</div>
|
||||
<div class="type-item">
|
||||
<div class="type-v">{{ normalizeCount(emailStats?.task_complete_sent) }}</div>
|
||||
<div class="type-k app-muted">任务完成</div>
|
||||
</div>
|
||||
<div class="metrics-block">
|
||||
<div class="block-title">类型统计</div>
|
||||
<MetricGrid :items="emailTypeCards" :loading="refreshing" :min-width="132" />
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
@@ -519,24 +481,9 @@ onUnmounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tile-grid tile-grid--3">
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ normalizeCount(feedbackStats?.total) }}</div>
|
||||
<div class="tile-k app-muted">总反馈</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v warn">{{ normalizeCount(feedbackStats?.pending) }}</div>
|
||||
<div class="tile-k app-muted">待处理</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v ok">{{ normalizeCount(feedbackStats?.replied) }}</div>
|
||||
<div class="tile-k app-muted">已回复</div>
|
||||
</div>
|
||||
</div>
|
||||
<MetricGrid :items="feedbackCards" :loading="refreshing" :min-width="145" />
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="help app-muted">提示:用户的反馈需要及时处理,避免影响活跃度与留存。</div>
|
||||
<div class="help app-muted">提示:反馈处理越及时,用户留存与满意度越高。</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -590,7 +537,7 @@ onUnmounted(() => {
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="sub-title">容器</div>
|
||||
<div class="block-title">容器</div>
|
||||
<el-descriptions border :column="2" size="small">
|
||||
<el-descriptions-item label="状态">{{ dockerStats?.status || '-' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="容器名">{{ dockerStats?.container_name || '-' }}</el-descriptions-item>
|
||||
@@ -614,24 +561,7 @@ onUnmounted(() => {
|
||||
<el-tag v-if="browserPoolStats?.server_time_cst" effect="light" type="info">{{ browserPoolStats.server_time_cst }}</el-tag>
|
||||
</div>
|
||||
|
||||
<div class="tile-grid tile-grid--4">
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ browserPoolTotalWorkers }}</div>
|
||||
<div class="tile-k app-muted">总 Worker</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v ok">{{ browserPoolActiveWorkers }}</div>
|
||||
<div class="tile-k app-muted">活跃(有执行环境)</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v">{{ browserPoolIdleWorkers }}</div>
|
||||
<div class="tile-k app-muted">空闲(无任务)</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile-v warn">{{ browserPoolQueueSize }}</div>
|
||||
<div class="tile-k app-muted">队列等待</div>
|
||||
</div>
|
||||
</div>
|
||||
<MetricGrid :items="browserPoolCards" :loading="refreshing" :min-width="120" />
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
@@ -722,7 +652,7 @@ onUnmounted(() => {
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
.report-hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 18px;
|
||||
@@ -730,31 +660,24 @@ onUnmounted(() => {
|
||||
background: radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.18), transparent 48%),
|
||||
radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.16), transparent 45%),
|
||||
radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.14), transparent 42%),
|
||||
rgba(255, 255, 255, 0.65);
|
||||
rgba(255, 255, 255, 0.72);
|
||||
box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
|
||||
backdrop-filter: saturate(180%) blur(12px);
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.hero-top {
|
||||
.hero-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.hero-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hero-title h2 {
|
||||
.hero-main h2 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-size: 19px;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
@@ -763,9 +686,9 @@ onUnmounted(() => {
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-dot {
|
||||
@@ -779,140 +702,10 @@ onUnmounted(() => {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.kpi-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.kpi-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(17, 24, 39, 0.1);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
|
||||
padding: 14px;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
transition:
|
||||
transform 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
border-color 160ms ease;
|
||||
}
|
||||
|
||||
.kpi-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: var(--kpi-grad, transparent);
|
||||
opacity: 0.9;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.kpi-card::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: var(--kpi-top, transparent);
|
||||
opacity: 0.9;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.kpi-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
|
||||
border-color: rgba(17, 24, 39, 0.14);
|
||||
}
|
||||
|
||||
.kpi-icon {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--kpi-icon-bg, rgba(59, 130, 246, 0.14));
|
||||
color: var(--kpi-icon-color, #1d4ed8);
|
||||
border: 1px solid rgba(17, 24, 39, 0.08);
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.kpi-body {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.kpi-value {
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.kpi-label {
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
color: rgba(17, 24, 39, 0.7);
|
||||
}
|
||||
|
||||
.kpi-sub {
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.kpi-tone--blue {
|
||||
--kpi-grad: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(6, 182, 212, 0.1));
|
||||
--kpi-top: linear-gradient(90deg, #3b82f6, #06b6d4);
|
||||
--kpi-icon-bg: rgba(59, 130, 246, 0.14);
|
||||
--kpi-icon-color: #1d4ed8;
|
||||
}
|
||||
|
||||
.kpi-tone--green {
|
||||
--kpi-grad: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(34, 197, 94, 0.1));
|
||||
--kpi-top: linear-gradient(90deg, #10b981, #22c55e);
|
||||
--kpi-icon-bg: rgba(16, 185, 129, 0.14);
|
||||
--kpi-icon-color: #047857;
|
||||
}
|
||||
|
||||
.kpi-tone--purple {
|
||||
--kpi-grad: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.1));
|
||||
--kpi-top: linear-gradient(90deg, #8b5cf6, #ec4899);
|
||||
--kpi-icon-bg: rgba(139, 92, 246, 0.14);
|
||||
--kpi-icon-color: #6d28d9;
|
||||
}
|
||||
|
||||
.kpi-tone--orange {
|
||||
--kpi-grad: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(249, 115, 22, 0.1));
|
||||
--kpi-top: linear-gradient(90deg, #f59e0b, #f97316);
|
||||
--kpi-icon-bg: rgba(245, 158, 11, 0.14);
|
||||
--kpi-icon-color: #b45309;
|
||||
}
|
||||
|
||||
.kpi-tone--red {
|
||||
--kpi-grad: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(244, 63, 94, 0.1));
|
||||
--kpi-top: linear-gradient(90deg, #ef4444, #f43f5e);
|
||||
--kpi-icon-bg: rgba(239, 68, 68, 0.14);
|
||||
--kpi-icon-color: #b91c1c;
|
||||
}
|
||||
|
||||
.kpi-tone--cyan {
|
||||
--kpi-grad: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.1));
|
||||
--kpi-top: linear-gradient(90deg, #22d3ee, #3b82f6);
|
||||
--kpi-icon-bg: rgba(34, 211, 238, 0.14);
|
||||
--kpi-icon-color: #0369a1;
|
||||
}
|
||||
|
||||
.panel {
|
||||
border-radius: 18px;
|
||||
border: 1px solid rgba(17, 24, 39, 0.1);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
box-shadow: var(--app-shadow);
|
||||
backdrop-filter: saturate(180%) blur(10px);
|
||||
}
|
||||
@@ -991,60 +784,16 @@ onUnmounted(() => {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tile-section {
|
||||
.metrics-block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tile-title {
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.tile-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tile-grid--3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.tile-grid--4 {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.tile {
|
||||
border: 1px solid rgba(17, 24, 39, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
|
||||
.tile-v {
|
||||
font-size: 18px;
|
||||
.block-title {
|
||||
font-size: 13px;
|
||||
font-weight: 900;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.tile-k {
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ok {
|
||||
color: #047857;
|
||||
}
|
||||
|
||||
.warn {
|
||||
color: #b45309;
|
||||
}
|
||||
|
||||
.err {
|
||||
color: #b91c1c;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
@@ -1063,38 +812,11 @@ onUnmounted(() => {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.sub-title {
|
||||
font-size: 13px;
|
||||
font-weight: 900;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.type-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.type-item {
|
||||
border: 1px solid rgba(17, 24, 39, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
|
||||
.type-v {
|
||||
font-size: 16px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.type-k {
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
overflow-x: auto;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--app-border);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.help {
|
||||
@@ -1112,7 +834,7 @@ onUnmounted(() => {
|
||||
border: 1px solid rgba(17, 24, 39, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
.resource-k {
|
||||
@@ -1135,7 +857,7 @@ onUnmounted(() => {
|
||||
border: 1px solid rgba(17, 24, 39, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
.config-k {
|
||||
@@ -1166,6 +888,10 @@ onUnmounted(() => {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.err {
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
:deep(.el-table) {
|
||||
--el-table-border-color: rgba(17, 24, 39, 0.08);
|
||||
--el-table-header-bg-color: rgba(246, 247, 251, 0.8);
|
||||
@@ -1176,30 +902,8 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.kpi-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.tile-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.tile-grid--3 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.tile-grid--4 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.resource-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.kpi-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user