27592
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26" />
|
||||
<!-- <u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26" /> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
subTitle: '',
|
||||
current: 0,
|
||||
list: [],
|
||||
loadingStatus: 'loadmore',
|
||||
// loadingStatus: 'loadmore',
|
||||
}
|
||||
},
|
||||
|
||||
@@ -38,7 +38,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
getList() {
|
||||
this.loadingStatus = 'loading'
|
||||
// this.loadingStatus = 'loading'
|
||||
this.$instance
|
||||
.post(`/app/approval-process-def/list-xcx?processType=2`, null, {
|
||||
params: {
|
||||
@@ -48,10 +48,10 @@ export default {
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
if (!res.data.records.length) {
|
||||
this.loadingStatus = 'nomore'
|
||||
return false
|
||||
}
|
||||
// if (!res.data.records.length) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// return false
|
||||
// }
|
||||
|
||||
const data = res.data.records.map((item) => {
|
||||
return item
|
||||
@@ -60,11 +60,11 @@ export default {
|
||||
|
||||
this.list.push(...data)
|
||||
this.current = this.current + 1
|
||||
this.loadingStatus = 'loadmore'
|
||||
// this.loadingStatus = 'loadmore'
|
||||
|
||||
if (this.list.length < 10) {
|
||||
this.loadingStatus = 'nomore'
|
||||
}
|
||||
// if (this.list.length < 10) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// }
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user