From 97dc174b26461df1395394c02401bb51dd6376bc Mon Sep 17 00:00:00 2001 From: bsw215583320 <baoshiwei121@163.com> Date: 星期一, 04 十二月 2023 08:03:53 +0800 Subject: [PATCH] 增加opc设备维护和控制功能 --- 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