拆分详情表格增加编辑

This commit is contained in:
caoyang
2022-04-05 19:32:38 +08:00
parent 29e4a3ac4a
commit 78ba4bde0e
10 changed files with 177 additions and 68 deletions
@@ -17,7 +17,7 @@
:showUploadList="false"
@change="handleChange">
<!-- <p><a-icon style="font-size: 67px;color: #c0c4cc;" type="cloud-upload" /></p>-->
<a-icon type="import" :rotate="-90" />{{ $t('import') }}
<a-icon type="import" :rotate="-90" class="import" />{{ $t('import') }}
<!-- <a-button type="primary" ghost class="ant-upload-text" style="font-size: 14px;line-height: 30px">{{$t('clickUpload')}}</a-button>-->
</a-upload>
<!-- </a-modal>-->
@@ -96,12 +96,17 @@
// console.log('rrr',this.myfileList)
},
handleChange(info) {
console.log('info',info)
// console.log('info',info)
let { file } = info;
const status = info.file.status;
info.fileList.forEach((val,index)=>{
if(val.response && !val.response.result){
this.$message.success(val.response.message);
if(val.response.success){
this.$message.success(val.response.message);
}else{
this.$message.error(val.response.message);
}
info.fileList.splice(index,1)
}
})