fix: 车辆总数 1006 → 1004
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -396,7 +396,7 @@ const ArtboardESG = () => {
|
||||
<div className="between">
|
||||
<div>
|
||||
<div style={{fontSize:11, color:"#5C7A66"}}>车辆总数</div>
|
||||
<div className="mono" style={{fontSize:22, fontWeight:600, color:"#1F8B4C", marginTop:4}}>1006<span style={{fontSize:11, marginLeft:3, color:"#5C7A66", fontWeight:400}}>辆</span></div>
|
||||
<div className="mono" style={{fontSize:22, fontWeight:600, color:"#1F8B4C", marginTop:4}}>1004<span style={{fontSize:11, marginLeft:3, color:"#5C7A66", fontWeight:400}}>辆</span></div>
|
||||
</div>
|
||||
<svg width="34" height="34" viewBox="0 0 40 40" fill="none">
|
||||
<circle cx="20" cy="20" r="18" fill="#DCEFD7"/>
|
||||
@@ -455,7 +455,7 @@ const ArtboardESG = () => {
|
||||
<span style={{fontWeight:600, fontSize:13, color:"#1A2A1F"}}>车型结构分析</span>
|
||||
</div>
|
||||
<div className="mid gap-3" style={{alignItems:"center"}}>
|
||||
<DonutSeg size={130} segments={fleetMix} label="1006"/>
|
||||
<DonutSeg size={130} segments={fleetMix} label="1004"/>
|
||||
<div style={{flex:1, display:"flex", flexDirection:"column", gap:5, fontSize:11}}>
|
||||
{fleetMix.map((f,i) => (
|
||||
<div key={i} className="between">
|
||||
|
||||
@@ -62,9 +62,9 @@ const ArtboardOverview = () => {
|
||||
return c;
|
||||
}, [vehicles]);
|
||||
|
||||
// Display-scale: 管理员视角下,KPI 按实际车队规模放大到 1006 辆 / 892 在线
|
||||
// Display-scale: 管理员视角下,KPI 按实际车队规模放大到 1004 辆 / 892 在线
|
||||
// (部门视角保持真实数字)
|
||||
const FLEET_SIZE = 1006;
|
||||
const FLEET_SIZE = 1004;
|
||||
const FLEET_ONLINE = 892;
|
||||
const scale = !isDeptScoped && scopedCounts.all > 0 ? FLEET_SIZE / scopedCounts.all : 1;
|
||||
const sc = (n) => Math.round(n * scale);
|
||||
|
||||
@@ -214,10 +214,10 @@ const _enrich = (v, i) => {
|
||||
};
|
||||
|
||||
// ── Build VEHICLES ────────────────────────────────────────
|
||||
// 优先使用 vehicles-real.js 提供的 1006 辆真实车辆数据;不存在则回退到合成数据。
|
||||
// 优先使用 vehicles-real.js 提供的 1004 辆真实车辆数据;不存在则回退到合成数据。
|
||||
let VEHICLES;
|
||||
if (window.RAW_VEHICLES && window.RAW_VEHICLES.length) {
|
||||
// 从 xlsx 抽取的 1006 辆真实数据
|
||||
// 从 xlsx 抽取的 1004 辆真实数据
|
||||
// 前 12 辆叠加乍浦港地图坐标,让总览地图保持原本的演示态
|
||||
const RAW = window.RAW_VEHICLES;
|
||||
const MAP_OVERLAY = [
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user