DSDSWeb/src/api/home.js

89 lines
1.6 KiB
JavaScript

import request from '@/utils/request'
// 发布动态配置 检索
export function pubDynamicSearch(data) {
return request({
url: '/Index/search',
method: 'post',
data
})
}
// RelatedLinks 检索
export function findRelatedLinks(data) {
return request({
url: '/Index/findRelatedLinks',
method: 'post',
data
})
}
// 首页轮播图查询信息
export function findMovies(data) {
return request({
url: '/Index/findMovies',
method: 'post',
data
})
}
// 首页查询统计信息
export function dataStatistics(data) {
return request({
url: '/Index/dataStatistics',
method: 'post',
data
})
}
// 访问信息入库
export function saveVisits(data) {
return request({
url: '/Index/saveVisits',
method: 'post',
data
})
}
// 所有航次
// export function getVoyage() {
// return request({
// url: '/remit/voyage/name?type=' + '',
// method: 'get',
// type: 'application/x-www-form-urlencoded'
// })
// }
// 航次列表
export function getVoyage() {
return request({
url: '/voyage/reg/page.htm',
method: 'get'
})
}
// 某个航次的轨迹
// export function getVoyageLine(voyageName) {
// return request({
// url: '/remit/voyage/tra?voyageName=' + voyageName,
// method: 'get',
// type: 'application/x-www-form-urlencoded'
// })
// }
export function getVoyageLine(query) {
return request({
url: '/voyage/navigation/list.htm',
method: 'get',
params: query
})
}
// 获取从参数列表
export function getParamsList(query) {
return request({
url: '/param/list.htm',
method: 'get',
params: query
})
}