Commit 253c9f55 by zhangxw

修改

1 parent 0afbbe08
......@@ -11,7 +11,7 @@ Page({
bgUrl: `${IMG_URL}/personal/empty_tran.png`,
popupShow: false,
staffList: [],
selectInfo: { yqMerchantName: '全部服务中心', staffBusinessTypeStr: '全部员工类型', staffBusinessType: '' },
selectInfo: { yqMerchantName: '全部服务中心', staffBusinessTypeStr: '全部员工类型' },
total: 0,
serviceList: [],
currentPage: 1,
......@@ -19,7 +19,10 @@ Page({
nothing: false,
scrollTop: 0,
isAsk: false,
staffPopupShow: false
staffPopupShow: false,
staffTypeSelectInfo: {
staffBusinessType: ''
}
},
/**
......@@ -56,13 +59,13 @@ Page({
},
getList(isReset = false) {
let { currentPage, selectInfo, allServiceIds, nothing, isAsk } = this.data
let { currentPage, selectInfo, allServiceIds, nothing, isAsk, staffTypeSelectInfo } = this.data
let _this = this
let params = {
pageSize: 10,
pageNum: currentPage,
merchantNoList: selectInfo?.yqMerchantId ? [selectInfo?.yqMerchantId] : allServiceIds,
staffBusinessType: selectInfo.staffBusinessType
staffBusinessType: staffTypeSelectInfo.staffBusinessType
}
if (nothing || isAsk) {
return
......@@ -130,6 +133,7 @@ Page({
}
this.setData({
selectInfo: obj,
staffTypeSelectInfo: obj,
nothing: false,
currentPage: 1
})
......
......@@ -62,4 +62,4 @@
</view>
</view>
<select-service-popup wx:if="{{popupShow}}" bind:hidePopup="filterTypeFn" bind:getStaffList="getStaffList" selectInfo="{{selectInfo}}" popShow="{{popupShow}}" serviceRange="{{serviceList}}" />
<staff-type-popup wx:if="{{staffPopupShow}}" bind:hidePopup="handleStaffTypeChange" selectInfo="{{selectInfo}}" bindconfirm="getStaffList" popShow="{{staffPopupShow}}"/>
<staff-type-popup wx:if="{{staffPopupShow}}" bind:hidePopup="handleStaffTypeChange" selectInfo="{{selectInfo}}" staffTypeSelectInfo="{{staffTypeSelectInfo}}" bindconfirm="getStaffList" popShow="{{staffPopupShow}}"/>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!