init
This commit is contained in:
37
src/api/custom-query/sql-search.js
Normal file
37
src/api/custom-query/sql-search.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getSqlInfo = (queryId) => {
|
||||
return request({
|
||||
url: '/custom/query/sql/search/' + queryId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const previewSql= (data,pageInfo) => {
|
||||
return request({
|
||||
url:'/custom/query/sql/search/preview' ,
|
||||
method: 'put',
|
||||
data,
|
||||
params:pageInfo
|
||||
})
|
||||
}
|
||||
export const saveSqlQueryParams = (data) => {
|
||||
return request({
|
||||
url: '/custom/query/sql/search',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const sqlToLine = (data) => {
|
||||
return request({
|
||||
url: '/custom/query/sql/search/publish',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const sqlDownLine = (queryId) => {
|
||||
return request({
|
||||
url: '/custom/query/sql/search/cancel/'+queryId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user