数据处理
This commit is contained in:
@@ -31,14 +31,14 @@
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.AutoComplete,AMap.PlaceSearch,AMap.Geolocation,AMap.Geocoder,AMap.Marker,AMap.Driving"></script>
|
||||
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
||||
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
|
||||
<script>
|
||||
window.selfLink = window.location.href;
|
||||
window.selfSearch = window.location.search;
|
||||
</script>
|
||||
<script>
|
||||
// VConsole 默认会挂载到 `window.VConsole` 上
|
||||
let vConsole = new window.VConsole();
|
||||
// let vConsole = new window.VConsole();
|
||||
(function (doc, win) {
|
||||
// console.log("==window.location.pathname===",window.location.pathname)
|
||||
let docEl = doc.documentElement
|
||||
|
||||
@@ -212,7 +212,9 @@ export default {
|
||||
},
|
||||
async onLoad(){
|
||||
await this.getDriverList()
|
||||
if (this.total>10){
|
||||
this.pageNum++;
|
||||
}
|
||||
// 加载状态结束
|
||||
this.loading = false;
|
||||
// 数据全部加载完成
|
||||
@@ -238,7 +240,6 @@ export default {
|
||||
}
|
||||
},
|
||||
async getDriverList(){
|
||||
this.driverList=[]
|
||||
let res = await driverList({
|
||||
pageNum:this.pageNum,
|
||||
pageSize:this.pageSize,
|
||||
|
||||
@@ -250,7 +250,9 @@ export default {
|
||||
},
|
||||
async onLoad(){
|
||||
await this.getVehicleList()
|
||||
if(this.total>10){
|
||||
this.pageNum++;
|
||||
}
|
||||
// 加载状态结束
|
||||
this.loading = false;
|
||||
// 数据全部加载完成
|
||||
|
||||
Reference in New Issue
Block a user