2024-01-15 16:15:24 +08:00
|
|
|
import createAxios from '@/utils/request'
|
|
|
|
|
// 查询指标
|
|
|
|
|
export const queryStatistical = (id:string) => {
|
|
|
|
|
let form = new FormData()
|
|
|
|
|
form.append('id', id)
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/system-boot/csstatisticalset/queryStatistical',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
|
|
|
},
|
|
|
|
|
data: form
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 绑定指标
|
|
|
|
|
export const addStatistical = (params:any) => {
|
|
|
|
|
return createAxios({
|
2024-08-01 15:34:29 +08:00
|
|
|
url: '/system-boot/csstatisticalset/addStatistical',
|
2024-01-15 16:15:24 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|