设备列表、电价列表、综合搜索、图表详情优化
This commit is contained in:
@ -105,8 +105,9 @@ export default {
|
||||
//获取站点列表
|
||||
getZdList(){
|
||||
this.searchLoading=true
|
||||
getAllSites().then(response => {
|
||||
return getAllSites().then(response => {
|
||||
this.siteList = response?.data || []
|
||||
if( this.siteList.length>0 ) this.siteId = this.siteList[0].siteId
|
||||
}).finally(() => {this.searchLoading=false})
|
||||
},
|
||||
changeDefaultYear(){
|
||||
@ -114,7 +115,6 @@ export default {
|
||||
},
|
||||
getData(reset=false){
|
||||
reset && this.resetTableData()
|
||||
console.log('湖区====',reset,this.tableData.length,this.tableTotal,this.pageNum);
|
||||
if(!reset && this.tableData.length>=this.tableTotal) return
|
||||
this.loading=true;
|
||||
const date = new Date(this.defaultYear).getFullYear()
|
||||
@ -163,8 +163,10 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.defaultYear = new Date()
|
||||
this.getZdList()
|
||||
this.getData(true)
|
||||
this.loading=true
|
||||
this.getZdList().then(()=>{
|
||||
this.getData(true)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user