【新增】mysql出题界面
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user