xx
This commit is contained in:
@@ -55,13 +55,15 @@ export default function WayLinePage({ planedevices }) {
|
||||
];
|
||||
|
||||
// 获取任务列表数据
|
||||
// 获取任务列表数据 【时间戳已改为秒级】
|
||||
const getListTask = async () => {
|
||||
if (!planedevices?.length) return;
|
||||
try {
|
||||
const defaultStart = dayjs().startOf('day').valueOf();
|
||||
const defaultEnd = dayjs().endOf('day').valueOf();
|
||||
const defaultStart = dayjs().startOf('day').unix(); // 秒级
|
||||
const defaultEnd = dayjs().endOf('day').unix(); // 秒级
|
||||
|
||||
const [beginAt, endAt] = listDateRange?.length === 2
|
||||
? [dayjs(listDateRange[0]).valueOf(), dayjs(listDateRange[1]).valueOf()]
|
||||
? [dayjs(listDateRange[0]).unix(), dayjs(listDateRange[1]).unix()]
|
||||
: [defaultStart, defaultEnd];
|
||||
|
||||
const sns = listDrone ? [listDrone.gateway_sn] : planedevices.map(item => item.gateway_sn);
|
||||
@@ -72,14 +74,15 @@ export default function WayLinePage({ planedevices }) {
|
||||
}
|
||||
};
|
||||
|
||||
// 获取看板任务数据
|
||||
// 获取看板任务数据 【时间戳已改为秒级】
|
||||
const getBoardTask = async () => {
|
||||
if (!planedevices?.length) return;
|
||||
try {
|
||||
const defaultStart = dayjs().startOf('day').valueOf();
|
||||
const defaultEnd = dayjs().endOf('day').valueOf();
|
||||
const defaultStart = dayjs().startOf('day').unix(); // 秒级
|
||||
const defaultEnd = dayjs().endOf('day').unix(); // 秒级
|
||||
|
||||
const [beginAt, endAt] = boardDateRange?.length === 2
|
||||
? [dayjs(boardDateRange[0]).valueOf(), dayjs(boardDateRange[1]).valueOf()]
|
||||
? [dayjs(boardDateRange[0]).unix(), dayjs(boardDateRange[1]).unix()]
|
||||
: [defaultStart, defaultEnd];
|
||||
|
||||
const sns = boardDrone ? [boardDrone.gateway_sn] : planedevices.map(item => item.gateway_sn);
|
||||
|
||||
Reference in New Issue
Block a user