NEZ-1966 fix:在支持切换视图的模块使用Graph功能时点击后没有效果
This commit is contained in:
@@ -58,6 +58,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -65,11 +85,13 @@
|
|||||||
import { fromRoute } from '@/components/common/js/constants'
|
import { fromRoute } from '@/components/common/js/constants'
|
||||||
import { bottomBoxWindow } from '@/components/common/js/tools'
|
import { bottomBoxWindow } from '@/components/common/js/tools'
|
||||||
import detailViewRight from '@/components/common/detailView/view/detailViewRight'
|
import detailViewRight from '@/components/common/detailView/view/detailViewRight'
|
||||||
|
import panelChart from "@/components/chart/panelChart";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'nzDataList',
|
name: 'nzDataList',
|
||||||
components: {
|
components: {
|
||||||
detailViewRight
|
detailViewRight,
|
||||||
|
panelChart
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
from: {
|
from: {
|
||||||
@@ -110,6 +132,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ''
|
return ''
|
||||||
|
},
|
||||||
|
topologyShow () {
|
||||||
|
return this.$store.getters.getTopologyShow
|
||||||
|
},
|
||||||
|
topologyChartInfo () {
|
||||||
|
return this.$store.getters.getTopologyChartInfo
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@@ -130,7 +158,8 @@ export default {
|
|||||||
tableHover: false, // 控制滚动条和top按钮同时出现
|
tableHover: false, // 控制滚动条和top按钮同时出现
|
||||||
showCustomTableTitle: false // 自定义列弹框是否显示
|
showCustomTableTitle: false // 自定义列弹框是否显示
|
||||||
},
|
},
|
||||||
showLayout: []
|
showLayout: [],
|
||||||
|
timeRange: [new Date(), new Date()]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -165,6 +194,9 @@ export default {
|
|||||||
},
|
},
|
||||||
changeDetailType (item) {
|
changeDetailType (item) {
|
||||||
this.$emit('changeDetailType', item)
|
this.$emit('changeDetailType', item)
|
||||||
|
},
|
||||||
|
showFullscreen (flag) {
|
||||||
|
this.$store.commit('setTopologyShow', flag)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
:visible.sync="topologyShow"
|
:visible.sync="topologyShow"
|
||||||
:show-close="false"
|
:show-close="false"
|
||||||
class="nz-dialog chart-fullscreen"
|
class="nz-dialog chart-fullscreen"
|
||||||
|
:close-on-click-modal="false"
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
fullscreen
|
fullscreen
|
||||||
:modal-append-to-body="false"
|
:modal-append-to-body="false"
|
||||||
|
|||||||
Reference in New Issue
Block a user