【新增】试题知识点,mysql、文件、浏览器试题框架

This commit is contained in:
YOHO\20373
2025-05-20 13:54:03 +08:00
committed by 陆光LG
parent 8cfd7cccba
commit 52bff24959
5 changed files with 1881 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="head-container">
<el-input v-model="deptName" class="mb-20px" clearable placeholder="请输入部门名称">
<el-input v-model="deptName" class="mb-20px" clearable placeholder="请输入知识点">
<template #prefix>
<Icon icon="ep:search" />
</template>
@@ -25,6 +25,7 @@
import { ElTree } from 'element-plus'
import * as DeptApi from '@/api/system/dept'
import { defaultProps, handleTree } from '@/utils/tree'
import * as SpecialtyApi from '@/api/points'
defineOptions({ name: 'SystemUserDeptTree' })
@@ -34,7 +35,7 @@ const treeRef = ref<InstanceType<typeof ElTree>>()
/** 获得部门树 */
const getTree = async () => {
const res = await DeptApi.getSimpleDeptList()
const res = await SpecialtyApi.listPoints()
deptList.value = []
deptList.value.push(...handleTree(res))
}