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