|
@@ -164,6 +164,12 @@ export default {
|
164
|
164
|
this.Form[key] = this.Student[key]
|
165
|
165
|
}
|
166
|
166
|
}
|
|
167
|
+ this.SexList.map((item, index) => {
|
|
168
|
+ if (item.id === this.Student.sex) {
|
|
169
|
+ this.SexIndex = index
|
|
170
|
+ }
|
|
171
|
+ })
|
|
172
|
+ this.Form.sex = this.Student.sex
|
167
|
173
|
}
|
168
|
174
|
},
|
169
|
175
|
SexChange (e) {
|
|
@@ -188,6 +194,7 @@ export default {
|
188
|
194
|
Data[key] = this.Form[key]
|
189
|
195
|
}
|
190
|
196
|
}
|
|
197
|
+ // console.log(Data)
|
191
|
198
|
this.PutUserInfo({ data: { data: { ...Data } } }).then((res) => {
|
192
|
199
|
this.UpdateStudentInfo({ ...res.data.data })
|
193
|
200
|
wx.showToast({
|