fix(培训页面优化):1.请检查所有企业培训相关页面带有列表展示都要进行分页,使用分页共用组件默认每页15条!
deploy-hxtesting / build-and-deploy (push) Successful in 1m8s
deploy-hxtesting / build-and-deploy (push) Successful in 1m8s
2.课程管理页面右侧固定太宽如图二所示收缩够用就可以,可参考培训计划页面 3.月培训计划数据默认显示计划培训和授课培训是当月数据,可筛选其他月份支持多选或全部数据 4.月培训计划只需要保留一个【创建月度计划】按钮,无法创建月度计划请核实根因!
This commit is contained in:
1 parent
2483dd933a
commit
102d94e6c8
10 files changed
+387
-50
No files matched your search
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<!-- 企业培训共用分页条:所有列表页统一挂载,默认每页 15 条 -->
|
||||
<div v-if="total > 0" class="training-pagination">
|
||||
<span class="training-pagination__total">共 {{ total }} 条</span>
|
||||
<t-pagination
|
||||
v-model="current"
|
||||
v-model:page-size="pageSize"
|
||||
:total="total"
|
||||
size="small"
|
||||
:show-jumper="false"
|
||||
show-page-number
|
||||
:show-page-size="total > TRAINING_PAGE_SIZE"
|
||||
:page-size-options="TRAINING_PAGE_SIZE_OPTIONS"
|
||||
:disabled="disabled"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { TRAINING_PAGE_SIZE, TRAINING_PAGE_SIZE_OPTIONS } from './useTrainingPager'
|
||||
|
||||
// 共用分页组件(000163):企业培训各列表页统一口径 —— 默认每页 15 条,
|
||||
// 页码/每页条数由父组件经 useTrainingPager 提供并做客户端切片。
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
total: number
|
||||
disabled?: boolean
|
||||
}>(),
|
||||
{ disabled: false },
|
||||
)
|
||||
|
||||
const current = defineModel<number>('current', { default: 1 })
|
||||
const pageSize = defineModel<number>('pageSize', { default: TRAINING_PAGE_SIZE })
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.training-pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
margin-top: 12px;
|
||||
|
||||
&__total {
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: var(--app-text-sm);
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user