|
@@ -63,6 +63,13 @@
|
|
<a-table :columns="educationColumns" :data-source="educationData" :pagination="false" bordered
|
|
<a-table :columns="educationColumns" :data-source="educationData" :pagination="false" bordered
|
|
style="margin-left: 11px;">
|
|
style="margin-left: 11px;">
|
|
<template #bodyCell="{ column, index, record}">
|
|
<template #bodyCell="{ column, index, record}">
|
|
|
|
+ <template v-if="column.key === 'cultureRank'">
|
|
|
|
+ <div>
|
|
|
|
+ {{
|
|
|
|
+ getCultureName(record.cultureRank)
|
|
|
|
+ }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
<template v-if="column.key === 'schoolTime'">
|
|
<template v-if="column.key === 'schoolTime'">
|
|
<div>
|
|
<div>
|
|
{{
|
|
{{
|
|
@@ -97,8 +104,9 @@ import {onMounted, reactive, ref} from "vue";
|
|
import {getDataById, getEducationList, getExperienceList} from "@/api/jobUserManager/jobuser";
|
|
import {getDataById, getEducationList, getExperienceList} from "@/api/jobUserManager/jobuser";
|
|
import avtImg from "@/assets/images/jl-avt.png"
|
|
import avtImg from "@/assets/images/jl-avt.png"
|
|
import {ManOutlined, WomanOutlined} from '@ant-design/icons-vue';
|
|
import {ManOutlined, WomanOutlined} from '@ant-design/icons-vue';
|
|
-import type {TableColumnsType} from "ant-design-vue";
|
|
|
|
|
|
+import type {SelectProps, TableColumnsType} from "ant-design-vue";
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
|
+import {getSysDictionaryList} from "@/api/system/dictionary";
|
|
|
|
|
|
// 求职人员信息
|
|
// 求职人员信息
|
|
const jobUserInfo = reactive({
|
|
const jobUserInfo = reactive({
|
|
@@ -172,7 +180,8 @@ const searchParams = reactive({
|
|
});
|
|
});
|
|
// 工作经验数据
|
|
// 工作经验数据
|
|
const experienceData = ref<Array<any>>([]);
|
|
const experienceData = ref<Array<any>>([]);
|
|
-
|
|
|
|
|
|
+// 教育经历数据
|
|
|
|
+const cultureList = ref<SelectProps['options']>();
|
|
|
|
|
|
// 加载求职人员数据
|
|
// 加载求职人员数据
|
|
const loadData = (id: any) => {
|
|
const loadData = (id: any) => {
|
|
@@ -208,12 +217,28 @@ const loadExperienceData = (id: any) => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// 获取教育经历数据
|
|
|
|
+const getCultureList = () => {
|
|
|
|
+ getSysDictionaryList('CultureLevel').then((data) => {
|
|
|
|
+ cultureList.value = data;
|
|
|
|
+ });
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+function getCultureName(value: any) {
|
|
|
|
+ let filter = cultureList.value?.filter(item => item.value == value);
|
|
|
|
+ if (filter && filter.length > 0) {
|
|
|
|
+ return filter[0].name
|
|
|
|
+ }
|
|
|
|
+ return "";
|
|
|
|
+}
|
|
|
|
+
|
|
// 页面初始化
|
|
// 页面初始化
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
const id = history.state.params?.id;
|
|
const id = history.state.params?.id;
|
|
loadData(id);
|
|
loadData(id);
|
|
loadEducation(id);
|
|
loadEducation(id);
|
|
loadExperienceData(id)
|
|
loadExperienceData(id)
|
|
|
|
+ getCultureList()
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|