NEZ-1966 fix:在支持切换视图的模块使用Graph功能时点击后没有效果

This commit is contained in:
zhangyu
2022-06-22 14:37:48 +08:00
parent 106c810552
commit d97a77aa80
2 changed files with 35 additions and 2 deletions

View File

@@ -58,6 +58,26 @@
</div>
</div>
</div>
<!-- 全屏查看 -->
<el-dialog
v-if="topologyShow"
:visible.sync="topologyShow"
:show-close="false"
class="nz-dialog chart-fullscreen"
destroy-on-close
fullscreen
:modal-append-to-body="false"
>
<panel-chart
:ref="'chart-fullscreen' + topologyChartInfo.id"
:chart-info="topologyChartInfo"
:close-on-click-modal="false"
:from="from"
:time-range="timeRange"
:is-fullscreen="true"
@showFullscreen="showFullscreen"
></panel-chart>
</el-dialog>
</div>
</template>
@@ -65,11 +85,13 @@
import { fromRoute } from '@/components/common/js/constants'
import { bottomBoxWindow } from '@/components/common/js/tools'
import detailViewRight from '@/components/common/detailView/view/detailViewRight'
import panelChart from "@/components/chart/panelChart";
export default {
name: 'nzDataList',
components: {
detailViewRight
detailViewRight,
panelChart
},
props: {
from: {
@@ -110,6 +132,12 @@ export default {
}
}
return ''
},
topologyShow () {
return this.$store.getters.getTopologyShow
},
topologyChartInfo () {
return this.$store.getters.getTopologyChartInfo
}
},
data () {
@@ -130,7 +158,8 @@ export default {
tableHover: false, // 控制滚动条和top按钮同时出现
showCustomTableTitle: false // 自定义列弹框是否显示
},
showLayout: []
showLayout: [],
timeRange: [new Date(), new Date()]
}
},
methods: {
@@ -165,6 +194,9 @@ export default {
},
changeDetailType (item) {
this.$emit('changeDetailType', item)
},
showFullscreen (flag) {
this.$store.commit('setTopologyShow', flag)
}
},
watch: {

View File

@@ -83,6 +83,7 @@
:visible.sync="topologyShow"
:show-close="false"
class="nz-dialog chart-fullscreen"
:close-on-click-modal="false"
destroy-on-close
fullscreen
:modal-append-to-body="false"