From b5d80d0f767482f58aa17cadb26d7992665d076c Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Thu, 30 Apr 2020 15:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8C=BB=E9=99=A2=E6=90=9C=E7=B4=A2=E6=97=B6=EF=BC=8C=E5=8D=A1?= =?UTF-8?q?=E9=A1=BF=E9=97=AE=E9=A2=98=EF=BC=9B=E4=B8=8D=E5=85=A8=E9=87=8F?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=87=BA=E6=89=80=E6=9C=89=E5=8C=BB=E9=99=A2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/claims/Accident.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/ebiz/claims/Accident.vue b/src/views/ebiz/claims/Accident.vue index 6a46eeab9..a4be3dcb4 100644 --- a/src/views/ebiz/claims/Accident.vue +++ b/src/views/ebiz/claims/Accident.vue @@ -194,10 +194,13 @@ export default { }, computed: { columnsHosCols: function () { - return this.columnsHos.filter(item => { - return item.text.search(this.searchHos) != -1 - }) - } + if( this.searchHos == ''){ + return [] + } + return this.columnsHos.filter(item => { + return item.text.search(this.searchHos) != -1 + }) + } }, data() { return { @@ -298,6 +301,7 @@ export default { this.userInfo.businessNo = localStorage.businessNo console.log(this.userInfo.businessNo) this.init() + this.columnsHos = Hospital.hospitalList }, beforeRouteLeave(to, from, next) { if(to.fullPath == '/claims/insuredInfo'){ @@ -355,9 +359,7 @@ export default { // ;[this.popupShow, this.pickerType] = [true, pickerType] if (valueKey) this.valueKey = valueKey if (pickerType == '1') { - //绑定治疗医院数据字典 this.popupShowHos = true - this.columnsHos = Hospital.hospitalList } else if (pickerType == '2') { this.popupShow = true //绑定是否购买过其他公司保险的数据字典