比赛问题

GST002_admin
喻忠伟 2 months ago
parent f69dc882ba
commit da0920b621
  1. 18
      src/views/registrationGroup/index.vue
  2. 4
      src/views/registrationPersonage/index.vue

@ -30,7 +30,7 @@
<div class="info-box">
<div class="name">比赛年度</div>
<div class="title">{{ ndbs.annualid }}年度</div>
<div class="name">比赛名称</div>
<div class="name">年度比赛名称</div>
<div class="title">{{ ndbs.name }}</div>
<div class="date-box">
<div class="label">开始报名时间</div>
@ -113,7 +113,7 @@
label-width="auto"
class="demo-ruleForm"
>
<el-form-item label="年度比赛项目">
<el-form-item label="年度比赛">
<el-input v-model="ruleForm.objName" type="text" disabled />
</el-form-item>
<el-form-item label="参赛形式">
@ -122,7 +122,7 @@
<el-form-item label="队伍名称" prop="teamName">
<el-input v-model="ruleForm.teamName" maxlength="30" type="text" :disabled="isDisable"/>
</el-form-item>
<el-form-item label="选择题目" prop="topicid" v-show="false">
<!-- <el-form-item label="选择题目" prop="topicid" v-show="false">
<el-select v-model="ruleForm.topicid" placeholder="请选择题目" :disabled="isDisable">
<el-option
v-for="item in options"
@ -131,7 +131,7 @@
:value="item.value"
/>
</el-select>
</el-form-item>
</el-form-item>-->
</el-form>
</div>
@ -201,7 +201,6 @@ if (route.query.edit) {
}
const getOldRaceInfoEvent = async () => {
const res: any = await getOldRaceInfo({ id: route.query.id})
console.log(res,'res~~~');
// ruleForm.annualCompid = route.query.annualCompid
ruleForm.teamName = res.result.teamName
ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : ''
@ -226,7 +225,7 @@ if (route.query.edit) {
//console.log(res.result, 'xm')
if (res.result) ndbsXm.value = res.result
})
const getTopicListApi = async () => {
/*const getTopicListApi = async () => {
const res: any = await getTopicList({ annualCompid: route.query.id })
console.log(res)
@ -241,8 +240,8 @@ const getTopicListApi = async () => {
label: item.name,
}
})
}
getTopicListApi()
}*/
// getTopicListApi()
}
// members: adviser:
@ -269,7 +268,6 @@ const loading = ref(false)
const submit = () => {
if (!ruleForm.teamName) return ElMessage.warning('请输入队伍名称')
if (!ruleForm.topicid) return ElMessage.warning('请选择题目')
ruleForm.instructorSheetList = [...teaRef.value.submit()]
ruleForm.teamManagementList = [...stuRef.value.submit()]
loading.value = true
@ -279,6 +277,8 @@ const submit = () => {
ruleForm.enrollCode = route.query.enrollCode
ruleForm.id = route.query.annualCompid
}
ruleForm.substa = "1"
getSignUpApi(ruleForm)
.then((res: any) => {
ElMessage({

@ -32,7 +32,7 @@
<div class="info-box">
<div class="name">比赛年度</div>
<div class="title">{{ ndbs.annualid }}年度</div>
<div class="name">比赛名称</div>
<div class="name">年度比赛名称</div>
<div class="title">{{ ndbs.name }}</div>
<div class="date-box">
<div class="label">开始报名时间</div>
@ -76,7 +76,7 @@
<div>
<el-form ref="ruleFormRef" style="max-width: 600px" :model="ruleForm" status-icon label-width="auto"
class="demo-ruleForm">
<el-form-item label="年度比赛项目">
<el-form-item label="年度比赛">
<el-input v-model="ruleForm.objName" type="text" disabled />
</el-form-item>
<el-form-item label="参赛形式">

Loading…
Cancel
Save