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
@@ -112,7 +112,7 @@
|
||||
<span class="records-header__title">签到明细</span>
|
||||
<t-button v-if="canReview && signCode" variant="outline" size="small" @click="proxyVisible = true">代扫码 / 补录</t-button>
|
||||
</div>
|
||||
<t-table :data="records" :columns="recordColumns" row-key="id" size="small" :loading="loading">
|
||||
<t-table :data="pagedRecords" :columns="recordColumns" row-key="id" size="small" :loading="loading">
|
||||
<template #member="{ row }">{{ memberLabel(row.member_id) }}</template>
|
||||
<template #status="{ row }">
|
||||
<t-tag :theme="statusTheme(row.status)" variant="light" size="small">{{ statusText(row.status) }}</t-tag>
|
||||
@@ -125,6 +125,8 @@
|
||||
</template>
|
||||
</template>
|
||||
</t-table>
|
||||
<!-- 共用分页(000163):默认每页 15 条 -->
|
||||
<TrainingPagination v-model:current="recordPage" v-model:page-size="recordPageSize" :total="recordTotal" />
|
||||
|
||||
<!-- 代扫码 / 补录:走同一防伪规则引擎,proxy 标记留痕 -->
|
||||
<t-dialog v-model:visible="proxyVisible" header="代扫码 / 现场补录" width="460">
|
||||
@@ -199,6 +201,8 @@ import {
|
||||
unwrap,
|
||||
} from '@/api/training'
|
||||
import { fmtBeijingTime } from '@/utils/datetime'
|
||||
import TrainingPagination from './TrainingPagination.vue'
|
||||
import { useTrainingPager } from './useTrainingPager'
|
||||
|
||||
const props = defineProps<{ roles: string[]; admin?: boolean }>()
|
||||
const route = useRoute()
|
||||
@@ -231,6 +235,15 @@ const signCode = ref<TrainingSignCode | null>(null)
|
||||
const summary = ref<SignSummary | null>(null)
|
||||
const records = ref<TrainingSignRecord[]>([])
|
||||
|
||||
// 签到明细分页(000163):默认每页 15 条;切换场次后回到第 1 页
|
||||
const {
|
||||
page: recordPage,
|
||||
pageSize: recordPageSize,
|
||||
total: recordTotal,
|
||||
paged: pagedRecords,
|
||||
reset: resetRecordPage,
|
||||
} = useTrainingPager(records)
|
||||
|
||||
const recordColumns = [
|
||||
{ colKey: 'member', title: '学员', width: 220 },
|
||||
{ colKey: 'signed_at', title: '签到时间', width: 170 },
|
||||
@@ -382,6 +395,7 @@ const loadAll = async () => {
|
||||
const loadSessionData = async () => {
|
||||
if (!selectedSessionId.value) return
|
||||
const sid = selectedSessionId.value
|
||||
resetRecordPage()
|
||||
try {
|
||||
const [code, sum, recs, evs] = await Promise.all([
|
||||
getSignCode(sid).catch(() => null),
|
||||
|
||||
Reference in new issue
Block a user