员工管理密码加密

This commit is contained in:
zzyuan 2025-06-30 16:46:58 +08:00
parent 4fb1dec864
commit 9233f2cb36
1 changed files with 6 additions and 3 deletions

View File

@ -786,15 +786,18 @@ export default {
})
console.log(this.accessAuthorityList)
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) {
editKitchenStaffApi(this.form).then(response => {
editKitchenStaffApi(param).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addKitchenStaffApi(this.form).then(response => {
addKitchenStaffApi(param).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();