diff --git a/src/views/routine/enlistmentReserve/applicationForm.vue b/src/views/routine/enlistmentReserve/applicationForm.vue index 282710a..9b4ebf0 100644 --- a/src/views/routine/enlistmentReserve/applicationForm.vue +++ b/src/views/routine/enlistmentReserve/applicationForm.vue @@ -546,6 +546,7 @@ export default { this.formData.major = res.rows[0].srsMajors.majorName this.formData.studentId = res.rows[0].stuId this.formData.teacherName = res.rows[0].cphName + this.formData.deptName = res.rows[0].deptName }) } }) @@ -591,6 +592,7 @@ export default { this.formData.className = res.data.className this.formData.grade = res.data.gradeName this.formData.teacherName = res.data.teacherName + this.formData.deptName = res.data.deptName } }) } diff --git a/src/views/routine/enlistmentReserve/index.vue b/src/views/routine/enlistmentReserve/index.vue index aa84e25..09000f0 100644 --- a/src/views/routine/enlistmentReserve/index.vue +++ b/src/views/routine/enlistmentReserve/index.vue @@ -272,6 +272,7 @@ export default { reserveStartDate: null, reserveEndDate: null, approvalNo: null, + deptName: null }, // 表单参数 form: {}, @@ -354,6 +355,8 @@ export default { this.queryParams.studentName = this.user.nickName } else if (this.roleGroup.includes("辅导员")) { this.queryParams.teacherName = this.user.nickName + } else if (this.roleGroup.includes("学务") || this.roleGroup.includes("二级学院")) { + this.queryParams.deptName = this.user.dept.deptName } this.getList() }