diff --git a/src/pages/student/list/index.vue b/src/pages/student/list/index.vue index 49b94c8..c30583f 100644 --- a/src/pages/student/list/index.vue +++ b/src/pages/student/list/index.vue @@ -151,7 +151,7 @@ - + @@ -266,7 +266,8 @@ export default { } else { var pattern = /^[A-Za-z0-9]*$/; if(pattern.test(value)){ - this.accountChange() + this.accountChange(); + callback(); }else{ callback(new Error('请输入正确账号格式')); } @@ -278,7 +279,8 @@ export default { } else { var pattern = /^[A-Za-z0-9]*$/; if(pattern.test(value)){ - this.worknumberChange() + this.worknumberChange(); + callback(); }else{ callback(new Error('请输入正确学生学号格式')); } @@ -759,11 +761,11 @@ export default { if (this.isAdd) { this.showTree = false; this.$post(`${this.api.getDetailByAccount}?workNumber=${this.form.workNumber}&platformId=${Setting.platformId}&type=1`).then(res => { - this.form = res.data; + this.showTree = true; let classId = res.data.classList.map(e => e.id); this.form.classId = classId.toString(); delete this.form.classList; - this.showTree = true; + // this.showTree = true; this.accountReapeat = false; this.$refs.form.clearValidate(); }).catch(res => {}); @@ -774,6 +776,7 @@ export default { } }, worknumberChange() { + console.log(this.form) if (this.form.workNumber) { let url = ""; if (this.isAdd && !this.form.accountId) { @@ -782,6 +785,7 @@ export default { url = `${this.api.checkWorkNumOrAccount}?platformId=${Setting.platformId}&type=1&accountId=${this.form.accountId}&workNumber=${this.form.workNumber}&account=`; } this.$post(url).then(res => { + console.log(res) if (res.status === 200) { this.workNumberReapeat = false; } diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue index 704cad2..33d0aa8 100644 --- a/src/pages/system/list/staff.vue +++ b/src/pages/system/list/staff.vue @@ -47,7 +47,7 @@ width="30%" @close="closeTeacher" class="dialog" :close-on-click-modal="false"> - + @@ -66,7 +66,7 @@ - +