修改学生预览界面的bug
This commit is contained in:
1 parent
244477a771
commit
760fd8d07a
8 files changed
+1483
-59
No files matched your search
@@ -61,3 +61,15 @@ export const delStudentMsg = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取学生个人信息
|
||||
* @param userId 用户ID,可为空,为空时使用当前登录用户ID
|
||||
*/
|
||||
export const getPersonalInfo = (userId?: number): AxiosPromise<StudentMsgForm> => {
|
||||
return request({
|
||||
url: '/studentMsg/studentMsg/personalInfo',
|
||||
method: 'get',
|
||||
params: { userId }
|
||||
});
|
||||
};
|
||||
File diff suppressed because it is too large.
Load diff
@@ -948,7 +948,7 @@
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="出生日期">
|
||||
<span class="form-value">{{ detailForm.birthDate }}</span>
|
||||
<span class="form-value">{{ proxy.parseTime(detailForm.birthDate, '{y}-{m}-{d}') }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@@ -1053,7 +1053,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="婚姻状况">
|
||||
<span class="form-value">{{ ['', '未婚', '已婚', '离异', '丧偶'][detailForm.maritalStatus] || detailForm.maritalStatus }}</span>
|
||||
<span class="form-value">{{ getMaritalStatusLabel(detailForm.maritalStatus) }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -1225,7 +1225,7 @@
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="家庭经济状况">
|
||||
<span class="form-value">{{ detailForm.familyEconomicStatus }}</span>
|
||||
<span class="form-value">{{ getFamilyEconomicStatusLabel(detailForm.familyEconomicStatus) }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@@ -1253,7 +1253,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="血型">
|
||||
<span class="form-value">{{ detailForm.bloodType }}</span>
|
||||
<span class="form-value">{{ getBloodTypeLabel(detailForm.bloodType) }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -1270,9 +1270,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="残疾类型">
|
||||
<span class="form-value">{{
|
||||
['', '视力残疾', '听力残疾', '智力残疾', '', '', '', '', '', '其他残疾'][detailForm.disabilityType] || detailForm.disabilityType
|
||||
}}</span>
|
||||
<span class="form-value">{{ getDisabilityTypeLabel(detailForm.disabilityType) }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -1335,9 +1333,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="学历层次">
|
||||
<span class="form-value">{{
|
||||
['', '中级工', '高级工', '预备技师', '技师', '中高职一体'][detailForm.academicLevel] || detailForm.academicLevel
|
||||
}}</span>
|
||||
<span class="form-value">{{ getAcademicLevelLabel(detailForm.academicLevel) }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -1349,7 +1345,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="入学日期">
|
||||
<span class="form-value">{{ detailForm.enrollmentDate }}</span>
|
||||
<span class="form-value">{{ proxy.parseTime(detailForm.enrollmentDate, '{y}-{m}-{d}') }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@@ -1517,6 +1513,63 @@ const sys_normal_disable = ref([
|
||||
{ value: '5', label: '毕业' }
|
||||
]);
|
||||
|
||||
/** 婚姻状况码表映射 */
|
||||
const getMaritalStatusLabel = (value: string | number) => {
|
||||
const maritalStatusMap: Record<string, string> = {
|
||||
'1': '未婚',
|
||||
'2': '已婚',
|
||||
'3': '离异',
|
||||
'4': '丧偶'
|
||||
};
|
||||
return maritalStatusMap[String(value)] || value || '未知';
|
||||
};
|
||||
|
||||
/** 家庭经济状况码表映射 */
|
||||
const getFamilyEconomicStatusLabel = (value: string | number) => {
|
||||
const economicStatusMap: Record<string, string> = {
|
||||
'富裕': '富裕',
|
||||
'一般': '一般',
|
||||
'困难': '困难',
|
||||
'特困': '特困'
|
||||
};
|
||||
return economicStatusMap[String(value)] || value || '未知';
|
||||
};
|
||||
|
||||
/** 血型码表映射 */
|
||||
const getBloodTypeLabel = (value: string | number) => {
|
||||
const bloodTypeMap: Record<string, string> = {
|
||||
'A': 'A型',
|
||||
'B': 'B型',
|
||||
'AB': 'AB型',
|
||||
'O': 'O型',
|
||||
'未知': '未知'
|
||||
};
|
||||
return bloodTypeMap[String(value)] || value || '未知';
|
||||
};
|
||||
|
||||
/** 残疾类型码表映射 */
|
||||
const getDisabilityTypeLabel = (value: string | number) => {
|
||||
const disabilityTypeMap: Record<string, string> = {
|
||||
'1': '视力残疾',
|
||||
'2': '听力残疾',
|
||||
'3': '智力残疾',
|
||||
'9': '其他残疾'
|
||||
};
|
||||
return disabilityTypeMap[String(value)] || value || '未知';
|
||||
};
|
||||
|
||||
/** 学历层级码表映射 */
|
||||
const getAcademicLevelLabel = (value: string | number) => {
|
||||
const academicLevelMap: Record<string, string> = {
|
||||
'1': '中级工',
|
||||
'2': '高级工',
|
||||
'3': '预备技师',
|
||||
'4': '技师',
|
||||
'5': '中高职一体'
|
||||
};
|
||||
return academicLevelMap[String(value)] || value || '未知';
|
||||
};
|
||||
|
||||
const activeTab = ref('basic'); // 当前激活的tab页
|
||||
const activeDetailTab = ref('basic'); // 当前激活的详细信息tab页
|
||||
|
||||
|
||||
Reference in new issue
Block a user