init
This commit is contained in:
36
src/api/custom-query/echarts.js
Normal file
36
src/api/custom-query/echarts.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getEchartsList = (params) => {
|
||||
return request({
|
||||
url: '/custom/query/echarts',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getEchartsDetails = (echartsId) => {
|
||||
return request({
|
||||
url: '/custom/query/echarts/' + echartsId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const addEcharts = (data) => {
|
||||
return request({
|
||||
url: '/custom/query/echarts',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const editEcharts = (data) => {
|
||||
return request({
|
||||
url: '/custom/query/echarts',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const delEcharts=(echartsIdList) => {
|
||||
return request({
|
||||
url: '/custom/query/echarts/' + echartsIdList,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user