From 760eccdecc28930a0906f7fb42f4adc09bd60554 Mon Sep 17 00:00:00 2001 From: shih <510524130@qq.com> Date: Thu, 23 Apr 2026 13:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E7=BB=84=E6=80=81=20?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/scada/picture.js | 73 +- src/views/scada/picture/screen.vue | 1956 +++++++++++++--------------- 2 files changed, 989 insertions(+), 1040 deletions(-) diff --git a/src/api/scada/picture.js b/src/api/scada/picture.js index 958d21d..c28ff9f 100644 --- a/src/api/scada/picture.js +++ b/src/api/scada/picture.js @@ -2,43 +2,70 @@ import request from '@/utils/request'; // 查询组态列表 export function listCenter(query) { - return request({ - url: '/scada/picture/list', - method: 'get', - params: query - }); + return request({ + url: '/scada/picture/list', + method: 'get', + params: query, + }); } // 查询组态详情 export function getCenter(id) { - return request({ - url: '/scada/picture/' + id, - method: 'get' - }); + return request({ + url: '/scada/picture/' + id, + method: 'get', + }); } // 新增组态 export function addCenter(data) { - return request({ - url: '/scada/picture', - method: 'post', - data: data - }); + return request({ + url: '/scada/picture', + method: 'post', + data: data, + }); } // 修改组态 export function updateCenter(data) { - return request({ - url: '/scada/picture', - method: 'put', - data: data - }); + return request({ + url: '/scada/picture', + method: 'put', + data: data, + }); } // 删除组态 export function delCenter(id) { - return request({ - url: '/scada/picture/' + id, - method: 'delete' - }); + return request({ + url: '/scada/picture/' + id, + method: 'delete', + }); +} + +// 查询维修完成情况数据 +export function getMaintenanceData(query) { + return request({ + url: '/iot/configuration/repairList', + method: 'get', + params: query, + }); +} + +// 查询保养统计数据 +export function getMaintenanceStats(query) { + return request({ + url: '/iot/configuration/maintenanceList', + method: 'get', + params: query, + }); +} + +// 查询设备列表 +export function getDeviceList(query) { + return request({ + url: '/iot/configuration/deviceList', + method: 'get', + params: query, + }); } diff --git a/src/views/scada/picture/screen.vue b/src/views/scada/picture/screen.vue index f63a7ee..c6a763a 100644 --- a/src/views/scada/picture/screen.vue +++ b/src/views/scada/picture/screen.vue @@ -1,1263 +1,1185 @@