fix: 修复运维管理仪表盘在暂无数据情况下切换导致无数据展示问题
This commit is contained in:
parent
b52119fc6e
commit
8a3662419f
|
@ -139,6 +139,7 @@ const getCPUEcharts = async (val: any) => {
|
|||
const _cpuOptions = {};
|
||||
const _cpuXAxis = new Set();
|
||||
if (res.result?.length) {
|
||||
isEmpty.value = false;
|
||||
// 根据服务节点来筛选数据
|
||||
// const filterArray = props.isNoCommunity ? res.result.filter((item : any) => item.data?.clusterNodeId === props.serviceId) : res.result
|
||||
const filterArray = res.result
|
||||
|
|
|
@ -103,6 +103,7 @@ const getJVMEcharts = async (val: any) => {
|
|||
const _jvmOptions = {};
|
||||
const _jvmXAxis = new Set();
|
||||
if (res.result?.length) {
|
||||
isEmpty.value = false;
|
||||
// const filterArray = props.isNoCommunity ? res.result.filter((item : any) => item.data?.clusterNodeId === props.serviceId) : res.result
|
||||
const filterArray = res.result
|
||||
filterArray.forEach((item: any) => {
|
||||
|
|
|
@ -114,6 +114,7 @@ const getNetworkEcharts = async (val: any) => {
|
|||
const _networkOptions = {};
|
||||
const _networkXAxis = new Set();
|
||||
if (resp.result.length) {
|
||||
isEmpty.value = false;
|
||||
const filterArray = resp.result
|
||||
// const filterArray = resp.result.filter((item : any) => item.data?.clusterNodeId === props.serviceId)
|
||||
filterArray.forEach((item: any) => {
|
||||
|
|
|
@ -44,7 +44,7 @@ watch(() => props.options, () => {
|
|||
echartsRender()
|
||||
})
|
||||
}
|
||||
}, { deep: true })
|
||||
}, { immediate: true, deep: true })
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue