修改禅道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
@@ -228,7 +228,7 @@
//保存
handleSubmit(){
// console.log('seleced',this.selectedRowKeys,this.rows)
console.log('this.form.file,',this.form.file)
// console.log('this.form.file,',this.form.file)
if(this.rows.length===0){
this.$message.warning(this.$t('PleaseSelectData'))
}else if(this.rows&&this.rows.length>1){
@@ -260,7 +260,7 @@
console.log('key',key,params[key])
formData.append(key, params[key]);
});
console.log('formData',params,formData.getAll)
// console.log('formData',params,formData.getAll)
if(!this.form.file) {
this.$refs.ruleForm.validate(valid => {
if (valid) {
@@ -297,7 +297,7 @@
</div>
<div class="title-num" v-if="selectedNum">
<span class="title-num-add">{{$t('addQuantity')}}</span>
<a-input-number class="title-num-edit" :min="1" v-model="textNumber" :placeholder="$t('enterQuantity')" :formatter="limitNumber" :parser="limitNumber" ></a-input-number>
<a-input-number class="title-num-edit" :min="1" :max="100" v-model="textNumber" :placeholder="$t('enterQuantity')" :formatter="limitNumber" :parser="limitNumber" ></a-input-number>
</div>
</div>
</a-modal>
@@ -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,