From 906a393e230b52a1bdc1d298d6adc93c12d4fed8 Mon Sep 17 00:00:00 2001 From: admin <417727563@qq.com> Date: Tue, 1 Apr 2025 11:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=90=8D=20=E9=A2=98=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/registrationGroup/index.vue | 23 ++++--------------- src/views/registrationPersonage/index.vue | 27 ++++------------------- 2 files changed, 8 insertions(+), 42 deletions(-) diff --git a/src/views/registrationGroup/index.vue b/src/views/registrationGroup/index.vue index d30643e..56a9d4d 100644 --- a/src/views/registrationGroup/index.vue +++ b/src/views/registrationGroup/index.vue @@ -30,7 +30,7 @@
比赛年度
{{ ndbs.annualid }}年度
-
比赛名称
+
年度比赛名称
{{ ndbs.name }}
开始报名时间:
@@ -113,7 +113,7 @@ label-width="auto" class="demo-ruleForm" > - + @@ -122,16 +122,6 @@ - - - - -
@@ -201,10 +191,7 @@ 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 : '' ruleForm.objName = res.result.annualCompPointName options.value = res.result.topicList.map((item) => { return { @@ -226,9 +213,8 @@ 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) nextTick(() => { if (res.result.length != 0) { @@ -242,7 +228,7 @@ const getTopicListApi = async () => { } }) } -getTopicListApi() +getTopicListApi()*/ } // members:学生 adviser:老师 @@ -269,7 +255,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 diff --git a/src/views/registrationPersonage/index.vue b/src/views/registrationPersonage/index.vue index 050ace7..0d58c24 100644 --- a/src/views/registrationPersonage/index.vue +++ b/src/views/registrationPersonage/index.vue @@ -32,7 +32,7 @@
比赛年度
{{ ndbs.annualid }}年度
-
比赛名称
+
年度比赛名称
{{ ndbs.name }}
开始报名时间:
@@ -76,25 +76,13 @@
- + - - - - - - - -
@@ -265,10 +253,8 @@ const fileUrl = ref([]); const submitWork = async () => { if (!raceName.value) return ElMessage.warning('请输入作品名称') if (!fileList.value.length) return ElMessage.warning('请上传作品') - console.log(fileList.value[0].raw, raceName.value, 'fileList.value[0].raw') const fromData = new FormData() fromData.append('annualCompid', annualCompid.value) - console.log(annualCompid.value); fromData.append('file', fileList.value[0].raw) // fileUrl.value = fileList.value[0].raw.name fromData.append('workName', raceName.value) @@ -301,12 +287,9 @@ const ndbsXm = ref({}) const subLoading = ref(false) async function submit(substa:string) { - console.log(ruleForm, 'ruleForm') - if (!ruleForm.topicid) return ElMessage.warning('请选择题目') upData.value.teamManagementList[0].realname = info.value.realname upData.value.teamManagementList[0].userId = info.value.id upData.value.annualCompid = route.query.annualCompid - upData.value.topicid = ruleForm.topicid upData.value.workName = WorkName.value upData.value.files = fileUrl.value upData.value.substa = substa @@ -358,7 +341,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 : '' @@ -380,11 +362,10 @@ if (route.query.edit) { if (res.result) ndbs.value = res.result }) getComppxqList(route.query.id as string).then((res: any) => { - 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) @@ -400,7 +381,7 @@ const getTopicListApi = async () => { } }) } -getTopicListApi() +getTopicListApi()*/