|
@@ -26,16 +26,12 @@
|
|
<a-divider orientation="left">其他信息</a-divider>
|
|
<a-divider orientation="left">其他信息</a-divider>
|
|
<a-descriptions bordered>
|
|
<a-descriptions bordered>
|
|
<a-descriptions-item label="岗位月薪(元)">
|
|
<a-descriptions-item label="岗位月薪(元)">
|
|
- {{ postInfo.minSalary }}
|
|
|
|
- 至
|
|
|
|
- {{ postInfo.maxSalary }}
|
|
|
|
|
|
+ {{ showSalary(postInfo.minSalary, postInfo.maxSalary) }}
|
|
</a-descriptions-item>
|
|
</a-descriptions-item>
|
|
<a-descriptions-item label="是否有试用期">{{ postInfo.isTrail ? '是' : '否' }}</a-descriptions-item>
|
|
<a-descriptions-item label="是否有试用期">{{ postInfo.isTrail ? '是' : '否' }}</a-descriptions-item>
|
|
<a-descriptions-item label="试用期(月)">{{ postInfo.trailMonths }}</a-descriptions-item>
|
|
<a-descriptions-item label="试用期(月)">{{ postInfo.trailMonths }}</a-descriptions-item>
|
|
<a-descriptions-item label="试用期月薪(元)">
|
|
<a-descriptions-item label="试用期月薪(元)">
|
|
- {{ postInfo.trailMinSalary }}
|
|
|
|
- 至
|
|
|
|
- {{ postInfo.trailMaxSalary }}
|
|
|
|
|
|
+ {{ showSalary(postInfo.trailMinSalary, postInfo.trailMaxSalary) }}
|
|
</a-descriptions-item>
|
|
</a-descriptions-item>
|
|
<a-descriptions-item label="工作年限要求">{{ workYear }}</a-descriptions-item>
|
|
<a-descriptions-item label="工作年限要求">{{ workYear }}</a-descriptions-item>
|
|
<a-descriptions-item label="学历要求">{{ postInfo.cultureLevelName }}</a-descriptions-item>
|
|
<a-descriptions-item label="学历要求">{{ postInfo.cultureLevelName }}</a-descriptions-item>
|
|
@@ -106,6 +102,22 @@ function loadData(id: any) {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const showSalary = (minSalary: any, maxSalary: any) => {
|
|
|
|
+ if (minSalary != null) {
|
|
|
|
+ if (maxSalary != null) {
|
|
|
|
+ return minSalary.toString() + "-" + maxSalary.toString();
|
|
|
|
+ } else {
|
|
|
|
+ return "≥" + minSalary.toString();
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (maxSalary != null) {
|
|
|
|
+ return "≤" + maxSalary.toString();
|
|
|
|
+ } else {
|
|
|
|
+ return "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
// 页面初始化
|
|
// 页面初始化
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
const id = history.state.params?.id;
|
|
const id = history.state.params?.id;
|