|
|
@ -13,6 +13,10 @@ const icon = [ |
|
|
|
'assets/images/quanju/lupai.png', |
|
|
|
'assets/images/quanju/zerenpai.png' |
|
|
|
] |
|
|
|
|
|
|
|
import { unitList } from '../../../../../fillion/containers/assess' |
|
|
|
|
|
|
|
const fuckoff = true |
|
|
|
const RightCenter = (props) => { |
|
|
|
const { highwaysData, dispatch } = props |
|
|
|
|
|
|
@ -77,7 +81,7 @@ const RightCenter = (props) => { |
|
|
|
option={{ |
|
|
|
xAxis: { |
|
|
|
type: 'category', |
|
|
|
data: data.map(d => d.unit), |
|
|
|
data: fuckoff ? data.map(d => d.unit) : unitList, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
@ -93,7 +97,14 @@ const RightCenter = (props) => { |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
data: data.map(d => d.totalPoints), |
|
|
|
data: fuckoff ? data.map(d => d.totalPoints) : unitList.map(u => { |
|
|
|
let corPoint = data.find(d => d.unit === u) |
|
|
|
if (corPoint) { |
|
|
|
return corPoint.totalPoints |
|
|
|
} else { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
}), |
|
|
|
type: 'bar', |
|
|
|
showBackground: true, |
|
|
|
backgroundStyle: { |
|
|
|