diff --git a/fuintAdmin_zt/src/views/Site/index.vue b/fuintAdmin_zt/src/views/Site/index.vue index 9871a6d84..32beeb738 100644 --- a/fuintAdmin_zt/src/views/Site/index.vue +++ b/fuintAdmin_zt/src/views/Site/index.vue @@ -1192,6 +1192,7 @@ export default { }); this.loading = true; // this.addDateRange(this.queryParams, this.dateRange) + console.log(this.queryParams,111) listUser(this.queryParams).then(response => { this.userList = response.data.records; this.total = response.data.total; @@ -1207,6 +1208,7 @@ export default { onlyGetUser(){ this.loading = true; + console.log(this.queryParams,222) // this.addDateRange(this.queryParams, this.dateRange) listUser(this.queryParams).then(response => { this.userList = response.data.records; diff --git a/fuintAdmin_zt/src/views/components/Service/staff.vue b/fuintAdmin_zt/src/views/components/Service/staff.vue index d11095d3c..94cd76dd5 100644 --- a/fuintAdmin_zt/src/views/components/Service/staff.vue +++ b/fuintAdmin_zt/src/views/components/Service/staff.vue @@ -488,8 +488,8 @@ submitForm: function() { this.$refs["form"].validate(valid => { if (valid) { + this.form.storeId = this.id; if (!this.form.id) { - this.form.storeId = this.id; this.form.posPrem = JSON.stringify(this.form.posPrem); this.form.appletPrem = JSON.stringify(this.form.appletPrem); addStaff(this.form).then(response => { diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJStaffServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJStaffServiceImpl.java index cae112ce8..a712eef7b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJStaffServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJStaffServiceImpl.java @@ -218,6 +218,8 @@ public class LJStaffServiceImpl extends ServiceImpl impl account.setCreateTime(new Date()); account.setUpdateTime(new Date()); account.setStoreId(storeId); + LJStore store = storeService.selectStoreByStoreId(storeId); + account.setDeptId(store.getContractDeptId()); if (StringUtils.isNotEmpty(staff.getRefundPassword())){ account.setPassword(staff.getPassword());