提交人信息

master
lion 2 months ago
parent e42d521a42
commit f2451486b4

@ -143,6 +143,8 @@ export interface AdminApplicationRow {
player_name: string
school: string
contact_mobile: string
submitter_name: string
submitter_mobile: string
entry_group: string
track_code: string
track_title: string

@ -1571,6 +1571,16 @@ onMounted(() => {
</template>
</el-table-column>
<el-table-column prop="contact_mobile" label="手机号" width="128" />
<el-table-column label="提交人" width="110" show-overflow-tooltip>
<template #default="{ row }">
<span class="cell-muted">{{ row.submitter_name || row.submitter_mobile || '—' }}</span>
</template>
</el-table-column>
<el-table-column prop="submitter_mobile" label="提交人手机号" width="128">
<template #default="{ row }">
<span class="cell-muted">{{ row.submitter_mobile || '—' }}</span>
</template>
</el-table-column>
<el-table-column label="用户渠道" min-width="150" show-overflow-tooltip>
<template #default="{ row }">
<span class="cell-muted">

@ -86,6 +86,10 @@ function publicSourceLabel(row: AdminApplicationRow): string {
return row.public_source_code || '—'
}
function submitterName(row: AdminApplicationRow): string {
return row.submitter_name?.trim() || row.submitter_mobile?.trim() || '—'
}
function formatDateTime(s: string | null | undefined): string {
if (!s) return '—'
const d = new Date(s.includes(' ') ? s.replace(/-/g, '/') : s)
@ -429,6 +433,8 @@ watch(competitionId, async (cid) => {
<th>报名渠道</th>
<th>推荐方</th>
<th>手机号</th>
<th>提交人</th>
<th>提交人手机号</th>
<th>用户渠道</th>
<th>附件</th>
<th>提交时间</th>
@ -445,10 +451,10 @@ watch(competitionId, async (cid) => {
</thead>
<tbody>
<tr v-if="loading">
<td colspan="19" class="text-center py-4 text-secondary">加载中…</td>
<td colspan="21" class="text-center py-4 text-secondary">加载中…</td>
</tr>
<tr v-else-if="rows.length === 0">
<td colspan="19" class="text-center py-4 text-secondary">暂无符合条件的数据</td>
<td colspan="21" class="text-center py-4 text-secondary">暂无符合条件的数据</td>
</tr>
<tr v-for="(row, idx) in rows" v-else :key="row.id">
<td class="text-center portal-sticky-left">
@ -471,6 +477,8 @@ watch(competitionId, async (cid) => {
<td class="cell-wrap">{{ signupChannelLabel(row) }}</td>
<td class="cell-wrap">{{ row.recommend || '—' }}</td>
<td>{{ row.contact_mobile || '—' }}</td>
<td>{{ submitterName(row) }}</td>
<td>{{ row.submitter_mobile || '—' }}</td>
<td class="cell-wrap">{{ publicSourceLabel(row) }}</td>
<td>{{ row.files_count }}</td>
<td>{{ formatDateTime(row.submitted_at) }}</td>

Loading…
Cancel
Save