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: {
// 删除图片前
beforeDelete(file, detail) {
console.log(this.fileListtypebeneficiary)
console.log(file)
let that = this
Dialog.confirm({
title: '提示',
message: '您确定要删除吗'
})
.then(() => {
}).then(() => {
if (detail.name == 'fileListIdFront') {
this.fileListIdFront = []
} else if (detail.name == 'fileListIdBack') {
@@ -525,12 +527,17 @@ export default {
this.saleInsuredInfoOther = []
} else if (detail.name == '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)
})
.catch(() => {
// on cancel
})
},
test(type, id) {
let that = this