【修改】修改回显的bug

This commit is contained in:
zhoulingpo
2023-05-18 18:16:38 +08:00
parent bbd4e80f1b
commit 8fd5b9282c
2 changed files with 84 additions and 39 deletions
@@ -174,6 +174,7 @@ export default {
}else if(form.twoApprove){
let res=await this.getLearder(form.oneApprove)
// 判断有二级审批人
if(res.length>0){
form.twoApprove = res[0].usid
form.twoApproveName= res[0].usname
@@ -184,12 +185,35 @@ export default {
form.powerName=''
form.power=''
}
// 是不是有以前的数据
if(form.oldpower){
this.PERMISSION = this.PERMISSION.map(item=>{
if(item.value == form.oldpower){
item.disabled=true
}else{
item.disabled=false
}
return item
})
}
}else{
this.conTwo=false
form.applyReason = ''
form.prcType = ''
form.powerName=''
form.power=''
// 是不是有以前的数据
if(form.oldpower){
this.PERMISSION = this.PERMISSION.map(item=>{
if(item.value == form.oldpower){
item.disabled=true
}else{
item.disabled=false
}
return item
})
}else{
form.applyReason = ''
form.prcType = ''
form.powerName=''
form.power=''
}
}
}