|
|
@@ -11,7 +11,7 @@
|
|
|
<ul>
|
|
|
<li v-for="v in legends" :key="v.type">
|
|
|
{{ v.type }}
|
|
|
- <span :style="{ background: v.color }"></span>
|
|
|
+ <span :style="{ background: v.legendColor }"></span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -29,21 +29,25 @@ export default {
|
|
|
{
|
|
|
type: '无录像',
|
|
|
color: 'red',
|
|
|
+ legendColor: 'red',
|
|
|
dataPropName: 'allLostDates'
|
|
|
},
|
|
|
{
|
|
|
type: '部分有录像',
|
|
|
- color: 'orange',
|
|
|
+ color: 'orange',//#dd6b20
|
|
|
+ legendColor: '#dd6b20',
|
|
|
dataPropName: 'partialLossDates'
|
|
|
},
|
|
|
{
|
|
|
type: '正常',
|
|
|
- color: 'green',
|
|
|
+ color: 'green', // #38a169
|
|
|
+ legendColor: '#38a169',
|
|
|
dataPropName: 'fullDates'
|
|
|
},
|
|
|
{
|
|
|
type: '未知',
|
|
|
color: 'gray',
|
|
|
+ legendColor: 'gray',
|
|
|
dataPropName: 'unknownDates'
|
|
|
}
|
|
|
]
|