fix:添加group组件
This commit is contained in:
@@ -35,12 +35,12 @@
|
||||
:entity="entity"
|
||||
></chart-block>
|
||||
|
||||
<chart-block
|
||||
<chart-group
|
||||
v-else-if="isGroup"
|
||||
:chart-info="chartInfo"
|
||||
:chart-data="chartData"
|
||||
:entity="entity"
|
||||
></chart-block>
|
||||
></chart-group>
|
||||
|
||||
<ip-basic-info
|
||||
v-else-if="isIpBasicInfo"
|
||||
@@ -156,6 +156,7 @@ import ChartTabs from '@/views/charts/charts/ChartTabs'
|
||||
import ChartMap from '@/views/charts/charts/ChartMap'
|
||||
import ChartSingleValue from '@/views/charts/charts/ChartSingleValue'
|
||||
import ChartBlock from '@/views/charts/charts/ChartBlock'
|
||||
import ChartGroup from '@/views/charts/charts/ChartGroup'
|
||||
import IpBasicInfo from '@/views/charts/charts/IpBasicInfo'
|
||||
import ChartEchartLine from '@/views/charts/charts/ChartEchartLine'
|
||||
import ChartActiveIpTable from '@/views/charts/charts/ChartActiveIpTable'
|
||||
@@ -226,6 +227,7 @@ export default {
|
||||
ChartCategoryBar,
|
||||
ChartIpOpenPortBar,
|
||||
ChartRelationShip,
|
||||
ChartGroup
|
||||
},
|
||||
props: {
|
||||
chartInfo: Object,
|
||||
|
||||
@@ -124,6 +124,9 @@ export default {
|
||||
chart.h = 1
|
||||
}
|
||||
}
|
||||
if (chart.type === 95) {
|
||||
chart.h += 1
|
||||
}
|
||||
if (!this.$_.isEmpty(chart.children)) {
|
||||
chart.children.forEach(c => {
|
||||
this.recursionParamsConvert(c)
|
||||
|
||||
23
src/views/charts/charts/ChartGroup.vue
Normal file
23
src/views/charts/charts/ChartGroup.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<panel-chart-list
|
||||
:time-filter="timeFilter"
|
||||
:data-list="chartInfo.children"
|
||||
:panel-lock="true"
|
||||
:entity="entity"
|
||||
>
|
||||
</panel-chart-list>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import chartMixin from '@/views/charts/charts/chart-mixin'
|
||||
|
||||
export default {
|
||||
name: 'ChartBlock',
|
||||
mixins: [chartMixin],
|
||||
props: {
|
||||
timeFilter: Object
|
||||
},
|
||||
mounted () {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user