|
@@ -381,6 +381,42 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
+
|
|
|
|
|
+ <el-divider content-position="left">
|
|
|
|
|
+ <el-icon style="vertical-align: middle; margin-right: 5px;"><User /></el-icon>
|
|
|
|
|
+ <span style="vertical-align: middle; font-weight: bold;">报名限制</span>
|
|
|
|
|
+ </el-divider>
|
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
|
+ <template v-if="form.classification === '0'">
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="限报男" prop="limitMale">
|
|
|
|
|
+ <el-input-number v-model="form.limitMale" :min="0" style="width: 100%" placeholder="限报男生人数" controls-position="right" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="限报女" prop="limitFemale">
|
|
|
|
|
+ <el-input-number v-model="form.limitFemale" :min="0" style="width: 100%" placeholder="限报女生人数" controls-position="right" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else-if="form.classification === '1'">
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="限报队数" prop="limitTeam">
|
|
|
|
|
+ <el-input-number v-model="form.limitTeam" :min="0" style="width: 100%" placeholder="限报队伍数" controls-position="right" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="每队限男" prop="limitMale">
|
|
|
|
|
+ <el-input-number v-model="form.limitMale" :min="0" style="width: 100%" placeholder="每队限报男生" controls-position="right" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="每队限女" prop="limitFemale">
|
|
|
|
|
+ <el-input-number v-model="form.limitFemale" :min="0" style="width: 100%" placeholder="每队限报女生" controls-position="right" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
|
|
|
<el-divider content-position="left">
|
|
<el-divider content-position="left">
|
|
|
<el-icon style="vertical-align: middle; margin-right: 5px;"><EditPen /></el-icon>
|
|
<el-icon style="vertical-align: middle; margin-right: 5px;"><EditPen /></el-icon>
|
|
@@ -523,7 +559,10 @@ const initFormData: GameEventProjectForm = {
|
|
|
timingFormat: '0',
|
|
timingFormat: '0',
|
|
|
distanceMode: '0',
|
|
distanceMode: '0',
|
|
|
countUnit: '个',
|
|
countUnit: '个',
|
|
|
- scoreCount: 1
|
|
|
|
|
|
|
+ scoreCount: 1,
|
|
|
|
|
+ limitMale: 0,
|
|
|
|
|
+ limitFemale: 0,
|
|
|
|
|
+ limitTeam: 0
|
|
|
};
|
|
};
|
|
|
const data = reactive<PageData<GameEventProjectForm, GameEventProjectQuery>>({
|
|
const data = reactive<PageData<GameEventProjectForm, GameEventProjectQuery>>({
|
|
|
form: { ...initFormData },
|
|
form: { ...initFormData },
|