资料中心 - loading

This commit is contained in:
yanyizhou
2021-12-20 10:15:57 +08:00
parent ddba77a8fb
commit c967003fdb
@@ -309,6 +309,7 @@ export default {
this.searchInfo() this.searchInfo()
}, },
searchInfo() { searchInfo() {
this.loading = true
this.dataCenterSearch.startDataUploadTime = this.dataCenterSearch.dataUploadTime[0] this.dataCenterSearch.startDataUploadTime = this.dataCenterSearch.dataUploadTime[0]
this.dataCenterSearch.endDataUploadTime = this.dataCenterSearch.dataUploadTime[1] this.dataCenterSearch.endDataUploadTime = this.dataCenterSearch.dataUploadTime[1]
this.$http.get('fileMaterialCenter/file-material', this.dataCenterSearch, { this.$http.get('fileMaterialCenter/file-material', this.dataCenterSearch, {
@@ -316,8 +317,10 @@ export default {
}, res => { }, res => {
this.dataCenterTable = res.data.records this.dataCenterTable = res.data.records
this.dataCenterSearch.total = res.data.total this.dataCenterSearch.total = res.data.total
this.loading = false
}, e => { }, e => {
console.log(e) console.log(e)
this.loading = false
}) })
}, },
clearSearch() { clearSearch() {