From 909d20ae348ae18a07a54068c3517ce47a2bcfc7 Mon Sep 17 00:00:00 2001 From: 朱桂飞 <zhuguifei@zhuguifeideMacBook-Air.local> Date: 星期六, 11 一月 2025 12:52:16 +0800 Subject: [PATCH] 修改车间实时监控 --- src/views/dashboard/control/api.ts | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/views/dashboard/control/api.ts b/src/views/dashboard/control/api.ts index 76a5c9f..703be84 100644 --- a/src/views/dashboard/control/api.ts +++ b/src/views/dashboard/control/api.ts @@ -2,6 +2,8 @@ enum Api { sendCommand = '/dry/real/sendCommand', + sendWriteCommand = '/dry/opc/sendWriteCommand', + listAll = '/dry/dryOpcDevice/listAll' } /** * 鍙戦�佸懡浠� @@ -9,3 +11,15 @@ */ export const sendCommand = (params) => defHttp.post({ url: Api.sendCommand, params },{ isTransformResponse: false }); +/** + * 鍙戦�丱PC鍐欐寚浠� + */ + +export const sendWriteCommand = (params) => defHttp.post({url: Api.sendWriteCommand, params},{isTransformResponse: false}) + +/** + * 鏌ヨ鎵�鏈塐PC璁惧 + */ + +export const listAll = (params) => defHttp.get({url:Api.listAll, params}) + -- Gitblit v1.9.3