|
|
@@ -65,8 +65,8 @@ class IndicatorView extends React.Component {
|
|
|
<div className='row indicator-extra' key={i}>
|
|
|
<div className='cell c-extra'>
|
|
|
<div className='over-wrapper'>
|
|
|
- <span className='til' title={d.name} style={{ color: nameLabelColor }}>{d.name}</span>
|
|
|
- <span className='val' title={d.value} style={{ color: valueLabelColor }}>{d.value === undefined || d.value === null ? '--' : d.value}</span>
|
|
|
+ <span className='til' title={d.name} style={{ color: nameLabelColor }}>{d.name === null ? '空' : d.name}</span>
|
|
|
+ <span className='val' title={d.value} style={{ color: valueLabelColor }}>{d.value === null ? '--' : d.value}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -89,19 +89,19 @@ class IndicatorView extends React.Component {
|
|
|
{
|
|
|
data.map((d, i) => (
|
|
|
<div className={`indicator-box`} key={i} style={{ backgroundColor: boxBackgroundColor }}>
|
|
|
- {d.name && <div className='row indicator-name'>
|
|
|
+ {d.name !== undefined && <div className='row indicator-name'>
|
|
|
<div className='cell c-name'>
|
|
|
- <div className='over-wrapper' title={d.name} style={{ color: nameLabelColor }}>{d.name}</div>
|
|
|
+ <div className='over-wrapper' title={d.name} style={{ color: nameLabelColor }}>{d.name === null ? '空' : d.name}</div>
|
|
|
</div>
|
|
|
</div>}
|
|
|
<div className='row indicator-key'>
|
|
|
<div className='cell c-key'>
|
|
|
- <div className='over-wrapper' title={d.key} style={{ color: keyLabelColor }}>{d.key}</div>
|
|
|
+ <div className='over-wrapper' title={d.key} style={{ color: keyLabelColor }}>{d.key === null ? '空': d.key}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className='row indicator-value'>
|
|
|
<div className='cell c-value'>
|
|
|
- <div className='over-wrapper' title={d.value} style={{ color: valueLabelColor }}>{(d.value === undefined || d.value === null) ? '--' : d.value}</div>
|
|
|
+ <div className='over-wrapper' title={d.value} style={{ color: valueLabelColor }}>{d.value === null ? '--' : d.value}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
{d.others && d.others.length > 0 && this.generateExtra(d.others, extraNameLabelColor, extraValueLabelColor)}
|