【修改】修改表格底部距离
This commit is contained in:
@@ -515,12 +515,20 @@ export default {
|
|||||||
this.dialogUser = true
|
this.dialogUser = true
|
||||||
},
|
},
|
||||||
handleRemove(file, fileList) {
|
handleRemove(file, fileList) {
|
||||||
this.form.fileList = this.fileList.filter(item=>{
|
debugger
|
||||||
if(item.id!=file.id){
|
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
|
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)
|
this.handleCurrentChange(1)
|
||||||
},
|
},
|
||||||
//用递归方式去除children
|
//用递归方式去除children
|
||||||
@@ -591,7 +599,7 @@ export default {
|
|||||||
const isSize = file.size / 1024 / 1024 < 200;
|
const isSize = file.size / 1024 / 1024 < 200;
|
||||||
if (!isType) {
|
if (!isType) {
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.$message.error('仅能上传 pdf|ppt|pptx | xls | xlsx 格式文件');
|
this.$message.error('仅能上传 pdf|ppt|pptx | excel 格式文件');
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user