fix(staff): 学历统一显示中文(第一学历字典 + 列表/详情格式化)
Co-Authored-By: Claude Code <noreply@anthropic.com>
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // å¦ååå
¸ï¼å端åè±ææä¸¾ï¼é¡µé¢ç»ä¸æ¾ç¤ºä¸æ |
| | | export const EDUCATION_LABELS = { |
| | | secondary: "ä¸ä¸å以ä¸", |
| | | junior_college: "大ä¸", |
| | | bachelor: "æ¬ç§", |
| | | master: "ç¡å£«", |
| | | doctor: "å士å以ä¸", |
| | | }; |
| | | |
| | | export function formatEducation(value) { |
| | | if (value === null || value === undefined || value === "") return value; |
| | | return EDUCATION_LABELS[value] || value; |
| | | } |
| | | |
| | | export default formatEducation; |
| | |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="第ä¸å¦åï¼"> |
| | | {{ currentStaffRecord.firstStudy || '-' }} |
| | | {{ formatEducation(currentStaffRecord.firstStudy) || '-' }} |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | <script setup> |
| | | import { ref, reactive, toRefs, getCurrentInstance } from "vue"; |
| | | import { staffOnJobListPage } from "@/api/personnelManagement/staffOnJob.js"; |
| | | import { formatEducation } from "@/utils/education"; |
| | | import { |
| | | createStaffLeave, |
| | | updateStaffLeave, |
| | |
| | | import FormDia from "@/views/personnelManagement/dimission/components/formDia.vue"; |
| | | import { findStaffLeaveListPage } from "@/api/personnelManagement/staffLeave.js"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import { formatEducation } from "@/utils/education"; |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | |
| | | { |
| | | label: "第ä¸å¦å", |
| | | prop: "firstStudy", |
| | | formatData: formatEducation, |
| | | }, |
| | | { |
| | | label: "ä¸ä¸", |
| | |
| | | import { staffOnJobListPage } from "@/api/personnelManagement/staffOnJob.js"; |
| | | import dayjs from "dayjs"; |
| | | import { getToken } from "@/utils/auth.js"; |
| | | import { formatEducation } from "@/utils/education"; |
| | | import FilesDia from "./filesDia.vue"; |
| | | const data = reactive({ |
| | | searchForm: { |
| | |
| | | { |
| | | label: "第ä¸å¦å", |
| | | prop: "firstStudy", |
| | | formatData: formatEducation, |
| | | }, |
| | | { |
| | | label: "ä¸ä¸", |
| | |
| | | import { staffOnJobListPage } from "@/api/personnelManagement/staffOnJob.js"; |
| | | import dayjs from "dayjs"; |
| | | import { getToken } from "@/utils/auth.js"; |
| | | import { formatEducation } from "@/utils/education"; |
| | | import FilesDia from "./filesDia.vue"; |
| | | const data = reactive({ |
| | | searchForm: { |
| | |
| | | { |
| | | label: "第ä¸å¦å", |
| | | prop: "firstStudy", |
| | | formatData: formatEducation, |
| | | }, |
| | | { |
| | | label: "ä¸ä¸", |
| | |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="第ä¸å¦åï¼"> |
| | | {{ currentStaffRecord.firstStudy || '-' }} |
| | | {{ formatEducation(currentStaffRecord.firstStudy) || '-' }} |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | <script setup> |
| | | import { ref, reactive, toRefs, getCurrentInstance } from "vue"; |
| | | import { staffOnJobListPage } from "@/api/personnelManagement/staffOnJob.js"; |
| | | import { formatEducation } from "@/utils/education"; |
| | | import { |
| | | createStaffLeave, |
| | | updateStaffLeave, |
| | |
| | | batchDeleteStaffLeaves, |
| | | } from "@/api/personnelManagement/staffLeave.js"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import { formatEducation } from "@/utils/education"; |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | |
| | | { |
| | | label: "第ä¸å¦å", |
| | | prop: "firstStudy", |
| | | formatData: formatEducation, |
| | | }, |
| | | { |
| | | label: "ä¸ä¸", |