驾驶舱功能开发
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -206,3 +206,10 @@ export const getSysConfig = () => {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 驾驶舱组件配置
|
||||
export const componentTree = () => {
|
||||
return request({
|
||||
url: '/user-boot/component/componentTree',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user