Files
admin-sjzx/src/api/system-boot/csstatisticalset.ts

71 lines
1.8 KiB
TypeScript
Raw Normal View History

2024-02-19 13:44:32 +08:00
import createAxios from '@/utils/request'
// 查询指标
2025-05-28 08:41:29 +08:00
export const queryStatistical = (id: string) => {
2024-02-19 13:44:32 +08:00
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
})
}
// 绑定指标
2025-05-28 08:41:29 +08:00
export const addStatistical = (params: any) => {
2024-02-19 13:44:32 +08:00
return createAxios({
url: '/system-boot/csstatisticalset/addStatistical',
method: 'post',
data: params
})
}
2025-05-28 08:41:29 +08:00
// 新增驾驶舱页面
export const addDashboard = (data: any) => {
return createAxios({
url: '/system-boot/dashboard/addDashboard',
method: 'post',
data: data
})
}
// 修改驾驶舱页面
export const updateDashboard = (data: any) => {
return createAxios({
url: '/system-boot/dashboard/updateDashboard',
method: 'post',
data: data
})
}
// 删除驾驶舱页面
export const deleteDashboard = (params: any) => {
return createAxios({
url: '/system-boot/dashboard/deleteDashboard',
method: 'post',
params
})
}
// 激活的驾驶舱页面
export const activatePage = (params: any) => {
return createAxios({
url: '/system-boot/dashboard/activatePage',
method: 'post',
params
})
}
// 查询激活的驾驶舱页面
export const queryActivatePage = () => {
return createAxios({
url: '/system-boot/dashboard/queryActivatePage',
method: 'post'
})
}
// 更具id 查询驾驶舱页面
export const queryById = (params: any) => {
return createAxios({
url: '/system-boot/dashboard/queryById',
method: 'post',
params
})
}