|
|
|
|
@ -220,12 +220,12 @@ export default {
|
|
|
|
|
message: '请选择中考年份'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
city: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择城市'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
// city: [
|
|
|
|
|
// {
|
|
|
|
|
// required: true,
|
|
|
|
|
// message: '请选择城市'
|
|
|
|
|
// }
|
|
|
|
|
// ],
|
|
|
|
|
area: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
@ -248,6 +248,9 @@ export default {
|
|
|
|
|
for (let key in this.form) {
|
|
|
|
|
if (user.hasOwnProperty(key) && key !== 'user_scores') {
|
|
|
|
|
this.form[key] = user[key]
|
|
|
|
|
if(key==='city'){
|
|
|
|
|
this.form[key] = user[key]?user[key]:'苏州市'
|
|
|
|
|
}
|
|
|
|
|
} else if (key === 'user_scores') {
|
|
|
|
|
this.form['user_scores'].forEach(item => {
|
|
|
|
|
if (user['user_scores'].find(j => j.name === item.name)) {
|
|
|
|
|
@ -257,6 +260,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error(err)
|
|
|
|
|
}
|
|
|
|
|
@ -357,7 +361,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onReady() {
|
|
|
|
|
this.getArea()
|
|
|
|
|
this.getArea()
|
|
|
|
|
this.$refs.uForm.setRules(this.rules)
|
|
|
|
|
this.getInfo()
|
|
|
|
|
}
|
|
|
|
|
|