流程分类的增删改查
This commit is contained in:
@@ -8,6 +8,7 @@ export function addNode(data: any) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//修改前置机
|
||||
export function updateNode(data: any) {
|
||||
return createAxios({
|
||||
@@ -16,6 +17,7 @@ export function updateNode(data: any) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//删除前置机
|
||||
export function delNode(data: any) {
|
||||
return createAxios({
|
||||
@@ -24,6 +26,7 @@ export function delNode(data: any) {
|
||||
params: { id: data }
|
||||
})
|
||||
}
|
||||
|
||||
//终端台账树
|
||||
export function getTerminalTree() {
|
||||
return createAxios({
|
||||
@@ -31,6 +34,19 @@ export function getTerminalTree() {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 总计出3层,提供给表单选择具体的终端、母线、监测点
|
||||
* 终端台账树
|
||||
* 等级:0-项目名称;1- 工程名称;2-单位;3-部门;4-终端;5-母线;6-监测点
|
||||
*/
|
||||
export function getTerminalSelectTree(level: number) {
|
||||
return createAxios({
|
||||
url: '/device-boot/terminalTree/getTerminalSelectTree?level=' + level,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//查询节点内容
|
||||
export function queryTerminal(data: any) {
|
||||
return createAxios({
|
||||
@@ -39,6 +55,7 @@ export function queryTerminal(data: any) {
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//删除设备
|
||||
export function delTerminal(data: any) {
|
||||
return createAxios({
|
||||
@@ -47,6 +64,7 @@ export function delTerminal(data: any) {
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//获取前置机
|
||||
export function nodeAllList() {
|
||||
return createAxios({
|
||||
@@ -54,32 +72,35 @@ export function nodeAllList() {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//修改数据
|
||||
export function updateTerminal(query:any) {
|
||||
export function updateTerminal(query: any) {
|
||||
return createAxios({
|
||||
url: `/device-boot/device/updateTerminal`,
|
||||
method: 'put',
|
||||
data: {
|
||||
...query,
|
||||
...query
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//提交数据
|
||||
export function addTerminal(query:any) {
|
||||
export function addTerminal(query: any) {
|
||||
return createAxios({
|
||||
url: '/device-boot/device/addTerminal',
|
||||
method: 'post',
|
||||
data: {
|
||||
...query,
|
||||
}
|
||||
})
|
||||
}
|
||||
//查询终端程序版本升级日志
|
||||
export function getTerminalUpLog(data:any) {
|
||||
return createAxios({
|
||||
url: '/device-boot/version/getTerminalUpLog',
|
||||
method: 'post',
|
||||
params: data,
|
||||
data: {
|
||||
...query
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//查询终端程序版本升级日志
|
||||
export function getTerminalUpLog(data: any) {
|
||||
return createAxios({
|
||||
url: '/device-boot/version/getTerminalUpLog',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user