云设备录入

This commit is contained in:
sjl
2025-10-11 10:35:25 +08:00
parent 2e58e58c73
commit a3b6a5c0be
23 changed files with 9302 additions and 3827 deletions

View File

@@ -0,0 +1,132 @@
import createAxios from "@/utils/request";
//根据Id获取台账信息
export function getInfoById(id: any) {
let form = new FormData()
form.append('id', id)
return createAxios({
url: '/cs-device-boot/icd/getLedgerById',
method: 'POST',
data: form
})
}
//工程查询通过id获取
export function getEngineerById(id: any) {
let form = new FormData()
form.append('id', id)
return createAxios({
url: '/cs-device-boot/engineering/queryEngineeringById',
method: 'POST',
data: form
})
}
//项目查询通过id获取
export function getProjectById(id: any) {
let form = new FormData()
form.append('ids', id)
return createAxios({
url: '/cs-device-boot/project/queryProjectById',
method: 'POST',
data: form
})
}
//设备查询通过id获取
export function getEquipmentById(id: any) {
let form = new FormData()
form.append('ids', id)
return createAxios({
url: '/cs-device-boot/EquipmentDelivery/queryEquipmentById',
method: 'POST',
data: form
})
}
//根据监测点id获取监测点详情
export function getById(id: any) {
let form = new FormData()
form.append('lineId', id)
return createAxios({
url: '/cs-device-boot/csline/getById',
method: 'POST',
data: form
})
}
//获取前置机
export function nodeAllList() {
return createAxios({
url: '/cs-device-boot/node/nodeAllList',
method: 'get'
})
}
//新增台账信息
export function addLedger(data: any) {
return createAxios({
url: '/cs-device-boot/icd/addLedgerInfo',
method: 'post',
data: data
})
}
//修改-删除项目
export function deleteProject(id: any,name:any,area:any,description:any,status:any) {
let form = new FormData()
form.append('id', id)
form.append('name', name)
form.append('area', area)
form.append('description', description)
form.append('status', status)
return createAxios({
url: '/cs-device-boot/project/auditAppProject',
method: 'post',
data: form
})
}
//删除设备
export function deleteEquipment(id: any) {
let form = new FormData()
form.append('id', id)
return createAxios({
url: '/cs-device-boot/EquipmentDelivery/delCldDev',
method: 'POST',
data: form
})
}
//删除监测点
export const deleteLine = (id: any) => {
let form = new FormData()
form.append('id', id)
return createAxios({
url: '/cs-device-boot/csline/delCldLine',
method: 'POST',
data: form
})
}
//修改设备
export function updateEquipment(data: any) {
return createAxios({
url: '/cs-device-boot/EquipmentDelivery/updateCldDev',
method: 'post',
data: data
})
}
//修改监测点
export function updateLine(data: any) {
return createAxios({
url: '/cs-device-boot/csline/updateCldLine',
method: 'post',
data: data
})
}

View File

@@ -15,3 +15,13 @@ export function getLineTree() {
method: 'POST'
})
}
//云设备录入树
export function getCldTree() {
return createAxios({
url: '/cs-device-boot/csLedger/cldTree',
method: 'POST'
})
}

View File

@@ -22,17 +22,16 @@ export const auditEdData = (data) => {
data: data,
})
}
// 修改工程
export const auditEngineering = (data) => {
// 修改-删除工程
export const auditEngineering = (data:any)=> {
return request({
url: '/cs-device-boot/engineering/auditEngineering',
method: 'post',
data: data,
})
}
// 修改项目
export const updateProject = (data) => {
export const updateProject = (data:any) => {
return request({
url: '/cs-device-boot/project/updateProject',
method: 'post',