修改修改报名传值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 getOldRaceInfoEvent = async () => {
const res: any = await getOldRaceInfo({ id: route.query.id}) const res: any = await getOldRaceInfo({ id: route.query.id})
console.log(res,'res~~~'); console.log(res,'res~~~');
ruleForm.annualCompid = route.query.annualCompid // ruleForm.annualCompid = route.query.annualCompid
ruleForm.teamName = res.result.teamName ruleForm.teamName = res.result.teamName
ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : '' ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : ''
ruleForm.objName = res.result.annualCompPointName ruleForm.objName = res.result.annualCompPointName
@ -252,7 +252,7 @@ const activeName = ref('members')
const ruleFormRef = ref<FormInstance>() const ruleFormRef = ref<FormInstance>()
const ruleForm = reactive<any>({ const ruleForm = reactive<any>({
annualCompid:'' , // annualCompid:'' ,
entryFormat: '团队', entryFormat: '团队',
id: route.query.id, id: route.query.id,
teamName: '', // teamName: '', //
@ -277,7 +277,7 @@ const submit = () => {
// ruleForm.annualCompid = route.query.id // ruleForm.annualCompid = route.query.id
if(route.query.edit){ if(route.query.edit){
ruleForm.enrollCode = route.query.enrollCode ruleForm.enrollCode = route.query.enrollCode
ruleForm.id = route.query.annualCompid
} }
getSignUpApi(ruleForm) getSignUpApi(ruleForm)
.then((res: any) => { .then((res: any) => {

Loading…
Cancel
Save