拆分详情表格修改

This commit is contained in:
caoyang
2022-04-12 13:47:33 +08:00
parent 52d1d32ebb
commit 350ed839d5
8 changed files with 143 additions and 69 deletions
@@ -43,6 +43,15 @@
<a-button class="imports-btn" type="primary" @click="cancleImports">{{$t('cancel')}}</a-button>
</div>
</div>
<a-modal
:title="''"
class="split-error"
:visible="preErrVisible"
@cancel="handleErrCancel"
:footer="false"
>
<span class="err-value">{{errValue}}</span>
</a-modal>
<!-- <split-upload ref="uploadFile" :disabled="disabled" :title="upload1" :accept="accept" @uploadSuccess="uploadSuccess"></split-upload>-->
</a-drawer>
</div>
@@ -130,7 +139,9 @@
rows:[],
token:Vue.ls.get(ACCESS_TOKEN),
flag:false, //提交表单标识
cut:''
cut:'',
preErrVisible:false,
errValue:''
}
},
props:{
@@ -176,7 +187,7 @@
this.$emit('visible',false)
},
onSelectChange(keys,rows){
console.log('keys',keys,rows)
// console.log('keys',keys,rows)
this.selectedRowKeys=keys
this.rows=rows
},
@@ -235,7 +246,7 @@
}else if(this.rows&&this.rows.length>1){
this.$message.warning(this.$t('OnlyOneSelected'))
}else if(!this.form.file) {
this.$message.warning('请上传拆分文件')
this.$message.warning(this.$t('pleaseUploadSplitFile'))
}else if(this.rows&&this.rows.length===1){
let params={
connectId:this.rows[0].connect_id,
@@ -276,6 +287,12 @@
this.$emit('visible',false)
}else{
this.$message.warning(res.data.message)
if(res.data.code==1){
this.$message.error(res.data.message);
}else{
this.preErrVisible=true
this.errValue=res.data.message
}
}
}).finally(() => [
this.flag = false
@@ -311,7 +328,10 @@
// }
// }
}
}
},
handleErrCancel(){
this.preErrVisible=false
},
}
}
</script>