|
@@ -20,6 +20,12 @@ const _sfc_main = {
|
|
|
const selectedExperience = common_vendor.ref("");
|
|
const selectedExperience = common_vendor.ref("");
|
|
|
const educations = common_vendor.ref([]);
|
|
const educations = common_vendor.ref([]);
|
|
|
const selectedEducation = common_vendor.ref("");
|
|
const selectedEducation = common_vendor.ref("");
|
|
|
|
|
+ const selectedRegion = common_vendor.ref(["", "", ""]);
|
|
|
|
|
+ const selectedCity = common_vendor.ref("");
|
|
|
|
|
+ const onRegionChange = (e) => {
|
|
|
|
|
+ selectedRegion.value = e.detail.value;
|
|
|
|
|
+ selectedCity.value = e.detail.value[1];
|
|
|
|
|
+ };
|
|
|
const loadDictionaries = () => {
|
|
const loadDictionaries = () => {
|
|
|
api_dict.getDicts("main_position_type").then((res) => {
|
|
api_dict.getDicts("main_position_type").then((res) => {
|
|
|
if (res.data) {
|
|
if (res.data) {
|
|
@@ -105,7 +111,9 @@ const _sfc_main = {
|
|
|
minSalary: minSalary.value,
|
|
minSalary: minSalary.value,
|
|
|
maxSalary: maxSalary.value,
|
|
maxSalary: maxSalary.value,
|
|
|
experience: userExp,
|
|
experience: userExp,
|
|
|
- education: userEdu
|
|
|
|
|
|
|
+ education: userEdu,
|
|
|
|
|
+ workCity: selectedCity.value,
|
|
|
|
|
+ workProvince: selectedRegion.value[0]
|
|
|
};
|
|
};
|
|
|
common_vendor.index.$emit("updateFilters", filterParams);
|
|
common_vendor.index.$emit("updateFilters", filterParams);
|
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
@@ -124,6 +132,8 @@ const _sfc_main = {
|
|
|
updateThumbPositions();
|
|
updateThumbPositions();
|
|
|
selectedExperience.value = "";
|
|
selectedExperience.value = "";
|
|
|
selectedEducation.value = "不限";
|
|
selectedEducation.value = "不限";
|
|
|
|
|
+ selectedRegion.value = ["", "", ""];
|
|
|
|
|
+ selectedCity.value = "";
|
|
|
};
|
|
};
|
|
|
return (_ctx, _cache) => {
|
|
return (_ctx, _cache) => {
|
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
@@ -164,7 +174,12 @@ const _sfc_main = {
|
|
|
d: common_vendor.o(($event) => selectedExperience.value = item.dictValue, index)
|
|
d: common_vendor.o(($event) => selectedExperience.value = item.dictValue, index)
|
|
|
};
|
|
};
|
|
|
}),
|
|
}),
|
|
|
- o: common_vendor.f(educations.value, (item, index, i0) => {
|
|
|
|
|
|
|
+ o: common_vendor.t(selectedCity.value ? selectedRegion.value[0] + " " + selectedRegion.value[1] + " " + selectedRegion.value[2] : "请选择工作地点"),
|
|
|
|
|
+ p: !selectedCity.value ? 1 : "",
|
|
|
|
|
+ q: common_assets._imports_8,
|
|
|
|
|
+ r: common_vendor.o(onRegionChange),
|
|
|
|
|
+ s: selectedRegion.value,
|
|
|
|
|
+ t: common_vendor.f(educations.value, (item, index, i0) => {
|
|
|
return {
|
|
return {
|
|
|
a: common_vendor.t(item.dictLabel),
|
|
a: common_vendor.t(item.dictLabel),
|
|
|
b: selectedEducation.value === item.dictValue ? 1 : "",
|
|
b: selectedEducation.value === item.dictValue ? 1 : "",
|
|
@@ -172,8 +187,8 @@ const _sfc_main = {
|
|
|
d: common_vendor.o(($event) => selectedEducation.value = item.dictValue, index)
|
|
d: common_vendor.o(($event) => selectedEducation.value = item.dictValue, index)
|
|
|
};
|
|
};
|
|
|
}),
|
|
}),
|
|
|
- p: common_vendor.o(resetFilters),
|
|
|
|
|
- q: common_vendor.o(confirmFilters)
|
|
|
|
|
|
|
+ v: common_vendor.o(resetFilters),
|
|
|
|
|
+ w: common_vendor.o(confirmFilters)
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|