fix: 修复运维管理仪表盘在暂无数据情况下切换导致无数据展示问题

This commit is contained in:
XieYongHong 2023-07-24 14:45:57 +08:00
parent b52119fc6e
commit 8a3662419f
4 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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) => {

View File

@ -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) => {

View File

@ -44,7 +44,7 @@ watch(() => props.options, () => {
echartsRender()
})
}
}, { deep: true })
}, { immediate: true, deep: true })
</script>