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