html:
<van-field
v-model="meetingname"
left-icon="search"
style="border-radius:25px;height: 35px;line-height: 15px;"
placeholder="会议搜索"
/>
data:
meetingname: “”
watch: {
meetingname(val) {
this.loaddata();
}
},
js:
loaddata: async function() {
let _self = this;
try {
let { data } = await _self.$http.get(
`/screenmeetingapply?skip=0&take=&startTime=&endTime=&purpose=${this.meetingname}&unitid=${this.unitid}`
);
if (data.result == "success") {
_self.mydepartdata = data.data;
}
} catch (error) {
console.log(error);
}
},