|
|
|
@ -126,6 +126,19 @@ |
|
|
|
|
<el-form-item label="队伍名称" prop="teamName"> |
|
|
|
|
<el-input v-model.number="ruleForm.teamName" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="选择题目" prop="teamName"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="ruleForm.topicId" |
|
|
|
|
placeholder="请选择题目" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in options" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|