Commit aa385e21 by 前端

Merge branch 'develop' into 'SAAS+V5.4.0'

上线合并

See merge request !513
2 parents 9666006d 0fc2f7df
...@@ -2,6 +2,8 @@ import util from "@/libs/util.js" ...@@ -2,6 +2,8 @@ import util from "@/libs/util.js"
import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account" import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account"
// import { SUPPER_ADMIN } from '@/common/constants' // import { SUPPER_ADMIN } from '@/common/constants'
import { localRoutes } from "@/router/routes" import { localRoutes } from "@/router/routes"
import { Message } from "element-ui"
import router from "@/router"
import md5 from "js-md5" import md5 from "js-md5"
export default { export default {
namespaced: true, namespaced: true,
...@@ -114,10 +116,21 @@ export default { ...@@ -114,10 +116,21 @@ export default {
// ? routeAll.map((i) => i.authId) // ? routeAll.map((i) => i.authId)
// : res.map((i) => i.authId) // : res.map((i) => i.authId)
// if (targetRoutes.length === 0) { if (targetRoutes.length === 0) {
// this.$message.warning("无权限,请联系管理员") // 显示提示
// return reject("无权限") // Message({
// } // message: "暂无权限,请联系管理员",
// type: "error",
// duration: 5 * 1000
// })
// setTimeout(() => {
// window.location.reload()
// }, 5000)
// window.location.reload()
// router.replace("/login")
// this.$message.error("无权限,请联系管理员")
return reject("暂无权限,请联系管理员")
}
// console.log(res, "res") // console.log(res, "res")
// console.log(userInfo.beSuper, "userInfo.beSuper") // console.log(userInfo.beSuper, "userInfo.beSuper")
// console.log(targetRoutes, "targetRoutes") // console.log(targetRoutes, "targetRoutes")
......
...@@ -213,6 +213,7 @@ export default { ...@@ -213,6 +213,7 @@ export default {
this.activeName = this.formData.activityCycleResponses this.activeName = this.formData.activityCycleResponses
? this.formData.activityCycleResponses[0].id ? this.formData.activityCycleResponses[0].id
: "" : ""
this.handleTextBoxFocus()
console.log(this.formData) console.log(this.formData)
}, },
......
...@@ -114,9 +114,9 @@ ...@@ -114,9 +114,9 @@
<div class="time"> <div class="time">
{{ {{
currentRow.startTime currentRow.startTime
? dayjs(currentRow.startTime).format("YYYY-MM-DD HH:mm:ss") + ? dayjs(currentRow.startTime).format("YYYY-MM-DD HH:mm") +
" 至 " + " 至 " +
dayjs(currentRow.endTime).format("YYYY-MM-DD HH:mm:ss") dayjs(currentRow.endTime).format("YYYY-MM-DD HH:mm")
: "-" : "-"
}} }}
</div> </div>
...@@ -530,6 +530,12 @@ export default { ...@@ -530,6 +530,12 @@ export default {
this.$message.warning("请输入评选周期名称") this.$message.warning("请输入评选周期名称")
return return
} }
const reg = /^[a-zA-Z0-9\u4e00-\u9fa5_()()]*$/
console.log(reg.test(this.cycleName))
if (!reg.test(this.cycleName)) {
this.$message.error("活动名称只能包含中文、英文、数字、下划线、括号")
return
}
addActivityCycle({ addActivityCycle({
activityId: this.currentRow.id, activityId: this.currentRow.id,
cycleName: this.cycleName cycleName: this.cycleName
......
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
name: "regionOperationId", name: "regionOperationId",
type: "select", type: "select",
isClear: true, isClear: true,
noDataText: "加载中...",
optionList: [], optionList: [],
optionId: "uuid", optionId: "uuid",
optionLabel: "staffName", optionLabel: "staffName",
...@@ -104,6 +105,7 @@ export default { ...@@ -104,6 +105,7 @@ export default {
name: "businessType", name: "businessType",
type: "select", type: "select",
isClear: true, isClear: true,
noDataText: "加载中...",
optionList: [], optionList: [],
optionId: "itemValue", optionId: "itemValue",
optionLabel: "itemName", optionLabel: "itemName",
...@@ -129,6 +131,7 @@ export default { ...@@ -129,6 +131,7 @@ export default {
name: "recruitmentType", name: "recruitmentType",
type: "select", type: "select",
isClear: true, isClear: true,
noDataText: "加载中...",
optionList: [], optionList: [],
optionId: "itemValue", optionId: "itemValue",
optionLabel: "itemName", optionLabel: "itemName",
...@@ -146,8 +149,7 @@ export default { ...@@ -146,8 +149,7 @@ export default {
label: "需求描述", label: "需求描述",
name: "requirementDescription", name: "requirementDescription",
placeholder: "请简单描述用人要求等信息", placeholder: "请简单描述用人要求等信息",
type: "input", type: "textarea",
inputType: "textarea",
showLimit: true, showLimit: true,
isClear: true, isClear: true,
maxlength: 200, maxlength: 200,
......
...@@ -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) {
......
...@@ -275,8 +275,7 @@ export default { ...@@ -275,8 +275,7 @@ export default {
{ {
label: "说明", label: "说明",
name: "description", name: "description",
type: "input", type: "textarea",
inputType: "textarea",
showLimit: true, showLimit: true,
isClear: true, isClear: true,
maxlength: 200, maxlength: 200,
......
...@@ -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>
...@@ -315,8 +315,7 @@ export default { ...@@ -315,8 +315,7 @@ export default {
{ {
label: "驳回原因", label: "驳回原因",
name: "recallReason", name: "recallReason",
type: "input", type: "textarea",
inputType: "textarea",
isClear: true, isClear: true,
maxlength: 200, maxlength: 200,
showLimit: true, showLimit: true,
......
...@@ -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>
...@@ -215,6 +215,18 @@ export default { ...@@ -215,6 +215,18 @@ export default {
type: 'datePicker', type: 'datePicker',
// pickerOptions: 'rangePickerOptions', // pickerOptions: 'rangePickerOptions',
isClear: true isClear: true
}, {
label: '门店名称',
name: 'storeName',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '关联商户',
name: 'merchantName',
type: 'input',
maxlength: '50',
isClear: true
}], }],
getListApi: potentialCustomersPage, getListApi: potentialCustomersPage,
noLoading: true, noLoading: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!