2025-09-25 11:34:55 +08:00
|
|
|
import http from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
//查询图元
|
|
|
|
|
export function find() {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-system-boot/csElement/find',
|
|
|
|
|
method: 'POST'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 获取svg文件
|
|
|
|
|
export function download(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/system-boot/file/download',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 新增图元
|
|
|
|
|
export function addElement(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-system-boot/csElement/add',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除图元
|
|
|
|
|
export function deleteElement(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-system-boot/csElement/delete',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询左侧图纸列表
|
|
|
|
|
export function queryPage(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-harmonic-boot/cspage/queryPage',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 总的画布的保存
|
|
|
|
|
export function addCanvas(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-harmonic-boot/cspage/add',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 截图
|
|
|
|
|
export function audit(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-harmonic-boot/csconfiguration/audit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 监测点列表
|
|
|
|
|
export function lineTree(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-device-boot/csLedger/lineTree',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 指标列表
|
|
|
|
|
export function targetList(params: any) {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-harmonic-boot/lineTarget/target',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: params
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-12-05 10:55:28 +08:00
|
|
|
// 云平台
|
|
|
|
|
export function eleEpdChooseTree_ypt() {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/cs-system-boot/csDictData/eleEpdChooseTree',
|
2025-12-09 08:41:11 +08:00
|
|
|
method: 'GET'
|
2025-12-05 10:55:28 +08:00
|
|
|
})
|
|
|
|
|
}
|
2025-09-25 11:34:55 +08:00
|
|
|
// 无锡指标列表
|
|
|
|
|
export function eleEpdChooseTree_wx() {
|
|
|
|
|
return http.request({
|
|
|
|
|
url: '/csDictData/eleEpdChooseTree',
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|