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 //绑定是否购买过其他公司保险的数据字典