|
@@ -2,8 +2,8 @@
|
|
|
* @Description: 招聘就业
|
|
|
* @Author: 空白格
|
|
|
* @Date: 2022-08-11 13:25:43
|
|
|
- * @LastEditors: gcz
|
|
|
- * @LastEditTime: 2022-08-23 17:34:50
|
|
|
+ * @LastEditors: 空白格
|
|
|
+ * @LastEditTime: 2022-12-13 14:19:48
|
|
|
* @FilePath: \veterans_client_web\src\views\RecruitmentEmployment\RecruitmentEmploymentIndex.vue
|
|
|
* @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
|
|
|
-->
|
|
@@ -103,7 +103,10 @@
|
|
|
v-for="(item, index) in postList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <div class="latest-recruitment-list-item" @click="jumpPage('enterprisePosition',{ positionId: item.id })">
|
|
|
+ <div
|
|
|
+ class="latest-recruitment-list-item"
|
|
|
+ @click="jumpPage('enterprisePosition', { positionId: item.id })"
|
|
|
+ >
|
|
|
<div class="logo">
|
|
|
<el-image
|
|
|
class="image"
|
|
@@ -127,9 +130,10 @@
|
|
|
<div class="postname">{{ item.postName || "-" }}</div>
|
|
|
<div class="condition">
|
|
|
{{
|
|
|
- `${item.areaName || "-"} | 工作${
|
|
|
- item.workYear || "-"
|
|
|
- }年 | ${getEducationLevel(item.educationBg)}`
|
|
|
+ `${item.areaName || "-"} | ${getDictLabel(
|
|
|
+ workYearList,
|
|
|
+ item.workYear
|
|
|
+ )} | ${getEducationLevel(item.educationBg)}`
|
|
|
}}
|
|
|
</div>
|
|
|
<div>{{ item.companyName || "-" }}</div>
|
|
@@ -183,6 +187,7 @@ export default {
|
|
|
},
|
|
|
postList: [],
|
|
|
educationList: [],
|
|
|
+ workYearList: [],
|
|
|
parseTime: parseTime,
|
|
|
total: 0,
|
|
|
loading: false,
|
|
@@ -203,6 +208,9 @@ export default {
|
|
|
getDictData({ key: "degr_educ" }).then((res) => {
|
|
|
this.educationList = res.data;
|
|
|
});
|
|
|
+ getDictData({ key: "work_year" }).then((res) => {
|
|
|
+ this.workYearList = res.data;
|
|
|
+ });
|
|
|
},
|
|
|
/**
|
|
|
* 获取推荐企业
|
|
@@ -269,6 +277,26 @@ export default {
|
|
|
query,
|
|
|
});
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 获取字典label
|
|
|
+ * @date 2022-12-13
|
|
|
+ * @param {any} list
|
|
|
+ * @param {any} value
|
|
|
+ * @returns {any}
|
|
|
+ */
|
|
|
+ getDictLabel(list, value) {
|
|
|
+ let label = "-";
|
|
|
+ try {
|
|
|
+ list.forEach((item) => {
|
|
|
+ if (String(item.text) === String(value)) {
|
|
|
+ throw item;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } catch (e) {
|
|
|
+ label = e.label;
|
|
|
+ }
|
|
|
+ return label;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|