From 7ebf9752b95f98865bf94469b58c5abb302a69dd Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期六, 09 十二月 2023 14:45:45 +0800 Subject: [PATCH] 点击当前工序完成的时增加当前时间和任务详情中实际开始时间对比,如果小于60s增加提示并且不请求接口 --- src/views/dashboard/index.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 2ffecc5..e8c7ee5 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -155,7 +155,7 @@ const tasksStore = useTasksStore() const { activeTask, channels } = storeToRefs(tasksStore) -tasksStore.getChannels(1) +tasksStore.getChannels(1, true) function changeTab(tab: LabelValue) { tasksStore.getChannels(tab.value) @@ -166,7 +166,9 @@ * @param task */ function reloadChannel(task: Task) { - tasksStore.reloadChannel(task.Channel) + tasksStore.reloadChannel(task.Channel).then(() => { + plcStore.startPollingPLC() + }) } function reloadAllData() { -- Gitblit v1.8.0