|
@@ -89,11 +89,14 @@
|
|
|
return {
|
|
|
// 查询条件
|
|
|
condition: {
|
|
|
- range: []
|
|
|
+ range: [],
|
|
|
+ head: 1,
|
|
|
+ tail: 9
|
|
|
},
|
|
|
// 数据
|
|
|
orderBillsPlansList: [],
|
|
|
- show: false
|
|
|
+ show: false,
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -105,9 +108,19 @@
|
|
|
this.getCurrentMonthFirst();
|
|
|
this.getOrderBillsPlansList();
|
|
|
},
|
|
|
+ onReachBottom() {
|
|
|
+ this.condition.head += 9;
|
|
|
+ this.condition.tail += 9;
|
|
|
+ orderBillsPlansList(this.condition).then(res => {
|
|
|
+ var next_data = res.data;
|
|
|
+ this.orderBillsPlansList = this.orderBillsPlansList.concat(next_data);
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 查询主页数据
|
|
|
getOrderBillsPlansList() {
|
|
|
+ this.condition.head = 1;
|
|
|
+ this.condition.tail = 9;
|
|
|
orderBillsPlansList(this.condition).then(res => {
|
|
|
this.orderBillsPlansList = res.data;
|
|
|
})
|