|
@@ -27,7 +27,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="form-item">
|
|
<div class="form-item">
|
|
<div class="item-label">学校</div>
|
|
<div class="item-label">学校</div>
|
|
- <el-select v-model="form.school" filterable :filter-method="filterMethod" placeholder="请选择">
|
|
|
|
|
|
+ <el-select v-model="form.school" filterable placeholder="请选择">
|
|
<el-option v-for="item in schoolList" :key="item.value" :label="item.label" :value="item.value">
|
|
<el-option v-for="item in schoolList" :key="item.value" :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -67,7 +67,6 @@ export default {
|
|
value: 2
|
|
value: 2
|
|
}],
|
|
}],
|
|
schoolList: [],
|
|
schoolList: [],
|
|
- schoolData: [],
|
|
|
|
areaList: []
|
|
areaList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -86,16 +85,13 @@ export default {
|
|
id: val
|
|
id: val
|
|
}
|
|
}
|
|
}).then(r => {
|
|
}).then(r => {
|
|
- this.schoolData = r.list.map(item => ({
|
|
|
|
|
|
+ this.schoolList = r.list.map(item => ({
|
|
label: item.schoolName,
|
|
label: item.schoolName,
|
|
value: item.id
|
|
value: item.id
|
|
}))
|
|
}))
|
|
- this.schoolList = this.schoolData
|
|
|
|
|
|
+ this.$set(this.form, 'school', null)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- filterMethod (val) {
|
|
|
|
- this.schoolList = this.schoolData.filter(item => item.label.includes(val))
|
|
|
|
- },
|
|
|
|
submit (e) {
|
|
submit (e) {
|
|
// let {actualName,age,area,grade,other,school} = this.data.form
|
|
// let {actualName,age,area,grade,other,school} = this.data.form
|
|
// let id = wx.getStorageSync('id')
|
|
// let id = wx.getStorageSync('id')
|