Commit 97e4615d authored by 刘用法's avatar 刘用法

已被抢/已接单的工单还显示在订单推荐中

parent 6cc1a5c4
...@@ -264,16 +264,16 @@ ...@@ -264,16 +264,16 @@
// } // }
// } // }
/*↑↑↑↑↑↑↑↑↑↑测试数据↑↑↑↑↑↑↑↑↑↑↑↑↑*/ /*↑↑↑↑↑↑↑↑↑↑测试数据↑↑↑↑↑↑↑↑↑↑↑↑↑*/
if (res.code == 200) { if (res.code == 200 && res.data) {
if (res.data && res.data.list && res.data.list.length > 0) { if (self.search.pageNumber == 1) {
if (self.search.pageNumber == 1) { self.orderList = []
self.orderList = [] }
} if (res.data.list) {
self.orderList.push(...res.data.list); self.orderList.push(...res.data.list);
console.log('this.orderlist;', this.orderList) }
self.currentLoadStatus = res.data.total > self.orderList.length && res.data.list.length == self.search.pageSize ? 'loadmore' : 'nomore' console.log('this.orderlist;', this.orderList)
self.currentLoadStatus = res.data.total > self.orderList.length && (res.data.list || []).length == self.search.pageSize ? 'loadmore' : 'nomore'
}
} else { } else {
console.log(res.message, "初始化订单列表异常"); console.log(res.message, "初始化订单列表异常");
} }
......
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