diff --git a/src/views/registrationPersonage/index.vue b/src/views/registrationPersonage/index.vue
index 050ace7..91a89e9 100644
--- a/src/views/registrationPersonage/index.vue
+++ b/src/views/registrationPersonage/index.vue
@@ -82,19 +82,6 @@
-
-
-
-
-
-
-
-
-
-
- 上传作品
-
-
@@ -247,8 +234,6 @@ const annualCompid = ref('')
const raceName = ref('')
const uploadZp = (id: any) => {
-
- console.log(id)
annualCompid.value = id
dialogVisible.value = true
}
@@ -265,10 +250,8 @@ const fileUrl = ref([]);
const submitWork = async () => {
if (!raceName.value) return ElMessage.warning('请输入作品名称')
if (!fileList.value.length) return ElMessage.warning('请上传作品')
- console.log(fileList.value[0].raw, raceName.value, 'fileList.value[0].raw')
const fromData = new FormData()
fromData.append('annualCompid', annualCompid.value)
- console.log(annualCompid.value);
fromData.append('file', fileList.value[0].raw)
// fileUrl.value = fileList.value[0].raw.name
fromData.append('workName', raceName.value)
@@ -301,26 +284,15 @@ const ndbsXm = ref({})
const subLoading = ref(false)
async function submit(substa:string) {
- 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.workName = WorkName.value
upData.value.files = fileUrl.value
upData.value.substa = substa
- // if (!upData.value.teamName) {
- // ElMessage({
- // message: '队伍名称不能为空',
- // type: 'warning',
- // })
- // return
- // }
try {
subLoading.value = true
const res: any = await getSignUpApi({ ...upData.value })
- console.log(res, 999999999)
ElMessage({
message: res?.message || res?.result || '报名成功',
type: 'success',
@@ -358,19 +330,10 @@ 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.teamName = res.result.teamName
- ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : ''
- ruleForm.objName = res.result.annualCompPointName
ruleForm.requireUploadWorks = res.result.requireUploadWorks
- WorkName.value = res.result.uploadFile.topicName
- options.value = res.result.topicList.map((item) => {
- return {
- value: item.id,
- label: item.name,
- }
- })
+ ruleForm.objName = res.result.annualCompPointName
}
getOldRaceListEvent()
@@ -380,14 +343,11 @@ if (route.query.edit) {
if (res.result) ndbs.value = res.result
})
getComppxqList(route.query.id as string).then((res: any) => {
- console.log(res.result, 'xm')
if (res.result) ndbsXm.value = res.result
})
}
-const getTopicListApi = async () => {
+/*const getTopicListApi = async () => {
const res: any = await getTopicList({ annualCompid: route.query.id })
- console.log(res)
-
nextTick(() => {
if (res.result.length != 0) {
ruleForm.topicid = res.result[0].id
@@ -400,7 +360,7 @@ const getTopicListApi = async () => {
}
})
}
-getTopicListApi()
+getTopicListApi()*/