标准箱
This commit is contained in:
parent
ab11e28e65
commit
2f103e7b4e
|
|
@ -113,7 +113,7 @@ const queryParams = ref({
|
||||||
keyWord: '', // 关键字
|
keyWord: '', // 关键字
|
||||||
status: 3,
|
status: 3,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 5,
|
pageSize: 20,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 日期 change 事件
|
// 日期 change 事件
|
||||||
|
|
@ -254,8 +254,8 @@ const getTableList = async (isTap = false) => {
|
||||||
const unique = []
|
const unique = []
|
||||||
const seen = new Set()
|
const seen = new Set()
|
||||||
for (const item of merged) {
|
for (const item of merged) {
|
||||||
if (!seen.has(item.taskId)) {
|
if (!seen.has(item.boxId)) {
|
||||||
seen.add(item.taskId)
|
seen.add(item.boxId)
|
||||||
unique.push(item)
|
unique.push(item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -276,7 +276,7 @@ const getTableList = async (isTap = false) => {
|
||||||
const onScrollTolower = debounce(() => {
|
const onScrollTolower = debounce(() => {
|
||||||
// 判断是否还有更多数据
|
// 判断是否还有更多数据
|
||||||
if (tableList.value.length < total.value) {
|
if (tableList.value.length < total.value) {
|
||||||
queryParams.value.pageSize += 5
|
queryParams.value.pageSize += 10
|
||||||
getTableList(false)
|
getTableList(false)
|
||||||
}
|
}
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ const queryParams = ref({
|
||||||
keyWord: '', // 关键字
|
keyWord: '', // 关键字
|
||||||
status: 1,
|
status: 1,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 5,
|
pageSize: 20,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 初始化状态栏高度
|
// 初始化状态栏高度
|
||||||
|
|
@ -222,8 +222,8 @@ const getTableList = async (isTap = false) => {
|
||||||
const unique = []
|
const unique = []
|
||||||
const seen = new Set()
|
const seen = new Set()
|
||||||
for (const item of merged) {
|
for (const item of merged) {
|
||||||
if (!seen.has(item.taskId)) {
|
if (!seen.has(item.boxId)) {
|
||||||
seen.add(item.taskId)
|
seen.add(item.boxId)
|
||||||
unique.push(item)
|
unique.push(item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -244,7 +244,7 @@ const getTableList = async (isTap = false) => {
|
||||||
const onScrollTolower = debounce(() => {
|
const onScrollTolower = debounce(() => {
|
||||||
// 判断是否还有更多数据
|
// 判断是否还有更多数据
|
||||||
if (tableList.value.length < total.value) {
|
if (tableList.value.length < total.value) {
|
||||||
queryParams.value.pageSize += 5
|
queryParams.value.pageSize += 10
|
||||||
getTableList(false)
|
getTableList(false)
|
||||||
}
|
}
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ const queryParams = ref({
|
||||||
keyWord: '', // 关键字
|
keyWord: '', // 关键字
|
||||||
status: [2,5],
|
status: [2,5],
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 5,
|
pageSize: 20,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 日期 change 事件
|
// 日期 change 事件
|
||||||
|
|
@ -234,8 +234,8 @@ const getTableList = async (isTap = false) => {
|
||||||
const unique = []
|
const unique = []
|
||||||
const seen = new Set()
|
const seen = new Set()
|
||||||
for (const item of merged) {
|
for (const item of merged) {
|
||||||
if (!seen.has(item.taskId)) {
|
if (!seen.has(item.boxId)) {
|
||||||
seen.add(item.taskId)
|
seen.add(item.boxId)
|
||||||
unique.push(item)
|
unique.push(item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -254,9 +254,10 @@ const getTableList = async (isTap = false) => {
|
||||||
|
|
||||||
// 滚动触底事件
|
// 滚动触底事件
|
||||||
const onScrollTolower = debounce(() => {
|
const onScrollTolower = debounce(() => {
|
||||||
|
console.log('滚动到底部')
|
||||||
// 判断是否还有更多数据
|
// 判断是否还有更多数据
|
||||||
if (tableList.value.length < total.value) {
|
if (tableList.value.length < total.value) {
|
||||||
queryParams.value.pageSize += 5
|
queryParams.value.pageSize += 10
|
||||||
getTableList(false)
|
getTableList(false)
|
||||||
}
|
}
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
@ -376,7 +377,7 @@ const finish = computed(() => {
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.page-container {
|
.page-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: #f7f8fa;
|
background-color: #f7f8fa;
|
||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue