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 { ...@@ -626,6 +626,13 @@ export default {
} }
}, },
async handleEntry(isCheck = false) { async handleEntry(isCheck = false) {
if (this.onboardingPlans.length >= 20) {
this.$message({
message: "入职人数不能超过20人",
type: "error"
})
return
}
this.isAdd = true this.isAdd = true
await this.fetchOnboardingPlans() await this.fetchOnboardingPlans()
this.isEntryVisible = !this.isEntryVisible this.isEntryVisible = !this.isEntryVisible
......
...@@ -680,6 +680,13 @@ export default { ...@@ -680,6 +680,13 @@ export default {
}, },
//新增简历 //新增简历
async handleAdd() { async handleAdd() {
if (this.resumes.length >= 98) {
this.$message({
message: "简历人数不能超过98人",
type: "error"
})
return
}
this.isAdd = true this.isAdd = true
this.isAddDialogConfig.title = "新增简历" this.isAddDialogConfig.title = "新增简历"
await this.fetchOnboardingPlans() await this.fetchOnboardingPlans()
......
...@@ -307,9 +307,9 @@ export default { ...@@ -307,9 +307,9 @@ export default {
//新增简历 //新增简历
async handleAdd(data) { async handleAdd(data) {
if (this.trialOnboardings.length >= 10) { if (this.trialOnboardings.length >= 20) {
this.$message({ this.$message({
message: "试岗人数不能超过10人", message: "试岗人数不能超过20人",
type: "error" type: "error"
}) })
return return
......
...@@ -134,25 +134,12 @@ ...@@ -134,25 +134,12 @@
/>提示:总课程时长建议< 60 min />提示:总课程时长建议< 60 min
</div> </div>
<div class="select-list"> <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 <d2-table
:tableData="selectCourseList" :tableData="selectCourseList"
:table-params="selecTableParams" :table-params="selecTableParams"
:hasPage="hasPage" :hasPage="hasPage"
:hasNum="hasNum" :hasNum="hasNum"
:maxHeight="350" :maxHeight="385"
> >
<!-- 课程名称 --> <!-- 课程名称 -->
<div slot="courseName" slot-scope="scope"> <div slot="courseName" slot-scope="scope">
...@@ -305,7 +292,7 @@ export default { ...@@ -305,7 +292,7 @@ export default {
}, },
{ {
label: "类型", label: "类型",
prop: "positionName", prop: "courseFileType",
width: "88px", width: "88px",
formatter: (row) => { formatter: (row) => {
return this.getStatusItem( return this.getStatusItem(
...@@ -638,7 +625,7 @@ export default { ...@@ -638,7 +625,7 @@ export default {
} }
} }
.select-list { .select-list {
height: 365px; height: 390px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
.select-item { .select-item {
......
...@@ -158,7 +158,6 @@ export default { ...@@ -158,7 +158,6 @@ export default {
].metricRuleList = res ].metricRuleList = res
} }
}) })
console.log(params.configId, 99999)
this.$emit("changeBrand", params.configId) this.$emit("changeBrand", params.configId)
}, 0) }, 0)
}, },
......
...@@ -34,8 +34,9 @@ ...@@ -34,8 +34,9 @@
> >
<!-- 课程名称 --> <!-- 课程名称 -->
<div slot="courseName" slot-scope="scope"> <div slot="courseName" slot-scope="scope">
<span v-if="scope.scope.courseName.length < 28">{{ <template v-if="scope.scope.courseName">
scope.scope.courseName.slice(0, 28) <span v-if="scope.scope.courseName.length < 19">{{
scope.scope.courseName.slice(0, 19)
}}</span> }}</span>
<div v-else> <div v-else>
<el-tooltip <el-tooltip
...@@ -44,9 +45,13 @@ ...@@ -44,9 +45,13 @@
:content="scope.scope.courseName" :content="scope.scope.courseName"
placement="top-start" placement="top-start"
> >
<span> {{ scope.scope.courseName.slice(0, 28) }}...</span> <span>
{{ scope.scope.courseName.slice(0, 19) }}...</span
>
</el-tooltip> </el-tooltip>
</div> </div>
</template>
<template v-else>-</template>
</div> </div>
<!--状态 --> <!--状态 -->
<template slot="statusHtml" slot-scope="scope"> <template slot="statusHtml" slot-scope="scope">
...@@ -412,10 +417,11 @@ export default { ...@@ -412,10 +417,11 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 99999 pageSize: 99999
}).then((res) => { }).then((res) => {
console.log(res, "员工已配置课程")
if (res.list.length) { if (res.list.length) {
res.list.forEach((item) => (item.isSelect = true)) res.list.forEach((item) => (item.isSelect = true))
} }
this.staffTagCourseList = res.list this.staffTagCourseList = res.list ? res.list : []
this.allStaffCourseList = deepClone(this.staffTagCourseList) this.allStaffCourseList = deepClone(this.staffTagCourseList)
this.updateTotalDuration(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!