From 7ebf9752b95f98865bf94469b58c5abb302a69dd Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期六, 09 十二月 2023 14:45:45 +0800 Subject: [PATCH] 点击当前工序完成的时增加当前时间和任务详情中实际开始时间对比,如果小于60s增加提示并且不请求接口 --- src/stores/plc.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/plc.ts b/src/stores/plc.ts index b42f370..83ff4cd 100644 --- a/src/stores/plc.ts +++ b/src/stores/plc.ts @@ -27,8 +27,8 @@ } = useRequest( () => getProductProgress({ - channel: taskStore.activeTask?.Channel, - procedureId: taskStore.activeTask?.Procedure.ID + channel: taskStore.activeChannel ?? 0, + procedureId: taskStore.activeTask?.Procedure.ID ?? undefined } as ProductProgressParams), { manual: true, @@ -42,7 +42,7 @@ * 濡傛灉鍒囨崲鍒板叾浠栭�氶亾鐨勪换鍔�,鍒欓噸鏂拌疆璇lc */ unwatch.value = watch( - () => taskStore.activeTask?.Channel, + () => taskStore.activeChannel, () => { cancelPLCPolling() startPLCPolling() -- Gitblit v1.8.0