diff --git a/src/views/kitchen/index.vue b/src/views/kitchen/index.vue index 5edc2cdb..6e1aaabc 100644 --- a/src/views/kitchen/index.vue +++ b/src/views/kitchen/index.vue @@ -4,7 +4,9 @@ - +
+ +
diff --git a/src/views/kitchen/staffManage/staff/index.vue b/src/views/kitchen/staffManage/staff/index.vue index cbe91262..aa0905fd 100644 --- a/src/views/kitchen/staffManage/staff/index.vue +++ b/src/views/kitchen/staffManage/staff/index.vue @@ -423,7 +423,8 @@ import { systemAreaTreeApi,getCanteenByAreaApi } from "@/api/base/stall"; import { getKitchenDeviceSelectApi } from "@/api/kitchen/devices"; import { getStaffListApi,getStaffInfoApi,addKitchenStaffApi,editKitchenStaffApi,delStaffApi,editStaffFaceStateApi} from '@/api/kitchen/staff'; import { imgUpLoadTwo } from '@/api/system/upload'; -import { validateNewPassword } from '@/utils/validate' +import { validateNewPassword } from '@/utils/validate'; +import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm'; export default { name: "", dicts: [], @@ -638,7 +639,8 @@ export default { this.fileList2=[] this.checkUrlList2=[] } - console.log(this.form) + console.log(this.form) + this.$set(this.form,"password",decryptWithSM4(this.form.password)) if(this.form.accessAuthorityList&&this.form.accessAuthorityList.length>0){ console.log(this.form.accessAuthorityList) let index = this.form.accessAuthorityList.findIndex(v=>v.deviceType==3) @@ -784,6 +786,7 @@ export default { }) console.log(this.accessAuthorityList) console.log(this.form) + this.$set(this.form,"password",encryptWithSM4(this.form.password)) if (this.form.staffId != undefined) { editKitchenStaffApi(this.form).then(response => { this.$modal.msgSuccess("修改成功");