修改禅道bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user