车辆管理,司机管理代码优化
This commit is contained in:
@ -83,12 +83,12 @@ export default {
|
||||
mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
this.supplierType = urlParams.get('supplierType');
|
||||
this.getDriverList()
|
||||
// this.getDriverList()
|
||||
},
|
||||
methods:{
|
||||
async onLoad(){
|
||||
this.pageNum++;
|
||||
await this.getDriverList()
|
||||
this.pageNum++;
|
||||
// 加载状态结束
|
||||
this.loading1 = false;
|
||||
// 数据全部加载完成
|
||||
@ -97,6 +97,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onRefresh() {
|
||||
this.pageNum=1;
|
||||
this.getDriverList()
|
||||
setTimeout(() => {
|
||||
this.$toast('刷新成功');
|
||||
|
Reference in New Issue
Block a user