员工管理密码加密
This commit is contained in:
parent
4fb1dec864
commit
9233f2cb36
|
|
@ -786,15 +786,18 @@ export default {
|
||||||
})
|
})
|
||||||
console.log(this.accessAuthorityList)
|
console.log(this.accessAuthorityList)
|
||||||
console.log(this.form)
|
console.log(this.form)
|
||||||
this.$set(this.form,"password",encryptWithSM4(this.form.password))
|
let param = {
|
||||||
|
...this.form
|
||||||
|
}
|
||||||
|
param.password = encryptWithSM4(this.form.password)
|
||||||
if (this.form.staffId != undefined) {
|
if (this.form.staffId != undefined) {
|
||||||
editKitchenStaffApi(this.form).then(response => {
|
editKitchenStaffApi(param).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addKitchenStaffApi(this.form).then(response => {
|
addKitchenStaffApi(param).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue