This commit is contained in:
花有清香月有阴
2022-02-28 09:11:04 +08:00
parent ec37f652c6
commit 4734c76dff
4 changed files with 31 additions and 31 deletions

View File

@@ -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'
// }
}
})
},