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"
import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account"
// import { SUPPER_ADMIN } from '@/common/constants'
import { localRoutes } from "@/router/routes"
import { Message } from "element-ui"
import router from "@/router"
import md5 from "js-md5"
export default {
namespaced: true,
......@@ -114,10 +116,21 @@ export default {
// ? routeAll.map((i) => i.authId)
// : res.map((i) => i.authId)
// if (targetRoutes.length === 0) {
// this.$message.warning("无权限,请联系管理员")
// return reject("无权限")
// }
if (targetRoutes.length === 0) {
// 显示提示
// 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(userInfo.beSuper, "userInfo.beSuper")
// console.log(targetRoutes, "targetRoutes")
......
......@@ -213,6 +213,7 @@ export default {
this.activeName = this.formData.activityCycleResponses
? this.formData.activityCycleResponses[0].id
: ""
this.handleTextBoxFocus()
console.log(this.formData)
},
......
......@@ -114,9 +114,9 @@
<div class="time">
{{
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>
......@@ -530,6 +530,12 @@ export default {
this.$message.warning("请输入评选周期名称")
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({
activityId: this.currentRow.id,
cycleName: this.cycleName
......
......@@ -86,6 +86,7 @@ export default {
name: "regionOperationId",
type: "select",
isClear: true,
noDataText: "加载中...",
optionList: [],
optionId: "uuid",
optionLabel: "staffName",
......@@ -104,6 +105,7 @@ export default {
name: "businessType",
type: "select",
isClear: true,
noDataText: "加载中...",
optionList: [],
optionId: "itemValue",
optionLabel: "itemName",
......@@ -129,6 +131,7 @@ export default {
name: "recruitmentType",
type: "select",
isClear: true,
noDataText: "加载中...",
optionList: [],
optionId: "itemValue",
optionLabel: "itemName",
......@@ -146,8 +149,7 @@ export default {
label: "需求描述",
name: "requirementDescription",
placeholder: "请简单描述用人要求等信息",
type: "input",
inputType: "textarea",
type: "textarea",
showLimit: true,
isClear: true,
maxlength: 200,
......
......@@ -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) {
......
......@@ -275,8 +275,7 @@ export default {
{
label: "说明",
name: "description",
type: "input",
inputType: "textarea",
type: "textarea",
showLimit: true,
isClear: true,
maxlength: 200,
......
......@@ -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>
......@@ -315,8 +315,7 @@ export default {
{
label: "驳回原因",
name: "recallReason",
type: "input",
inputType: "textarea",
type: "textarea",
isClear: true,
maxlength: 200,
showLimit: true,
......
......@@ -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>
......@@ -215,6 +215,18 @@ export default {
type: 'datePicker',
// pickerOptions: 'rangePickerOptions',
isClear: true
}, {
label: '门店名称',
name: 'storeName',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '关联商户',
name: 'merchantName',
type: 'input',
maxlength: '50',
isClear: true
}],
getListApi: potentialCustomersPage,
noLoading: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!