Commit fa74c8f3 by chenwq

员工管理

1 parent 6c7640d9
...@@ -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!