|
|
@ -11,7 +11,7 @@ |
|
|
|
<div class="patient-list-item"> |
|
|
|
<div class="search-box"> |
|
|
|
<a-input placeholder="姓名 (支持拼音、首拼、关键字)" style="width: 100%" size="large" v-model="searchVal" |
|
|
|
@pressEnter="onSearch" allowClear @change="handleSearchChange"> |
|
|
|
@pressEnter="onSearch" allowClear> |
|
|
|
<a-icon slot="prefix" type="search" @click="onSearch" /> |
|
|
|
</a-input> |
|
|
|
</div> |
|
|
@ -19,7 +19,7 @@ |
|
|
|
</div> |
|
|
|
<div class="patient-detail"> |
|
|
|
<patient-detail ref="patientDetail" :firstAidData="firstAidData" :carList="carList" :carNo="carNo" |
|
|
|
@change="changeComponent"></patient-detail> |
|
|
|
@change="changeComponent" @on-success="onSearch"></patient-detail> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -228,10 +228,6 @@ |
|
|
|
'setVideo', |
|
|
|
'setBook', |
|
|
|
]), |
|
|
|
handleSearchChange(e){ |
|
|
|
console.log(e.data) |
|
|
|
if(!e.data) this.onSearch() |
|
|
|
}, |
|
|
|
//搜索 |
|
|
|
onSearch(data) { |
|
|
|
this.$refs.patientList.getData(1, this.searchVal, 'search') |
|
|
|