feat : 对接用电量/省电量数据及新增用电量echarts图表模块

This commit is contained in:
2024-02-28 22:18:55 +08:00
parent a8b5e2c26f
commit 9afde77c00
9 changed files with 378 additions and 122 deletions

View File

@@ -14,13 +14,7 @@
</template>
<script setup>
const props = defineProps({
time: {
type: Date,
default: '',
},
});
const selectButton = ref(props.time);
const selectButton = ref('');
const emit = defineEmits(["update:modelValue", "select"]);
const disabledDate = (time) => {
// return time.getTime() > Date.now()//不能选择之后的数据
@@ -34,6 +28,12 @@ const dataSelect = (val) => {
emit("update:modelValue", val);
emit("select", val);
};
const clearData = () => {
selectButton.value=''
}
defineExpose({
clearData
})
</script>
<style scoped>