Commit 0b395ef5 by chenwq

员工翻页

1 parent ba703fd3
...@@ -22,7 +22,8 @@ Page({ ...@@ -22,7 +22,8 @@ Page({
formItems: constantData.formItems, formItems: constantData.formItems,
targetIdx: '-1', targetIdx: '-1',
target: {}, target: {},
targetIdx: {} targetIdx: {},
isAsk: false
}, },
handleInput(e) { handleInput(e) {
...@@ -168,13 +169,20 @@ Page({ ...@@ -168,13 +169,20 @@ Page({
}, },
getList(isReset = false) { getList(isReset = false) {
let { technicianList, pageCof, total, customerInfo } = this.data let { technicianList, pageCof, total, customerInfo, isAsk } = this.data
if (total == customerList.length || isAsk) {
return true
}
let params = { let params = {
...pageCof, ...pageCof,
status: 0, status: 0,
merchantNoList: [customerInfo.serviceCenterMerchantId], merchantNoList: [customerInfo.serviceCenterMerchantId],
roleName: '技师' // roleName: '技师'
staffBusinessType: 1
} }
this.setData({
isAsk: true
})
mineServiceApi.getTechnicianList(params).then(res => { mineServiceApi.getTechnicianList(params).then(res => {
let { data, count } = res let { data, count } = res
this.setData({ this.setData({
...@@ -188,6 +196,10 @@ Page({ ...@@ -188,6 +196,10 @@ Page({
scrollTop: 0 scrollTop: 0
}) })
} }
}).finally(function () {
_this.setData({
isAsk: false
})
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!