From 4d41c60c58fc1253f96a2cce92ee50b1c142a07d Mon Sep 17 00:00:00 2001 From: ljx <864490211@qq.com> Date: Fri, 8 Aug 2025 17:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A0=A1=E5=BA=A7=E3=80=91=E3=80=90?= =?UTF-8?q?=E6=81=92=E9=80=9A=E8=BE=BEBI=E3=80=91=E6=81=92=E9=80=9A?= =?UTF-8?q?=E8=BE=BE=E6=95=B0=E5=AD=97=E5=8C=96=E6=99=BA=E8=83=BD=E5=B7=A5?= =?UTF-8?q?=E5=8E=82=E8=B4=A8=E9=87=8F=E7=9C=8B=E6=9D=BF=20q=3D6=20?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=E7=9C=9F=E5=AE=9E=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/components/baozuo-demo2/CenterCmp.vue | 2 +- src/components/baozuo-demo2/LeftChart2.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0eec070..29e1513 100644 --- a/src/App.vue +++ b/src/App.vue @@ -39,7 +39,7 @@ export default { window.htd_bidata = testRes; this.currentComponent = 'datav3'; } else if (this.dataType == '6') { - api.post2('/api/web/getBiData', ["yx_v_llzj", "yx_v_cpzj", "yx_v_zlkb", "yx_v_cpzj", "yx_v_byblv", "yx_v_byblzb"]).then(res => { + api.post2('/api/web/getBiData', ["yx_v_llzj", "yx_v_cpzj", "yx_v_zlkb", "yx_v_bycpzj", "yx_v_byblv", "yx_v_byblzb"]).then(res => { console.log(res) window.htd_bidata = res; this.currentComponent = 'datav2'; diff --git a/src/components/baozuo-demo2/CenterCmp.vue b/src/components/baozuo-demo2/CenterCmp.vue index 041cfc0..d1d6d2d 100644 --- a/src/components/baozuo-demo2/CenterCmp.vue +++ b/src/components/baozuo-demo2/CenterCmp.vue @@ -200,7 +200,7 @@ export default { }, created(){ if(this.dataType == '6'){ - this.rankData = testRes.data.yx_v_cpzj; + this.rankData = testRes.data.yx_v_bycpzj; this.middleTopData2 = testRes.data.yx_v_zlkb; this.rightChartData2 = testRes.data.yx_v_llzj; } diff --git a/src/components/baozuo-demo2/LeftChart2.vue b/src/components/baozuo-demo2/LeftChart2.vue index 235b33b..946c884 100644 --- a/src/components/baozuo-demo2/LeftChart2.vue +++ b/src/components/baozuo-demo2/LeftChart2.vue @@ -50,7 +50,7 @@ export default { createData() { // 模拟数据(每个柱子的总高度,单位:%) - const rawData =this.dataType == '6'?[95, 100, 98, 99, 98, 100] : [95, 92, 98, 95, 98, 90]; // P1-P6的合格率数据 + const rawData =this.dataType == '6'?testRes.data.yx_v_cpzj.map(item=>item['合格率']) : [95, 92, 98, 95, 98, 90]; // P1-P6的合格率数据 // 将数据按 10% 分段,生成堆叠数据 const generateStackData = (value) => {