|
|
@ -5,16 +5,15 @@
|
|
|
|
* @Last Modified time: 2021-03-04 10:46:26
|
|
|
|
* @Last Modified time: 2021-03-04 10:46:26
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import { add, del, edit, preview } from '@/api/deviceInfo'
|
|
|
|
|
|
|
|
// datasource
|
|
|
|
// datasource
|
|
|
|
export function pageList(params) {
|
|
|
|
export function pageList (params) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSource/pageList',
|
|
|
|
url: '/dataSource/pageList',
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
params,
|
|
|
|
params,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export function dataSource(data) {
|
|
|
|
export function dataSource (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSource/' + data.id,
|
|
|
|
url: '/dataSource/' + data.id,
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
@ -22,28 +21,28 @@ export function dataSource(data) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// delete datasource
|
|
|
|
// delete datasource
|
|
|
|
export function deleteDataSource(data) {
|
|
|
|
export function deleteDataSource (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSource/' + data.id,
|
|
|
|
url: '/dataSource/' + data.id,
|
|
|
|
method: 'delete',
|
|
|
|
method: 'delete',
|
|
|
|
data,
|
|
|
|
data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export function testConnection(data) {
|
|
|
|
export function testConnection (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSource/testConnection',
|
|
|
|
url: '/dataSource/testConnection',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data,
|
|
|
|
data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export function addDataSource(data) {
|
|
|
|
export function addDataSource (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSource',
|
|
|
|
url: '/dataSource',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data,
|
|
|
|
data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export function editDataSource(data) {
|
|
|
|
export function editDataSource (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSource',
|
|
|
|
url: '/dataSource',
|
|
|
|
method: 'put',
|
|
|
|
method: 'put',
|
|
|
@ -51,21 +50,21 @@ export function editDataSource(data) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// resultset
|
|
|
|
// resultset
|
|
|
|
export function dataSetPreview(data) {
|
|
|
|
export function dataSetPreview (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/dataSet/detailBysetId/${data.id}`,
|
|
|
|
url: `/dataSet/detailBysetId/${data.id}`,
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function addDataSet(data) {
|
|
|
|
export function addDataSet (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSet',
|
|
|
|
url: '/dataSet',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data,
|
|
|
|
data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export function editDataSet(data) {
|
|
|
|
export function editDataSet (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSet',
|
|
|
|
url: '/dataSet',
|
|
|
|
method: 'put',
|
|
|
|
method: 'put',
|
|
|
@ -73,7 +72,7 @@ export function editDataSet(data) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// delete dataset
|
|
|
|
// delete dataset
|
|
|
|
export function deleteDataSet(data) {
|
|
|
|
export function deleteDataSet (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSet/' + data.id,
|
|
|
|
url: '/dataSet/' + data.id,
|
|
|
|
method: 'delete',
|
|
|
|
method: 'delete',
|
|
|
@ -81,7 +80,7 @@ export function deleteDataSet(data) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 下拉数据源
|
|
|
|
// 下拉数据源
|
|
|
|
export function queryAllDataSourceSet(data) {
|
|
|
|
export function queryAllDataSourceSet (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSource/queryAllDataSource',
|
|
|
|
url: '/dataSource/queryAllDataSource',
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
@ -89,7 +88,7 @@ export function queryAllDataSourceSet(data) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 数据集高级规则js验证
|
|
|
|
// 数据集高级规则js验证
|
|
|
|
export function verificationSet(data) {
|
|
|
|
export function verificationSet (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSetParam/verification',
|
|
|
|
url: '/dataSetParam/verification',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
@ -97,7 +96,7 @@ export function verificationSet(data) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 测试数据转换,以及返回数据table列表
|
|
|
|
// 测试数据转换,以及返回数据table列表
|
|
|
|
export function testTransformSet(data) {
|
|
|
|
export function testTransformSet (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/dataSet/testTransform',
|
|
|
|
url: '/dataSet/testTransform',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
@ -106,7 +105,7 @@ export function testTransformSet(data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// report
|
|
|
|
// report
|
|
|
|
export function reportPageList(params) {
|
|
|
|
export function reportPageList (params) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/report/pageList',
|
|
|
|
url: '/report/pageList',
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
@ -114,7 +113,7 @@ export function reportPageList(params) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// report
|
|
|
|
// report
|
|
|
|
export function addReport(data) {
|
|
|
|
export function addReport (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/report',
|
|
|
|
url: '/report',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
@ -123,7 +122,7 @@ export function addReport(data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// report
|
|
|
|
// report
|
|
|
|
export function editReport(data) {
|
|
|
|
export function editReport (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/report',
|
|
|
|
url: '/report',
|
|
|
|
method: 'put',
|
|
|
|
method: 'put',
|
|
|
@ -132,7 +131,7 @@ export function editReport(data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// report
|
|
|
|
// report
|
|
|
|
export function delReport(data) {
|
|
|
|
export function delReport (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/report/delReport',
|
|
|
|
url: '/report/delReport',
|
|
|
|
method: 'delete',
|
|
|
|
method: 'delete',
|
|
|
@ -141,7 +140,7 @@ export function delReport(data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// report
|
|
|
|
// report
|
|
|
|
export function detailReport(id, accessKey) {
|
|
|
|
export function detailReport (id, accessKey) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/report/${id}?accessKey=${accessKey}`,
|
|
|
|
url: `/report/${id}?accessKey=${accessKey}`,
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
@ -149,7 +148,7 @@ export function detailReport(id, accessKey) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// reportExcel
|
|
|
|
// reportExcel
|
|
|
|
export function addReportExcel(data) {
|
|
|
|
export function addReportExcel (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/reportExcel',
|
|
|
|
url: '/reportExcel',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
@ -158,13 +157,10 @@ export function addReportExcel(data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// reportExcel
|
|
|
|
// reportExcel
|
|
|
|
export function editReportExcel(data) {
|
|
|
|
export function editReportExcel (data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/reportExcel',
|
|
|
|
url: '/reportExcel',
|
|
|
|
method: 'put',
|
|
|
|
method: 'put',
|
|
|
|
data,
|
|
|
|
data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { add, edit, del, preview }
|
|
|
|
|
|
|
|