|
@@ -49,20 +49,24 @@ export default {
|
|
|
schoolName: '', // 乐团名称
|
|
|
phoneNumber: '', // 手机号
|
|
|
branchId: '', // 分部编号
|
|
|
+ classId: '', // 乐团编号
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
let route = this.$route.query
|
|
|
let params = {
|
|
|
- clazzId: route.classId,
|
|
|
schoolId: route.schoolId
|
|
|
}
|
|
|
axios.post(`/user/getClassDetail`,qs.stringify(params)).then((response) => {
|
|
|
let result = response.data
|
|
|
- this.dataList.schoolName = result.data.name
|
|
|
- this.dataList.branchId = result.data.branchId
|
|
|
- this.dataList.status = result.data.status
|
|
|
+ this.dataList = {
|
|
|
+ status: result.data.status,
|
|
|
+ schoolName: result.data.name,
|
|
|
+ phoneNumber: '',
|
|
|
+ branchId: result.data.branchId,
|
|
|
+ classId: result.data.id
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
@@ -74,7 +78,8 @@ export default {
|
|
|
return false;
|
|
|
}
|
|
|
let params = this.$route.query
|
|
|
- axios.get(`/user/getUserDetailByPhone?clazzId=${params.classId}&phone=${this.dataList.phoneNumber}&cityId=${params.cityId}`).then((res) => {
|
|
|
+ console.log(this.dataList)
|
|
|
+ axios.get(`/user/getUserDetailByPhone?clazzId=${this.dataList.classId}&phone=${this.dataList.phoneNumber}&cityId=${params.cityId}`).then((res) => {
|
|
|
let result = res.data
|
|
|
// 判断是否有数据
|
|
|
if(result.status) {
|
|
@@ -109,7 +114,7 @@ export default {
|
|
|
query: {
|
|
|
phone: this.dataList.phoneNumber,
|
|
|
cityId: params.cityId,
|
|
|
- classId: params.classId,
|
|
|
+ classId: this.dataList.classId,
|
|
|
schoolId: params.schoolId,
|
|
|
branchId: this.dataList.branchId
|
|
|
}
|