策略
This commit is contained in:
@ -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(){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user