From 818816b2892f1a8b3bb01225f55748d9034056dd Mon Sep 17 00:00:00 2001 From: JayChou Date: Wed, 4 Dec 2024 17:52:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=98=E7=9B=AE=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/registrationPersonage/index.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/registrationPersonage/index.vue b/src/views/registrationPersonage/index.vue index ea1ccd1..3b9c051 100644 --- a/src/views/registrationPersonage/index.vue +++ b/src/views/registrationPersonage/index.vue @@ -89,8 +89,8 @@ - - + + ({}) const subLoading = ref(false) async function submit() { - if (!ruleForm.topicId) return ElMessage.warning('请选择题目') + 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.topicid = ruleForm.topicid // if (!upData.value.teamName) { // ElMessage({ // message: '队伍名称不能为空', @@ -255,7 +257,7 @@ const ruleForm = reactive({ annualCompid: '', entryFormat: '个人', id: route.query.id, - topicId: '', + topicid: '', objName:route.query.objName }) const options = ref([]) @@ -270,7 +272,7 @@ if (route.query.edit) { console.log(res, 'res~~~') ruleForm.annualCompid = route.query.annualCompid 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 options.value = res.result.topicList.map((item) => { @@ -298,7 +300,7 @@ const getTopicListApi = async () => { nextTick(() => { if (res.result.length != 0) { - ruleForm.topicId = res.result[0].id + ruleForm.topicid = res.result[0].id } }) options.value = res.result.map((item) => {