dataease/frontend/src/api/chart/chart.js

69 lines
1.2 KiB
JavaScript
Raw Normal View History

import request from '@/utils/request'
export function post(url, data) {
return request({
url: url,
method: 'post',
loading: true,
data
})
}
2021-05-18 16:07:19 +08:00
export function getChartTree(data) {
return request({
url: 'api',
method: 'post',
loading: true,
data
})
}
export function chartCopy(id, panelId) {
return request({
url: '/chart/view/chartCopy/' + id + '/' + panelId,
method: 'post',
loading: false
})
}
export function chartGroupTree(data) {
return request({
url: '/chart/group/tree',
method: 'post',
loading: false,
data
})
}
export function searchAdviceSceneId(panelId) {
return request({
url: '/chart/view/searchAdviceSceneId/' + panelId,
method: 'get',
loading: true
})
}
export function checkSameDataSet(viewIdSource, viewIdTarget) {
return request({
url: '/chart/view/checkSameDataSet/' + viewIdSource + '/' + viewIdTarget,
method: 'get',
loading: false
})
}
2022-02-28 11:17:26 +08:00
export function ajaxGetDataOnly(id, panelId, data) {
return request({
2022-02-28 11:17:26 +08:00
url: '/chart/view/getData/' + id + '/' + panelId,
method: 'post',
loading: true,
hideMsg: true,
data
})
}
2022-02-10 18:17:41 +08:00
export function pluginTypes() {
return request({
url: '/plugin/view/types',
method: 'post'
})
}