Commit 08826362 authored by 郭志伟's avatar 郭志伟

fix: sentry错误修改

parent d00b104f
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
:value="item.value.tpl || item.value" :value="item.value.tpl || item.value"
:class="{ :class="{
'compact-cell': 1, 'compact-cell': 1,
'compact-cell_divider': item.divider, 'compact-cell_divider': item && item.divider,
'compact-cell_inline': item.inline 'compact-cell_inline': item && item.inline
}" }"
:style="{ fontSize: fontSize + 'px' }" :style="{ fontSize: fontSize + 'px' }"
@click="cellClick(item)" @click="cellClick(item)"
......
...@@ -330,7 +330,7 @@ export default { ...@@ -330,7 +330,7 @@ export default {
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData; const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask; let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId; const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList || []; const familyList = this.$refs["insureForm"]?.familyList || [];
if (!currentIdNo) return ""; if (!currentIdNo) return "";
currentIdNo = currentIdNo =
currentIdNo.indexOf("**") > -1 currentIdNo.indexOf("**") > -1
......
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData; const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask; let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId; const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList || []; const familyList = this.$refs["insureForm"]?.familyList || [];
if (!currentIdNo) return ""; if (!currentIdNo) return "";
currentIdNo = currentIdNo =
currentIdNo.indexOf("**") > -1 currentIdNo.indexOf("**") > -1
......
...@@ -339,7 +339,7 @@ export default { ...@@ -339,7 +339,7 @@ export default {
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData; const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask; let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId; const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList || []; const familyList = this.$refs["insureForm"]?.familyList || [];
if (!currentIdNo) return ""; if (!currentIdNo) return "";
currentIdNo = currentIdNo =
currentIdNo.indexOf("**") > -1 currentIdNo.indexOf("**") > -1
......
...@@ -76,15 +76,20 @@ export default { ...@@ -76,15 +76,20 @@ export default {
break; break;
} }
setTimeout(() => { setTimeout(() => {
console.log(document.getElementById("dtp")); const dtp = document.getElementById("dtp");
document.getElementById("dtp").onclick = () => { const zhongyao = document.getElementById("70zhongyao");
this.pupopData = this.planInfo[5].options[0]; if (dtp) {
this.popupShow = true; dtp.onclick = () => {
}; this.pupopData = this.planInfo[5].options[0];
document.getElementById("70zhongyao").onclick = () => { this.popupShow = true;
this.pupopData = this.planInfo[5].options[1]; };
this.popupShow = true; }
}; if (zhongyao) {
zhongyao.onclick = () => {
this.pupopData = this.planInfo[5].options[1];
this.popupShow = true;
};
}
}, 500); }, 500);
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment