feat(history): add energy price history feature

This commit is contained in:
2026-08-02 11:29:58 +02:00
parent 1511de31a8
commit f70f3ab054
20 changed files with 262 additions and 52 deletions
+20 -2
View File
@@ -1,5 +1,23 @@
<script setup lang="ts"></script>
<script setup lang="ts">
import { onMounted, ref, watch } from 'vue';
import useHistoryViewModel from '../viewmodels/HistoryViewModel';
import moment from 'moment';
const model = useHistoryViewModel();
const date = ref<Date>();
onMounted(() => {
model.getHistoryData(moment().format('YYYY-MM-DD'));
});
watch(date, (value) => {
model.getHistoryData(moment(value).format('YYYY-MM-DD'));
});
</script>
<template>
<div></div>
<div>
<input type="date" v-model="date" />
</div>
</template>