Commit 253c9f55 by zhangxw

修改

1 parent 0afbbe08
...@@ -11,7 +11,7 @@ Page({ ...@@ -11,7 +11,7 @@ Page({
bgUrl: `${IMG_URL}/personal/empty_tran.png`, bgUrl: `${IMG_URL}/personal/empty_tran.png`,
popupShow: false, popupShow: false,
staffList: [], staffList: [],
selectInfo: { yqMerchantName: '全部服务中心', staffBusinessTypeStr: '全部员工类型', staffBusinessType: '' }, selectInfo: { yqMerchantName: '全部服务中心', staffBusinessTypeStr: '全部员工类型' },
total: 0, total: 0,
serviceList: [], serviceList: [],
currentPage: 1, currentPage: 1,
...@@ -19,7 +19,10 @@ Page({ ...@@ -19,7 +19,10 @@ Page({
nothing: false, nothing: false,
scrollTop: 0, scrollTop: 0,
isAsk: false, isAsk: false,
staffPopupShow: false staffPopupShow: false,
staffTypeSelectInfo: {
staffBusinessType: ''
}
}, },
/** /**
...@@ -56,13 +59,13 @@ Page({ ...@@ -56,13 +59,13 @@ Page({
}, },
getList(isReset = false) { getList(isReset = false) {
let { currentPage, selectInfo, allServiceIds, nothing, isAsk } = this.data let { currentPage, selectInfo, allServiceIds, nothing, isAsk, staffTypeSelectInfo } = this.data
let _this = this let _this = this
let params = { let params = {
pageSize: 10, pageSize: 10,
pageNum: currentPage, pageNum: currentPage,
merchantNoList: selectInfo?.yqMerchantId ? [selectInfo?.yqMerchantId] : allServiceIds, merchantNoList: selectInfo?.yqMerchantId ? [selectInfo?.yqMerchantId] : allServiceIds,
staffBusinessType: selectInfo.staffBusinessType staffBusinessType: staffTypeSelectInfo.staffBusinessType
} }
if (nothing || isAsk) { if (nothing || isAsk) {
return return
...@@ -130,6 +133,7 @@ Page({ ...@@ -130,6 +133,7 @@ Page({
} }
this.setData({ this.setData({
selectInfo: obj, selectInfo: obj,
staffTypeSelectInfo: obj,
nothing: false, nothing: false,
currentPage: 1 currentPage: 1
}) })
......
...@@ -62,4 +62,4 @@ ...@@ -62,4 +62,4 @@
</view> </view>
</view> </view>
<select-service-popup wx:if="{{popupShow}}" bind:hidePopup="filterTypeFn" bind:getStaffList="getStaffList" selectInfo="{{selectInfo}}" popShow="{{popupShow}}" serviceRange="{{serviceList}}" /> <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!