修改设备接口js文件

This commit is contained in:
xusd 2024-06-11 10:38:49 +08:00
parent 12a4ea7b4b
commit 3e06c3c9ae
4 changed files with 19 additions and 20 deletions

View File

@ -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",
});
}

View File

@ -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",
});
}

View File

@ -29,7 +29,7 @@
<script>
import {
getEquipInfoById
} from "@/api/equip.js"
} from "@/api/equip/equip.js"
export default {
data() {

View File

@ -21,7 +21,7 @@
<script>
import {
getEquipTree
} from "@/api/equip.js"
} from "@/api/equip/equip.js"
import LyTree from '@/components/ly-tree/ly-tree.vue'