This commit is contained in:
邓晓坤
2019-10-15 09:43:22 +08:00
parent 1c4059208d
commit 3b6386c683

View File

@@ -495,8 +495,7 @@ export default {
methods: { methods: {
// 删除图片前 // 删除图片前
beforeDelete(file, detail) { beforeDelete(file, detail) {
console.log(this.fileListtypebeneficiary)
console.log(file)
let that = this let that = this
Dialog.confirm({ Dialog.confirm({
title: '提示', title: '提示',
@@ -545,8 +544,6 @@ export default {
test(type, id) { test(type, id) {
let that = this let that = this
that.id = id that.id = id
// console.log(id)
// console.log(type)
switch (type) { switch (type) {
case 'fileListIdFront': case 'fileListIdFront':
that.type = type that.type = type
@@ -592,9 +589,6 @@ export default {
deleteImg(file) { deleteImg(file) {
let that = this let that = this
that.list.map((item, index, array) => { that.list.map((item, index, array) => {
// console.log(item.rgssUrl)
// console.log(file.file.name)
// console.log(item.rgssUrl.indexOf(file.file.name))
if (item.fileName.indexOf(file.file.name) == -1) { if (item.fileName.indexOf(file.file.name) == -1) {
return return
} else { } else {
@@ -982,7 +976,7 @@ export default {
// 2.指定受益人 // 2.指定受益人
// 3.受益人与被保人关系为其他 // 3.受益人与被保人关系为其他
let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo')) let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
console.log(JSON.parse(window.localStorage.getItem('beneficiaryInfo')))
if (window.localStorage.getItem('fromAddBeneficiaryInfo') && JSON.parse(window.localStorage.getItem('trialList'))[0].prem >= 200000) { if (window.localStorage.getItem('fromAddBeneficiaryInfo') && JSON.parse(window.localStorage.getItem('trialList'))[0].prem >= 200000) {
for (let index = 0; index < beneficiaryInfoList.length; index++) { for (let index = 0; index < beneficiaryInfoList.length; index++) {
if (beneficiaryInfoList[index].relationToInsured == 5) { if (beneficiaryInfoList[index].relationToInsured == 5) {
@@ -1010,7 +1004,6 @@ export default {
saleInsuredInfoOther, saleInsuredInfoOther,
fileListtypebeneficiary fileListtypebeneficiary
} = this } = this
console.log(this)
return { return {
fileListIdFront, fileListIdFront,
fileListIdBack, fileListIdBack,
@@ -1030,7 +1023,6 @@ export default {
}, },
watch: { watch: {
listenChange(val) { listenChange(val) {
console.log(this.typebeneficiary, 'typebeneficiary')
let that = this let that = this
if ( if (
(val.fileListIdFront.length != '0' && (val.fileListIdFront.length != '0' &&