修改修改报名传值id

GST002_old
JayChou 3 months ago
parent 57f9af8ece
commit e127d6d6d3
  1. 6
      src/views/registrationGroup/index.vue

@ -202,7 +202,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.annualCompid = route.query.annualCompid
ruleForm.teamName = res.result.teamName
ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : ''
ruleForm.objName = res.result.annualCompPointName
@ -252,7 +252,7 @@ const activeName = ref('members')
const ruleFormRef = ref<FormInstance>()
const ruleForm = reactive<any>({
annualCompid:'' ,
// annualCompid:'' ,
entryFormat: '团队',
id: route.query.id,
teamName: '', //
@ -277,7 +277,7 @@ const submit = () => {
// ruleForm.annualCompid = route.query.id
if(route.query.edit){
ruleForm.enrollCode = route.query.enrollCode
ruleForm.id = route.query.annualCompid
}
getSignUpApi(ruleForm)
.then((res: any) => {

Loading…
Cancel
Save