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