From d66fa161900a0bea35b14e7734068d7abe140f90 Mon Sep 17 00:00:00 2001
From: Ly <503441659@qq.com>
Date: Tue, 1 Apr 2025 15:33:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/registrationGroup/index.vue | 14 +++++++++-----
src/views/registrationPersonage/index.vue | 2 ++
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/views/registrationGroup/index.vue b/src/views/registrationGroup/index.vue
index fff3e0b..9d1ffc7 100644
--- a/src/views/registrationGroup/index.vue
+++ b/src/views/registrationGroup/index.vue
@@ -126,8 +126,9 @@
{{ isDisable ? '返回' : isEdit ? '取消修改' : '取消报名' }}
-
- {{ isEdit ? '确认修改' : '确认报名' }}
+ 暂存信息
+
+ {{ isEdit ? '确认修改' : '确认报名' }}
@@ -235,11 +236,11 @@ const stuRef = ref(null)
const teaRef = ref(null)
const loading = ref(false)
-const submit = () => {
+const submit = (substa:string) => {
if (!ruleForm.teamName) return ElMessage.warning('请输入队伍名称')
ruleForm.instructorSheetList = [...teaRef.value.submit()]
ruleForm.teamManagementList = [...stuRef.value.submit()]
- loading.value = true
+ ruleForm.substa = substa
ruleForm.id = route.query.id
// ruleForm.annualCompid = route.query.id
if(route.query.edit){
@@ -247,7 +248,10 @@ const submit = () => {
ruleForm.id = route.query.annualCompid
}
- ruleForm.substa = "1"
+ if(substa == '1'){
+ loading.value = true
+ }
+ // ruleForm.substa = "1"
getSignUpApi(ruleForm)
.then((res: any) => {
ElMessage({
diff --git a/src/views/registrationPersonage/index.vue b/src/views/registrationPersonage/index.vue
index af1d19e..5a7ddd3 100644
--- a/src/views/registrationPersonage/index.vue
+++ b/src/views/registrationPersonage/index.vue
@@ -291,7 +291,9 @@ async function submit(substa:string) {
upData.value.files = fileUrl.value
upData.value.substa = substa
try {
+ if(substa == '1'){
subLoading.value = true
+ }
const res: any = await getSignUpApi({ ...upData.value })
ElMessage({
message: res?.message || res?.result || '报名成功',