联调 自定义报表
This commit is contained in:
166
src/api/harmonic-boot/luckyexcel.ts
Normal file
166
src/api/harmonic-boot/luckyexcel.ts
Normal file
@@ -0,0 +1,166 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
// 获取参数指标
|
||||
export function getIndex() {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/reportChooseTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//、查询数据激活报表模板
|
||||
export function updateTemplateActive(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/updateTemplateActive',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取报表模板 //部门树查询
|
||||
export function getTemplateList(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/getTemplateList',
|
||||
// url:'/api3/harmonic-boot/customReport/getTemplateList',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//删除报表模板
|
||||
export function delTemplate(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/delTemplate',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//修改获取数据
|
||||
export function getCustomReportTemplateById(params) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/getCustomReportTemplateById',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
//修改获取数据
|
||||
export function viewCustomReportTemplateById(params) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/viewCustomReportTemplateById',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//修改模板
|
||||
export function dateTemplateup(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/updateTemplate',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//新增报表模板
|
||||
export function addTemplate(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/addTemplate',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//模板对应指标替换
|
||||
export function getCustomReport(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/getCustomReport',
|
||||
method: 'post',
|
||||
resposeType: 'blob',
|
||||
data
|
||||
})
|
||||
}
|
||||
//绑定模板
|
||||
export function updateBindTemplate(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/updateBindTemplate',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//根据模板ID查询数据
|
||||
export function getDataByTempId(params) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/getDataByTempId',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//根据部门查询模板
|
||||
export function getTemplateByDept(params) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/getTemplateByDept',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//资源管理 查询数据
|
||||
export function queryData(data) {
|
||||
return createAxios({
|
||||
url: '/system-boot/resourceAdministration/queryData',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//资源管理 查询数据
|
||||
export function uploadFile(data) {
|
||||
return createAxios({
|
||||
url: '/system-boot/resourceAdministration/uploadFile',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//资源管理 删除资源
|
||||
export function deleteFile(params) {
|
||||
return createAxios({
|
||||
url: '/system-boot/resourceAdministration/deleteFile',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//资源管理 下载资源
|
||||
export function downloadFile(params) {
|
||||
return createAxios({
|
||||
url: '/system-boot/resourceAdministration/downloadFile',
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
//资源管理 修改资源
|
||||
export function updateFile(data) {
|
||||
return createAxios({
|
||||
url: '/system-boot/resourceAdministration/updateFile',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//合格率报告
|
||||
export function pageTable(data) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/qualifiedReport/pageTable',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//合格率报告
|
||||
export function targetLimitChooseTree() {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/targetLimitChooseTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//监测点指标
|
||||
export function terminalChooseTree() {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/terminalChooseTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -54,10 +54,18 @@ export const addDictTree = (data: any) => {
|
||||
|
||||
|
||||
// 编辑统计指标配置项
|
||||
export const updateStatistical = (data) => {
|
||||
export const updateStatistical = (data:any) => {
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/update',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 单位绑定
|
||||
export function codeDicTree(data:any) {
|
||||
return createAxios({
|
||||
url: "/system-boot/dic/codeDicTree",
|
||||
method: "get",
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user