diff --git a/src/pages/shop/IncreaseDataStaff.vue b/src/pages/shop/IncreaseDataStaff.vue index bd57302..5294149 100644 --- a/src/pages/shop/IncreaseDataStaff.vue +++ b/src/pages/shop/IncreaseDataStaff.vue @@ -118,6 +118,14 @@ { title: '日增好友平均(去重)', key: 'avgNewCustomer' + }, + { + title: '历史门店拓客总数', + key: 'historyAllCustomers' + }, + { + title: '历史门店新增好友数', + key: 'historyAddCustomers' } ], data1: [], diff --git a/src/pages/shop/IncreaseStaffManager.vue b/src/pages/shop/IncreaseStaffManager.vue index 1c9c1b0..421825f 100644 --- a/src/pages/shop/IncreaseStaffManager.vue +++ b/src/pages/shop/IncreaseStaffManager.vue @@ -221,7 +221,7 @@ export default { return h("div", [ h("i-switch", { props: { - value: params.row.status, + value: params.row.accountFlag, "true-value": 1, //开启值 "false-value": 2, //关闭值 size: "large" @@ -233,11 +233,11 @@ export default { // _this.modifyStatus(params.row.accountId, value); let request = { status: value, - id: _this.formValidate.id + id: params.row.accountId }; debugger; //修改接口 - _this.editSattf(request); + _this.editSattfStatus(request); } }, scopedSlots: { @@ -441,6 +441,17 @@ export default { } }); }, + editSattfStatus: function(request) { + let that = this; + staff.editSattf(request, function(data) { + data = data.data; + if (data.code == "0000") { + that.$Message.success("修改成功!"); + that.isShowAdd = false; + that.listOfLogistics(); + } + }); + }, searchCustomerDataBtnClick: function() { this.listOfLogistics(); diff --git a/src/services/staff/staff.js b/src/services/staff/staff.js index d297f5f..6937bb7 100644 --- a/src/services/staff/staff.js +++ b/src/services/staff/staff.js @@ -44,6 +44,10 @@ export function editSattf(params, call) { return http.post('/store/staff/edit',params).then(call) } +export function editSattfStatus(params, call) { + return http.post('/account/modify/status',params).then(call) +} + export function removeStaff(params, call) { return http.post('/store/staff/delete',params).then(call) } @@ -55,5 +59,6 @@ export default { downRoleData, addSattf, editSattf, + editSattfStatus, removeStaff }