报表
This commit is contained in:
parent
b180bac226
commit
c7205e32a3
@ -107,6 +107,7 @@ export default {
|
||||
return {
|
||||
otherProps: [],
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user