|
@@ -908,6 +908,13 @@ Page({
|
|
},
|
|
},
|
|
/** 确定选择学校 */
|
|
/** 确定选择学校 */
|
|
onSubmitSchool() {
|
|
onSubmitSchool() {
|
|
|
|
+ if(this.data.tempChangeSchoolAreaId === this.data.schoolAreaId) {
|
|
|
|
+ this.setData({
|
|
|
|
+ showSchool: false
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
const detail = this.data.schoolAreaList.find((item: any) => item.value === this.data.tempChangeSchoolAreaId)
|
|
const detail = this.data.schoolAreaList.find((item: any) => item.value === this.data.tempChangeSchoolAreaId)
|
|
const detailIndex = this.data.schoolAreaList.findIndex((item: any) => item.value === this.data.tempChangeSchoolAreaId)
|
|
const detailIndex = this.data.schoolAreaList.findIndex((item: any) => item.value === this.data.tempChangeSchoolAreaId)
|
|
// console.log(detail, detailIndex, this.data.tempChangeSchoolAreaId)
|
|
// console.log(detail, detailIndex, this.data.tempChangeSchoolAreaId)
|