From da1557e34fc51f38499ef6c8e0c0637632a86198 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 4 Nov 2021 15:04:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=AD=A3=E5=88=99=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/student/list/index.vue | 14 +++++++---- src/pages/system/list/staff.vue | 40 ++++++++++++++++++++++++-------- 2 files changed, 39 insertions(+), 15 deletions(-) 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 @@ - +