需求修改删除附件BUG修改
This commit is contained in:
parent
baebd9f62b
commit
7c7ac61f77
|
@ -156,6 +156,7 @@
|
|||
:action="upLoadUrl"
|
||||
:headers="headers"
|
||||
@change="handleChange"
|
||||
@remove="handleRemove"
|
||||
:maxCount="1"
|
||||
>
|
||||
<a-button
|
||||
|
@ -332,11 +333,16 @@
|
|||
const signOut = () => {
|
||||
window.close()
|
||||
}
|
||||
const handleRemove = () => {
|
||||
formName.enclosure = ''
|
||||
}
|
||||
const handleChange = (info) => {
|
||||
if (info.file.status !== 'uploading') {
|
||||
console.log(info.file, info.fileList)
|
||||
}
|
||||
|
||||
if (info.file.status === 'removed') {
|
||||
formName.enclosure = ''
|
||||
}
|
||||
if (info.file.status === 'done') {
|
||||
message.success(`${info.file.name} 文件上传成功`)
|
||||
formName.enclosure = info.file.response.data
|
||||
|
@ -402,6 +408,7 @@
|
|||
applySuccess,
|
||||
disabled,
|
||||
signOut,
|
||||
handleRemove,
|
||||
processStartHandle,
|
||||
upLoadUrl,
|
||||
// baseURL,
|
||||
|
|
Loading…
Reference in New Issue