suerprisePlus
2024-10-14 f521ebc2551d468c4c478783a18d4b0714394d61
src/views/visualization/bottomMenu.vue
@@ -5,12 +5,16 @@
                <el-popover popper-class="popover" placement="top" v-show="i.children && i.children.length > 0"
                    width="100" trigger="click">
                    <span slot="reference">{{ i.name }}</span>
                    <div @click="setChildData(c)" class="popover__item" v-show="i.children && i.children.length > 0"
                        v-for="(c, f) in i.children" c :title="c.name"> {{
                            c.name.slice(0, 8) }}
                    <div v-show="i.children && i.children.length > 0">
                        <div @click="setChildData(c)" class="popover__item" v-for="(c, f) in i.children" c
                            :title="c.name"> {{
                                c.name.slice(0, 8) }}
                        </div>
                    </div>
                </el-popover>
                <span @click="setChildData(i)" slot="reference" v-show="!i.children || i.children.length <= 0">{{ i.name }}</span>
                <span @click="setChildData(i)" slot="reference" v-show="!i.children || i.children.length <= 0">{{ i.name
                    }}</span>
            </div>
        </div>
@@ -33,6 +37,10 @@
                            id: 'a1',
                            name: '知识图谱',
                            pid: 's1',
                        }, {
                            id: 'a1',
                            name: '语义功能',
                            pid: 's4',
                        }
                    ]
                }, {
@@ -51,7 +59,7 @@
                    }]
                }, {
                    name: '数字线损',
                }
            ],
            visible: false