Commit ae55b70f by wangzhihui

```

feat(recruitment): 增加招聘管理各环节人数限制

- 入职人数限制从无限制调整为最多20人
- 简历人数限制从无限制调整为最多98人
- 试岗人数限制从10人调整为20人

fix(longCourse): 优化长期课程组件显示和数据处理

- 调整课程分配页面表格高度和样式
- 修复课程类型字段映射错误,从positionName改为courseFileType
- 优化课程名称显示逻辑,增加空值处理
- 移除调试代码console.log

refactor(longCourse): 清理课程配置组件中的调试日志
```
1 parent cdb31b32
......@@ -626,6 +626,13 @@ export default {
}
},
async handleEntry(isCheck = false) {
if (this.onboardingPlans.length >= 20) {
this.$message({
message: "入职人数不能超过20人",
type: "error"
})
return
}
this.isAdd = true
await this.fetchOnboardingPlans()
this.isEntryVisible = !this.isEntryVisible
......
......@@ -680,6 +680,13 @@ export default {
},
//新增简历
async handleAdd() {
if (this.resumes.length >= 98) {
this.$message({
message: "简历人数不能超过98人",
type: "error"
})
return
}
this.isAdd = true
this.isAddDialogConfig.title = "新增简历"
await this.fetchOnboardingPlans()
......
......@@ -307,9 +307,9 @@ export default {
//新增简历
async handleAdd(data) {
if (this.trialOnboardings.length >= 10) {
if (this.trialOnboardings.length >= 20) {
this.$message({
message: "试岗人数不能超过10人",
message: "试岗人数不能超过20人",
type: "error"
})
return
......
......@@ -134,25 +134,12 @@
/>提示:总课程时长建议< 60 min
</div>
<div class="select-list">
<!-- <div
class="select-item"
v-for="(selectCourse, index) in selectCourseList"
:key="selectCourse.courseId"
>
<div class="item-content">
{{ selectCourse.courseName
}}<span class="item-time"
>{{ selectCourse.courseTotalDuration }}min</span
>
</div>
<div class="del" @click="delCourse(selectCourse)">删除</div>
</div> -->
<d2-table
:tableData="selectCourseList"
:table-params="selecTableParams"
:hasPage="hasPage"
:hasNum="hasNum"
:maxHeight="350"
:maxHeight="385"
>
<!-- 课程名称 -->
<div slot="courseName" slot-scope="scope">
......@@ -305,7 +292,7 @@ export default {
},
{
label: "类型",
prop: "positionName",
prop: "courseFileType",
width: "88px",
formatter: (row) => {
return this.getStatusItem(
......@@ -638,7 +625,7 @@ export default {
}
}
.select-list {
height: 365px;
height: 390px;
overflow-y: auto;
overflow-x: hidden;
.select-item {
......
......@@ -158,7 +158,6 @@ export default {
].metricRuleList = res
}
})
console.log(params.configId, 99999)
this.$emit("changeBrand", params.configId)
}, 0)
},
......
......@@ -34,19 +34,24 @@
>
<!-- 课程名称 -->
<div slot="courseName" slot-scope="scope">
<span v-if="scope.scope.courseName.length < 28">{{
scope.scope.courseName.slice(0, 28)
}}</span>
<div v-else>
<el-tooltip
class="item"
effect="light"
:content="scope.scope.courseName"
placement="top-start"
>
<span> {{ scope.scope.courseName.slice(0, 28) }}...</span>
</el-tooltip>
</div>
<template v-if="scope.scope.courseName">
<span v-if="scope.scope.courseName.length < 19">{{
scope.scope.courseName.slice(0, 19)
}}</span>
<div v-else>
<el-tooltip
class="item"
effect="light"
:content="scope.scope.courseName"
placement="top-start"
>
<span>
{{ scope.scope.courseName.slice(0, 19) }}...</span
>
</el-tooltip>
</div>
</template>
<template v-else>-</template>
</div>
<!--状态 -->
<template slot="statusHtml" slot-scope="scope">
......@@ -412,10 +417,11 @@ export default {
currentPage: 1,
pageSize: 99999
}).then((res) => {
console.log(res, "员工已配置课程")
if (res.list.length) {
res.list.forEach((item) => (item.isSelect = true))
}
this.staffTagCourseList = res.list
this.staffTagCourseList = res.list ? res.list : []
this.allStaffCourseList = deepClone(this.staffTagCourseList)
this.updateTotalDuration(this.staffTagCourseList)
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!