修改禅道bug

This commit is contained in:
caoyang
2022-04-01 10:05:12 +08:00
parent 3f5ba1fddc
commit 62ffdfe40c
3 changed files with 25 additions and 20 deletions
@@ -456,7 +456,7 @@
},
//增加条款确定
hideModalMenuRight(){
this.menuRightVisible=false
let expandId=[]
expandId.push(this.form.pid)
if(!this.isEdit){
@@ -465,23 +465,28 @@
pid:this.nodeItem.id,
...this.form,
}
this.flag=true
// console.log('parms',this.params)
if(this.flag){
postAction(`split/sarFileSplitMenu/addMenu`,params).then(res=>{
if(res.success){
this.$message.success(this.$t('OperationSuccessful'))
this.onExpand(expandId)
this.form={}
this.loadMenuData()
eventBUs.$emit('searchReset')
}else{
this.$message.warning(this.$t('operationFailed'))
this.$refs.ruleForm.validate(valid=>{
if(valid){
this.flag=true
// console.log('parms',this.params)
if(this.flag){
postAction(`split/sarFileSplitMenu/addMenu`,params).then(res=>{
if(res.success){
this.menuRightVisible=false
this.$message.success(this.$t('OperationSuccessful'))
this.onExpand(expandId)
this.form={}
this.loadMenuData()
eventBUs.$emit('searchReset')
}else{
this.$message.warning(this.$t('operationFailed'))
}
}).finally(()=>{
this.flag=false
})
}
}).finally(()=>{
this.flag=false
})
}
}
})
}else{
let params = {
info_id: this.infoId,