From 2c5823df096f55bfd5b141b6d7f41b9c0f4caa06 Mon Sep 17 00:00:00 2001 From: liweijie Date: Tue, 22 Sep 2026 09:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E7=A0=94=E5=AE=A4-=E6=95=99=E5=91=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E6=96=B0=E5=BB=BA=E6=95=99=E5=91=98?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=9C=A8=E8=81=8C=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=92=8C=E5=AF=BC=E5=B8=88=E7=B1=BB=E5=9E=8B=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=8B=E6=8B=89=EF=BC=8C=E5=9C=A8=E8=81=8C=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=BB=98=E8=AE=A4=E5=9C=A8=E8=81=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/teachOffice/teacher/index.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/teachOffice/teacher/index.vue b/frontend/src/views/teachOffice/teacher/index.vue index 2816a7dd..7d46fa1b 100644 --- a/frontend/src/views/teachOffice/teacher/index.vue +++ b/frontend/src/views/teachOffice/teacher/index.vue @@ -462,7 +462,11 @@ - + + + + + @@ -781,7 +785,7 @@ export default { xslx: [{ required: true, message: '请选择虚实类型', trigger: 'change' }], jylb: [{ required: true, message: '请输入教员类别', trigger: 'blur' }], zzlb: [{ required: true, message: '请输入在职类别', trigger: 'blur' }], - dslb: [{ required: true, message: '请输入导师类别', trigger: 'blur' }], + dslb: [{ required: true, message: '请选择导师类别', trigger: 'change' }], xy: [{ required: true, message: '请输入学缘', trigger: 'blur' }], ewyxkbs: [{ required: true, message: '请输入额外允许开班数', trigger: 'change' }], wxjy: [{ required: true, message: '请选择外训教员', trigger: 'change' }], @@ -806,6 +810,7 @@ export default { jylbOptions: [], zzlbOptions: [], dslbOptions: [], + defaultZzlb: '1', // 教研室下拉(新增教员时选择所属教研室) officeOptions: [], officeLoading: false, @@ -875,7 +880,11 @@ export default { loadDicts() { getDicts('teacher_zyjszwdj').then(res => { this.zyjszwdjOptions = res.data || [] }).catch(() => {}) getDicts('teacher_jylb').then(res => { this.jylbOptions = res.data || [] }).catch(() => {}) - getDicts('teacher_zzlb').then(res => { this.zzlbOptions = res.data || [] }).catch(() => {}) + getDicts('teacher_zzlb').then(res => { + this.zzlbOptions = res.data || [] + const hit = this.zzlbOptions.find(o => o.dictLabel === '在职') + if (hit) this.defaultZzlb = hit.dictValue + }).catch(() => {}) getDicts('teacher_dslb').then(res => { this.dslbOptions = res.data || [] }).catch(() => {}) }, @@ -918,7 +927,7 @@ export default { return { teacher: { jybh: '', jyxm: '', jysdh: '', xh: '', zyjszwdj: '', zyjszwdjsj: '', - xslx: 1, jylb: '', zzlb: '', dslb: '', xy: '', sfzh: '', xb: 1, + xslx: 1, jylb: '', zzlb: this.defaultZzlb, dslb: '', xy: '', sfzh: '', xb: 1, wxjy: 0, wxyy: 0, zzljy: 0, ewyxkbs: 0, zc: '', sjh: '', kh: '', py: '', zcsj: '', bz: '' },