This commit is contained in:
‘937886381’ 2024-06-21 16:17:25 +08:00
parent b180bac226
commit c7205e32a3

View File

@ -106,7 +106,8 @@ export default {
data() {
return {
otherProps: [],
title:'',
title: '',
currentMenu:'邯郸',
listQuery: {
start: undefined,
end: undefined,
@ -547,15 +548,16 @@ export default {
})
})
})
if (res.data[0].list.length != 0) {
this.chartMsg.xData.push(res.data[0].list[0].reportTimep + '目标')
if (this.listQuery.date === 0 || this.listQuery.date === 1 || this.listQuery.date === 2) {
this.otherProps.push({
label: res.data[0].list[0].reportTimep + '目标',
prop: 'dayData'
})
dataArr[0]['dayData'] = res.data[0].chipTarget
dataArr[1]['dayData'] = res.data[0].standTarget
dataArr[2]['dayData'] = res.data[0].conversionEfficiencyTarget
dataArr[0]['dayData'] = res.data[0].list[0].chipTarget
dataArr[1]['dayData'] = res.data[0].list[0].standTarget
dataArr[2]['dayData'] = res.data[0].list[0].conversionEfficiencyTarget
}
if (this.listQuery.date === 2 || this.listQuery.date === 3) {
this.otherProps.push({
@ -656,6 +658,10 @@ export default {
})
}
}
} else {
this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = []
}
// for (let i in dataArr[3]) {
// this.chartMsg.series[3].name = dataArr[3]['item']
// if (i.search('value') === 0) {
@ -665,7 +671,7 @@ export default {
// })
// }
// }
this.tableData = dataArr
this.tableData =res.data[0].list.length !== 0? dataArr : []
},
_setTableHeight() {
this.tableH = this.tableHeight(137) / 2 - 70;