员工管理新增编辑权限

This commit is contained in:
zzyuan 2025-06-19 16:30:34 +08:00
parent fabe70289b
commit 06379db48f
1 changed files with 2 additions and 1 deletions

View File

@ -490,13 +490,14 @@ export default {
console.log(this.form) console.log(this.form)
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)
this.accessAuthorityList = []
this.form.accessAuthorityList.forEach(item=>{ this.form.accessAuthorityList.forEach(item=>{
if(item.deviceType==3){ if(item.deviceType==3){
this.accessAuthorityList.push(item) this.accessAuthorityList.push(item)
this.$forceUpdate() this.$forceUpdate()
} }
if(item.deviceType==7){ if(item.deviceType==7){
this.simpleCabinetStatus = item.privilegeValue this.simpleCabinetStatus = Number(item.privilegeValue)
} }
}) })
} }