【修改】修改表格底部距离

This commit is contained in:
zhoulingpo
2023-05-26 10:12:59 +08:00
parent b3684ddc48
commit 5e56d88ede
@@ -515,12 +515,20 @@ export default {
this.dialogUser = true
},
handleRemove(file, fileList) {
this.form.fileList = this.fileList.filter(item=>{
if(item.id!=file.id){
debugger
this.fileList = this.fileList.filter(item=>{
let id=file.response?file.response.data.id:file.id
let ietmid=item.response?item.response.data.id:item.id
if(ietmid!=id){
return item
}
})
this.fileList=this.form.fileList
this.form.fileList = this.fileList.map(item=>{
return {
fileId:item.response?item.response.data.id:item.id,
fileName:item.response?item.response.data.name:item.name
}
})
this.handleCurrentChange(1)
},
//用递归方式去除children
@@ -591,7 +599,7 @@ export default {
const isSize = file.size / 1024 / 1024 < 200;
if (!isType) {
setTimeout(()=>{
this.$message.error('仅能上传 pdfpptpptx | xls | xlsx 格式文件');
this.$message.error('仅能上传 pdfpptpptx | excel 格式文件');
})
}