Explorar o código

fix: 个人简历最高学历显示BUG fix

zhangying hai 10 meses
pai
achega
6007c3c0fd
Modificáronse 1 ficheiros con 27 adicións e 2 borrados
  1. 27 2
      vue/src/views/jobUserManager/jobuser/vitae.vue

+ 27 - 2
vue/src/views/jobUserManager/jobuser/vitae.vue

@@ -63,6 +63,13 @@
         <a-table :columns="educationColumns" :data-source="educationData" :pagination="false" bordered
                  style="margin-left: 11px;">
           <template #bodyCell="{ column, index, record}">
+            <template v-if="column.key === 'cultureRank'">
+              <div>
+                {{
+                  getCultureName(record.cultureRank)
+                }}
+              </div>
+            </template>
             <template v-if="column.key === 'schoolTime'">
               <div>
                 {{
@@ -97,8 +104,9 @@ import {onMounted, reactive, ref} from "vue";
 import {getDataById, getEducationList, getExperienceList} from "@/api/jobUserManager/jobuser";
 import avtImg from "@/assets/images/jl-avt.png"
 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 {getSysDictionaryList} from "@/api/system/dictionary";
 
 // 求职人员信息
 const jobUserInfo = reactive({
@@ -172,7 +180,8 @@ const searchParams = reactive({
 });
 // 工作经验数据
 const experienceData = ref<Array<any>>([]);
-
+// 教育经历数据
+const cultureList = ref<SelectProps['options']>();
 
 // 加载求职人员数据
 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(() => {
   const id = history.state.params?.id;
   loadData(id);
   loadEducation(id);
   loadExperienceData(id)
+  getCultureList()
 })
 </script>