应征入伍保留学籍工作流

This commit is contained in:
2025-11-11 11:51:55 +08:00
parent c65915df8c
commit eee7b48ad1
3 changed files with 20 additions and 3 deletions

View File

@@ -42,3 +42,11 @@ export function delEnlistmentReserve(id) {
method: 'post'
})
}
export function getOwnInfo(){
return request({
url:'/comprehensive/stuInfoView/getOwnInfo',
method:'GET'
})
}

View File

@@ -275,7 +275,7 @@
</template>
<script>
import { getStudent, getEnlistmentReserve, delEnlistmentReserve, addEnlistmentReserve, updateEnlistmentReserve } from "@/api/routine/enlistmentReserve/enlistmentReserve";
import { getOwnInfo, getEnlistmentReserve, delEnlistmentReserve, addEnlistmentReserve, updateEnlistmentReserve } from "@/api/routine/enlistmentReserve/enlistmentReserve";
import { getUserProfile } from '@/api/system/user' // 获取当前登录用户
export default {
name: 'EnlistmentReserveForm',
@@ -286,6 +286,7 @@ export default {
id: null,
applyNo: '',
studentId: null,
teacherName: '',
studentName: '',
gender: '',
nation: '',
@@ -435,8 +436,15 @@ export default {
if (this.user) {
this.formData.studentName = this.user.nickName
this.formData.gender = this.user.sex
this.formData.studentId = this.user.userId
this.formData.studentNo = this.user.userName
getOwnInfo().then(res => {
console.log(res);
this.formData.studentId = res.data.stuId
this.formData.studentNo = res.data.stuNo
this.formData.major = res.data.majorName
this.formData.className = res.data.className
this.formData.grade = res.data.gradeName
this.formData.teacherName = res.data.teacherName
})
}
})
},

View File

@@ -68,6 +68,7 @@
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="申请编号" align="center" prop="applyNo" />
<el-table-column label="姓名" align="center" prop="studentName" />
<el-table-column label="辅导员姓名" align="center" prop="teacherName" />
<el-table-column label="性别" align="center" prop="gender" />
<el-table-column label="民族" align="center" prop="nation">
<template slot-scope="scope">