【堡座】【恒通达BI】恒通达数字化智能工厂质量看板 q=6 接入真实数据
This commit is contained in:
parent
3d74a46342
commit
4d41c60c58
|
|
@ -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';
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue