|
|
@ -175,7 +175,7 @@ export default { |
|
|
|
{ title: "上报类型", coulmn: 'reportTypeName' }, |
|
|
|
{ title: "上报人", coulmn: 'reportUserName' }, |
|
|
|
{ title: "上报时间", coulmn: 'reportTime' }, |
|
|
|
{ title: "需求人", coulmn: 'gridName' }, |
|
|
|
{ title: "需求人", coulmn: 'demandUserName' }, |
|
|
|
{ title: "服务方", coulmn: 'serviceName' }, |
|
|
|
{ title: "服务时间", coulmn: 'wantServiceTime' }, |
|
|
|
], |
|
|
@ -316,7 +316,7 @@ export default { |
|
|
|
this.categoryList = categoryList |
|
|
|
let xData = categoryList.map(item => item.categoryName) |
|
|
|
let yData = [] |
|
|
|
yData = legend.map(item => { |
|
|
|
yData = legend.map((item, index) => { |
|
|
|
return { |
|
|
|
name: item.legendName, |
|
|
|
type: 'bar', |
|
|
@ -328,9 +328,12 @@ export default { |
|
|
|
emphasis: { |
|
|
|
focus: 'series' |
|
|
|
}, |
|
|
|
data: categoryList.map(n => n.total) |
|
|
|
data: categoryList.map(n => { |
|
|
|
return n.detail[index].serviceDemandTotal |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
console.log('yData', yData) |
|
|
|
|
|
|
|
this.initCharts(xData, yData) |
|
|
|
this.getServiceList(orgId, orgType, data.categoryList[0].categoryCode) |
|
|
|