|
|
@ -189,7 +189,7 @@ async function query(
|
|
|
|
...params,
|
|
|
|
...params,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const { data, pageCount, totalCount } = result
|
|
|
|
const { data, pageCount, totalCount } = result
|
|
|
|
// console.log(data, pageCount, totalCount);
|
|
|
|
console.log(data, pageCount, totalCount);
|
|
|
|
const newlist = []
|
|
|
|
const newlist = []
|
|
|
|
const oldlist = tableData.value
|
|
|
|
const oldlist = tableData.value
|
|
|
|
if (oldlist.length > 0) {
|
|
|
|
if (oldlist.length > 0) {
|
|
|
@ -239,7 +239,7 @@ function isValidTimestamp(value) {
|
|
|
|
function goDetail(row) {
|
|
|
|
function goDetail(row) {
|
|
|
|
router.push({
|
|
|
|
router.push({
|
|
|
|
name: 'final-detail',
|
|
|
|
name: 'final-detail',
|
|
|
|
query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndex },
|
|
|
|
query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndexm,type:'card' },
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 小结批量不通过
|
|
|
|
// 小结批量不通过
|
|
|
@ -423,6 +423,7 @@ function checkBottom() {
|
|
|
|
if (!container)
|
|
|
|
if (!container)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const { scrollTop, clientHeight, scrollHeight } = container;
|
|
|
|
// const { scrollTop, clientHeight, scrollHeight } = container;
|
|
|
|
const scrollTop = window.pageYOffset || document.documentElement.scrollTop
|
|
|
|
const scrollTop = window.pageYOffset || document.documentElement.scrollTop
|
|
|
|
|
|
|
|
|
|
|
@ -434,10 +435,12 @@ function checkBottom() {
|
|
|
|
const scrollHeight = document.documentElement.scrollHeight
|
|
|
|
const scrollHeight = document.documentElement.scrollHeight
|
|
|
|
|
|
|
|
|
|
|
|
clearTimeout(debounceTimer)
|
|
|
|
clearTimeout(debounceTimer)
|
|
|
|
|
|
|
|
// console.log(pagination)
|
|
|
|
debounceTimer = setTimeout(() => {
|
|
|
|
debounceTimer = setTimeout(() => {
|
|
|
|
if (scrollTop + clientHeight >= scrollHeight - 10) {
|
|
|
|
if (scrollTop + clientHeight >= scrollHeight -500&&!(pagination.pageCount<num)) {
|
|
|
|
num = num + 1
|
|
|
|
num = num + 1
|
|
|
|
console.log(num)
|
|
|
|
console.log(num)
|
|
|
|
|
|
|
|
console.log( pagination.pageCount)
|
|
|
|
query(num, 20,{},props.taskvalue)
|
|
|
|
query(num, 20,{},props.taskvalue)
|
|
|
|
// fetchData(); // 接近底部时加载更多数据
|
|
|
|
// fetchData(); // 接近底部时加载更多数据
|
|
|
|
}
|
|
|
|
}
|
|
|
|