【新增】试题知识点,mysql、文件、浏览器试题框架
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user