|
|
|
@ -89,8 +89,8 @@ |
|
|
|
|
<el-input v-model="ruleForm.entryFormat" type="text" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="选择题目" prop="topicId"> |
|
|
|
|
<el-select v-model="ruleForm.topicId" placeholder="请选择题目" :disabled="isDisable"> |
|
|
|
|
<el-form-item label="选择题目" prop="topicid"> |
|
|
|
|
<el-select v-model="ruleForm.topicid" placeholder="请选择题目" :disabled="isDisable"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in options" |
|
|
|
|
:key="item.value" |
|
|
|
@ -217,11 +217,13 @@ const ndbsXm = ref<any>({}) |
|
|
|
|
|
|
|
|
|
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<any>({ |
|
|
|
|
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) => { |
|
|
|
|