|
@@ -61,20 +61,20 @@
|
|
|
// console.log('page',page)
|
|
|
//联网加载数据
|
|
|
// let keyword = this.tabs[this.tabIndex]?.text;
|
|
|
- let type = '';
|
|
|
- if(this.deviceType==1){
|
|
|
- type=1
|
|
|
- }else if(this.deviceType==2){
|
|
|
- type=1
|
|
|
- }else if(this.deviceType==3){
|
|
|
- type=2
|
|
|
- }
|
|
|
+ // let type = '';
|
|
|
+ // if(this.deviceType==1){
|
|
|
+ // type=1
|
|
|
+ // }else if(this.deviceType==2){
|
|
|
+ // type=2
|
|
|
+ // }else if(this.deviceType==3){
|
|
|
+ // type=3
|
|
|
+ // }
|
|
|
let params ={
|
|
|
- type:type,
|
|
|
+ type:this.deviceType,
|
|
|
pageNum:page.num,
|
|
|
pageSize:page.size
|
|
|
}
|
|
|
- this.$u.api.getRoadAllList(params).then(curPageData=>{
|
|
|
+ this.$u.api.getRoadList(params).then(curPageData=>{
|
|
|
console.log('curPageData',curPageData)
|
|
|
//联网成功的回调,隐藏下拉刷新和上拉加载的状态;
|
|
|
// this.mescroll.endSuccess(curPageData.data.total);
|