From 02a8c212ff39b1b1cef1d36f843432609c9e0125 Mon Sep 17 00:00:00 2001 From: JayChou Date: Mon, 2 Dec 2024 10:21:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E7=9C=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../registrationGroup/components/stuList.vue | 30 ++++++++++++++----- .../registrationGroup/components/teaList.vue | 20 ++++++++----- src/views/registrationGroup/index.vue | 10 ++++--- src/views/userInfo/components/reacList.vue | 21 ++++++++++--- 4 files changed, 59 insertions(+), 22 deletions(-) diff --git a/src/views/registrationGroup/components/stuList.vue b/src/views/registrationGroup/components/stuList.vue index 9e70f57..acc4465 100644 --- a/src/views/registrationGroup/components/stuList.vue +++ b/src/views/registrationGroup/components/stuList.vue @@ -1,9 +1,21 @@ @@ -60,7 +74,7 @@ 学号 @@ -71,7 +85,7 @@ 手机号 @@ -82,7 +96,7 @@ 邮箱 @@ -93,7 +107,7 @@ 队员序号 @@ -112,7 +126,9 @@ import { getTeamList } from '@/api/oldRace' import { useRoute } from 'vue-router' const route = useRoute() const userModel = userStore() - +// 是否禁用控件 +const isDisable = ref(false) +isDisable.value = route.query.info as any const options = [ { value: '1', diff --git a/src/views/registrationGroup/components/teaList.vue b/src/views/registrationGroup/components/teaList.vue index a2abb96..a7cde6c 100644 --- a/src/views/registrationGroup/components/teaList.vue +++ b/src/views/registrationGroup/components/teaList.vue @@ -1,6 +1,6 @@ @@ -87,7 +89,7 @@ 专业 @@ -98,7 +100,7 @@ 研究方向 @@ -109,7 +111,7 @@ 手机号 @@ -125,7 +127,11 @@ import { ClusterOutlined } from '@ant-design/icons-vue' import { ElMessage } from 'element-plus' import {getTeacherList} from '@/api/oldRace' import { useRoute } from 'vue-router' + const route = useRoute() +const isDisable = ref(false) +isDisable.value = route.query.info as any + const options = [ { value: '1', diff --git a/src/views/registrationGroup/index.vue b/src/views/registrationGroup/index.vue index 21cc552..787bdd8 100644 --- a/src/views/registrationGroup/index.vue +++ b/src/views/registrationGroup/index.vue @@ -120,10 +120,10 @@ - + - +
- 取消报名 - + {{ isDisable ? '返回' : '取消报名'}} + 确认报名
@@ -173,6 +173,8 @@ import { getTopicList } from '@/api/race' const user = userStore() const route = useRoute() const router = useRouter() +const isDisable = ref(false) +isDisable.value = route.query.info as any // 用户信息 const { userInfo: info } = toRefs(user) diff --git a/src/views/userInfo/components/reacList.vue b/src/views/userInfo/components/reacList.vue index 719828a..15cd32e 100644 --- a/src/views/userInfo/components/reacList.vue +++ b/src/views/userInfo/components/reacList.vue @@ -67,14 +67,14 @@ > 编辑 - + @@ -198,7 +198,7 @@ const download = async (url:any,name:any) => { const a = document.createElement('a') a.style.display = 'none' document.body.appendChild(a) - a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin' + url + a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url a.setAttribute('download', name); a.click() document.body.removeChild(a) @@ -247,6 +247,19 @@ const editEvent = (id: any,annualCompid: any,enrollCode:any) => { }) } + +const InfoEvent = (id: any,annualCompid: any,enrollCode:any) => { + router.push({ + path: '/registrationGroup', + query:{ + id, + annualCompid, + enrollCode, + edit: true, + info: true + } + }) +}