fix: 添加c语言出题基本信息

This commit is contained in:
陆光LG
2025-08-11 09:36:43 +08:00
parent 19200ccde0
commit b31a568878
6 changed files with 424 additions and 60 deletions

View File

@@ -484,7 +484,7 @@ const handleSelectionChange = (rows) => {
selections.value = rows
}
const selectedSchool = ref([])
const selectedSchool = ref<any>([])
const handleSelectionChangeSchool = (rows) => {
selectedSchool.value = rows
@@ -609,7 +609,7 @@ const connectTent = async () => {
const res = await QuestionApi.rabbitmqConnect()
console.log(res)
message.success(t(res))
} catch (error) {
} catch (error: any) {
message.error(t(`连接失败: ${error?.message || '未知错误'}`))
}
}
@@ -618,7 +618,7 @@ const connectTong = async () => {
try {
const res = await QuestionApi.receiveAll()
message.success(t('同步成功'))
} catch (error) {
} catch (error: any) {
message.error(t(`连接失败: ${error?.message || '未知错误'}`))
}
}
@@ -704,7 +704,7 @@ const openForm = (type: string, id?: number) => {
if (chooseQuestionType.value.includes('选择题')) {
formRef.value.open(queryParams, type, id)
} else if (chooseQuestionType.value.includes('编程题')) {
cformRef.value.open(type, id)
cformRef.value.open(queryParams,type, id)
} else if (chooseQuestionType.value.includes('程序设计')) {
mformRef.value.open(queryParams, type, id)
} else if (chooseQuestionType.value.includes('网络题')) {