Commit 8ac2e48c by 张立顺

Merge branch 'saas+v4.26.0_0817' of 192.168.3.233:saas_plus/business-assistant i…

…nto saas+v4.26.0_0817
2 parents de85b6a0 fa74c8f3
...@@ -170,7 +170,8 @@ Page({ ...@@ -170,7 +170,8 @@ Page({
getList(isReset = false) { getList(isReset = false) {
let { technicianList, pageCof, total, customerInfo, isAsk } = this.data let { technicianList, pageCof, total, customerInfo, isAsk } = this.data
if (total == customerList.length || isAsk) { let _this = this
if (total == technicianList.length || isAsk) {
return true return true
} }
let params = { let params = {
......
...@@ -69,12 +69,12 @@ Page({ ...@@ -69,12 +69,12 @@ Page({
isAsk: true isAsk: true
}) })
mineApi.getStaffListAPI(params).then(res => { mineApi.getStaffListAPI(params).then(res => {
let tempList = isReset ? res?.list || [] : this.data.staffList.concat(res?.list || []) let tempList = isReset ? res?.data || [] : this.data.staffList.concat(res?.data || [])
this.setData({ this.setData({
staffList: tempList, staffList: tempList,
currentPage: currentPage + 1, currentPage: currentPage + 1,
total: res.total, total: res.count,
nothing: res.total == tempList.length, nothing: res.count == tempList.length,
triggered: false triggered: false
}) })
if (isReset) { if (isReset) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!