|
|
@@ -5,6 +5,8 @@
|
|
|
type="text"
|
|
|
placeholder="请输入学员姓名搜索,支持拼音首字母"
|
|
|
placeholder-style="color:#999;"
|
|
|
+ v-model="query"
|
|
|
+ @input="getData()"
|
|
|
>
|
|
|
<text class="iconfont iconsearch _search_icon"></text>
|
|
|
</view>
|
|
|
@@ -54,7 +56,8 @@ import { pxApplyList } from '@/api/px-apply/index'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
- initData: []
|
|
|
+ initData: [],
|
|
|
+ query: ''
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
@@ -63,7 +66,7 @@ export default {
|
|
|
methods: {
|
|
|
getData () {
|
|
|
console.log(1111)
|
|
|
- pxApplyList().then(res => {
|
|
|
+ pxApplyList({ name: this.query }).then(res => {
|
|
|
console.log('res===>', res)
|
|
|
this.initData = res.data.list
|
|
|
}).catch(err => { console.log(err) })
|