mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 00:26:44 +08:00
delete-受益人图片
This commit is contained in:
@@ -492,45 +492,52 @@ 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(() => {
|
||||||
|
if (detail.name == 'fileListIdFront') {
|
||||||
|
this.fileListIdFront = []
|
||||||
|
} else if (detail.name == 'fileListIdBack') {
|
||||||
|
this.fileListIdBack = []
|
||||||
|
} else if (detail.name == 'fileLIstImg') {
|
||||||
|
this.fileLIstImg = []
|
||||||
|
} else if (detail.name == 'fileListBank') {
|
||||||
|
this.fileListBank = []
|
||||||
|
} else if (detail.name == 'fileListBankBack') {
|
||||||
|
this.fileListBankBack = []
|
||||||
|
} else if (detail.name == 'fileListIdFrontInsured') {
|
||||||
|
this.fileListIdFrontInsured = []
|
||||||
|
} else if (detail.name == 'fileListIdBackInsured') {
|
||||||
|
this.fileListIdBackInsured = []
|
||||||
|
} else if (detail.name == 'fileListBankInsured') {
|
||||||
|
this.fileListBankInsured = []
|
||||||
|
} else if (detail.name == 'fileLIstImgInsured') {
|
||||||
|
this.fileLIstImgInsured = []
|
||||||
|
} else if (detail.name == 'fileListOtherOne') {
|
||||||
|
this.fileListOtherOne = []
|
||||||
|
} else if (detail.name == 'fileListOtherTwo') {
|
||||||
|
this.fileListOtherTwo = []
|
||||||
|
} else if (detail.name == 'fileListOtherThree') {
|
||||||
|
this.fileListOtherThree = []
|
||||||
|
} else if (detail.name == 'saleInsuredInfoOther') {
|
||||||
|
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)
|
||||||
})
|
})
|
||||||
.then(() => {
|
|
||||||
if (detail.name == 'fileListIdFront') {
|
|
||||||
this.fileListIdFront = []
|
|
||||||
} else if (detail.name == 'fileListIdBack') {
|
|
||||||
this.fileListIdBack = []
|
|
||||||
} else if (detail.name == 'fileLIstImg') {
|
|
||||||
this.fileLIstImg = []
|
|
||||||
} else if (detail.name == 'fileListBank') {
|
|
||||||
this.fileListBank = []
|
|
||||||
} else if (detail.name == 'fileListBankBack') {
|
|
||||||
this.fileListBankBack = []
|
|
||||||
} else if (detail.name == 'fileListIdFrontInsured') {
|
|
||||||
this.fileListIdFrontInsured = []
|
|
||||||
} else if (detail.name == 'fileListIdBackInsured') {
|
|
||||||
this.fileListIdBackInsured = []
|
|
||||||
} else if (detail.name == 'fileListBankInsured') {
|
|
||||||
this.fileListBankInsured = []
|
|
||||||
} else if (detail.name == 'fileLIstImgInsured') {
|
|
||||||
this.fileLIstImgInsured = []
|
|
||||||
} else if (detail.name == 'fileListOtherOne') {
|
|
||||||
this.fileListOtherOne = []
|
|
||||||
} else if (detail.name == 'fileListOtherTwo') {
|
|
||||||
this.fileListOtherTwo = []
|
|
||||||
} else if (detail.name == 'fileListOtherThree') {
|
|
||||||
this.fileListOtherThree = []
|
|
||||||
} else if (detail.name == 'saleInsuredInfoOther') {
|
|
||||||
this.saleInsuredInfoOther = []
|
|
||||||
} else if (detail.name == 'saleInsuredPersonInfoOther') {
|
|
||||||
this.saleInsuredPersonInfoOther = []
|
|
||||||
}
|
|
||||||
this.deleteImg(file)
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
// on cancel
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
test(type, id) {
|
test(type, id) {
|
||||||
let that = this
|
let that = this
|
||||||
@@ -837,7 +844,7 @@ export default {
|
|||||||
subBusinessNo: '',
|
subBusinessNo: '',
|
||||||
fileName: that.imgName
|
fileName: that.imgName
|
||||||
}
|
}
|
||||||
that.list.push(obj)
|
that.list.push(obj)
|
||||||
}
|
}
|
||||||
// })
|
// })
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user