|
@@ -109,12 +109,8 @@ Page({
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
- // data.forEach(v => {
|
|
|
- // let payeTime = v.payedAt
|
|
|
- // v.payedAt = parseTime(payeTime, "{y}.{m}.{d} {h}:{i}:{s}")
|
|
|
- // })
|
|
|
|
|
|
- this.data.storeStaffList = this.data.storeStaffList.concat(...data)
|
|
|
+ this.data.storeStaffList = data
|
|
|
this.setData({
|
|
|
mobileTop:getMobileCache(),
|
|
|
storeStaffList: this.data.storeStaffList
|
|
@@ -205,7 +201,7 @@ Page({
|
|
|
icon: 'none',
|
|
|
duration: 1500,
|
|
|
success: function(){
|
|
|
- that.onShow();
|
|
|
+ that.getStoreStaffList();
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -217,7 +213,7 @@ Page({
|
|
|
*/
|
|
|
toDelete: function(e) {
|
|
|
let staffId = e.currentTarget.dataset.id;
|
|
|
- console.log(staffId);
|
|
|
+ let that = this
|
|
|
wx.showModal({
|
|
|
title: '删除员工',
|
|
|
content: '',
|
|
@@ -241,7 +237,7 @@ Page({
|
|
|
icon: 'none',
|
|
|
duration: 1500,
|
|
|
success: function(){
|
|
|
- that.onShow();
|
|
|
+ that.getStoreStaffList();
|
|
|
}
|
|
|
});
|
|
|
}
|