mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 15:06:45 +08:00
delete-受益人图片
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user