预测任务初始时间+6
This commit is contained in:
parent
7fdf5c810a
commit
5c50d114b4
|
|
@ -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,13 +387,21 @@ function playback() {
|
||||||
EventBusTool.getEventBus().publish("updateHfKsFlag", false);
|
EventBusTool.getEventBus().publish("updateHfKsFlag", false);
|
||||||
|
|
||||||
getHcQxData(params, (res: any) => {
|
getHcQxData(params, (res: any) => {
|
||||||
if (res.code == 200) {
|
const loading = ElLoading.service({
|
||||||
EventBusTool.getEventBus().publish("playData", {
|
lock: true,
|
||||||
key: "show",
|
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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user