|
|
|
@ -194,23 +194,23 @@ if (route.query.edit) { |
|
|
|
|
getNdbswxqList(route.query.bcId as string).then((res: any) => { |
|
|
|
|
if (res.result) ndbs.value = res.result |
|
|
|
|
}) |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
options.value = res.result.map((item) => { |
|
|
|
|
return { |
|
|
|
|
value: item.id, |
|
|
|
|
label: item.name, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
getTopicListApi() |
|
|
|
|
// 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 |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
// options.value = res.result.map((item) => { |
|
|
|
|
// return { |
|
|
|
|
// value: item.id, |
|
|
|
|
// label: item.name, |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
// getTopicListApi() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// members:学生 adviser:老师 |
|
|
|
|