This commit is contained in:
白菜
2025-07-13 16:13:45 +08:00
parent be1fb382ff
commit d0a31f9ee8
9 changed files with 521 additions and 258 deletions

View File

@ -1,12 +1,14 @@
<template>
<cl-container :hideSettingBtn="true">
<template v-slot:default>
<temp-table/>
<time-setting/>
<temp-power-chart/>
</template>
</cl-container>
<!-- <cl-container :hideSettingBtn="true">-->
<!-- <template v-slot:default>-->
<div>
<temp-table ref="tempTable" @updateTimeSetting="updateTimeSetting"/>
<time-setting ref="timeSetting"/>
<temp-power-chart ref="tomePowerChart"/>
</div>
<!-- </template>-->
<!-- </cl-container>-->
</template>
@ -24,6 +26,25 @@ export default {
}
},
methods:{
init(){
this.$nextTick(() => {
this.$refs.tempTable.init()
this.$refs.timeSetting.init()
this.$refs.tomePowerChart.init()
})
},
changeSiteId(){
this.$nextTick(() => {
this.$refs.tempTable.changeSiteId()
this.$refs.timeSetting.changeSiteId()
this.$refs.tomePowerChart.changeSiteId()
})
},
//在编辑、删除模板后更新时间配置、echart的数据todo
updateTimeSetting(){
this.$refs.timeSetting.init()
this.$refs.tomePowerChart.init()
}
},
mounted(){