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
@@ -261,6 +261,8 @@ import { computed, onMounted, ref, watch } from 'vue'
|
||||
import { MessagePlugin } from 'tdesign-vue-next'
|
||||
import * as XLSX from 'xlsx'
|
||||
import { fmtBeijingTime } from '@/utils/datetime'
|
||||
// 部门名展示清洗:剥离企微同步残留的「e10-<ID>」字样(2026-11 需求)
|
||||
import { cleanDeptNameText } from '@/utils/deptName'
|
||||
import { DEMAND_TEMPLATE_KEY, downloadTrainingTemplate } from '../trainingTemplates'
|
||||
import { apiErrorMessage } from '@/utils/request'
|
||||
import TrainingPagination from './TrainingPagination.vue'
|
||||
@@ -550,6 +552,11 @@ const loadDemands = async () => {
|
||||
const d = await listDemands(buildDemandQuery())
|
||||
// 000163:按计划培训月份倒序(2027-12 → 2027-1,无计划培训时间的排最后)
|
||||
const items = (unwrap(d)?.items || []) as TrainingDemand[]
|
||||
// 2026-11 需求:部门列/适合人员剥离企微同步残留的「e10-<ID>」字样
|
||||
for (const it of items) {
|
||||
it.dept_name = cleanDeptNameText(it.dept_name)
|
||||
it.post_scope = cleanDeptNameText(it.post_scope)
|
||||
}
|
||||
demands.value = items.slice()
|
||||
.sort((a, b) => plannedMonthSortKey(b.planned_time) - plannedMonthSortKey(a.planned_time))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user