重庆bug修改
This commit is contained in:
parent
f65bcec13d
commit
b1a77db6b9
|
|
@ -256,6 +256,9 @@ import { basePath } from '../../public'
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageTotal: 0,
|
||||
showLoading: false,
|
||||
allChecked: false,
|
||||
examFormData: {
|
||||
|
|
@ -592,18 +595,21 @@ import { basePath } from '../../public'
|
|||
let that = this
|
||||
that.showLoading = true
|
||||
that.$api.fetchExam.fetchTrueExamListCq({
|
||||
souceBy: 1
|
||||
souceBy: 0,
|
||||
pageNum: that.pageNum,
|
||||
pageSize: that.pageSize
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
if (res.data.data.length == 0) {
|
||||
that.pageTotal = res.data.data.total
|
||||
if (res.data.data.rows.length == 0) {
|
||||
that.showLoading = false
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未查询到相关数据!'
|
||||
})
|
||||
} else {
|
||||
that.fetchMaterialList = res.data.data.rows
|
||||
that.fetchMaterialList = [...that.fetchMaterialList, ...res.data.data.rows]
|
||||
that.showLoading = false
|
||||
console.log(that.fetchMaterialList);
|
||||
}
|
||||
|
|
@ -644,7 +650,13 @@ import { basePath } from '../../public'
|
|||
}
|
||||
if (that.roles.includes('admin')) that.roles = ['admin', 'fgs', 'sgb', 'ajb', 'jjfgs', 'tsfgs']
|
||||
that.initFetch()
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
console.log(this.fetchMaterialList, this.pageTotal);
|
||||
if (this.fetchMaterialList.length >= this.pageTotal) return;
|
||||
this.pageNum++
|
||||
this.initFetch()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue