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) => {