parent
9e7e63f713
commit
fa30b3feda
|
@ -95,9 +95,7 @@ const serverData = reactive({
|
||||||
|
|
||||||
const pickerTimeChange = () => {
|
const pickerTimeChange = () => {
|
||||||
data.value.type = undefined;
|
data.value.type = undefined;
|
||||||
if(props.isNoCommunity){
|
getCPUEcharts(data.value)
|
||||||
getCPUEcharts(data.value)
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const echartsOptions = computed(() => {
|
const echartsOptions = computed(() => {
|
||||||
|
@ -196,9 +194,7 @@ watch(
|
||||||
if (value === undefined) return;
|
if (value === undefined) return;
|
||||||
const date = getTimeByType(value);
|
const date = getTimeByType(value);
|
||||||
data.value.time = [dayjs(date), dayjs(new Date())];
|
data.value.time = [dayjs(date), dayjs(new Date())];
|
||||||
if (props.isNoCommunity) {
|
getCPUEcharts(data.value);
|
||||||
getCPUEcharts(data.value);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{ immediate: true, deep: true },
|
{ immediate: true, deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
@ -95,9 +95,7 @@ const serverData = reactive({
|
||||||
|
|
||||||
const pickerTimeChange = () => {
|
const pickerTimeChange = () => {
|
||||||
data.value.type = undefined;
|
data.value.type = undefined;
|
||||||
if(props.isNoCommunity){
|
getJVMEcharts(data.value)
|
||||||
getJVMEcharts(data.value)
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getJVMEcharts = async (val: any) => {
|
const getJVMEcharts = async (val: any) => {
|
||||||
|
@ -200,9 +198,7 @@ watch(
|
||||||
const date = getTimeByType(value);
|
const date = getTimeByType(value);
|
||||||
data.value.time = [dayjs(date), dayjs(new Date())];
|
data.value.time = [dayjs(date), dayjs(new Date())];
|
||||||
|
|
||||||
if (props.isNoCommunity) {
|
getJVMEcharts(data.value);
|
||||||
getJVMEcharts(data.value);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{ immediate: true, deep: true },
|
{ immediate: true, deep: true },
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue