This commit is contained in:
jiangyinzhi
2024-11-14 11:27:16 +08:00
parent da36f860ca
commit 455c8b58da
19 changed files with 182 additions and 43 deletions
+8 -4
View File
@@ -183,7 +183,8 @@ export default {
taskId: '',
customerId: '',
// year: ''
}
},
doDebounce: null,
}
},
beforeDestroy() {
@@ -220,6 +221,9 @@ export default {
created() {
this.level = sessionStorage.getItem('level')
this.getEnergyReportInfo()
this.doDebounce = debounce(function () {
this.getGenerateReport()
}, 5000, true)
},
methods: {
...mapMutations('report', ['setEnergyReportInfo']),
@@ -416,9 +420,9 @@ export default {
this.$router.push({path: '/energyReport'})
},
// 重新生成
generateReport:debounce(function () {
this.getGenerateReport()
}, 5000, true),
generateReport(){
this.doDebounce()
},
async getGenerateReport() {
let data = {
customerId: this.energyData.customerId,