fix(project): 将最大参赛人数改为单位容纳人数,用于编排分组计算
This commit is contained in:
@@ -169,12 +169,9 @@
|
||||
<span>{{ row.estimatedDuration || 5 }}分钟</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="报名人数" width="120" align="center">
|
||||
<el-table-column label="单位容纳人数" width="120" align="center">
|
||||
<template #default="{ row }">
|
||||
<span :style="{ color: row.currentCount >= row.maxParticipants ? '#f56c6c' : '#67c23a' }">
|
||||
{{ row.currentCount || 0 }}
|
||||
</span>
|
||||
/ {{ row.maxParticipants || 0 }}
|
||||
{{ row.maxParticipants || 0 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -337,7 +334,7 @@
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="最大参赛人数" prop="maxParticipants">
|
||||
<el-form-item label="单位容纳人数" prop="maxParticipants">
|
||||
<el-input-number
|
||||
v-model="form.maxParticipants"
|
||||
:min="1"
|
||||
@@ -418,10 +415,10 @@
|
||||
¥{{ detailData.registrationFee || 0 }}
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="最大参赛人数">
|
||||
<el-descriptions-item label="单位容纳人数">
|
||||
{{ detailData.maxParticipants }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="当前报名人数">
|
||||
<el-descriptions-item label="已报名人数">
|
||||
<span :style="{
|
||||
color: detailData.currentCount >= detailData.maxParticipants ? '#f56c6c' : '#67c23a',
|
||||
fontWeight: 'bold'
|
||||
@@ -547,7 +544,7 @@ const rules = {
|
||||
{ required: true, message: '请输入报名费', trigger: 'blur' }
|
||||
],
|
||||
maxParticipants: [
|
||||
{ required: true, message: '请输入最大参赛人数', trigger: 'blur' }
|
||||
{ required: true, message: '请输入单位容纳人数', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user