Commit a2d0ee27 authored by Facius's avatar Facius

feat: 名片页面和收据记账页面去掉lastId

parent 80c2c057
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
current: this.current, current: this.current,
size: this.size, size: this.size,
type: this.currentInfo.type, type: this.currentInfo.type,
lastId: this.current == 1 ? '' : this.lastId // lastId: this.current == 1 ? '' : this.lastId
}) })
.then(res => { .then(res => {
if (this.current == 1) { if (this.current == 1) {
...@@ -241,6 +241,8 @@ export default { ...@@ -241,6 +241,8 @@ export default {
this.list.push(...res.data); this.list.push(...res.data);
// 更新底部加载状态 // 更新底部加载状态
this.loadStatus = res.total > this.list.length ? 'loadmore' : 'nomore'; this.loadStatus = res.total > this.list.length ? 'loadmore' : 'nomore';
} else {
this.loadStatus = 'nomore'
} }
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -195,7 +195,7 @@ export default { ...@@ -195,7 +195,7 @@ export default {
repair({ repair({
start: this.start, start: this.start,
end: this.end, end: this.end,
lastId: this.current == 1 ? '' : this.lastId, // lastId: this.current == 1 ? '' : this.lastId,
current: this.current, current: this.current,
keyword: this.keyword, keyword: this.keyword,
size: this.size, size: this.size,
...@@ -211,6 +211,8 @@ export default { ...@@ -211,6 +211,8 @@ export default {
this.records.push(...data.records); this.records.push(...data.records);
// 更新底部加载状态 // 更新底部加载状态
this.loadStatus = data.total > this.records.length ? 'loadmore' : 'nomore'; this.loadStatus = data.total > this.records.length ? 'loadmore' : 'nomore';
} else {
this.loadStatus = 'nomore'
} }
setTimeout(()=> { setTimeout(()=> {
this.$nextTick(() => { this.$nextTick(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment