2021-03-03 18:35:51 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
export function post(url, data) {
|
|
|
|
return request({
|
|
|
|
url: url,
|
|
|
|
method: 'post',
|
2021-03-04 15:38:37 +08:00
|
|
|
loading: true,
|
2021-03-03 18:35:51 +08:00
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
2021-05-18 16:07:19 +08:00
|
|
|
|
|
|
|
export function getChartTree(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api',
|
|
|
|
method: 'post',
|
|
|
|
loading: true,
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
2021-06-29 13:44:30 +08:00
|
|
|
|
2022-02-14 18:57:35 +08:00
|
|
|
export function chartCopy(id, panelId) {
|
2021-06-29 13:44:30 +08:00
|
|
|
return request({
|
2022-02-14 18:57:35 +08:00
|
|
|
url: '/chart/view/chartCopy/' + id + '/' + panelId,
|
2021-06-29 13:44:30 +08:00
|
|
|
method: 'post',
|
2022-02-14 18:57:35 +08:00
|
|
|
loading: false
|
2021-06-29 13:44:30 +08:00
|
|
|
})
|
|
|
|
}
|
2021-07-06 18:34:01 +08:00
|
|
|
export function chartGroupTree(data) {
|
|
|
|
return request({
|
|
|
|
url: '/chart/group/tree',
|
|
|
|
method: 'post',
|
2021-11-29 14:54:24 +08:00
|
|
|
loading: false,
|
2021-07-06 18:34:01 +08:00
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function searchAdviceSceneId(panelId) {
|
|
|
|
return request({
|
|
|
|
url: '/chart/view/searchAdviceSceneId/' + panelId,
|
|
|
|
method: 'get',
|
|
|
|
loading: true
|
|
|
|
})
|
|
|
|
}
|
2021-11-15 16:24:03 +08:00
|
|
|
|
|
|
|
export function checkSameDataSet(viewIdSource, viewIdTarget) {
|
|
|
|
return request({
|
|
|
|
url: '/chart/view/checkSameDataSet/' + viewIdSource + '/' + viewIdTarget,
|
|
|
|
method: 'get',
|
|
|
|
loading: false
|
|
|
|
})
|
|
|
|
}
|
2021-11-24 18:14:41 +08:00
|
|
|
|
2022-02-28 11:17:26 +08:00
|
|
|
export function ajaxGetDataOnly(id, panelId, data) {
|
2021-11-24 18:14:41 +08:00
|
|
|
return request({
|
2022-02-28 11:17:26 +08:00
|
|
|
url: '/chart/view/getData/' + id + '/' + panelId,
|
2021-11-24 18:14:41 +08:00
|
|
|
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'
|
|
|
|
})
|
|
|
|
}
|
2022-02-28 18:01:14 +08:00
|
|
|
|
|
|
|
export function deleteCircle(id) {
|
|
|
|
return request({
|
|
|
|
url: '/chart/group/deleteCircle/' + id,
|
|
|
|
method: 'post',
|
|
|
|
loading: true
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|