Browse Source

20250307

master
领悟 4 months ago
parent
commit
e604eafc52
  1. 8
      src/views/Patient/index.vue

8
src/views/Patient/index.vue

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

Loading…
Cancel
Save