feat: There is no way the, bug #56300 企业标准-删除上传的附件 进行提交,再次点击文件没删除掉
This commit is contained in:
@@ -256,6 +256,23 @@ export default {
|
||||
const index = this.$refs.importFileAboutStand.uploadFiles.findIndex(e => e.response.data.id === file.response.data.id);
|
||||
this.$refs.importFileAboutStand.uploadFiles.splice(index, 1);
|
||||
this.showFileList.splice(index, 1)
|
||||
const value = this.value
|
||||
let ids = value.split(',')
|
||||
if (file.response) {
|
||||
let fileIds = file.response.data.id
|
||||
let newIdList = this.removeArray(ids, fileIds)
|
||||
let newStr = ''
|
||||
if (newIdList != null && newIdList.length > 0) {
|
||||
for (let i = 0; i < newIdList.length; i++) {
|
||||
if (newIdList[i] !== '') {
|
||||
newStr += newIdList[i] + ','
|
||||
}
|
||||
}
|
||||
this.$emit('input', newStr)
|
||||
} else {
|
||||
this.$emit('input', '')
|
||||
}
|
||||
}
|
||||
},
|
||||
// 修改
|
||||
handleModifyName(file) {
|
||||
|
||||
Reference in New Issue
Block a user