1
This commit is contained in:
@@ -98,6 +98,7 @@ export default {
|
||||
_cities[idx].value = v ?? 0;
|
||||
}
|
||||
);
|
||||
// 删掉凯盛光伏
|
||||
_cities.splice(4, 1);
|
||||
return _cities;
|
||||
},
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<template>
|
||||
<div class="double-ring-chart">
|
||||
<div ref="chart" class="double-ring-chart__container"></div>
|
||||
<!-- :style="{ height: vHeight + 'vh' }" -->
|
||||
<!-- style="{ height: vHeight + 'vh' }" -->
|
||||
<div class="double-ring-chart__legend">
|
||||
<div v-for="item in legendItems" :key="item.label" class="legend-item">
|
||||
<span class="legend-item__label">{{ item.label }}</span>
|
||||
@@ -75,6 +75,7 @@ export default {
|
||||
getter.current[this.factoryId],
|
||||
];
|
||||
}
|
||||
// [100, 200, 200]
|
||||
return [
|
||||
getter.previous[this.factoryId],
|
||||
getter.current[this.factoryId],
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<h2>{{ info.companyName }}</h2>
|
||||
<ul>
|
||||
<li v-for="item in info.items" :key="item.label">
|
||||
{{ item.label }} {{ item.value | currency }}
|
||||
{{ item.label }} {{ item.value | numberFilter }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -35,8 +35,12 @@ export default {
|
||||
},
|
||||
},
|
||||
filters: {
|
||||
currency(value) {
|
||||
return value.toLocaleString();
|
||||
numberFilter(value) {
|
||||
if (value != null && !isNaN(parseInt(value))) {
|
||||
return parseInt(value).toLocaleString();
|
||||
} else {
|
||||
return '-';
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user