mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
fix mark area
This commit is contained in:
parent
6387b2b202
commit
12f521dd70
@ -115,6 +115,12 @@ watch(
|
||||
}
|
||||
if (props.filters) {
|
||||
if (props.filters.isRange) {
|
||||
const list = props.option.series[0].data.map(
|
||||
(d: (number | string)[]) => d[0]
|
||||
);
|
||||
if (!list.includes(props.filters.duration.endTime)) {
|
||||
return;
|
||||
}
|
||||
const markArea = {
|
||||
silent: true,
|
||||
itemStyle: {
|
||||
|
@ -117,7 +117,7 @@ function visTimeline() {
|
||||
for (const widget of widgets) {
|
||||
let end = i.end;
|
||||
if (!isNaN(index)) {
|
||||
let diff = 0;
|
||||
let diff = 60000;
|
||||
switch (appStore.duration.step) {
|
||||
case "MINUTE":
|
||||
diff = 60000;
|
||||
@ -126,16 +126,7 @@ function visTimeline() {
|
||||
diff = 3600000;
|
||||
break;
|
||||
case "DAY":
|
||||
diff = 86400000;
|
||||
break;
|
||||
case "MONTH":
|
||||
diff =
|
||||
(appStore.duration.end.getTime() -
|
||||
appStore.duration.start.getTime()) /
|
||||
(appStore.duration.end.getFullYear() * 12 +
|
||||
appStore.duration.end.getMonth() -
|
||||
appStore.duration.start.getFullYear() * 12 -
|
||||
appStore.duration.start.getMonth());
|
||||
diff = 3600000 * 24;
|
||||
break;
|
||||
}
|
||||
if (!i.end || i.end.getTime() - i.start.getTime() < diff) {
|
||||
|
Loading…
Reference in New Issue
Block a user