fix(pl): 证书齐备按计划日期正序,并默认未齐备与近期日期。
Web 与小程序共用列表接口,打开时只看未齐备,计划日期从昨天起共 8 天;同时让移动端筛选下拉从筛选条向下展开。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
13cf2e216d
commit
da8499bc92
8 files changed
+202
-7
No files matched your search
@@ -109,6 +109,7 @@
|
||||
import { useListTableViewportHeight } from '@/composables/useListTableViewportHeight'
|
||||
import { useServerColumnFilters } from '@/composables/useServerColumnFilters'
|
||||
import type { ColumnFilterDef } from '@/composables/useClientColumnFilters'
|
||||
import { certReadyDefaultPlanDates } from '@/utils/cert-ready-plan-date'
|
||||
import { certReadyErrorText, formatCertReadyTime } from '@/utils/pl-quota-cert-waiver'
|
||||
import {
|
||||
PL_PLAN_FOLLOW_STATUS_OPTIONS,
|
||||
@@ -124,6 +125,7 @@
|
||||
const markingId = ref('')
|
||||
const rows = ref<CertReadyPlan[]>([])
|
||||
let epoch = 0
|
||||
const defaultPlanDates = certReadyDefaultPlanDates()
|
||||
const columns: (ColumnFilterDef & { minWidth: number })[] = [
|
||||
{ prop: 'planNo', label: '计划编号', type: 'text', queryKey: 'planNo', minWidth: 160 },
|
||||
{
|
||||
@@ -188,7 +190,13 @@
|
||||
clearAllFilters,
|
||||
isFilterActive,
|
||||
toQueryParams
|
||||
} = useServerColumnFilters(columns, { onChange: search })
|
||||
} = useServerColumnFilters(columns, {
|
||||
initialFilters: {
|
||||
quotaCertWaived: { text: '', selected: ['0'] },
|
||||
planDate: { from: defaultPlanDates.from, to: defaultPlanDates.to }
|
||||
},
|
||||
onChange: search
|
||||
})
|
||||
|
||||
async function load() {
|
||||
const current = ++epoch
|
||||
|
||||
Reference in new issue
Block a user