修复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;
left: 0;
// z-index: 9999999;
z-index: 1;
width: 100%;
border-radius: 0;
color: #fff;

View File

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