delete-受益人图片

This commit is contained in:
邓晓坤
2019-10-14 15:49:18 +08:00
parent c48c892190
commit eea9a81e8f

View File

@@ -492,11 +492,13 @@ export default {
methods: { methods: {
// 删除图片前 // 删除图片前
beforeDelete(file, detail) { beforeDelete(file, detail) {
console.log(this.fileListtypebeneficiary)
console.log(file)
let that = this
Dialog.confirm({ Dialog.confirm({
title: '提示', title: '提示',
message: '您确定要删除吗' message: '您确定要删除吗'
}) }).then(() => {
.then(() => {
if (detail.name == 'fileListIdFront') { if (detail.name == 'fileListIdFront') {
this.fileListIdFront = [] this.fileListIdFront = []
} else if (detail.name == 'fileListIdBack') { } else if (detail.name == 'fileListIdBack') {
@@ -525,12 +527,17 @@ export default {
this.saleInsuredInfoOther = [] this.saleInsuredInfoOther = []
} else if (detail.name == 'saleInsuredPersonInfoOther') { } else if (detail.name == 'saleInsuredPersonInfoOther') {
this.saleInsuredPersonInfoOther = [] this.saleInsuredPersonInfoOther = []
} else if (detail.name == 'fileListtypebeneficiary') {
that.fileListtypebeneficiary.map((item, index, array) => {
if (item.content == file.content) {
array.splice(index, 1)
} else {
return
}
})
} }
this.deleteImg(file) this.deleteImg(file)
}) })
.catch(() => {
// on cancel
})
}, },
test(type, id) { test(type, id) {
let that = this let that = this