|
@@ -114,6 +114,7 @@
|
|
|
getInvasionSnapshotList,
|
|
getInvasionSnapshotList,
|
|
|
type QueryInvasionSnapshotRes,
|
|
type QueryInvasionSnapshotRes,
|
|
|
} from '@/api/security-confidentiality-position';
|
|
} from '@/api/security-confidentiality-position';
|
|
|
|
|
+ import dayjs from 'dayjs';
|
|
|
|
|
|
|
|
const { isFullScreen, curFullScreenType } = storeToRefs(userSplitScreenFullScreen());
|
|
const { isFullScreen, curFullScreenType } = storeToRefs(userSplitScreenFullScreen());
|
|
|
const { fullScreen, exitFullscreen } = userSplitScreenFullScreen();
|
|
const { fullScreen, exitFullscreen } = userSplitScreenFullScreen();
|
|
@@ -137,13 +138,9 @@
|
|
|
|
|
|
|
|
// 计算近30天的时间范围
|
|
// 计算近30天的时间范围
|
|
|
const getLast30DaysTimeRange = () => {
|
|
const getLast30DaysTimeRange = () => {
|
|
|
- const endTime = new Date();
|
|
|
|
|
- const startTime = new Date();
|
|
|
|
|
- startTime.setDate(endTime.getDate() - 30);
|
|
|
|
|
-
|
|
|
|
|
return {
|
|
return {
|
|
|
- startTime: startTime.toISOString().slice(0, 19).replace('T', ' '),
|
|
|
|
|
- endTime: endTime.toISOString().slice(0, 19).replace('T', ' '),
|
|
|
|
|
|
|
+ startTime: dayjs().subtract(30, 'day').startOf('day').format('YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
+ endTime: dayjs().endOf('day').format('YYYY-MM-DD HH:mm:ss'),
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|