Raod 3 years ago
parent 27eecbc4a0
commit fe0af58465

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 设计报表
export function design(data) {
return request({
url: 'business/report/design',
url: 'report/design',
method: 'post',
data,
})
@ -12,7 +12,7 @@ export function design(data) {
// 预览报表,渲染数据
export function preview(data) {
return request({
url: 'business/reportExcel/preview',
url: 'reportExcel/preview',
method: 'post',
data,
})
@ -21,7 +21,7 @@ export function preview(data) {
// 导出报表
export function exportExcel(data) {
return request({
url: 'business/reportExcel/exportExcel',
url: 'reportExcel/exportExcel',
method: 'post',
data,
})
@ -30,7 +30,7 @@ export function exportExcel(data) {
// 导出报表
export function exportPdf(data) {
return request({
url: 'business/reportExcel/exportPdf',
url: 'reportExcel/exportPdf',
method: 'post',
data,
})
@ -39,7 +39,7 @@ export function exportPdf(data) {
// 获取所有数据集
export function queryAllDataSet() {
return request({
url: 'business/dataSet/queryAllDataSet',
url: 'dataSet/queryAllDataSet',
method: 'get',
})
}
@ -47,7 +47,7 @@ export function queryAllDataSet() {
// 获取对应数据集的列集合
export function detail(data) {
return request({
url: 'business/dataSet/detailBysetId/' + data,
url: 'dataSet/detailBysetId/' + data,
method: 'get',
})
}
@ -55,7 +55,7 @@ export function detail(data) {
// 获取对应数据集的列集合
export function detailBysetCode(data) {
return request({
url: 'business/dataSet/detailBysetCode/' + data,
url: 'dataSet/detailBysetCode/' + data,
method: 'get',
})
}
@ -63,7 +63,7 @@ export function detailBysetCode(data) {
// 根据reportCode获取报表表格详情
export function detailByReportCode(data) {
return request({
url: 'business/reportExcel/detailByReportCode/' + data,
url: 'reportExcel/detailByReportCode/' + data,
method: 'get',
})
}

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 保存大屏设计
export function insertDashboard(data) {
return request({
url: 'business/reportDashboard',
url: 'reportDashboard',
method: 'post',
data,
})
@ -12,7 +12,7 @@ export function insertDashboard(data) {
// 预览、查询大屏详情
export function detailDashboard(data) {
return request({
url: 'business/reportDashboard/' + data,
url: 'reportDashboard/' + data,
method: 'get',
})
}
@ -20,7 +20,7 @@ export function detailDashboard(data) {
// 数据集查询
export function queryAllDataSet(data) {
return request({
url: 'business/dataSet/queryAllDataSet',
url: 'dataSet/queryAllDataSet',
method: 'get',
})
}
@ -28,7 +28,7 @@ export function queryAllDataSet(data) {
// 获取数据集信息
export function detailBysetId(data) {
return request({
url: 'business/dataSet/detailBysetId/' + data,
url: 'dataSet/detailBysetId/' + data,
method: 'get',
})
}
@ -36,7 +36,7 @@ export function detailBysetId(data) {
// 获取动态数据
export function getData(data) {
return request({
url: 'business/reportDashboard/getData',
url: 'reportDashboard/getData',
method: 'post',
data,
})

@ -10,7 +10,7 @@ import request from '@/utils/request'
// 数据字典接口
export function dataDictionary(dictName) {
return request({
url: `/business/gaeaDict/select/${dictName}`,
url: `/gaeaDict/select/${dictName}`,
method: 'GET',
})
}
@ -18,7 +18,7 @@ export function dataDictionary(dictName) {
// 图片上传接口
export function uploadImg(data) {
return request({
url: '/business/file/upload',
url: '/file/upload',
method: 'POST',
data,
})

@ -2,7 +2,7 @@ import request from '@/utils/request'
/** i18n版本*/
export function add (data) {
return request({
url: 'business/deviceInfo',
url: 'deviceInfo',
method: 'post',
data,
})
@ -10,7 +10,7 @@ export function add (data) {
export function del (ids) {
return request({
url: 'business/deviceInfo/' + ids,
url: 'deviceInfo/' + ids,
method: 'delete',
data: ids,
})
@ -18,7 +18,7 @@ export function del (ids) {
export function edit (data) {
return request({
url: 'business/deviceInfo',
url: 'deviceInfo',
method: 'put',
data,
})
@ -26,7 +26,7 @@ export function edit (data) {
export function preview (data) {
return request({
url: 'business/deviceInfo/' + data.id,
url: 'deviceInfo/' + data.id,
method: 'get',
params: data,
})

@ -14,13 +14,13 @@ import request from '@/utils/request'
*/
export function getDictList(type) {
return request({
url: `/business/gaeaDict/select/${type}`,
url: `/gaeaDict/select/${type}`,
method: 'get',
})
}
export function getDictCodes(project) {
return request({
url: `/business/gaeaDict/selectAll/${project}`,
url: `/gaeaDict/selectAll/${project}`,
method: 'get',
})
}

@ -9,14 +9,14 @@ import { add, del, edit, preview } from '@/api/deviceInfo'
// datasource
export function pageList(params) {
return request({
url: '/business/dataSource/pageList',
url: '/dataSource/pageList',
method: 'get',
params,
})
}
export function dataSource(data) {
return request({
url: '/business/dataSource/' + data.id,
url: '/dataSource/' + data.id,
method: 'get',
data,
})
@ -24,28 +24,28 @@ export function dataSource(data) {
// delete datasource
export function deleteDataSource(data) {
return request({
url: '/business/dataSource/' + data.id,
url: '/dataSource/' + data.id,
method: 'delete',
data,
})
}
export function testConnection(data) {
return request({
url: '/business/dataSource/testConnection',
url: '/dataSource/testConnection',
method: 'post',
data,
})
}
export function addDataSource(data) {
return request({
url: '/business/dataSource',
url: '/dataSource',
method: 'post',
data,
})
}
export function editDataSource(data) {
return request({
url: '/business/dataSource',
url: '/dataSource',
method: 'put',
data,
})
@ -53,21 +53,21 @@ export function editDataSource(data) {
// resultset
export function dataSetPreview(data) {
return request({
url: `/business/dataSet/detailBysetId/${data.id}`,
url: `/dataSet/detailBysetId/${data.id}`,
method: 'get',
})
}
export function addDataSet(data) {
return request({
url: '/business/dataSet',
url: '/dataSet',
method: 'post',
data,
})
}
export function editDataSet(data) {
return request({
url: '/business/dataSet',
url: '/dataSet',
method: 'put',
data,
})
@ -75,7 +75,7 @@ export function editDataSet(data) {
// delete dataset
export function deleteDataSet(data) {
return request({
url: '/business/dataSet/' + data.id,
url: '/dataSet/' + data.id,
method: 'delete',
data,
})
@ -83,7 +83,7 @@ export function deleteDataSet(data) {
// 下拉数据源
export function queryAllDataSourceSet(data) {
return request({
url: '/business/dataSource/queryAllDataSource',
url: '/dataSource/queryAllDataSource',
method: 'get',
data,
})
@ -91,7 +91,7 @@ export function queryAllDataSourceSet(data) {
// 数据集高级规则js验证
export function verificationSet(data) {
return request({
url: '/business/dataSetParam/verification',
url: '/dataSetParam/verification',
method: 'post',
data,
})
@ -99,7 +99,7 @@ export function verificationSet(data) {
// 测试数据转换以及返回数据table列表
export function testTransformSet(data) {
return request({
url: '/business/dataSet/testTransform',
url: '/dataSet/testTransform',
method: 'post',
data,
})
@ -108,7 +108,7 @@ export function testTransformSet(data) {
// report
export function reportPageList(params) {
return request({
url: '/business/report/pageList',
url: '/report/pageList',
method: 'get',
params,
})
@ -116,7 +116,7 @@ export function reportPageList(params) {
// report
export function addReport(data) {
return request({
url: '/business/report',
url: '/report',
method: 'post',
data,
})
@ -125,7 +125,7 @@ export function addReport(data) {
// report
export function editReport(data) {
return request({
url: '/business/report',
url: '/report',
method: 'put',
data,
})
@ -134,7 +134,7 @@ export function editReport(data) {
// report
export function delReport(data) {
return request({
url: '/business/report/delReport',
url: '/report/delReport',
method: 'delete',
data,
})
@ -143,7 +143,7 @@ export function delReport(data) {
// report
export function detailReport(id, accessKey) {
return request({
url: `/business/report/${id}?accessKey=${accessKey}`,
url: `/report/${id}?accessKey=${accessKey}`,
method: 'get',
})
}
@ -151,7 +151,7 @@ export function detailReport(id, accessKey) {
// reportExcel
export function addReportExcel(data) {
return request({
url: '/business/reportExcel',
url: '/reportExcel',
method: 'post',
data,
})
@ -160,7 +160,7 @@ export function addReportExcel(data) {
// reportExcel
export function editReportExcel(data) {
return request({
url: '/business/reportExcel',
url: '/reportExcel',
method: 'put',
data,
})

@ -57,7 +57,7 @@ const screenConfig = {
name: 'backgroundImage',
required: false,
placeholder: '',
value: 'http://10.108.26.197/business/file/download/adfc22ac-ed7f-4141-aeb9-ee81f16ac92d',
value: 'http://10.108.26.197//file/download/adfc22ac-ed7f-4141-aeb9-ee81f16ac92d',
},
],
data: [],

Loading…
Cancel
Save