预测任务初始时间+6

This commit is contained in:
冯少康 2026-08-07 15:15:58 +08:00
parent 7fdf5c810a
commit 5c50d114b4

View File

@ -360,7 +360,7 @@ function playback() {
});
} else {
const startTime = dayjs(currentSelection.value[0].startDate)
.add(0, "hour")
.add(6, "hour")
.format("YYYY-MM-DD HH:mm:ss");
const params = {
dataType: currentSelection.value[0].predictionModel,
@ -387,13 +387,21 @@ function playback() {
EventBusTool.getEventBus().publish("updateHfKsFlag", false);
getHcQxData(params, (res: any) => {
if (res.code == 200) {
EventBusTool.getEventBus().publish("playData", {
key: "show",
});
const loading = ElLoading.service({
lock: true,
text: 'Loading...',
background: 'rgba(0, 0, 0, 0.7)',
});
setTimeout(() => {
loading.close();
if (res.code == 200) {
EventBusTool.getEventBus().publish("playData", {
key: "show",
});
emit("playback");
}
emit("playback");
}
}, 2000);
});
}
}