bug提交zzy
This commit is contained in:
parent
d483fcff4c
commit
f0b4888014
|
|
@ -13,7 +13,7 @@
|
||||||
"type" : "uniCloud"
|
"type" : "uniCloud"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -458,9 +458,8 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
scrolltolower() {
|
scrolltolower() {
|
||||||
this.queryParams.limit = 10
|
|
||||||
//判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕
|
//判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕
|
||||||
if (this.queryParams.page * this.queryParams.limit >= this.recordsTotal) {
|
if (this.queryParams.limit >= this.recordsTotal) {
|
||||||
uni.$u.toast('数据加载完毕')
|
uni.$u.toast('数据加载完毕')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -468,14 +467,16 @@ export default {
|
||||||
//页码+1,调用获取数据的方法获取第二页数据
|
//页码+1,调用获取数据的方法获取第二页数据
|
||||||
if (this.queryParams.page == 0) {
|
if (this.queryParams.page == 0) {
|
||||||
this.queryParams.offset = 0
|
this.queryParams.offset = 0
|
||||||
|
this.queryParams.limit = 10
|
||||||
} else {
|
} else {
|
||||||
this.queryParams.offset = this.queryParams.page * this.queryParams.limit
|
this.queryParams.limit = this.queryParams.page * 10
|
||||||
}
|
}
|
||||||
//此处调用自己获取数据列表的方法
|
//此处调用自己获取数据列表的方法
|
||||||
this.getListData()
|
this.getListData()
|
||||||
},
|
},
|
||||||
searchList() {
|
searchList() {
|
||||||
this.queryParams.page = 0
|
this.queryParams.page = 0
|
||||||
|
this.queryParams.limit = 10
|
||||||
this.companyInfoList = []
|
this.companyInfoList = []
|
||||||
this.getListData()
|
this.getListData()
|
||||||
},
|
},
|
||||||
|
|
@ -505,11 +506,11 @@ export default {
|
||||||
success: res => {
|
success: res => {
|
||||||
console.log('res****', res)
|
console.log('res****', res)
|
||||||
if (res.data.data?.length > 0) {
|
if (res.data.data?.length > 0) {
|
||||||
if (this.queryParams.offset == 0) {
|
// if (this.queryParams.offset == 0) {
|
||||||
this.companyInfoList = res.data.data
|
this.companyInfoList = res.data.data
|
||||||
} else {
|
// } else {
|
||||||
this.companyInfoList = [...this.companyInfoList, ...res.data.data]
|
// this.companyInfoList = [...this.companyInfoList, ...res.data.data]
|
||||||
}
|
// }
|
||||||
this.recordsTotal = res.data.recordsTotal
|
this.recordsTotal = res.data.recordsTotal
|
||||||
}
|
}
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
|
|
@ -606,6 +607,7 @@ export default {
|
||||||
/* 查询 */
|
/* 查询 */
|
||||||
onQuery() {
|
onQuery() {
|
||||||
this.queryParams.page = 0
|
this.queryParams.page = 0
|
||||||
|
this.queryParams.limit = 10
|
||||||
this.companyInfoList = []
|
this.companyInfoList = []
|
||||||
this.getListData().then(() => {
|
this.getListData().then(() => {
|
||||||
this.$refs.popup.close()
|
this.$refs.popup.close()
|
||||||
|
|
|
||||||
|
|
@ -265,7 +265,7 @@ export default {
|
||||||
const proType = JSON.parse(option.proType)
|
const proType = JSON.parse(option.proType)
|
||||||
const { currentIndex, name } = proType
|
const { currentIndex, name } = proType
|
||||||
this.activeIndex4 = currentIndex + 1
|
this.activeIndex4 = currentIndex + 1
|
||||||
this.queryParams.params.proType = this.proTypeList[currentIndex + 1].id
|
this.queryParams.params.proType = name
|
||||||
this.getListData()
|
this.getListData()
|
||||||
} else if (option.survey) {
|
} else if (option.survey) {
|
||||||
// 获取工程概况
|
// 获取工程概况
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue