修改
This commit is contained in:
parent
252e181057
commit
ef1a85e88e
@ -224,6 +224,11 @@
|
||||
},
|
||||
//提交
|
||||
submitend() {
|
||||
if(this.form.studentSex=='男'){
|
||||
this.$set(this.form,'studentSex','MALE')
|
||||
}else if(this.form.studentSex=='女'){
|
||||
this.$set(this.form,'studentSex','FEMALE')
|
||||
}
|
||||
if (!this.form.kindergartenName) {
|
||||
this.$refs.uToast.show({
|
||||
message: "请选择所属幼儿园",
|
||||
@ -236,12 +241,7 @@
|
||||
type: 'error',
|
||||
duration: '2000'
|
||||
})
|
||||
}
|
||||
if(this.form.studentSex=='男'){
|
||||
this.$set(this.form,'studentSex','MALE')
|
||||
}else if(this.form.studentSex=='女'){
|
||||
this.$set(this.form,'studentSex','FEMALE')
|
||||
}
|
||||
}else{
|
||||
this.$refs.uForm.validate().then(res => {
|
||||
// uni.$u.toast('校验通过')
|
||||
updateStudent(this.form).then(res => {
|
||||
@ -258,7 +258,6 @@
|
||||
}, 1000)
|
||||
|
||||
} else if (res.code == 500) {
|
||||
console.log('11111111')
|
||||
this.$refs.uToast.show({
|
||||
message: res.msg,
|
||||
type: 'error',
|
||||
@ -267,12 +266,9 @@
|
||||
}
|
||||
})
|
||||
}).catch(errors => {
|
||||
this.$refs.uToast.show({
|
||||
message: errors,
|
||||
type: 'error',
|
||||
duration: '2000'
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user