【堡座】【恒通达BI】恒通达数字化智能工厂质量看板 q=6 接入真实数据

This commit is contained in:
ljx 2025-08-08 17:06:34 +08:00
parent 3d74a46342
commit 4d41c60c58
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ export default {
window.htd_bidata = testRes; window.htd_bidata = testRes;
this.currentComponent = 'datav3'; this.currentComponent = 'datav3';
} else if (this.dataType == '6') { } 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) console.log(res)
window.htd_bidata = res; window.htd_bidata = res;
this.currentComponent = 'datav2'; this.currentComponent = 'datav2';

View File

@ -200,7 +200,7 @@ export default {
}, },
created(){ created(){
if(this.dataType == '6'){ 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.middleTopData2 = testRes.data.yx_v_zlkb;
this.rightChartData2 = testRes.data.yx_v_llzj; this.rightChartData2 = testRes.data.yx_v_llzj;
} }

View File

@ -50,7 +50,7 @@ export default {
createData() { 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% // 10%
const generateStackData = (value) => { const generateStackData = (value) => {