修改 树后面按钮

This commit is contained in:
GGJ
2024-08-27 15:40:58 +08:00
parent a195c7959a
commit 56c7b5a672
6 changed files with 44 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
<template>
<div class="static">
<div class="left_tree">
<tree ref="treeRef" />
<tree ref="treeRef" @jump="jump"/>
</div>
<!-- <span class="new_span">测试scss颜色</span> -->
<div class="right_container">
@@ -99,7 +99,7 @@
<el-button type="primary" v-if="form.activeTabs === 5"
>设备导入</el-button
>
<el-button type="primary" @click="planDetail">计划详情</el-button>
<!-- <el-button type="primary" @click="planDetail">计划详情</el-button> -->
</el-form-item>
</el-form>
</div>
@@ -393,6 +393,13 @@ const handleCheckFunction = (val: any) => {
});
form.value.activeTabs=val;
};
// 树点击跳转
const jump=(e:any) => {
console.log("🚀 ~ jump ~ e:", e)
router.push({
path: "/plan/planList",
});
}
onMounted(() => {
console.log();
getTree();