积分显示

This commit is contained in:
马梓彭 2026-04-21 11:42:30 +08:00
parent 514ccab94e
commit 681170f468
4 changed files with 20 additions and 22 deletions

View File

@ -276,6 +276,7 @@
<th class="group-col">参赛组别</th>
<th class="team-col">参赛队伍</th>
<th class="athlete-col">运动员姓名</th>
<th class="unit-col">单位</th>
<th class="session-col">场次</th>
<th class="venue-col">场地</th>
</tr>
@ -294,6 +295,7 @@
<td class="group-cell">{{ item.groupName }}</td>
<td class="team-cell">{{ item.teamName || '-' }}</td>
<td class="athlete-cell">{{ item.athleteName }}</td>
<td class="unit-cell">{{ item.unitName || '-' }}</td>
<td class="session-cell">{{ item.sessionIndex }}</td>
<td class="venue-cell">{{ item.venueIndex }}</td>
</tr>
@ -1714,15 +1716,19 @@ defineExpose({
}
.athlete-col, .athlete-cell {
width: 14%;
width: 12%;
}
.unit-col, .unit-cell {
width: 16%;
}
.session-col, .session-cell {
width: 7%;
width: 6%;
}
.venue-col, .venue-cell {
width: 8%;
width: 7%;
}
/* 成绩与证书页面样式 */

View File

@ -1,11 +1,11 @@
<template>
<div class="system-menu-container layout-padding">
<ProTable ref="tableRef" :request-api="pointsrecordListGet" @selection-change="handleSelectionChange"
:columns="columns" :pagination="true" :tool-button="false" :initParams="initParam" row-key="userId">
:columns="columns" :pagination="true" :tool-button="false" :initParam="initParam" row-key="userId">
<template #identityInfo="scope">
<el-image style="width: 100px;" :src="scope.row.idCardImageUrl" fit="cover"></el-image>
<el-image style="width: 100px;" :src="scope.row.identityInfo" fit="cover"></el-image>
</template>
<template #action="scope">
<el-button v-auth="'user:general:record'" size="small" text type="primary"
@ -18,7 +18,9 @@
<ProTable ref="table" :request-api="pointsDetailApi" :columns="columnsUser" :pagination="true"
:tool-button="false" :initParam="initParamUser">
<template #points="scope">
<el-tag :type="scope.row.points > 0 ? 'success' : 'danger'">{{ scope.row.points }}</el-tag>
<span :style="{ color: scope.row.type === 2 ? '#f56c6c' : '#67c23a' }">
{{ scope.row.points }}
</span>
</template>
</ProTable>
<template #footer>
@ -75,7 +77,7 @@ const columnsUser = ref([
{ label: '消耗', value: 2 },
],
},
{ prop: 'action', label: '操作',search: { el: 'input' }, },
{ prop: 'action', label: '赛事',search: { el: 'input' }, },
{ prop: 'item', label: '项目', },
{ prop: 'group', label: '组别', },
{ prop: 'points', label: '积分收支',},

View File

@ -13,7 +13,9 @@
<ProTable ref="table" :request-api="pointsDetailApi" :columns="columnsUser" :pagination="true"
:tool-button="false" :initParam="initParamUser">
<template #points="scope">
<el-tag :type="scope.row.points > 0 ? 'success' : 'danger'">{{ scope.row.points }}</el-tag>
<span :style="{ color: scope.row.type === 2 ? '#f56c6c' : '#67c23a' }">
{{ scope.row.points }}
</span>
</template>
</ProTable>
<template #footer>
@ -71,9 +73,7 @@ const columnsUser = ref([
{ label: '消耗', value: 2 },
],
},
{ prop: 'action', label: '操作',search: { el: 'input' }, },
{ prop: 'item', label: '项目', },
{ prop: 'group', label: '组别', },
{ prop: 'action', label: '赛事',search: { el: 'input' }, },
{ prop: 'participantName', label: '参赛人',},
{ prop: 'points', label: '积分收支',},
{

View File

@ -169,13 +169,7 @@
<el-date-picker v-model="voucherForm.PayTime" type="datetime" value-format="YYYY-MM-DDTHH:mm:ss"
style="width: 100%;" />
</el-form-item>
<el-form-item label="支付渠道" prop="PayChannel">
<el-select v-model="voucherForm.PayChannel" style="width: 100%;">
<el-option label="微信" value="微信" />
<el-option label="支付宝" value="支付宝" />
<el-option label="银行转账" value="银行转账" />
</el-select>
</el-form-item>
<el-form-item label="交易流水号">
<el-input v-model="voucherForm.TransactionId" placeholder="可选" />
</el-form-item>
@ -915,7 +909,6 @@ const voucherSubmitting = ref(false);
const voucherForm = reactive({
PayAmount: 0,
PayTime: '',
PayChannel: '微信',
TransactionId: '',
File: null,
});
@ -934,7 +927,6 @@ const voucherRules = reactive({
},
],
PayTime: [{ required: true, message: '请选择支付时间', trigger: 'change' }],
PayChannel: [{ required: true, message: '请选择支付渠道', trigger: 'change' }],
File: [
{
validator: (_rule, value, callback) => {
@ -951,7 +943,6 @@ const openVoucherDialog = (row) => {
voucherSubmitting.value = false;
voucherForm.PayAmount = 0;
voucherForm.PayTime = '';
voucherForm.PayChannel = '微信';
voucherForm.TransactionId = '';
voucherForm.File = null;
voucherUploadFileList.value = [];
@ -975,7 +966,6 @@ const submitVoucher = async () => {
File: voucherForm.File,
PayAmount: voucherForm.PayAmount,
PayTime: voucherForm.PayTime,
PayChannel: voucherForm.PayChannel,
TransactionId: voucherForm.TransactionId || undefined,
};
const { succeeded, data } = await usereventrecordVoucherPost(currentRow.value.registrationId, payload);