Commit 4a6908ce authored by 李明环(东信)'s avatar 李明环(东信)

专业筛选添加不限

parent c7725f59
...@@ -349,10 +349,15 @@ const columnChangeMajor = ({ selectedItem, resolve, finish }) => { ...@@ -349,10 +349,15 @@ const columnChangeMajor = ({ selectedItem, resolve, finish }) => {
} }
}; };
const handleConfirmMajor = ({ value }) => { const handleConfirmMajor = ({ value }) => {
majorText.value = value[1]; if (value[1]) {
majorText.value = value[1];
getResumeRecommendListParams.value.major = value[1];
} else {
majorText.value = "不限";
getResumeRecommendListParams.value.major = "";
}
resetPageParams(); resetPageParams();
getResumeRecommendListParams.value.recommend = false; getResumeRecommendListParams.value.recommend = false;
getResumeRecommendListParams.value.major = value[1];
getResumeRecommendList(); getResumeRecommendList();
}; };
const majorText = ref(""); const majorText = ref("");
...@@ -364,6 +369,9 @@ getMajorTreeApi().then(res => { ...@@ -364,6 +369,9 @@ getMajorTreeApi().then(res => {
children: res.data[key] children: res.data[key]
})) }))
); );
majorOpstion.value[0].unshift({
name: "不限"
});
} }
}); });
// 显示其他筛选 // 显示其他筛选
......
...@@ -269,8 +269,12 @@ const columnChangeMajor = ({ selectedItem, resolve, finish }) => { ...@@ -269,8 +269,12 @@ const columnChangeMajor = ({ selectedItem, resolve, finish }) => {
}; };
const handleConfirmMajor = ({ value }) => { const handleConfirmMajor = ({ value }) => {
console.log(value); console.log(value);
majorText.value = value[1]; if (value[1]) {
pinias.formData.majorRequirement = value[1]; majorText.value = value[1];
pinias.formData.majorRequirement = value[1];
} else {
majorText.value = "不限";
}
}; };
const majorText = ref(""); const majorText = ref("");
getMajorTreeApi().then(res => { getMajorTreeApi().then(res => {
...@@ -282,6 +286,9 @@ getMajorTreeApi().then(res => { ...@@ -282,6 +286,9 @@ getMajorTreeApi().then(res => {
children: res.data[key] children: res.data[key]
})) }))
); );
majorOpstion.value[0].unshift({
name: "不限"
});
} }
}); });
...@@ -335,7 +342,7 @@ const next = () => { ...@@ -335,7 +342,7 @@ const next = () => {
if (certificateInputValue.value && certificateSelectValue.value) if (certificateInputValue.value && certificateSelectValue.value)
pinias.formData.professionalCertificates = certificateInputValue.value + "-" + certificateSelectValue.value; pinias.formData.professionalCertificates = certificateInputValue.value + "-" + certificateSelectValue.value;
console.log(pinias.formData); console.log(pinias.formData);
if (validateForm(pinias.formData, ["identityRequirement", "educationRequirement", "majorRequirement"], "post")) { if (validateForm(pinias.formData, ["identityRequirement", "educationRequirement"], "post")) {
uni.redirectTo({ uni.redirectTo({
url: "/pages/recommend/releasePostion/step5" url: "/pages/recommend/releasePostion/step5"
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment