修改页面,去掉年度比赛项目

GST002_H5
Ly 2 months ago
parent 906a393e23
commit f33ac43ed7
  1. 87
      src/views/registrationGroup/index.vue

@ -44,31 +44,6 @@
</div> </div>
</div> </div>
</el-card> </el-card>
<!-- 项目信息 -->
<el-card class="com">
<div class="title">比赛项目信息</div>
<div class="content track">
<div class="card-annual padding">
<p>{{ ndbsXm.objName }}</p>
</div>
<div class="right">
<div class="info-box">
<div class="name">项目名称</div>
<div class="title">{{ ndbsXm.objName }}</div>
<div class="name">要求人数</div>
<div class="title">{{ ndbsXm.workCount }}</div>
<div class="date-box">
<div class="label">开始报名时间</div>
<div class="date">{{ ndbsXm.starttime?.split(' ')[0] }}</div>
</div>
<div class="date-box">
<div class="label">开始截至时间</div>
<div class="date">{{ ndbsXm.endtime?.split(' ')[0] }}</div>
</div>
</div>
</div>
</div>
</el-card>
</div> </div>
<el-card class="center"> <el-card class="center">
<div class="personage-info"> <div class="personage-info">
@ -122,6 +97,16 @@
<el-form-item label="队伍名称" prop="teamName"> <el-form-item label="队伍名称" prop="teamName">
<el-input v-model="ruleForm.teamName" maxlength="30" type="text" :disabled="isDisable"/> <el-input v-model="ruleForm.teamName" maxlength="30" type="text" :disabled="isDisable"/>
</el-form-item> </el-form-item>
<!-- <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"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>-->
</el-form> </el-form>
</div> </div>
@ -157,7 +142,7 @@ import { ElMessage } from 'element-plus'
import { getSignUpApi } from '@/api/person' import { getSignUpApi } from '@/api/person'
import stuList from './components/stuList.vue' import stuList from './components/stuList.vue'
import teaList from './components/teaList.vue' import teaList from './components/teaList.vue'
import { getNdbswxqList, getComppxqList } from '@/api/person' import { getNdbswxqList } from '@/api/person'
import { getOldRaceList,getOldRaceInfo } from '@/api/oldRace' import { getOldRaceList,getOldRaceInfo } from '@/api/oldRace'
import { getTopicList } from '@/api/race' import { getTopicList } from '@/api/race'
const user = userStore() const user = userStore()
@ -177,9 +162,8 @@ function pasSex(num: number) {
else return '保密' else return '保密'
} }
// //
const ndbs = ref<any>({}) const ndbs = ref<any>({})
const ndbsXm = ref<any>({})
console.log(route.query.edit, 'route.query.edit') console.log(route.query.edit, 'route.query.edit')
const options = ref([]) const options = ref([])
@ -187,11 +171,12 @@ if (route.query.edit) {
const getOldRaceListEvent = async () => { const getOldRaceListEvent = async () => {
const res: any = await getOldRaceList({ id: route.query.id}) const res: any = await getOldRaceList({ id: route.query.id})
ndbs.value = res.result.annualComp ndbs.value = res.result.annualComp
ndbsXm.value = res.result.annualCompPoint
} }
const getOldRaceInfoEvent = async () => { const getOldRaceInfoEvent = async () => {
const res: any = await getOldRaceInfo({ id: route.query.id}) const res: any = await getOldRaceInfo({ id: route.query.id})
// ruleForm.annualCompid = route.query.annualCompid
ruleForm.teamName = res.result.teamName ruleForm.teamName = res.result.teamName
ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : ''
ruleForm.objName = res.result.annualCompPointName ruleForm.objName = res.result.annualCompPointName
options.value = res.result.topicList.map((item) => { options.value = res.result.topicList.map((item) => {
return { return {
@ -209,26 +194,23 @@ if (route.query.edit) {
getNdbswxqList(route.query.bcId as string).then((res: any) => { getNdbswxqList(route.query.bcId as string).then((res: any) => {
if (res.result) ndbs.value = res.result if (res.result) ndbs.value = res.result
}) })
getComppxqList(route.query.id as string).then((res: any) => { // const getTopicListApi = async () => {
//console.log(res.result, 'xm') // const res: any = await getTopicList({ annualCompid: route.query.id })
if (res.result) ndbsXm.value = res.result // console.log(res)
})
/*const getTopicListApi = async () => { // nextTick(() => {
const res: any = await getTopicList({ annualCompid: route.query.id }) // if (res.result.length != 0) {
// ruleForm.topicid = res.result[0].id
nextTick(() => { // }
if (res.result.length != 0) { // })
ruleForm.topicid = res.result[0].id // options.value = res.result.map((item) => {
} // return {
}) // value: item.id,
options.value = res.result.map((item) => { // label: item.name,
return { // }
value: item.id, // })
label: item.name, // }
} // getTopicListApi()
})
}
getTopicListApi()*/
} }
// members: adviser: // members: adviser:
@ -264,6 +246,8 @@ const submit = () => {
ruleForm.enrollCode = route.query.enrollCode ruleForm.enrollCode = route.query.enrollCode
ruleForm.id = route.query.annualCompid ruleForm.id = route.query.annualCompid
} }
ruleForm.substa = "1"
getSignUpApi(ruleForm) getSignUpApi(ruleForm)
.then((res: any) => { .then((res: any) => {
ElMessage({ ElMessage({
@ -377,7 +361,7 @@ const submit = () => {
height: 300px; height: 300px;
.com { .com {
width: 685px; width: 100%;
height: 300px; height: 300px;
border-radius: 6px 6px 6px 6px; border-radius: 6px 6px 6px 6px;
padding-top: 22px; padding-top: 22px;
@ -395,7 +379,6 @@ const submit = () => {
margin-bottom: 18px; margin-bottom: 18px;
} }
margin-right: 22px;
.content { .content {
display: flex; display: flex;
@ -445,7 +428,7 @@ const submit = () => {
.right { .right {
.info-box { .info-box {
width: 210px; width: 100%;
.name { .name {
height: 20px; height: 20px;
font-family: font-family:

Loading…
Cancel
Save