驾驶舱功能开发

This commit is contained in:
GGJ
2025-05-28 08:41:29 +08:00
parent 2a6b9a37d2
commit 06d4f0ec91
21 changed files with 1866 additions and 170 deletions

View File

@@ -1,6 +1,6 @@
import createAxios from '@/utils/request'
// 查询指标
export const queryStatistical = (id:string) => {
export const queryStatistical = (id: string) => {
let form = new FormData()
form.append('id', id)
return createAxios({
@@ -14,10 +14,49 @@ export const queryStatistical = (id:string) => {
}
// 绑定指标
export const addStatistical = (params:any) => {
export const addStatistical = (params: any) => {
return createAxios({
url: '/system-boot/csstatisticalset/addStatistical',
method: 'post',
data: params
})
}
// 新增驾驶舱页面
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'
})
}

View File

@@ -80,3 +80,39 @@ export function getDeptListByIds(data:any) {
})
}
// 查询组件
export function getFatherComponent(params:any) {
return request({
url: '/user-boot/component/getFatherComponent',
method: 'GET',
params
})
}
// 删除组件
export function deleteSubassembly(params:any) {
return request({
url: '/user-boot/component/delete',
method: 'DELETE',
params
})
}
// 新增组件
export function componentAdd(data:any) {
return request({
url: '/user-boot/component/add',
method: 'post',
data
})
}
// 修改组件
export function componentEdit(data:any) {
return request({
url: '/user-boot/component/update',
method: 'put',
data
})
}

View File

@@ -206,3 +206,10 @@ export const getSysConfig = () => {
method: 'get'
})
}
// 驾驶舱组件配置
export const componentTree = () => {
return request({
url: '/user-boot/component/componentTree',
method: 'GET'
})
}