2024-10-08 20:55:17 +08:00
|
|
|
import createAxios from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
//新增组态项目
|
2024-10-22 19:47:00 +08:00
|
|
|
export function add(data: any) {
|
2024-10-08 20:55:17 +08:00
|
|
|
return createAxios({
|
2024-10-22 19:47:00 +08:00
|
|
|
url: '/cs-harmonic-boot/csconfiguration/add',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//组态项目分页查询
|
|
|
|
|
export function coFqueryPage(data: any) {
|
2024-10-08 20:55:17 +08:00
|
|
|
return createAxios({
|
2024-10-22 19:47:00 +08:00
|
|
|
url: '/cs-harmonic-boot/csconfiguration/queryPage',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//修改组态项目
|
|
|
|
|
export function audit(data: any) {
|
2024-10-08 20:55:17 +08:00
|
|
|
return createAxios({
|
2024-10-22 19:47:00 +08:00
|
|
|
url: '/cs-harmonic-boot/csconfiguration/audit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//组态页面分页查询
|
|
|
|
|
export function queryPageData(data: any) {
|
2024-10-08 20:55:17 +08:00
|
|
|
return createAxios({
|
2024-10-22 19:47:00 +08:00
|
|
|
url: '/cs-harmonic-boot/cspage/queryPage',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//查询工程列表
|
|
|
|
|
export function deviceTree(data: any) {
|
2024-10-08 20:55:17 +08:00
|
|
|
return createAxios({
|
2024-10-22 19:47:00 +08:00
|
|
|
url: '/cs-device-boot/csLedger/deviceTree',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//三层设备树(项目层根节点为治理设备和便携式设备组态)
|
|
|
|
|
export function getztProjectTree() {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/cs-device-boot/csLedger/getztProjectTree',
|
|
|
|
|
method: 'post',
|
|
|
|
|
})
|
|
|
|
|
}
|