|
@@ -3,7 +3,7 @@
|
|
|
* @Author: 空白格
|
|
|
* @Date: 2022-08-15 14:54:50
|
|
|
* @LastEditors: 空白格
|
|
|
- * @LastEditTime: 2022-08-25 16:26:15
|
|
|
+ * @LastEditTime: 2022-12-13 13:36:42
|
|
|
* @FilePath: \veterans_client_web\src\views\CooperativeEnterprise\EnterpriseDetails\EnterpriseDetailsIndex.vue
|
|
|
* @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
|
|
|
-->
|
|
@@ -34,7 +34,9 @@
|
|
|
</div>
|
|
|
<div class="edhb-right">
|
|
|
<div class="edhb-right-item">{{ details.companyName || "-" }}</div>
|
|
|
- <div class="edhb-right-item">{{ details.scope | filtersDict(companyScopeList) }}</div>
|
|
|
+ <div class="edhb-right-item">
|
|
|
+ {{ details.scope | filtersDict(companyScopeList) }}
|
|
|
+ </div>
|
|
|
<div class="edhb-right-item">{{ details.linkPhone || "-" }}</div>
|
|
|
<div class="edhb-right-item position">
|
|
|
{{ details.companyAddress || "-" }}
|
|
@@ -140,7 +142,11 @@
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</div>
|
|
|
- <el-empty v-else :image-size="80" description="无公司相册数据"></el-empty>
|
|
|
+ <el-empty
|
|
|
+ v-else
|
|
|
+ :image-size="80"
|
|
|
+ description="无公司相册数据"
|
|
|
+ ></el-empty>
|
|
|
</div>
|
|
|
<!-- 公司职位 -->
|
|
|
<div class="edmi-position">
|
|
@@ -160,7 +166,12 @@
|
|
|
v-for="(item, index) in positionObj.list"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <div class="edmi-position-list-item" @click="jumpPage('enterprisePosition',{ positionId: item.id })">
|
|
|
+ <div
|
|
|
+ class="edmi-position-list-item"
|
|
|
+ @click="
|
|
|
+ jumpPage('enterprisePosition', { positionId: item.id })
|
|
|
+ "
|
|
|
+ >
|
|
|
<div class="logo">
|
|
|
<el-image
|
|
|
class="image"
|
|
@@ -184,9 +195,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>
|
|
@@ -211,7 +223,11 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-empty v-else :image-size="80" description="无在招职业数据"></el-empty>
|
|
|
+ <el-empty
|
|
|
+ v-else
|
|
|
+ :image-size="80"
|
|
|
+ description="无在招职业数据"
|
|
|
+ ></el-empty>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -236,6 +252,7 @@ export default {
|
|
|
educationList: [],
|
|
|
companyTradeList: [],
|
|
|
companyScopeList: [],
|
|
|
+ workYearList: [],
|
|
|
positionObj: {
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -274,6 +291,9 @@ export default {
|
|
|
getDictData({ key: "company_scope" }).then((res) => {
|
|
|
this.companyScopeList = res.data;
|
|
|
});
|
|
|
+ getDictData({ key: "work_year" }).then((res) => {
|
|
|
+ this.workYearList = res.data;
|
|
|
+ });
|
|
|
},
|
|
|
/**
|
|
|
* 获取企业详情
|
|
@@ -282,7 +302,7 @@ export default {
|
|
|
* @returns {any}
|
|
|
*/
|
|
|
getCompanyDetails(companyId) {
|
|
|
- this.loading = true
|
|
|
+ this.loading = true;
|
|
|
getCompanyDetails({ companyId }).then((res) => {
|
|
|
this.details = res?.data;
|
|
|
let arr = [],
|
|
@@ -291,7 +311,7 @@ export default {
|
|
|
arr.push(data.slice(i, i + 4));
|
|
|
}
|
|
|
this.details.environmentUrlList = arr;
|
|
|
- this.loading = false
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
/**
|
|
@@ -340,29 +360,49 @@ export default {
|
|
|
});
|
|
|
return label;
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 获取字典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;
|
|
|
+ },
|
|
|
/**
|
|
|
* 跳转到指定页面
|
|
|
* @date 2022-08-11
|
|
|
* @param {any} path
|
|
|
* @returns {any}
|
|
|
*/
|
|
|
- jumpPage(path,param) {
|
|
|
+ jumpPage(path, param) {
|
|
|
if (path) {
|
|
|
- this.$router.push({path:path,query:param});
|
|
|
+ this.$router.push({ path: path, query: param });
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
filters: {
|
|
|
filtersDict(val, list) {
|
|
|
- let label = '-'
|
|
|
- list.forEach(item => {
|
|
|
+ let label = "-";
|
|
|
+ list.forEach((item) => {
|
|
|
if (Number(val) === Number(item.text)) {
|
|
|
- label = item.label
|
|
|
+ label = item.label;
|
|
|
}
|
|
|
- })
|
|
|
- return label
|
|
|
- }
|
|
|
- }
|
|
|
+ });
|
|
|
+ return label;
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|