feat(fac_cal): 优化首页数据总览及新增数据标准页面
1. hfnf_index: 数据总量改为从接口实时获取,四个工厂按比例自动分配 2. cement_data_template: 去除表格标题中的"表一""表二"前缀 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
27aa7532b4
commit
b5be1bbfec
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<!-- 表一:生产工艺数据模板 -->
|
<!-- 表一:生产工艺数据模板 -->
|
||||||
<div class="table-section">
|
<div class="table-section">
|
||||||
<h3>表一 通用硅酸盐水泥生产工艺数据模板</h3>
|
<h3>通用硅酸盐水泥生产工艺数据模板</h3>
|
||||||
<el-table :data="table1Data" border stripe style="width: 100%" :span-method="table1SpanMethod" size="default">
|
<el-table :data="table1Data" border stripe style="width: 100%" :span-method="table1SpanMethod" size="default">
|
||||||
<el-table-column prop="category" label="分类" width="280" />
|
<el-table-column prop="category" label="分类" width="280" />
|
||||||
<el-table-column prop="field" label="字段" min-width="160" />
|
<el-table-column prop="field" label="字段" min-width="160" />
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
<!-- 表二:元数据元素详细定义 -->
|
<!-- 表二:元数据元素详细定义 -->
|
||||||
<div class="table-section">
|
<div class="table-section">
|
||||||
<h3>表二 元数据元素内容和格式</h3>
|
<h3>元数据元素内容和格式</h3>
|
||||||
<el-table :data="table2Data" border stripe style="width: 100%" :span-method="table2SpanMethod" size="default"
|
<el-table :data="table2Data" border stripe style="width: 100%" :span-method="table2SpanMethod" size="default"
|
||||||
:row-class-name="table2RowClass">
|
:row-class-name="table2RowClass">
|
||||||
<el-table-column prop="index" label="序号" width="70" align="center" />
|
<el-table-column prop="index" label="序号" width="70" align="center" />
|
||||||
|
|
|
||||||
|
|
@ -1,131 +1,171 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="bi-screen">
|
<div class="hfnf-dashboard">
|
||||||
<!-- 顶部标题 -->
|
<!-- 顶部总览横幅 -->
|
||||||
<div class="bi-top">
|
<div class="summary-banner">
|
||||||
<div class="bi-top-left">
|
<div class="banner-left">
|
||||||
<div class="bi-pulse"></div>
|
<div class="banner-icon">
|
||||||
<h1>水泥生产数据采集总览</h1>
|
<el-icon :size="40"><DataAnalysis /></el-icon>
|
||||||
<span class="bi-en">CEMENT PRODUCTION DATA OVERVIEW</span>
|
|
||||||
</div>
|
|
||||||
<div class="bi-top-right">
|
|
||||||
<span class="bi-clock">{{ clock }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="bi-decor-line"></div>
|
|
||||||
|
|
||||||
<!-- 主体内容 -->
|
|
||||||
<div class="bi-body">
|
|
||||||
<!-- 左列 -->
|
|
||||||
<div class="bi-col bi-col-left">
|
|
||||||
<!-- 数据总量 -->
|
|
||||||
<div class="bi-panel bi-total-panel">
|
|
||||||
<div class="bi-panel-title"><i></i>数据总量</div>
|
|
||||||
<div class="bi-total-num">
|
|
||||||
<span v-for="(ch, i) in formattedTotal" :key="i"
|
|
||||||
:class="ch === ',' ? 'sep' : 'digit'">{{ ch }}</span>
|
|
||||||
<span class="unit">条</span>
|
|
||||||
</div>
|
|
||||||
<div class="bi-total-meta">
|
|
||||||
覆盖 <em>{{ factories.length }}</em> 家工厂 ·
|
|
||||||
平均 <em>{{ formatCompact(Math.round(totalCount / factories.length)) }}</em>/厂
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="banner-info">
|
||||||
<!-- 柱状图 -->
|
<h2>水泥生产数据采集总览</h2>
|
||||||
<div class="bi-panel bi-panel-grow">
|
<p>覆盖 {{ factories.length }} 家工厂 · 实时数据监控</p>
|
||||||
<div class="bi-panel-title"><i></i>各工厂数据量对比</div>
|
|
||||||
<div ref="barChartRef" class="bi-chart-fill"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="banner-right">
|
||||||
<!-- 中列 - 轮播卡片 + 饼图 -->
|
<div class="total-block">
|
||||||
<div class="bi-col bi-col-center">
|
<span class="total-label">数据总量</span>
|
||||||
<!-- 轮播工厂卡片 -->
|
<span class="total-value">{{ formatNumber(totalCount) }}</span>
|
||||||
<div class="bi-panel bi-carousel-panel">
|
<span class="total-unit">条</span>
|
||||||
<div class="bi-panel-title"><i></i>工厂数据轮播</div>
|
|
||||||
<div class="bi-carousel">
|
|
||||||
<transition name="bi-slide" mode="out-in">
|
|
||||||
<div class="bi-carousel-card" :key="activeFactory"
|
|
||||||
:style="{ '--accent': factories[activeFactory]?.color }">
|
|
||||||
<div class="bi-cc-rank">#{{ activeFactory + 1 }}</div>
|
|
||||||
<div class="bi-cc-name">{{ factories[activeFactory]?.name }}</div>
|
|
||||||
<div class="bi-cc-value">{{ formatCompact(factories[activeFactory]?.count || 0) }}</div>
|
|
||||||
<div class="bi-cc-detail">{{ formatNumber(factories[activeFactory]?.count || 0) }} 条</div>
|
|
||||||
<div class="bi-cc-bar">
|
|
||||||
<div class="bi-cc-bar-inner" :style="{
|
|
||||||
width: (factories[activeFactory]?.percentage || 0) + '%',
|
|
||||||
background: `linear-gradient(90deg, transparent, ${factories[activeFactory]?.color})`
|
|
||||||
}"></div>
|
|
||||||
</div>
|
|
||||||
<div class="bi-cc-pct">
|
|
||||||
占比 <strong>{{ (factories[activeFactory]?.percentage || 0).toFixed(1) }}%</strong>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</transition>
|
|
||||||
<!-- 轮播指示器 -->
|
|
||||||
<div class="bi-carousel-dots">
|
|
||||||
<span v-for="(f, i) in factories" :key="i"
|
|
||||||
:class="{ active: i === activeFactory }"
|
|
||||||
:style="i === activeFactory ? { background: f.color, boxShadow: `0 0 8px ${f.color}` } : {}"
|
|
||||||
@click="activeFactory = i"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 饼图 -->
|
|
||||||
<div class="bi-panel bi-panel-grow">
|
|
||||||
<div class="bi-panel-title"><i></i>数据占比分布</div>
|
|
||||||
<div ref="pieChartRef" class="bi-chart-fill"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 右列 -->
|
|
||||||
<div class="bi-col bi-col-right">
|
|
||||||
<!-- 滚动排行 -->
|
|
||||||
<div class="bi-panel">
|
|
||||||
<div class="bi-panel-title"><i></i>工厂数据排行</div>
|
|
||||||
<div class="bi-rank-list">
|
|
||||||
<div class="bi-rank-item" v-for="(item, index) in factories" :key="item.name"
|
|
||||||
:class="{ 'bi-rank-highlight': index === activeFactory }">
|
|
||||||
<div class="bi-rank-idx" :class="'r' + (index+1)">{{ index + 1 }}</div>
|
|
||||||
<div class="bi-rank-body">
|
|
||||||
<div class="bi-rank-name">{{ item.name }}</div>
|
|
||||||
<div class="bi-rank-bar-bg">
|
|
||||||
<div class="bi-rank-bar-fill" :style="{
|
|
||||||
width: item.percentage + '%',
|
|
||||||
background: `linear-gradient(90deg, ${item.color}30, ${item.color})`
|
|
||||||
}"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="bi-rank-val">{{ formatCompact(item.count) }}</div>
|
|
||||||
<div class="bi-rank-pct" :style="{ color: item.color }">{{ item.percentage.toFixed(1) }}%</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 滚动数据表 -->
|
|
||||||
<div class="bi-panel bi-panel-grow bi-scroll-panel">
|
|
||||||
<div class="bi-panel-title"><i></i>实时数据滚动</div>
|
|
||||||
<div class="bi-scroll-wrap" ref="scrollWrap">
|
|
||||||
<div class="bi-scroll-inner" :style="{ transform: `translateY(${scrollY}px)` }">
|
|
||||||
<div class="bi-scroll-row" v-for="(row, i) in scrollData" :key="i">
|
|
||||||
<span class="bi-scroll-time">{{ row.time }}</span>
|
|
||||||
<span class="bi-scroll-factory" :style="{ color: row.color }">{{ row.factory }}</span>
|
|
||||||
<span class="bi-scroll-count">+{{ formatNumber(row.count) }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 系统信息 -->
|
|
||||||
<div class="bi-panel bi-sys-panel">
|
|
||||||
<div class="bi-sys-row" @click="goDetail" style="cursor:pointer">
|
|
||||||
<span>查看详情</span>
|
|
||||||
<span style="color:#409eff">进入测点数据明细 →</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 工厂数据卡片 -->
|
||||||
|
<el-row :gutter="16" class="factory-row">
|
||||||
|
<el-col :xs="24" :sm="12" :md="6" v-for="(item, index) in factories" :key="item.name">
|
||||||
|
<div class="factory-card" :style="{ borderTopColor: item.color }" @click="goDetail">
|
||||||
|
<div class="card-header">
|
||||||
|
<div class="card-icon" :style="{ backgroundColor: item.bgColor }">
|
||||||
|
<el-icon :size="24" :color="item.color"><OfficeBuilding /></el-icon>
|
||||||
|
</div>
|
||||||
|
<span class="card-title">{{ item.name }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<span class="card-count">{{ formatNumber(item.count) }}</span>
|
||||||
|
<span class="card-unit">条</span>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer">
|
||||||
|
<el-progress
|
||||||
|
:percentage="item.percentage"
|
||||||
|
:color="item.color"
|
||||||
|
:stroke-width="6"
|
||||||
|
:show-text="false"
|
||||||
|
/>
|
||||||
|
<div class="card-meta">
|
||||||
|
<span class="card-percent">占比 {{ item.percentage.toFixed(1) }}%</span>
|
||||||
|
<span class="card-rank">#{{ index + 1 }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<!-- 图表区域 -->
|
||||||
|
<el-row :gutter="16" class="chart-row">
|
||||||
|
<el-col :xs="24" :md="14">
|
||||||
|
<div class="chart-card">
|
||||||
|
<div class="chart-card-header">
|
||||||
|
<h3>各工厂数据量对比</h3>
|
||||||
|
</div>
|
||||||
|
<div ref="barChartRef" class="chart-container"></div>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :xs="24" :md="10">
|
||||||
|
<div class="chart-card">
|
||||||
|
<div class="chart-card-header">
|
||||||
|
<h3>数据占比分布</h3>
|
||||||
|
</div>
|
||||||
|
<div ref="pieChartRef" class="chart-container"></div>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<!-- 底部信息区域 -->
|
||||||
|
<el-row :gutter="16" class="info-row">
|
||||||
|
<el-col :xs="24" :md="12">
|
||||||
|
<div class="info-card">
|
||||||
|
<div class="chart-card-header">
|
||||||
|
<h3>工厂详细数据</h3>
|
||||||
|
</div>
|
||||||
|
<el-table :data="factories" stripe style="width: 100%" size="large">
|
||||||
|
<el-table-column type="index" label="#" width="50" />
|
||||||
|
<el-table-column prop="name" label="工厂名称" min-width="140">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<div style="display: flex; align-items: center; gap: 8px;">
|
||||||
|
<span class="dot" :style="{ backgroundColor: row.color }"></span>
|
||||||
|
{{ row.name }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="数据量" min-width="140" align="right">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<span style="font-weight: 600; font-family: 'DIN Alternate', monospace;">{{ formatNumber(row.count) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="占比" width="100" align="center">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-tag :color="row.bgColor" :style="{ color: row.color, borderColor: row.color }" size="small">
|
||||||
|
{{ row.percentage.toFixed(1) }}%
|
||||||
|
</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :xs="24" :md="12">
|
||||||
|
<div class="info-card">
|
||||||
|
<div class="chart-card-header">
|
||||||
|
<h3>系统信息</h3>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-list">
|
||||||
|
<div class="sys-info-item">
|
||||||
|
<div class="sys-info-icon" style="background: #ecf5ff;">
|
||||||
|
<el-icon :size="20" color="#409eff"><Monitor /></el-icon>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-content">
|
||||||
|
<span class="sys-info-label">系统名称</span>
|
||||||
|
<span class="sys-info-value">水泥生产数据人工智能采集融合系统</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-item">
|
||||||
|
<div class="sys-info-icon" style="background: #f0f9eb;">
|
||||||
|
<el-icon :size="20" color="#67c23a"><Connection /></el-icon>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-content">
|
||||||
|
<span class="sys-info-label">接入工厂</span>
|
||||||
|
<span class="sys-info-value">{{ factories.length }} 家</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-item">
|
||||||
|
<div class="sys-info-icon" style="background: #fdf6ec;">
|
||||||
|
<el-icon :size="20" color="#e6a23c"><Coin /></el-icon>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-content">
|
||||||
|
<span class="sys-info-label">数据总量</span>
|
||||||
|
<span class="sys-info-value">{{ formatNumber(totalCount) }} 条</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-item">
|
||||||
|
<div class="sys-info-icon" style="background: #fef0f0;">
|
||||||
|
<el-icon :size="20" color="#f56c6c"><DataLine /></el-icon>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-content">
|
||||||
|
<span class="sys-info-label">平均数据量</span>
|
||||||
|
<span class="sys-info-value">{{ formatNumber(Math.round(totalCount / factories.length)) }} 条/厂</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-item">
|
||||||
|
<div class="sys-info-icon" style="background: #f4f4f5;">
|
||||||
|
<el-icon :size="20" color="#909399"><TrendCharts /></el-icon>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-content">
|
||||||
|
<span class="sys-info-label">最大采集量</span>
|
||||||
|
<span class="sys-info-value">{{ maxFactory.name }}({{ formatNumber(maxFactory.count) }})</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-item">
|
||||||
|
<div class="sys-info-icon" style="background: #ecf5ff;">
|
||||||
|
<el-icon :size="20" color="#409eff"><View /></el-icon>
|
||||||
|
</div>
|
||||||
|
<div class="sys-info-content">
|
||||||
|
<span class="sys-info-label">查看详情</span>
|
||||||
|
<el-button type="primary" link @click="goDetail">进入测点数据明细 →</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -138,11 +178,13 @@ import API from '@/api'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const barChartRef = ref(null)
|
const barChartRef = ref(null)
|
||||||
const pieChartRef = ref(null)
|
const pieChartRef = ref(null)
|
||||||
let barChart = null, pieChart = null
|
let barChart = null
|
||||||
let clockTimer = null, carouselTimer = null, scrollTimer = null
|
let pieChart = null
|
||||||
|
|
||||||
const colors = ['#409eff', '#00e0a1', '#f5a623', '#ff6b6b']
|
const colors = ['#409eff', '#67c23a', '#e6a23c', '#f56c6c']
|
||||||
|
const bgColors = ['#ecf5ff', '#f0f9eb', '#fdf6ec', '#fef0f0']
|
||||||
|
|
||||||
|
// 各工厂基础比例
|
||||||
const baseFactories = [
|
const baseFactories = [
|
||||||
{ name: '合肥南方', ratio: 0.4382 },
|
{ name: '合肥南方', ratio: 0.4382 },
|
||||||
{ name: '中联万吨', ratio: 0.3081 },
|
{ name: '中联万吨', ratio: 0.3081 },
|
||||||
|
|
@ -151,93 +193,87 @@ const baseFactories = [
|
||||||
]
|
]
|
||||||
|
|
||||||
const totalCount = ref(0)
|
const totalCount = ref(0)
|
||||||
const activeFactory = ref(0)
|
|
||||||
const clock = ref('')
|
|
||||||
const scrollY = ref(0)
|
|
||||||
const scrollWrap = ref(null)
|
|
||||||
|
|
||||||
const factories = computed(() => {
|
const factories = computed(() => {
|
||||||
const total = totalCount.value
|
const total = totalCount.value
|
||||||
|
// 前3个按比例取整,最后一个用总量减去前3个保证总和精确
|
||||||
const counts = baseFactories.map(f => Math.round(total * f.ratio))
|
const counts = baseFactories.map(f => Math.round(total * f.ratio))
|
||||||
counts[3] = total - counts[0] - counts[1] - counts[2]
|
const sumFirst3 = counts[0] + counts[1] + counts[2]
|
||||||
|
counts[3] = total - sumFirst3
|
||||||
|
|
||||||
return baseFactories.map((f, i) => ({
|
return baseFactories.map((f, i) => ({
|
||||||
name: f.name, count: counts[i], color: colors[i],
|
name: f.name,
|
||||||
|
count: counts[i],
|
||||||
|
color: colors[i],
|
||||||
|
bgColor: bgColors[i],
|
||||||
percentage: total > 0 ? (counts[i] / total) * 100 : 0,
|
percentage: total > 0 ? (counts[i] / total) * 100 : 0,
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|
||||||
const formattedTotal = computed(() => formatNumber(totalCount.value).split(''))
|
const maxFactory = computed(() => {
|
||||||
|
if (factories.value.length === 0) return { name: '-', count: 0 }
|
||||||
|
return factories.value.reduce((a, b) => (a.count > b.count ? a : b))
|
||||||
|
})
|
||||||
|
|
||||||
// 模拟滚动数据
|
const formatNumber = (num) => {
|
||||||
const scrollData = ref([])
|
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')
|
||||||
const genScrollData = () => {
|
|
||||||
const rows = []
|
|
||||||
for (let i = 0; i < 30; i++) {
|
|
||||||
const fi = Math.floor(Math.random() * 4)
|
|
||||||
const h = String(Math.floor(Math.random() * 24)).padStart(2, '0')
|
|
||||||
const m = String(Math.floor(Math.random() * 60)).padStart(2, '0')
|
|
||||||
rows.push({
|
|
||||||
time: `${h}:${m}`,
|
|
||||||
factory: baseFactories[fi].name,
|
|
||||||
color: colors[fi],
|
|
||||||
count: Math.floor(Math.random() * 50000) + 10000,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
scrollData.value = rows
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const formatNumber = (n) => n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')
|
const goDetail = () => {
|
||||||
const formatCompact = (n) => {
|
router.push('/hfnf_mplogx')
|
||||||
if (n >= 1e8) return (n / 1e8).toFixed(2) + '亿'
|
|
||||||
if (n >= 1e4) return (n / 1e4).toFixed(0) + '万'
|
|
||||||
return n.toString()
|
|
||||||
}
|
|
||||||
const goDetail = () => router.push('/hfnf_mplogx')
|
|
||||||
|
|
||||||
const updateClock = () => {
|
|
||||||
const d = new Date()
|
|
||||||
clock.value = `${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,'0')}-${String(d.getDate()).padStart(2,'0')} ${String(d.getHours()).padStart(2,'0')}:${String(d.getMinutes()).padStart(2,'0')}:${String(d.getSeconds()).padStart(2,'0')}`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const initBarChart = () => {
|
const initBarChart = () => {
|
||||||
if (!barChartRef.value) return
|
if (!barChartRef.value) return
|
||||||
barChart = echarts.init(barChartRef.value)
|
barChart = echarts.init(barChartRef.value)
|
||||||
barChart.setOption({
|
barChart.setOption({
|
||||||
backgroundColor: 'transparent',
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
backgroundColor: 'rgba(10,22,40,0.95)', borderColor: 'rgba(64,158,255,0.3)',
|
formatter: (params) => {
|
||||||
textStyle: { color: '#e0e6ed' },
|
const p = params[0]
|
||||||
formatter: (p) => `${p[0].name}<br/>数据量:<b style="color:${colors[p[0].dataIndex]}">${formatNumber(p[0].value)}</b> 条`,
|
return `${p.name}<br/>数据量:<b>${formatNumber(p.value)}</b> 条`
|
||||||
|
},
|
||||||
},
|
},
|
||||||
grid: { left: 10, right: 15, top: 25, bottom: 20, containLabel: true },
|
grid: { left: 20, right: 30, top: 20, bottom: 30, containLabel: true },
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category', data: factories.value.map(f => f.name),
|
type: 'category',
|
||||||
axisLabel: { color: '#5a7a9a', fontSize: 11 },
|
data: factories.value.map((f) => f.name),
|
||||||
axisLine: { lineStyle: { color: 'rgba(255,255,255,0.06)' } },
|
axisLabel: { color: '#666', fontSize: 13 },
|
||||||
|
axisLine: { lineStyle: { color: '#e4e7ed' } },
|
||||||
axisTick: { show: false },
|
axisTick: { show: false },
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLabel: { color: '#3a5570', formatter: v => v >= 1e8 ? (v/1e8).toFixed(1)+'亿' : (v/1e4).toFixed(0)+'万' },
|
axisLabel: {
|
||||||
splitLine: { lineStyle: { color: 'rgba(255,255,255,0.03)' } },
|
color: '#999',
|
||||||
axisLine: { show: false },
|
formatter: (v) => (v >= 1e8 ? (v / 1e8).toFixed(1) + '亿' : (v / 1e4).toFixed(0) + '万'),
|
||||||
|
},
|
||||||
|
splitLine: { lineStyle: { color: '#f0f0f0' } },
|
||||||
},
|
},
|
||||||
series: [{
|
series: [
|
||||||
type: 'bar', barWidth: '50%',
|
{
|
||||||
data: factories.value.map((f, i) => ({
|
type: 'bar',
|
||||||
value: f.count,
|
data: factories.value.map((f) => ({
|
||||||
itemStyle: {
|
value: f.count,
|
||||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
itemStyle: {
|
||||||
{ offset: 0, color: colors[i] }, { offset: 1, color: colors[i] + '15' },
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||||
]),
|
{ offset: 0, color: f.color },
|
||||||
borderRadius: [4, 4, 0, 0],
|
{ offset: 1, color: f.bgColor },
|
||||||
shadowColor: colors[i] + '30', shadowBlur: 10,
|
]),
|
||||||
|
borderRadius: [6, 6, 0, 0],
|
||||||
|
},
|
||||||
|
})),
|
||||||
|
barWidth: '45%',
|
||||||
|
label: {
|
||||||
|
show: true,
|
||||||
|
position: 'top',
|
||||||
|
formatter: (p) => (p.value / 1e8).toFixed(2) + '亿',
|
||||||
|
color: '#333',
|
||||||
|
fontSize: 13,
|
||||||
|
fontWeight: 600,
|
||||||
},
|
},
|
||||||
})),
|
},
|
||||||
label: { show: true, position: 'top', formatter: p => formatCompact(p.value), color: '#8a9bb5', fontSize: 12, fontWeight: 600 },
|
],
|
||||||
animationDuration: 1500, animationEasing: 'cubicOut',
|
|
||||||
}],
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -245,279 +281,312 @@ const initPieChart = () => {
|
||||||
if (!pieChartRef.value) return
|
if (!pieChartRef.value) return
|
||||||
pieChart = echarts.init(pieChartRef.value)
|
pieChart = echarts.init(pieChartRef.value)
|
||||||
pieChart.setOption({
|
pieChart.setOption({
|
||||||
backgroundColor: 'transparent',
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
backgroundColor: 'rgba(10,22,40,0.95)', borderColor: 'rgba(64,158,255,0.3)',
|
formatter: (p) => `${p.name}<br/>数据量:<b>${formatNumber(p.value)}</b> 条<br/>占比:<b>${p.percent}%</b>`,
|
||||||
textStyle: { color: '#e0e6ed' },
|
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
orient: 'vertical', right: 8, top: 'center',
|
orient: 'vertical',
|
||||||
textStyle: { fontSize: 11, color: '#5a7a9a' },
|
right: 10,
|
||||||
icon: 'circle', itemWidth: 8, itemHeight: 8,
|
top: 'center',
|
||||||
|
textStyle: { fontSize: 13, color: '#666' },
|
||||||
},
|
},
|
||||||
series: [{
|
series: [
|
||||||
type: 'pie', radius: ['44%', '72%'], center: ['38%', '50%'],
|
{
|
||||||
itemStyle: { borderRadius: 5, borderColor: '#0a1628', borderWidth: 3 },
|
type: 'pie',
|
||||||
label: { formatter: '{d}%', fontSize: 11, color: '#5a7a9a' },
|
radius: ['42%', '70%'],
|
||||||
labelLine: { length: 8, length2: 6, lineStyle: { color: 'rgba(255,255,255,0.1)' } },
|
center: ['40%', '50%'],
|
||||||
emphasis: { itemStyle: { shadowBlur: 20, shadowColor: 'rgba(0,0,0,0.5)' } },
|
avoidLabelOverlap: true,
|
||||||
data: factories.value.map(f => ({ value: f.count, name: f.name, itemStyle: { color: f.color } })),
|
itemStyle: { borderRadius: 6, borderColor: '#fff', borderWidth: 3 },
|
||||||
animationType: 'scale', animationEasing: 'elasticOut', animationDuration: 1500,
|
label: {
|
||||||
}],
|
show: true,
|
||||||
|
formatter: '{b}\n{d}%',
|
||||||
|
fontSize: 12,
|
||||||
|
lineHeight: 18,
|
||||||
|
},
|
||||||
|
labelLine: { length: 15, length2: 10 },
|
||||||
|
emphasis: {
|
||||||
|
itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.2)' },
|
||||||
|
},
|
||||||
|
data: factories.value.map((f) => ({
|
||||||
|
value: f.count,
|
||||||
|
name: f.name,
|
||||||
|
itemStyle: { color: f.color },
|
||||||
|
})),
|
||||||
|
},
|
||||||
|
],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleResize = () => { barChart?.resize(); pieChart?.resize() }
|
const handleResize = () => {
|
||||||
|
barChart?.resize()
|
||||||
|
pieChart?.resize()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
updateClock()
|
|
||||||
clockTimer = setInterval(updateClock, 1000)
|
|
||||||
genScrollData()
|
|
||||||
|
|
||||||
// 轮播
|
|
||||||
carouselTimer = setInterval(() => {
|
|
||||||
activeFactory.value = (activeFactory.value + 1) % 4
|
|
||||||
}, 4000)
|
|
||||||
|
|
||||||
// 滚动
|
|
||||||
let scrollPos = 0
|
|
||||||
scrollTimer = setInterval(() => {
|
|
||||||
scrollPos -= 1
|
|
||||||
const rowH = 36, total = scrollData.value.length * rowH
|
|
||||||
if (Math.abs(scrollPos) >= total / 2) scrollPos = 0
|
|
||||||
scrollY.value = scrollPos
|
|
||||||
}, 60)
|
|
||||||
|
|
||||||
API.hfnf.mplogx.list.req({ page: 1, page_size: 1 }).then(res => {
|
API.hfnf.mplogx.list.req({ page: 1, page_size: 1 }).then(res => {
|
||||||
totalCount.value = res.count
|
totalCount.value = res.count
|
||||||
nextTick(() => { initBarChart(); initPieChart() })
|
nextTick(() => {
|
||||||
|
initBarChart()
|
||||||
|
initPieChart()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
window.addEventListener('resize', handleResize)
|
window.addEventListener('resize', handleResize)
|
||||||
})
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
clearInterval(clockTimer)
|
|
||||||
clearInterval(carouselTimer)
|
|
||||||
clearInterval(scrollTimer)
|
|
||||||
window.removeEventListener('resize', handleResize)
|
window.removeEventListener('resize', handleResize)
|
||||||
barChart?.dispose(); pieChart?.dispose()
|
barChart?.dispose()
|
||||||
|
pieChart?.dispose()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.bi-screen {
|
.hfnf-dashboard {
|
||||||
position: fixed; inset: 0; z-index: 999;
|
padding: 16px;
|
||||||
background: linear-gradient(180deg, #060e1a 0%, #0a1628 40%, #0d1b2f 100%);
|
background: #f5f7fa;
|
||||||
color: #8a9bb5; overflow: hidden;
|
min-height: calc(100vh - 60px);
|
||||||
font-family: 'DIN Alternate', 'Helvetica Neue', -apple-system, sans-serif;
|
|
||||||
display: flex; flex-direction: column;
|
|
||||||
padding: 12px 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 顶部 */
|
/* 顶部横幅 */
|
||||||
.bi-top {
|
.summary-banner {
|
||||||
display: flex; justify-content: space-between; align-items: center;
|
display: flex;
|
||||||
padding: 0 4px 10px;
|
justify-content: space-between;
|
||||||
flex-shrink: 0;
|
align-items: center;
|
||||||
|
background: linear-gradient(135deg, #1b2a4a 0%, #2d4a7a 50%, #3a6fb5 100%);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 24px 32px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
.bi-top-left { display: flex; align-items: center; gap: 12px; }
|
|
||||||
.bi-pulse {
|
.banner-left {
|
||||||
width: 10px; height: 10px; border-radius: 50%;
|
display: flex;
|
||||||
background: #409eff;
|
align-items: center;
|
||||||
box-shadow: 0 0 10px #409eff80, 0 0 20px #409eff40;
|
gap: 16px;
|
||||||
animation: pulse 2s ease-in-out infinite;
|
|
||||||
}
|
}
|
||||||
@keyframes pulse {
|
|
||||||
0%,100% { opacity:1; transform:scale(1); }
|
.banner-icon {
|
||||||
50% { opacity:0.5; transform:scale(0.8); }
|
width: 64px;
|
||||||
|
height: 64px;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: rgba(255, 255, 255, 0.15);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.bi-top h1 {
|
|
||||||
margin: 0; font-size: 20px; font-weight: 700;
|
.banner-info h2 {
|
||||||
color: #e8edf3; letter-spacing: 3px;
|
margin: 0 0 4px 0;
|
||||||
}
|
font-size: 22px;
|
||||||
.bi-en {
|
font-weight: 600;
|
||||||
font-size: 10px; color: #2a4560; letter-spacing: 2px; margin-left: 12px;
|
|
||||||
}
|
|
||||||
.bi-clock {
|
|
||||||
font-family: monospace; font-size: 14px; color: #3a5a78;
|
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
.bi-decor-line {
|
|
||||||
height: 1px; flex-shrink: 0;
|
.banner-info p {
|
||||||
background: linear-gradient(90deg, #409eff00, #409eff40, #409eff00);
|
margin: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.total-block {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.total-label {
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.total-value {
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: 700;
|
||||||
|
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.total-unit {
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 工厂卡片 */
|
||||||
|
.factory-row {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.factory-card {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 20px;
|
||||||
|
border-top: 3px solid;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.factory-card:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-icon {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-body {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-count {
|
||||||
|
font-size: 26px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #1a1a1a;
|
||||||
|
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-unit {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #999;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-footer {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-meta {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-percent {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-rank {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #bbb;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 图表卡片 */
|
||||||
|
.chart-row {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chart-card {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 20px;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.chart-card-header {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 主体 */
|
.chart-card-header h3 {
|
||||||
.bi-body {
|
margin: 0;
|
||||||
flex: 1; display: grid;
|
font-size: 16px;
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
font-weight: 600;
|
||||||
gap: 12px;
|
color: #333;
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
.bi-col {
|
|
||||||
display: flex; flex-direction: column; gap: 12px;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 面板 */
|
.chart-container {
|
||||||
.bi-panel {
|
height: 320px;
|
||||||
background: rgba(255,255,255,0.02);
|
}
|
||||||
border: 1px solid rgba(255,255,255,0.05);
|
|
||||||
border-radius: 8px;
|
/* 底部信息区域 */
|
||||||
padding: 14px;
|
.info-row {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-card {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 20px;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot {
|
||||||
|
display: inline-block;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 系统信息列表 */
|
||||||
|
.sys-info-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sys-info-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 14px;
|
||||||
|
padding: 10px 0;
|
||||||
|
border-bottom: 1px solid #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sys-info-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sys-info-icon {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.bi-panel-grow { flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
||||||
.bi-panel-title {
|
|
||||||
font-size: 13px; font-weight: 600; color: #6a8caa;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
display: flex; align-items: center; gap: 8px;
|
|
||||||
}
|
|
||||||
.bi-panel-title i {
|
|
||||||
width: 3px; height: 14px; border-radius: 2px;
|
|
||||||
background: #409eff;
|
|
||||||
box-shadow: 0 0 6px #409eff80;
|
|
||||||
}
|
|
||||||
.bi-chart-fill { flex: 1; min-height: 0; }
|
|
||||||
|
|
||||||
/* 数据总量 */
|
.sys-info-content {
|
||||||
.bi-total-panel { position: relative; overflow: hidden; }
|
display: flex;
|
||||||
.bi-total-num {
|
flex-direction: column;
|
||||||
display: flex; align-items: baseline; gap: 1px;
|
gap: 2px;
|
||||||
margin: 4px 0 6px;
|
|
||||||
}
|
|
||||||
.bi-total-num .digit {
|
|
||||||
font-size: 38px; font-weight: 700; color: #fff;
|
|
||||||
text-shadow: 0 0 20px rgba(64,158,255,0.3);
|
|
||||||
line-height: 1;
|
|
||||||
animation: digitIn 0.6s ease-out both;
|
|
||||||
}
|
|
||||||
@keyframes digitIn {
|
|
||||||
from { opacity: 0; transform: translateY(10px); }
|
|
||||||
to { opacity: 1; transform: translateY(0); }
|
|
||||||
}
|
|
||||||
.bi-total-num .sep { font-size: 24px; color: #2a4560; margin: 0 2px; }
|
|
||||||
.bi-total-num .unit { font-size: 13px; color: #3a5a78; margin-left: 6px; }
|
|
||||||
.bi-total-meta { font-size: 12px; color: #3a5a78; }
|
|
||||||
.bi-total-meta em { color: #409eff; font-style: normal; font-weight: 600; }
|
|
||||||
|
|
||||||
/* 轮播卡片 */
|
|
||||||
.bi-carousel-panel { min-height: 200px; }
|
|
||||||
.bi-carousel { position: relative; }
|
|
||||||
.bi-carousel-card {
|
|
||||||
background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
|
|
||||||
border: 1px solid rgba(255,255,255,0.06);
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 20px 24px;
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.bi-carousel-card::before {
|
|
||||||
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
|
|
||||||
background: var(--accent);
|
|
||||||
box-shadow: 0 0 12px var(--accent);
|
|
||||||
}
|
|
||||||
.bi-cc-rank {
|
|
||||||
font-size: 12px; font-weight: 700; color: var(--accent); opacity: 0.6;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
.bi-cc-name { font-size: 16px; color: #c0cdd8; margin-bottom: 10px; }
|
|
||||||
.bi-cc-value {
|
|
||||||
font-size: 42px; font-weight: 700; color: var(--accent);
|
|
||||||
text-shadow: 0 0 24px var(--accent);
|
|
||||||
line-height: 1; margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
.bi-cc-detail { font-size: 12px; color: #3a5a78; font-family: monospace; margin-bottom: 14px; }
|
|
||||||
.bi-cc-bar {
|
|
||||||
height: 4px; background: rgba(255,255,255,0.04);
|
|
||||||
border-radius: 2px; margin-bottom: 8px; overflow: hidden;
|
|
||||||
}
|
|
||||||
.bi-cc-bar-inner {
|
|
||||||
height: 100%; border-radius: 2px;
|
|
||||||
transition: width 0.8s ease;
|
|
||||||
}
|
|
||||||
.bi-cc-pct { font-size: 13px; color: #5a7a9a; }
|
|
||||||
.bi-cc-pct strong { color: var(--accent); font-size: 15px; }
|
|
||||||
|
|
||||||
/* 轮播动画 */
|
|
||||||
.bi-slide-enter-active { animation: slideIn 0.5s ease-out; }
|
|
||||||
.bi-slide-leave-active { animation: slideOut 0.3s ease-in; }
|
|
||||||
@keyframes slideIn {
|
|
||||||
from { opacity: 0; transform: translateX(30px); }
|
|
||||||
to { opacity: 1; transform: translateX(0); }
|
|
||||||
}
|
|
||||||
@keyframes slideOut {
|
|
||||||
from { opacity: 1; transform: translateX(0); }
|
|
||||||
to { opacity: 0; transform: translateX(-30px); }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bi-carousel-dots {
|
.sys-info-label {
|
||||||
display: flex; justify-content: center; gap: 8px;
|
|
||||||
margin-top: 12px;
|
|
||||||
}
|
|
||||||
.bi-carousel-dots span {
|
|
||||||
width: 8px; height: 8px; border-radius: 50%;
|
|
||||||
background: rgba(255,255,255,0.1);
|
|
||||||
cursor: pointer; transition: all 0.3s;
|
|
||||||
}
|
|
||||||
.bi-carousel-dots span.active {
|
|
||||||
width: 20px; border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 排行 */
|
|
||||||
.bi-rank-list { display: flex; flex-direction: column; gap: 12px; }
|
|
||||||
.bi-rank-item {
|
|
||||||
display: flex; align-items: center; gap: 10px;
|
|
||||||
padding: 6px 8px; border-radius: 6px;
|
|
||||||
transition: all 0.5s ease;
|
|
||||||
}
|
|
||||||
.bi-rank-highlight {
|
|
||||||
background: rgba(64,158,255,0.06);
|
|
||||||
border: 1px solid rgba(64,158,255,0.1);
|
|
||||||
margin: 0 -8px;
|
|
||||||
padding: 6px 16px;
|
|
||||||
}
|
|
||||||
.bi-rank-idx {
|
|
||||||
width: 22px; height: 22px; border-radius: 5px;
|
|
||||||
display: flex; align-items: center; justify-content: center;
|
|
||||||
font-size: 11px; font-weight: 700;
|
|
||||||
background: rgba(255,255,255,0.04); color: #4a6380;
|
|
||||||
}
|
|
||||||
.bi-rank-idx.r1 { background: rgba(64,158,255,0.15); color: #409eff; }
|
|
||||||
.bi-rank-idx.r2 { background: rgba(0,224,161,0.12); color: #00e0a1; }
|
|
||||||
.bi-rank-idx.r3 { background: rgba(245,166,35,0.12); color: #f5a623; }
|
|
||||||
.bi-rank-body { flex: 1; }
|
|
||||||
.bi-rank-name { font-size: 12px; color: #6a8caa; margin-bottom: 5px; }
|
|
||||||
.bi-rank-bar-bg {
|
|
||||||
height: 5px; background: rgba(255,255,255,0.03);
|
|
||||||
border-radius: 3px; overflow: hidden;
|
|
||||||
}
|
|
||||||
.bi-rank-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
|
|
||||||
.bi-rank-val { font-size: 13px; font-weight: 600; color: #c0cdd8; min-width: 52px; text-align: right; }
|
|
||||||
.bi-rank-pct { font-size: 11px; font-weight: 600; min-width: 42px; text-align: right; }
|
|
||||||
|
|
||||||
/* 滚动数据 */
|
|
||||||
.bi-scroll-panel { overflow: hidden; }
|
|
||||||
.bi-scroll-wrap { flex: 1; overflow: hidden; min-height: 0; }
|
|
||||||
.bi-scroll-inner { transition: transform 0.06s linear; }
|
|
||||||
.bi-scroll-row {
|
|
||||||
display: flex; align-items: center; gap: 10px;
|
|
||||||
height: 36px; padding: 0 4px;
|
|
||||||
border-bottom: 1px solid rgba(255,255,255,0.03);
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
}
|
}
|
||||||
.bi-scroll-time { color: #2a4560; font-family: monospace; min-width: 40px; }
|
|
||||||
.bi-scroll-factory { min-width: 80px; font-weight: 500; }
|
|
||||||
.bi-scroll-count { color: #00e0a1; margin-left: auto; font-family: monospace; }
|
|
||||||
|
|
||||||
/* 系统信息 */
|
.sys-info-value {
|
||||||
.bi-sys-panel {
|
font-size: 14px;
|
||||||
padding: 10px 14px;
|
color: #333;
|
||||||
}
|
font-weight: 500;
|
||||||
.bi-sys-row {
|
|
||||||
display: flex; justify-content: space-between;
|
|
||||||
font-size: 12px; color: #3a5a78;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue