Commit 408f335a by wangzhihui

fixed

1 parent 47b77989
......@@ -295,44 +295,65 @@ export default {
await this.fetchOnboardingPlans()
this.isEntryVisible = !this.isEntryVisible
this.isEntryForm = deepClone(data)
this.checkParams(this.isEntryForm)
this.updateParams(this.isEntryForm)
},
updateParams(data) {
data.appearanceName =
this.filterAttribute(
"appearanceData",
"itemValue",
"itemName",
data.appearanceType
) || data.appearanceName
data.positionMatchDegreeName =
this.filterAttribute(
"matchdegreeData",
"itemValue",
"itemName",
data.positionMatchDegreeType
) || data.positionMatchDegreeName
data.educationLevelName =
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",
checkParams(data) {
if (!data) return
const fields = [
{ typeKey: "appearanceType", dataKey: "appearanceData" },
{ typeKey: "positionMatchDegreeType", dataKey: "matchdegreeData" },
{ typeKey: "educationLevelType", dataKey: "educationData" },
{ typeKey: "abilityPerformanceType", dataKey: "abilityData" },
{ typeKey: "personalityType", dataKey: "characterData" }
]
fields.forEach((field) => {
const { typeKey, dataKey } = field
const value = data[typeKey]
const isValid = this.filterAttribute(
dataKey,
"itemValue",
"itemName",
data.personalityType
) || data.personalityName
value
)
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) {
......
......@@ -52,13 +52,16 @@ export default {
resumes: this.detailInfo.resumes,
onboardingPlans: this.detailInfo.onboardingPlans
}
handleRecruitment(params).then((res) => {
if (res) {
handleRecruitment(params)
.then((res) => {
if (res) {
this.$router.push("/recruitmentManagement")
this.$message.success("提交成功")
}
})
.finally(() => {
this.btnLoding = false
this.$router.push("/recruitmentManagement")
this.$message.success("提交成功")
}
})
})
},
//转入职
handleWorking(data) {
......@@ -112,13 +115,12 @@ export default {
right: 0;
bottom: 0;
min-width: 1240px;
height: 800px;
overflow: scroll;
.footer {
display: flex;
align-items: center;
justify-content: center;
padding: 20px 0;
padding-top: 20px;
.save-btn {
// width: 60px;
padding: 5px 14px;
......@@ -146,6 +148,49 @@ export default {
.layout {
height: calc(100% - 58px);
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>
......@@ -49,13 +49,12 @@ export default {
right: 0;
bottom: 0;
min-width: 1240px;
height: 800px;
overflow: scroll;
.footer {
display: flex;
align-items: center;
justify-content: center;
padding: 20px 0;
padding-top: 20px;
.save-btn {
// width: 60px;
padding: 5px 14px;
......@@ -83,6 +82,48 @@ export default {
.layout {
height: calc(100% - 65px);
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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!