修改算法库

This commit is contained in:
guanj
2025-12-29 20:46:24 +08:00
parent 26ff8087c6
commit 06764c073a
6 changed files with 137 additions and 106 deletions

View File

@@ -24,6 +24,7 @@ const adminInfo = useAdminInfo()
defineOptions({
name: 'database/algorithm'
})
const emits = defineEmits(['algorithm'])
const height = mainHeight(20)
const size = ref(23)
@@ -117,11 +118,9 @@ const info = () => {
}
// 点击echart
const echartClick = (params: any) => {
if (params.data.level == 3 && params.data.path != '') {
router.push({
name: params.data.path
})
}
if(params.data.level == 3){
emits('algorithm', params)
}
}
const setTreeAllNodeExpand = (treeData: any) => {
if (!treeData) return []