|
|
|
@ -46,6 +46,31 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</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> |
|
|
|
|
<el-card> |
|
|
|
|
<div> |
|
|
|
@ -57,7 +82,6 @@ |
|
|
|
|
<el-form-item label="参赛形式"> |
|
|
|
|
<el-input v-model="ruleForm.entryFormat" type="text" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
@ -151,7 +175,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #tip> |
|
|
|
|
<div class="el-upload__tip text-red">作品只允许上传一个,格式为{{ndbs.uploadWorksType}}</div> |
|
|
|
|
<div class="el-upload__tip text-red">作品只允许上传一个,格式为{{ndbsXm.uploadWorksType}}</div> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
</el-upload> |
|
|
|
@ -210,8 +234,6 @@ const annualCompid = ref('') |
|
|
|
|
const raceName = ref<any>('') |
|
|
|
|
|
|
|
|
|
const uploadZp = (id: any) => { |
|
|
|
|
|
|
|
|
|
console.log(id) |
|
|
|
|
annualCompid.value = id |
|
|
|
|
dialogVisible.value = true |
|
|
|
|
} |
|
|
|
@ -256,8 +278,9 @@ const submitWork = async () => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 比赛信息 |
|
|
|
|
// 比赛信息、项目信息 |
|
|
|
|
const ndbs = ref<any>({}) |
|
|
|
|
const ndbsXm = ref<any>({}) |
|
|
|
|
|
|
|
|
|
const subLoading = ref(false) |
|
|
|
|
async function submit(substa:string) { |
|
|
|
@ -267,17 +290,11 @@ async function submit(substa:string) { |
|
|
|
|
upData.value.workName = WorkName.value |
|
|
|
|
upData.value.files = fileUrl.value |
|
|
|
|
upData.value.substa = substa |
|
|
|
|
// if (!upData.value.teamName) { |
|
|
|
|
// ElMessage({ |
|
|
|
|
// message: '队伍名称不能为空', |
|
|
|
|
// type: 'warning', |
|
|
|
|
// }) |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
try { |
|
|
|
|
if(substa == '1'){ |
|
|
|
|
subLoading.value = true |
|
|
|
|
} |
|
|
|
|
const res: any = await getSignUpApi({ ...upData.value }) |
|
|
|
|
console.log(res, 999999999) |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res?.message || res?.result || '报名成功', |
|
|
|
|
type: 'success', |
|
|
|
@ -311,21 +328,14 @@ if (route.query.edit) { |
|
|
|
|
const getOldRaceListEvent = async () => { |
|
|
|
|
const res: any = await getOldRaceList({ id: route.query.id }) |
|
|
|
|
ndbs.value = res.result.annualComp |
|
|
|
|
ndbsXm.value = res.result.annualCompPoint |
|
|
|
|
} |
|
|
|
|
const getOldRaceInfoEvent = async () => { |
|
|
|
|
const res: any = await getOldRaceInfo({ id: route.query.id }) |
|
|
|
|
ruleForm.annualCompid = route.query.annualCompid |
|
|
|
|
ruleForm.teamName = res.result.teamName |
|
|
|
|
ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : '' |
|
|
|
|
ruleForm.objName = res.result.annualCompPointName |
|
|
|
|
ruleForm.requireUploadWorks = res.result.requireUploadWorks |
|
|
|
|
WorkName.value = res.result.uploadFile.topicName |
|
|
|
|
options.value = res.result.topicList.map((item) => { |
|
|
|
|
return { |
|
|
|
|
value: item.id, |
|
|
|
|
label: item.name, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
ruleForm.objName = res.result.annualCompPointName |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getOldRaceListEvent() |
|
|
|
@ -334,11 +344,12 @@ if (route.query.edit) { |
|
|
|
|
getNdbswxqList(route.query.bcId as string).then((res: any) => { |
|
|
|
|
if (res.result) ndbs.value = res.result |
|
|
|
|
}) |
|
|
|
|
getComppxqList(route.query.id as string).then((res: any) => { |
|
|
|
|
if (res.result) ndbsXm.value = res.result |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
/*const getTopicListApi = async () => { |
|
|
|
|
const res: any = await getTopicList({ annualCompid: route.query.id }) |
|
|
|
|
console.log(res) |
|
|
|
|
|
|
|
|
|
nextTick(() => { |
|
|
|
|
if (res.result.length != 0) { |
|
|
|
|
ruleForm.topicid = res.result[0].id |
|
|
|
@ -429,7 +440,7 @@ getTopicListApi()*/ |
|
|
|
|
height: 300px; |
|
|
|
|
|
|
|
|
|
.com { |
|
|
|
|
width: 100%; |
|
|
|
|
width: 685px; |
|
|
|
|
height: 300px; |
|
|
|
|
border-radius: 6px 6px 6px 6px; |
|
|
|
|
padding-top: 22px; |
|
|
|
@ -447,7 +458,7 @@ getTopicListApi()*/ |
|
|
|
|
margin-bottom: 18px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
margin-right: 22px; |
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
|
display: flex; |
|
|
|
@ -498,7 +509,7 @@ getTopicListApi()*/ |
|
|
|
|
|
|
|
|
|
.right { |
|
|
|
|
.info-box { |
|
|
|
|
width: 100%; |
|
|
|
|
width: 210px; |
|
|
|
|
|
|
|
|
|
.name { |
|
|
|
|
height: 20px; |
|
|
|
|