修复bug

This commit is contained in:
weipengfei 2023-08-04 17:55:10 +08:00
parent b7bd015b22
commit 2e7f28d0ce
2 changed files with 16 additions and 11 deletions

View File

@ -39,6 +39,7 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
// z-index: 9999999; // z-index: 9999999;
z-index: 1;
width: 100%; width: 100%;
border-radius: 0; border-radius: 0;
color: #fff; color: #fff;

View File

@ -94,19 +94,23 @@
}, },
methods: { methods: {
async loadAreaManager(){ async loadAreaManager(){
if(this.loadConfig.status=="nomore")return; try{
this.loadConfig.status="loading" if(this.loadConfig.status=="nomore")return;
let res = await companyAreaManager({ this.loadConfig.status="loading"
page: this.loadConfig.page, let res = await companyAreaManager({
limit: this.loadConfig.limit page: this.loadConfig.page,
}) limit: this.loadConfig.limit
this.loadConfig.status="loadmore" })
if(res.data.data.length<this.loadConfig.limit){ this.loadConfig.status="loadmore"
if(res.data.data.length<this.loadConfig.limit){
this.loadConfig.status="nomore"
}else {
this.loadConfig.page++;
}
this.areaManagerList = [...this.areaManagerList, ...res.data?.data]
}catch(e){
this.loadConfig.status="nomore" this.loadConfig.status="nomore"
}else {
this.loadConfig.page++;
} }
this.areaManagerList = [...this.areaManagerList, ...res.data?.data]
}, },
// //
callUp(phone) { callUp(phone) {