厨房管理修改3
This commit is contained in:
parent
6077b41438
commit
b5123a72c4
|
|
@ -4,7 +4,9 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<sub-group :healthCertificateCount="healthCertificateCount" :alarmLog="alarmLog"/>
|
<sub-group :healthCertificateCount="healthCertificateCount" :alarmLog="alarmLog"/>
|
||||||
|
<div style="width: 100%;height: 740px;padding: 0 5px;">
|
||||||
|
<img src="@/assets/images/kitchenIndex.png" style="width: 100%;height: 100%;">
|
||||||
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<div style="background: #fff;padding: 10px;margin: 5px;margin-bottom: 10px;border-radius: 4px;">
|
<div style="background: #fff;padding: 10px;margin: 5px;margin-bottom: 10px;border-radius: 4px;">
|
||||||
|
|
|
||||||
|
|
@ -423,7 +423,8 @@ import { systemAreaTreeApi,getCanteenByAreaApi } from "@/api/base/stall";
|
||||||
import { getKitchenDeviceSelectApi } from "@/api/kitchen/devices";
|
import { getKitchenDeviceSelectApi } from "@/api/kitchen/devices";
|
||||||
import { getStaffListApi,getStaffInfoApi,addKitchenStaffApi,editKitchenStaffApi,delStaffApi,editStaffFaceStateApi} from '@/api/kitchen/staff';
|
import { getStaffListApi,getStaffInfoApi,addKitchenStaffApi,editKitchenStaffApi,delStaffApi,editStaffFaceStateApi} from '@/api/kitchen/staff';
|
||||||
import { imgUpLoadTwo } from '@/api/system/upload';
|
import { imgUpLoadTwo } from '@/api/system/upload';
|
||||||
import { validateNewPassword } from '@/utils/validate'
|
import { validateNewPassword } from '@/utils/validate';
|
||||||
|
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
|
||||||
export default {
|
export default {
|
||||||
name: "",
|
name: "",
|
||||||
dicts: [],
|
dicts: [],
|
||||||
|
|
@ -639,6 +640,7 @@ export default {
|
||||||
this.checkUrlList2=[]
|
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){
|
if(this.form.accessAuthorityList&&this.form.accessAuthorityList.length>0){
|
||||||
console.log(this.form.accessAuthorityList)
|
console.log(this.form.accessAuthorityList)
|
||||||
let index = this.form.accessAuthorityList.findIndex(v=>v.deviceType==3)
|
let index = this.form.accessAuthorityList.findIndex(v=>v.deviceType==3)
|
||||||
|
|
@ -784,6 +786,7 @@ 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))
|
||||||
if (this.form.staffId != undefined) {
|
if (this.form.staffId != undefined) {
|
||||||
editKitchenStaffApi(this.form).then(response => {
|
editKitchenStaffApi(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue