Files
admin-govern/src/api/common.ts

65 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-12-27 16:36:10 +08:00
import createAxios from '@/utils/request'
// 用户名列表
export function saveLogParam() {
return createAxios({
url: '/system-boot/audit/saveLogParam',
2023-12-29 10:05:09 +08:00
method: 'POST'
})
}
//获取去所有区域列表
export function getAllDeptList() {
return createAxios({
url: '/user-boot/dept/orgTreeSelector',
method: 'GET'
})
}
// 获取省市区下拉框
export function areaSelect() {
return createAxios({
url: '/system-boot/area/areaSelect',
method: 'POST'
})
}
2023-12-29 10:05:09 +08:00
// 区域列表
export function getAreaList() {
return createAxios({
url: '/user-boot/dept/deptTree',
method: 'POST'
2023-12-27 16:36:10 +08:00
})
}
2024-01-09 13:49:21 +08:00
// 设备列表
export function getDeviceTree() {
return createAxios({
url: '/cs-device-boot/csLedger/deviceTree',
method: 'POST'
})
}
2024-01-15 16:14:14 +08:00
// 获取波形数据
export function analyseWave(params: string) {
2024-01-15 16:14:14 +08:00
return createAxios({
url: '/cs-harmonic-boot/event/analyseWave?eventId=' + params,
method: 'get'
})
}
2024-10-30 15:02:25 +08:00
//下载波形数据
export function downloadWave(params: string) {
return createAxios({
url: '/cs-harmonic-boot/event/getFileZip?eventId=' + params,
method: 'get'
})
}
2025-10-21 16:27:49 +08:00
//根据事件补召波形
export function getFileByEventId(eventId: string) {
return createAxios({
url: '/cs-device-boot/icd/bzFileByEventId?eventId=' + eventId,
method: 'POST'
})
}