fix(project): 将最大参赛人数改为单位容纳人数,用于编排分组计算

This commit is contained in:
DevOps
2025-12-30 16:55:20 +08:00
parent 8f14a165e5
commit 6a5b220f6e

View File

@@ -169,12 +169,9 @@
<span>{{ row.estimatedDuration || 5 }}分钟</span> <span>{{ row.estimatedDuration || 5 }}分钟</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="报名人数" width="120" align="center"> <el-table-column label="单位容纳人数" width="120" align="center">
<template #default="{ row }"> <template #default="{ row }">
<span :style="{ color: row.currentCount >= row.maxParticipants ? '#f56c6c' : '#67c23a' }"> {{ row.maxParticipants || 0 }}
{{ row.currentCount || 0 }}
</span>
/ {{ row.maxParticipants || 0 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -337,7 +334,7 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="最大参赛人数" prop="maxParticipants"> <el-form-item label="单位容纳人数" prop="maxParticipants">
<el-input-number <el-input-number
v-model="form.maxParticipants" v-model="form.maxParticipants"
:min="1" :min="1"
@@ -418,10 +415,10 @@
¥{{ detailData.registrationFee || 0 }} ¥{{ detailData.registrationFee || 0 }}
</span> </span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="最大参赛人数"> <el-descriptions-item label="单位容纳人数">
{{ detailData.maxParticipants }} {{ detailData.maxParticipants }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="当前报名人数"> <el-descriptions-item label="报名人数">
<span :style="{ <span :style="{
color: detailData.currentCount >= detailData.maxParticipants ? '#f56c6c' : '#67c23a', color: detailData.currentCount >= detailData.maxParticipants ? '#f56c6c' : '#67c23a',
fontWeight: 'bold' fontWeight: 'bold'
@@ -547,7 +544,7 @@ const rules = {
{ required: true, message: '请输入报名费', trigger: 'blur' } { required: true, message: '请输入报名费', trigger: 'blur' }
], ],
maxParticipants: [ maxParticipants: [
{ required: true, message: '请输入最大参赛人数', trigger: 'blur' } { required: true, message: '请输入单位容纳人数', trigger: 'blur' }
] ]
} }