Browse Source

feat:文案调整;

fuyang
YOU 9 months ago
parent
commit
f2a928f87a
  1. 5
      src/views/dashboard/main.vue

5
src/views/dashboard/main.vue

@ -83,6 +83,7 @@ export default defineComponent({
label: '年碳排放量', label: '年碳排放量',
value: '--', value: '--',
unit: 'tCO₂', unit: 'tCO₂',
toFixed: 2,
}, },
{ {
key: 'monthConsumptionValue', key: 'monthConsumptionValue',
@ -253,7 +254,7 @@ export default defineComponent({
cb: (res: any) => { cb: (res: any) => {
if (utilService.isValidObject(res)) { if (utilService.isValidObject(res)) {
for (const item of state.pop) { for (const item of state.pop) {
item.value = res[item.key] ?? '--';
item.value = res[item.key] ? (item.toFixed ? utilService.number2Fixed(res[item.key]) : res[item.key]) : '--';
} }
} }
}, },
@ -370,7 +371,7 @@ export default defineComponent({
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #000b40;
background: #000b31;
.adapter { .adapter {
.boards-container { .boards-container {

Loading…
Cancel
Save