fix:修复 实体详情 检测No data提示判断逻辑问题
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="expand">
|
<div class="expand">
|
||||||
<chart-no-data v-if="downDataList.length === 0"></chart-no-data>
|
<chart-no-data v-if="downDataList.length === 0 && !loadingDown"></chart-no-data>
|
||||||
<div class="expand-cell" v-for="(item, index) in downDataList" :key="index">
|
<div class="expand-cell" v-for="(item, index) in downDataList" :key="index">
|
||||||
<div class="expand-right">
|
<div class="expand-right">
|
||||||
<div class="demo-progress">
|
<div class="demo-progress">
|
||||||
|
|||||||
@@ -255,6 +255,7 @@
|
|||||||
:time-filter="timeFilter"
|
:time-filter="timeFilter"
|
||||||
:chart-info="chartInfo"
|
:chart-info="chartInfo"
|
||||||
:query-params="queryParams"
|
:query-params="queryParams"
|
||||||
|
@chartDetection="chartDetection"
|
||||||
v-else-if="isDetectionSecurity"
|
v-else-if="isDetectionSecurity"
|
||||||
@getDetectionData="getDetectionData"
|
@getDetectionData="getDetectionData"
|
||||||
></chart-detection-security>
|
></chart-detection-security>
|
||||||
@@ -264,6 +265,7 @@
|
|||||||
:time-filter="timeFilter"
|
:time-filter="timeFilter"
|
||||||
:chart-info="chartInfo"
|
:chart-info="chartInfo"
|
||||||
:query-params="queryParams"
|
:query-params="queryParams"
|
||||||
|
@chartDetection="chartDetection"
|
||||||
v-else-if="isDetectionService"
|
v-else-if="isDetectionService"
|
||||||
@getDetectionData="getDetectionData"
|
@getDetectionData="getDetectionData"
|
||||||
></chart-detection-service>
|
></chart-detection-service>
|
||||||
@@ -381,6 +383,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
activeTab: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -397,8 +400,7 @@ export default {
|
|||||||
table: Object,
|
table: Object,
|
||||||
timeFilter: Object,
|
timeFilter: Object,
|
||||||
orderPieTable: String,
|
orderPieTable: String,
|
||||||
tabHandleClickType: String,
|
tabHandleClickType: String
|
||||||
activeTab: Number
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isNoData () {
|
isNoData () {
|
||||||
@@ -451,6 +453,9 @@ export default {
|
|||||||
},
|
},
|
||||||
query (params) {
|
query (params) {
|
||||||
this.$emit('query', params)
|
this.$emit('query', params)
|
||||||
|
},
|
||||||
|
chartDetection(type) {
|
||||||
|
this.activeTab = type
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup (props) {
|
setup (props) {
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
:entity="entity"
|
:entity="entity"
|
||||||
:table="table"
|
:table="table"
|
||||||
:active-tab="activeTab"
|
|
||||||
:is-fullscreen="isFullscreen"
|
:is-fullscreen="isFullscreen"
|
||||||
:order-pie-table="orderPieTable"
|
:order-pie-table="orderPieTable"
|
||||||
:time-filter="timeFilter"
|
:time-filter="timeFilter"
|
||||||
@@ -103,8 +102,7 @@ export default {
|
|||||||
timeFilter: Object, // 时间范围
|
timeFilter: Object, // 时间范围
|
||||||
isFullscreen: Boolean,
|
isFullscreen: Boolean,
|
||||||
panelLock: Boolean,
|
panelLock: Boolean,
|
||||||
entity: Object,
|
entity: Object
|
||||||
activeTab: Number
|
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
:chart-info="item"
|
:chart-info="item"
|
||||||
:time-filter="timeFilter"
|
:time-filter="timeFilter"
|
||||||
:entity="entity"
|
:entity="entity"
|
||||||
:active-tab="activeTab"
|
|
||||||
@groupShow="groupShow"
|
@groupShow="groupShow"
|
||||||
@showFullscreen="showFullscreen"
|
@showFullscreen="showFullscreen"
|
||||||
></panel-chart>
|
></panel-chart>
|
||||||
@@ -57,7 +56,6 @@
|
|||||||
:is-fullscreen="true"
|
:is-fullscreen="true"
|
||||||
:panelLock="panelLock"
|
:panelLock="panelLock"
|
||||||
:time-filter="timeFilter"
|
:time-filter="timeFilter"
|
||||||
:active-tab="activeTab"
|
|
||||||
@showFullscreen="showFullscreen"
|
@showFullscreen="showFullscreen"
|
||||||
></panel-chart>
|
></panel-chart>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -86,7 +84,6 @@ export default {
|
|||||||
panelLock: { type: Boolean, default: true },
|
panelLock: { type: Boolean, default: true },
|
||||||
isGroup: Boolean,
|
isGroup: Boolean,
|
||||||
entity: Object,
|
entity: Object,
|
||||||
activeTab: Number,
|
|
||||||
dataList: Array // 看板中所有图表信息
|
dataList: Array // 看板中所有图表信息
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="!activeTab && activeTab !== 706 && activeTab !== 707" class="panel-chart__no-data">No data</div>
|
<div v-if="activeTab !== 709 && activeTab !== 710" class="panel-chart__no-data">No data</div>
|
||||||
<div v-else class="panel-chart__no-data all-clear">
|
<div v-else class="panel-chart__no-data all-clear">
|
||||||
<div class="no-recent-alerts">
|
<div class="no-recent-alerts">
|
||||||
<i class="el-icon-circle-check"></i>
|
<i class="el-icon-circle-check"></i>
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.$emit('chartDetection', this.chartInfo.type)
|
||||||
this.securityCount()
|
this.securityCount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.$emit('chartDetection', this.chartInfo.type)
|
||||||
this.securityCount()
|
this.securityCount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user