diff --git a/src/api/race.ts b/src/api/race.ts index 822b537..6a741c1 100644 --- a/src/api/race.ts +++ b/src/api/race.ts @@ -88,3 +88,26 @@ export const getHistoryRaceList = (params: any) => { params, }) } +// 获取学生参加的比赛 +export const getStuRaceList = () => { + return request({ + url: '/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/list4Stu', + }) +} + +// 上传作品 +export const uploadFileZp = (data: any) => { + return request({ + url: '/upfilePersion/upfilePersion/workUpload', + method: 'POST', + data, + }) +} + +// 获取题目列表 +export const getTopicList = (params: any) => { + return request({ + url: '/topic/topic/selectList', + params, + }) + } \ No newline at end of file diff --git a/src/views/registrationGroup/index.vue b/src/views/registrationGroup/index.vue index 762c3d1..fcc268c 100644 --- a/src/views/registrationGroup/index.vue +++ b/src/views/registrationGroup/index.vue @@ -126,6 +126,19 @@ + + + + + @@ -162,6 +175,7 @@ import { getSignUpApi } from '@/api/person' import stuList from './components/stuList.vue' import teaList from './components/teaList.vue' import { getNdbswxqList, getComppxqList } from '@/api/person' +import {getTopicList} from '@/api/race' const user = userStore() const route = useRoute() const router = useRouter() @@ -227,6 +241,34 @@ const submit = () => { }) .finally(() => (loading.value = false)) } +const options = [ + { + value: 'Option1', + label: 'Option1', + }, + { + value: 'Option2', + label: 'Option2', + }, + { + value: 'Option3', + label: 'Option3', + }, + { + value: 'Option4', + label: 'Option4', + }, + { + value: 'Option5', + label: 'Option5', + }, +] +const getTopicListApi = async() => { + const res = await getTopicList({annualCompid:route.query.id}) + console.log(res); + +} +getTopicListApi() diff --git a/src/views/userInfo/index.vue b/src/views/userInfo/index.vue index ccde278..7ae298a 100644 --- a/src/views/userInfo/index.vue +++ b/src/views/userInfo/index.vue @@ -90,7 +90,9 @@ + + ({}) console.log(useUserStore.userInfo, 'useUserStore')