优化
This commit is contained in:
@@ -200,7 +200,8 @@ export default {
|
||||
customerId: '',
|
||||
// year: ''
|
||||
},
|
||||
toast:null
|
||||
toast:null,
|
||||
doDebounce: null,
|
||||
}
|
||||
},
|
||||
components:{
|
||||
@@ -248,6 +249,9 @@ export default {
|
||||
// },
|
||||
created() {
|
||||
this.userLevel()
|
||||
this.doDebounce = debounce(function () {
|
||||
this.getGenerateReport()
|
||||
}, 5000, true)
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
@@ -429,9 +433,9 @@ export default {
|
||||
this.option1 = arr
|
||||
},
|
||||
// 重新生成
|
||||
generateReport:debounce(function () {
|
||||
this.getGenerateReport()
|
||||
}, 5000, true),
|
||||
generateReport(){
|
||||
this.doDebounce()
|
||||
},
|
||||
async getGenerateReport() {
|
||||
let data = {
|
||||
customerId:
|
||||
|
||||
Reference in New Issue
Block a user