|
@@ -315,7 +315,7 @@
|
|
|
|
|
|
|
|
// 点击改变是否观察或者处理记录
|
|
// 点击改变是否观察或者处理记录
|
|
|
to(data) {
|
|
to(data) {
|
|
|
- if(this.status = 'loading'){
|
|
|
|
|
|
|
+ if (this.status == 'loading') {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.key = ''
|
|
this.key = ''
|
|
@@ -323,7 +323,9 @@
|
|
|
this.tobu = data
|
|
this.tobu = data
|
|
|
this.listData = []
|
|
this.listData = []
|
|
|
this.status = 'loading'
|
|
this.status = 'loading'
|
|
|
- this.getList()
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.getList()
|
|
|
|
|
+ }, 1000)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
cancelT(data) {
|
|
cancelT(data) {
|
|
@@ -422,15 +424,17 @@
|
|
|
|
|
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
|
// console.log(this.page, this.total)
|
|
// console.log(this.page, this.total)
|
|
|
- if (this.total - this.page * 5 <= 0) {
|
|
|
|
|
- this.status = 'nomore'
|
|
|
|
|
- // console.log('ww')
|
|
|
|
|
- } else {
|
|
|
|
|
- // console.log('w')
|
|
|
|
|
- this.status = 'loading';
|
|
|
|
|
- this.page++
|
|
|
|
|
- this.getList()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ if (this.total - this.page * 5 <= 0) {
|
|
|
|
|
+ this.status = 'nomore'
|
|
|
|
|
+ // console.log('ww')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // console.log('w')
|
|
|
|
|
+ this.status = 'loading';
|
|
|
|
|
+ this.page++
|
|
|
|
|
+ this.getList()
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 100)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|