|
@@ -61,7 +61,7 @@
|
|
|
</div>
|
|
|
<van-list
|
|
|
v-model='item.loading'
|
|
|
- v-show='!item.loadMore && item.list.length'
|
|
|
+ v-show='!item.loadMore && item.list && item.list.length'
|
|
|
:finished='item.finished'
|
|
|
:immediate-check='false'
|
|
|
@load='locationOnLoad(item,index)'
|
|
@@ -231,8 +231,8 @@ export default {
|
|
|
plazaId: this.plazaId,
|
|
|
},
|
|
|
postParams: {
|
|
|
- locflList: ['5201', '5204', '5209'], //低压柜
|
|
|
// location: '',
|
|
|
+ locflList: ['5201', '5204', '5209'], //低压柜
|
|
|
pageable: {
|
|
|
pageNumber: 1,
|
|
|
pageSize: this.innerSize,
|
|
@@ -254,8 +254,11 @@ export default {
|
|
|
console.log(error)
|
|
|
}
|
|
|
// mockData
|
|
|
- res = require('./mockData').queryDygjcxlineData
|
|
|
- res.data.map((item, index, arr) => {
|
|
|
+ // res = require('./mockData').queryDygjcxlineData
|
|
|
+ if (!res?.data?.data) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ res.data.data.map((item, index, arr) => {
|
|
|
if (item?.count > 5) {
|
|
|
// console.log(item)
|
|
|
arr[index] = {
|
|
@@ -271,8 +274,8 @@ export default {
|
|
|
item.loadMore = false
|
|
|
}
|
|
|
})
|
|
|
- this.list = [...this.list, ...res.data]
|
|
|
- this.count = res.count
|
|
|
+ this.list = [...this.list, ...res.data.data]
|
|
|
+ this.count = res.data.count
|
|
|
},
|
|
|
|
|
|
/**
|