From 3e06c3c9ae0cc2de504feb24342a3db7ddde0a40 Mon Sep 17 00:00:00 2001 From: xusd Date: Tue, 11 Jun 2024 10:38:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3js=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/equip.js | 18 ------------------ api/equip/equip.js | 17 +++++++++++++++++ pages/work/equipInfo/detailsEquipInfo.vue | 2 +- pages/work/equipInfo/listEquipInfo.vue | 2 +- 4 files changed, 19 insertions(+), 20 deletions(-) delete mode 100644 api/equip.js diff --git a/api/equip.js b/api/equip.js deleted file mode 100644 index 6a58dd6..0000000 --- a/api/equip.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from "@/utils/request"; - -// 查询报警记录列表 -export function getEquipTree(query) { - return request({ - url: "/equip/info/equipTree", - method: "get", - params: query, - }); -} - -// 查询设备详情 -export function getEquipInfoById(id) { - return request({ - url: "/equip/info/" + id, - method: "get", - }); -} \ No newline at end of file diff --git a/api/equip/equip.js b/api/equip/equip.js index dd774a2..89e9dd0 100644 --- a/api/equip/equip.js +++ b/api/equip/equip.js @@ -6,4 +6,21 @@ export function listAllInfo(query) { method: "get", params: query, }); +} + +// 查询报警记录列表 +export function getEquipTree(query) { + return request({ + url: "/equip/info/equipTree", + method: "get", + params: query, + }); +} + +// 查询设备详情 +export function getEquipInfoById(id) { + return request({ + url: "/equip/info/" + id, + method: "get", + }); } \ No newline at end of file diff --git a/pages/work/equipInfo/detailsEquipInfo.vue b/pages/work/equipInfo/detailsEquipInfo.vue index 0924da6..24e1ef1 100644 --- a/pages/work/equipInfo/detailsEquipInfo.vue +++ b/pages/work/equipInfo/detailsEquipInfo.vue @@ -29,7 +29,7 @@