Files
admin-sjzx/src/api/device-boot/Business.ts

121 lines
2.6 KiB
TypeScript
Raw Normal View History

2024-02-19 16:38:09 +08:00
import createAxios from '@/utils/request'
// 新增菜单接口
export function addNode(data: any) {
return createAxios({
url: '/device-boot/node/addNode',
method: 'post',
data: data
})
}
2024-05-13 18:36:19 +08:00
2024-02-19 16:38:09 +08:00
//修改前置机
export function updateNode(data: any) {
return createAxios({
url: '/device-boot/node/updateNode',
method: 'put',
data: data
})
}
2024-05-13 18:36:19 +08:00
2024-02-19 16:38:09 +08:00
//删除前置机
export function delNode(data: any) {
return createAxios({
url: '/device-boot/node/delNode',
method: 'post',
params: { id: data }
})
}
2024-05-13 18:36:19 +08:00
2024-02-20 16:47:12 +08:00
//终端台账树
export function getTerminalTree() {
return createAxios({
url: '/device-boot/terminalTree/getTerminalTree',
method: 'get'
})
}
2024-05-13 18:36:19 +08:00
/**
* 3线
*
* 0-1- 2-3-4-5-线6-
2024-05-13 18:36:19 +08:00
*/
export function getTerminalSelectTree(level: number) {
return createAxios({
url: '/device-boot/terminalTree/getTerminalSelectTree?level=' + level,
method: 'get'
})
}
2024-02-20 16:47:12 +08:00
//查询节点内容
export function queryTerminal(data: any) {
return createAxios({
url: `/device-boot/device/queryTerminal`,
method: 'get',
params: data
})
}
2024-05-13 18:36:19 +08:00
2024-06-13 13:32:50 +08:00
//删除终端
2024-02-20 16:47:12 +08:00
export function delTerminal(data: any) {
return createAxios({
url: `/device-boot/device/delTerminal`,
method: 'delete',
params: data
})
}
2024-05-13 18:36:19 +08:00
2024-02-20 16:47:12 +08:00
//获取前置机
export function nodeAllList() {
return createAxios({
url: '/device-boot/node/nodeAllList',
method: 'get'
})
}
2024-05-13 18:36:19 +08:00
2024-02-21 15:15:35 +08:00
//修改数据
2024-05-13 18:36:19 +08:00
export function updateTerminal(query: any) {
2024-02-21 15:15:35 +08:00
return createAxios({
url: `/device-boot/device/updateTerminal`,
method: 'put',
data: {
2024-05-13 18:36:19 +08:00
...query
2024-02-21 15:15:35 +08:00
}
})
}
2024-05-13 18:36:19 +08:00
2024-02-21 15:15:35 +08:00
//提交数据
2024-05-13 18:36:19 +08:00
export function addTerminal(query: any) {
2024-02-21 15:15:35 +08:00
return createAxios({
url: '/device-boot/device/addTerminal',
2024-05-13 18:36:19 +08:00
method: 'post',
data: {
...query
}
2024-02-21 15:15:35 +08:00
})
}
2024-05-13 18:36:19 +08:00
2024-02-22 11:34:13 +08:00
//查询终端程序版本升级日志
2024-05-13 18:36:19 +08:00
export function getTerminalUpLog(data: any) {
2024-02-22 11:34:13 +08:00
return createAxios({
url: '/device-boot/version/getTerminalUpLog',
method: 'post',
2024-05-13 18:36:19 +08:00
params: data
2024-02-22 11:34:13 +08:00
})
}
2024-08-21 16:05:06 +08:00
//查询新能源场站
export function selectDown() {
return createAxios({
url: '/device-boot/newStation/selectDown',
method: 'get'
})
}
2025-03-24 18:26:50 +08:00
//获取用户大类小类
export function queryAllByType(params: any) {
return createAxios({
url: '/system-boot/dictTree/queryAllByType',
method: 'get',
params
})
}