【新增】mysql出题界面

This commit is contained in:
YOHO\20373
2025-05-20 15:40:50 +08:00
committed by 陆光LG
parent 52bff24959
commit e004ec7cc5
5 changed files with 217 additions and 174 deletions

View File

@@ -1,14 +1,15 @@
<template>
<el-row :gutter="20">
<!-- 左侧部门树 -->
<el-col :span="4" :xs="24">
<ContentWrap class="h-1/2">
<SpecialtyTree @node-click="handleSpecialtyNodeClick" />
</ContentWrap>
<ContentWrap class="h-1/2">
<DeptTree @node-click="handleDeptNodeClick" />
</ContentWrap>
</el-col>
<el-col :span="4" :xs="24">
<ContentWrap style="height: 50%; overflow-y: auto;">
<SpecialtyTree @node-click="handleSpecialtyNodeClick" />
</ContentWrap>
<ContentWrap style="height: 50%; overflow-y: auto;">
<DeptTree @node-click="handleDeptNodeClick" />
</ContentWrap>
</el-col>
<el-col :span="20" :xs="24">
<!-- 搜索 -->
<ContentWrap>
@@ -291,6 +292,7 @@ const queryParams = reactive({
courseName: "",
subjectName: "",
pointNames:"",
chapteridDictText:"",
pageNo: 1,
pageSize: 10,
})
@@ -348,20 +350,15 @@ const handleDeptNodeClick = async (row) => {
// 判断点击的层级结构,进行入参
if (!row.children != null){
}
console.log(respoint.value+"respoint.value")
const specArr: any = findNamePathFromTreeList(respoint.value, row.id)
console.log(specArr+"specArr")
// 判断长度赋值
if (specArr.length == 1) {
}
if (specArr.length == 2) {
}
if (specArr.length == 3) {
queryParams.chapteridDictText=specArr[1]
queryParams.pointNames = specArr[2]
console.log(queryParams.pointNames +"queryParams.pointNames ")
}
await getList()
}