fix(bug):1.帮我检查一下平台中有多少处显示部门地方这种“e10-、、、、”字样拿掉不要显示
deploy-hxtesting / build-and-deploy (push) Successful in 1m28s
deploy-hxtesting / build-and-deploy (push) Successful in 1m28s
2.月培训计划发布时授课时间默认空着点击【发布】时提示先维护授课时间,(不要默认年培训计划) 3.授课地点默认“年度计划”所设置的授课地点,如果年培训计划没有维护发布时也要必填 4.点击【发布】时要校验参加人员不能为空!默认为所属部门下的人员~ 认真阅读相关代码~
This commit is contained in:
1 parent
6cdcc4f221
commit
858c352991
16 files changed
+421
-89
No files matched your search
@@ -94,6 +94,8 @@ import {
|
||||
unwrap,
|
||||
} from '@/api/training'
|
||||
import { fmtBeijingTime } from '@/utils/datetime'
|
||||
// 部门名展示清洗:剥离企微同步残留的「e10-<ID>」字样(2026-11 需求)
|
||||
import { cleanDeptName } from '@/utils/deptName'
|
||||
import TrainingPagination from './TrainingPagination.vue'
|
||||
import { useTrainingPager } from './useTrainingPager'
|
||||
|
||||
@@ -181,7 +183,9 @@ const loadTasks = async () => {
|
||||
taskLoading.value = true
|
||||
try {
|
||||
const res = await listCourseLearningTasks(courseId.value)
|
||||
rows.value = unwrap(res) || []
|
||||
// 2026-11 需求:部门列/部门筛选剥离企微同步残留的「e10-<ID>」字样(行装载处
|
||||
// 统一清洗,列表展示、部门筛选下拉与过滤同源生效)
|
||||
rows.value = (unwrap<CourseLearningTask[]>(res) || []).map((r) => ({ ...r, dept_name: cleanDeptName(r.dept_name) }))
|
||||
} catch {
|
||||
rows.value = []
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user