|
@@ -358,9 +358,9 @@ export default defineComponent({
|
|
|
<div class={styles.headLabelWrap}>
|
|
|
{activeData.colors.map((c, cIndex) => {
|
|
|
return (
|
|
|
- <div class={styles.headLabel} style={{display: c.select && activeData.sum[c.key] ? '' : 'none'}}>
|
|
|
+ <div class={styles.headLabel} style={{display: c.select ? '' : 'none'}}>
|
|
|
<div class={styles.headLabelDot} style={{background: c.color, color: c.color}}></div>
|
|
|
- <div style={{color: c.color}}>{activeData.sum[c.key]}{cIndex === 0 ? '%' : '人'}</div>
|
|
|
+ <div style={{color: c.color}}>{activeData.sum[c.key] || 0}{cIndex === 0 ? '%' : '人'}</div>
|
|
|
</div>
|
|
|
)
|
|
|
})}
|