Commit 408f335a by wangzhihui

fixed

1 parent 47b77989
...@@ -295,44 +295,65 @@ export default { ...@@ -295,44 +295,65 @@ export default {
await this.fetchOnboardingPlans() await this.fetchOnboardingPlans()
this.isEntryVisible = !this.isEntryVisible this.isEntryVisible = !this.isEntryVisible
this.isEntryForm = deepClone(data) this.isEntryForm = deepClone(data)
this.checkParams(this.isEntryForm)
this.updateParams(this.isEntryForm) this.updateParams(this.isEntryForm)
}, },
updateParams(data) { checkParams(data) {
data.appearanceName = if (!data) return
this.filterAttribute(
"appearanceData", const fields = [
"itemValue", { typeKey: "appearanceType", dataKey: "appearanceData" },
"itemName", { typeKey: "positionMatchDegreeType", dataKey: "matchdegreeData" },
data.appearanceType { typeKey: "educationLevelType", dataKey: "educationData" },
) || data.appearanceName { typeKey: "abilityPerformanceType", dataKey: "abilityData" },
data.positionMatchDegreeName = { typeKey: "personalityType", dataKey: "characterData" }
this.filterAttribute( ]
"matchdegreeData",
"itemValue", fields.forEach((field) => {
"itemName", const { typeKey, dataKey } = field
data.positionMatchDegreeType const value = data[typeKey]
) || data.positionMatchDegreeName const isValid = this.filterAttribute(
data.educationLevelName = dataKey,
this.filterAttribute(
"educationData",
"itemValue",
"itemName",
data.educationLevelType
) || data.educationLevelName
data.abilityPerformanceName =
this.filterAttribute(
"abilityData",
"itemValue",
"itemName",
data.abilityPerformanceType
) || data.abilityPerformanceName
data.personalityName =
this.filterAttribute(
"characterData",
"itemValue", "itemValue",
"itemName", "itemName",
data.personalityType value
) || data.personalityName )
data[typeKey] = isValid ? value : ""
})
},
updateParams(data) {
if (!data) return
const fieldMap = {
appearanceType: "appearanceName",
positionMatchDegreeType: "positionMatchDegreeName",
educationLevelType: "educationLevelName",
abilityPerformanceType: "abilityPerformanceName",
personalityType: "personalityName"
}
Object.keys(fieldMap).forEach((typeKey) => {
const nameKey = fieldMap[typeKey]
if (data[typeKey]) {
const result = this.filterAttribute(
this.getDataKeyByType(typeKey),
"itemValue",
"itemName",
data[typeKey]
)
data[nameKey] = result || data[nameKey]
}
})
},
getDataKeyByType(typeKey) {
const mapping = {
appearanceType: "appearanceData",
positionMatchDegreeType: "matchdegreeData",
educationLevelType: "educationData",
abilityPerformanceType: "abilityData",
personalityType: "characterData"
}
return mapping[typeKey] || ""
}, },
//删除简历 //删除简历
handleDelete(index) { handleDelete(index) {
......
...@@ -52,13 +52,16 @@ export default { ...@@ -52,13 +52,16 @@ export default {
resumes: this.detailInfo.resumes, resumes: this.detailInfo.resumes,
onboardingPlans: this.detailInfo.onboardingPlans onboardingPlans: this.detailInfo.onboardingPlans
} }
handleRecruitment(params).then((res) => { handleRecruitment(params)
if (res) { .then((res) => {
if (res) {
this.$router.push("/recruitmentManagement")
this.$message.success("提交成功")
}
})
.finally(() => {
this.btnLoding = false this.btnLoding = false
this.$router.push("/recruitmentManagement") })
this.$message.success("提交成功")
}
})
}, },
//转入职 //转入职
handleWorking(data) { handleWorking(data) {
...@@ -112,13 +115,12 @@ export default { ...@@ -112,13 +115,12 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
min-width: 1240px; min-width: 1240px;
height: 800px;
overflow: scroll; overflow: scroll;
.footer { .footer {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 20px 0; padding-top: 20px;
.save-btn { .save-btn {
// width: 60px; // width: 60px;
padding: 5px 14px; padding: 5px 14px;
...@@ -146,6 +148,49 @@ export default { ...@@ -146,6 +148,49 @@ export default {
.layout { .layout {
height: calc(100% - 58px); height: calc(100% - 58px);
overflow-y: scroll; overflow-y: scroll;
// 也为.layout内的滚动条设置透明样式
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 4px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
} }
// 修改滚动条样式为透明
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
// 为了兼容性,也可以添加标准的CSS滚动条样式
.look-recruitment,
.layout {
scrollbar-color: transparent transparent;
scrollbar-width: thin;
} }
</style> </style>
...@@ -49,13 +49,12 @@ export default { ...@@ -49,13 +49,12 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
min-width: 1240px; min-width: 1240px;
height: 800px;
overflow: scroll; overflow: scroll;
.footer { .footer {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 20px 0; padding-top: 20px;
.save-btn { .save-btn {
// width: 60px; // width: 60px;
padding: 5px 14px; padding: 5px 14px;
...@@ -83,6 +82,48 @@ export default { ...@@ -83,6 +82,48 @@ export default {
.layout { .layout {
height: calc(100% - 65px); height: calc(100% - 65px);
overflow-y: scroll; overflow-y: scroll;
// 也为.layout内的滚动条设置透明样式
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
// 修改滚动条样式为透明
&::-webkit-scrollbar {
width: 1px;
height: 1px;
} }
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
// 为了兼容性,也可以添加标准的CSS滚动条样式
.look-recruitment,
.layout {
scrollbar-color: transparent transparent;
scrollbar-width: thin;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!