|
@@ -85,7 +85,8 @@ const _sfc_main = {
|
|
|
experience: "",
|
|
experience: "",
|
|
|
education: "",
|
|
education: "",
|
|
|
workCity: "",
|
|
workCity: "",
|
|
|
- workProvince: ""
|
|
|
|
|
|
|
+ workProvince: "",
|
|
|
|
|
+ workDistrict: ""
|
|
|
});
|
|
});
|
|
|
const activeFilterCount = common_vendor.computed(() => {
|
|
const activeFilterCount = common_vendor.computed(() => {
|
|
|
let count = 0;
|
|
let count = 0;
|
|
@@ -97,6 +98,8 @@ const _sfc_main = {
|
|
|
count++;
|
|
count++;
|
|
|
if (filterCriteria.value.workCity)
|
|
if (filterCriteria.value.workCity)
|
|
|
count++;
|
|
count++;
|
|
|
|
|
+ if (filterCriteria.value.workDistrict)
|
|
|
|
|
+ count++;
|
|
|
return count;
|
|
return count;
|
|
|
});
|
|
});
|
|
|
const fetchJobs = (reset = false) => {
|
|
const fetchJobs = (reset = false) => {
|
|
@@ -124,7 +127,8 @@ const _sfc_main = {
|
|
|
minSalary: filterCriteria.value.minSalary,
|
|
minSalary: filterCriteria.value.minSalary,
|
|
|
maxSalary: filterCriteria.value.maxSalary,
|
|
maxSalary: filterCriteria.value.maxSalary,
|
|
|
workCity: filterCriteria.value.workCity || "",
|
|
workCity: filterCriteria.value.workCity || "",
|
|
|
- workProvince: filterCriteria.value.workProvince || ""
|
|
|
|
|
|
|
+ workProvince: filterCriteria.value.workProvince || "",
|
|
|
|
|
+ workDistrict: filterCriteria.value.workDistrict || ""
|
|
|
};
|
|
};
|
|
|
const currentStudentId = getStudentId();
|
|
const currentStudentId = getStudentId();
|
|
|
if (currentStudentId) {
|
|
if (currentStudentId) {
|
|
@@ -142,7 +146,7 @@ const _sfc_main = {
|
|
|
title: item.postName,
|
|
title: item.postName,
|
|
|
salaryText: item.salaryRange || "面议",
|
|
salaryText: item.salaryRange || "面议",
|
|
|
// 使用后端翻译好的 Label 字段(如"全职"、"本科"、"3-5年"),而不是原始字典 value
|
|
// 使用后端翻译好的 Label 字段(如"全职"、"本科"、"3-5年"),而不是原始字典 value
|
|
|
- tags: [item.workCity, item.educationRequirementLabel || item.educationRequirement, item.gradeRequirementLabel || item.gradeRequirement].filter(Boolean),
|
|
|
|
|
|
|
+ tags: [item.workCity + (item.workDistrict ? " " + item.workDistrict : ""), item.educationRequirementLabel || item.educationRequirement, item.gradeRequirementLabel || item.gradeRequirement].filter(Boolean),
|
|
|
isUrgent: item.isUrgent === 1,
|
|
isUrgent: item.isUrgent === 1,
|
|
|
count: item.recruitNum || 1,
|
|
count: item.recruitNum || 1,
|
|
|
deadline: item.registrationEndDate ? item.registrationEndDate.split(" ")[0] : "长期有效",
|
|
deadline: item.registrationEndDate ? item.registrationEndDate.split(" ")[0] : "长期有效",
|
|
@@ -150,7 +154,7 @@ const _sfc_main = {
|
|
|
company: item.companyName || "平台推荐",
|
|
company: item.companyName || "平台推荐",
|
|
|
rawTenantId: item.tenantId,
|
|
rawTenantId: item.tenantId,
|
|
|
// 保留原始 tenantId 用于屏蔽公司
|
|
// 保留原始 tenantId 用于屏蔽公司
|
|
|
- location: (item.workProvince || "") + (item.workCity ? "·" + item.workCity : ""),
|
|
|
|
|
|
|
+ location: (item.workProvince || "") + (item.workCity ? "·" + item.workCity : "") + (item.workDistrict ? " " + item.workDistrict : ""),
|
|
|
logo: item.companyAvatar || "/static/images/default-company.svg"
|
|
logo: item.companyAvatar || "/static/images/default-company.svg"
|
|
|
}));
|
|
}));
|
|
|
jobList.value = reset ? formattedRows : [...jobList.value, ...formattedRows];
|
|
jobList.value = reset ? formattedRows : [...jobList.value, ...formattedRows];
|