切换日期,增加loading效果
This commit is contained in:
parent
421e869826
commit
26cc2b6a54
|
@ -139,7 +139,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
spinning:false,
|
||||
spinning: false,
|
||||
emailStatus: null,
|
||||
emailTotal: {},
|
||||
emailSpace: {},
|
||||
|
@ -181,14 +181,6 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.getEmailList()
|
||||
// if (this.$route.query.emailId) {
|
||||
// this.currId = this.emailId = this.$route.query.emailId
|
||||
// this.getEmailStatus()
|
||||
// this.getEmailTotal()
|
||||
// this.getEmailSpace()
|
||||
// this.getEmailToday()
|
||||
// this.getEmailStatistics()
|
||||
// }
|
||||
},
|
||||
watch: {
|
||||
emailId(newValue, oldValue) {
|
||||
|
@ -230,11 +222,13 @@ export default {
|
|||
this.emailId = val
|
||||
},
|
||||
onDateChange(val) {
|
||||
this.spinning = true
|
||||
this.areaMailLine.clear()
|
||||
this.startDate = this.getBeforeDate(val - 1)
|
||||
this.getEmailStatistics()
|
||||
},
|
||||
onRangeDateChange(date, dateString) {
|
||||
this.spinning = true
|
||||
this.areaMailLine.clear()
|
||||
this.startDate = dateString[0]
|
||||
this.endDate = dateString[1]
|
||||
|
@ -387,6 +381,7 @@ export default {
|
|||
})
|
||||
},
|
||||
getEmailStatistics() {
|
||||
this.spinning = false
|
||||
let params = {
|
||||
emailId: this.currId,
|
||||
startDate: this.startDate,
|
||||
|
|
Loading…
Reference in New Issue
Block a user