修改导航不加载问题
This commit is contained in:
parent
3a4bc50d2b
commit
918d7b40f2
@ -55,7 +55,7 @@ function menuclick(index: any) {
|
||||
}
|
||||
}
|
||||
}
|
||||
function childmenuclick(item: any) {
|
||||
function childmenuclick(item: any,index: any) {
|
||||
if (props.isExecuteEvent) {
|
||||
return
|
||||
}
|
||||
@ -63,6 +63,7 @@ function childmenuclick(item: any) {
|
||||
showmodule.value = false
|
||||
showUserInfo.value = false
|
||||
if (item.module_id && item.module_id !== '') {
|
||||
checkindex.value = index
|
||||
currentrow.value = item
|
||||
currentMoudleId.value = item.module_id
|
||||
showmodule.value = true
|
||||
@ -162,12 +163,12 @@ function userdetails(){
|
||||
<div class="Navbar-menu-content">
|
||||
<TimeDisplay />
|
||||
<div class="Navbar-menu-item"
|
||||
:class="{ 'Navbar-menu-items': checkindex == index && item.children.length == 0 }"
|
||||
:class="{ 'Navbar-menu-items': checkindex == index }"
|
||||
v-for="(item, index) in navmenulist" :key="index" @click="menuclick(index)">
|
||||
<div v-if="!item.children || item.children.length == 0">{{ item.name }}</div>
|
||||
<el-popover v-else :show-arrow="false" class="tsmenu" placement="bottom" popper-class="tsmenu-popover">
|
||||
<div v-for="(items, indexs) in item.children" :key="indexs" class="Navbar-menu-item-child-item"
|
||||
@click="() => childmenuclick(items)">
|
||||
@click="() => childmenuclick(items,index)">
|
||||
{{ items.name }}
|
||||
</div>
|
||||
<template #reference>
|
||||
|
@ -4,8 +4,6 @@ import DvPreview from '@/viewsnew/data-visualization/DvPreview.vue'
|
||||
import FormCreate from '@/viewsnew/common/FormCreate.vue'
|
||||
import { initCanvasData } from '@/utils/canvasUtils'
|
||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||
import { moduleList } from '@/api/application/module'
|
||||
import Navbar from '@/viewsnew/application/SfcEditor/NavbarEditor/assocPage.vue'
|
||||
const props = defineProps({
|
||||
moduleinfo: Object,
|
||||
applicationId: String
|
||||
@ -61,9 +59,9 @@ onMounted(() => {
|
||||
getInit()
|
||||
})
|
||||
watch(() => props.moduleinfo, (val) => {
|
||||
getInit()
|
||||
isFormCreate.value = false
|
||||
dataInitState.value = false
|
||||
getInit()
|
||||
})
|
||||
onBeforeMount(() => {
|
||||
dvMainStore.canvasDataInit()
|
||||
@ -105,7 +103,6 @@ function handleNodeClick(e) {
|
||||
:canvas-style-preview="state.canvasStylePreview" :canvas-view-info-preview="state.canvasViewInfoPreview"
|
||||
:dv-info="state.dvInfo" :cur-preview-gap="state.curPreviewGap" :download-status="downloadStatus"></dv-preview>
|
||||
<form-create v-if="isFormCreate" :moduleInfo="moduleInfo"></form-create>
|
||||
<Navbar v-if="isNavbar"></Navbar>
|
||||
</div>
|
||||
</template>
|
||||
<style lang="less" scoped></style>
|
Loading…
Reference in New Issue
Block a user