This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-04-28 16:55:21 +08:00
parent 253f182370
commit aa2ac270fc
4 changed files with 27 additions and 10 deletions

View File

@@ -98,6 +98,7 @@ export default {
_cities[idx].value = v ?? 0;
}
);
// 删掉凯盛光伏
_cities.splice(4, 1);
return _cities;
},

View File

@@ -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],

View File

@@ -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() {