159 lines
4.2 KiB
Vue
159 lines
4.2 KiB
Vue
/*
|
||
* @Author: hisense.wuhongjian
|
||
* @Date: 2022-04-20 17:16:35
|
||
* @LastEditors: Light
|
||
* @LastEditTime: 2022-11-21 10:51:25
|
||
* @Description: 告诉大家这是什么
|
||
*/
|
||
import request from '@/utils/request'
|
||
import axios from 'axios'
|
||
import store from '@/store'
|
||
|
||
const config = {
|
||
headers: {
|
||
token: store.getters['user/accessToken'],
|
||
'Content-Type': 'multipart/form-data',
|
||
},
|
||
}
|
||
const config2 = {
|
||
headers: {
|
||
'Content-Type': 'application/json; charset-utf-8',
|
||
},
|
||
}
|
||
export function getDevelopmentFile(params) {
|
||
return request({
|
||
url: '/developmentGuide/getDevelopmentFile',
|
||
method: 'get',
|
||
params,
|
||
})
|
||
}
|
||
export function updateDevelopmentFile(params) {
|
||
return axios.post(
|
||
window.SITE_CONFIG.apiURL + '/developmentGuide/uploadDevelopmentFile',
|
||
params,
|
||
config
|
||
)
|
||
}
|
||
export function test() {
|
||
return axios.post(
|
||
'http://15.72.158.81/zyjk/ZywMessage.asmx/ZywMessagePort',
|
||
config2
|
||
)
|
||
}
|
||
export function correct(params) {
|
||
return axios.post('http://15.72.183.90:7008/correct', params, config2)
|
||
}
|
||
export function paddleocr(params) {
|
||
return axios.post('http://15.72.183.90:7008/paddleocr', params, config2)
|
||
}
|
||
// 算法总接口
|
||
export function algo(params) {
|
||
return axios.post('http://15.72.184.10:8888/api/algo', params, config2)
|
||
}
|
||
|
||
// 能力云图-数据资源
|
||
export function count() {
|
||
return axios.post(
|
||
'http://10.134.135.24:30058/share-portal/platform/index/abilityMarket/count',
|
||
config2
|
||
)
|
||
}
|
||
export function getVideoList(params) {
|
||
return axios.get(
|
||
'http://10.134.135.9:8001/hx-weather-warning/camera/getCameraListByName?name=' +
|
||
params.name +
|
||
'&pageNo=' +
|
||
params.pageNo +
|
||
'&pageSize=' +
|
||
params.pageSize,
|
||
config2
|
||
)
|
||
}
|
||
// 能力云图-数据资源-总数据数
|
||
export function getRecord(params) {
|
||
return axios.get(
|
||
'http://10.134.135.24:30090/api/share-portal/platform/catalogue/query?serviceName=' +
|
||
params.serviceName +
|
||
'&orderField=' +
|
||
params.orderField +
|
||
'&orderType=' +
|
||
params.orderType +
|
||
'&pageNum=' +
|
||
params.pageNum +
|
||
'&pageSize=' +
|
||
params.pageSize +
|
||
'&serviceType=' +
|
||
params.serviceType,
|
||
config2
|
||
)
|
||
}
|
||
|
||
export function getHls(params) {
|
||
return axios.get(
|
||
'http://10.134.135.9:8001/hx-weather-warning/camera/getCameraLiveStreamByCode?cameraCode=' +
|
||
params.cameraId +
|
||
'&protocol=' +
|
||
params.protocol,
|
||
config2
|
||
)
|
||
}
|
||
// 西海岸 POI搜索
|
||
export function getListForPOI(params) {
|
||
return axios.get(
|
||
'http://10.134.135.3:21009/service/lbs/coder/geocoding2?appKey=675d95594136456bb7b1434dda31953f&city=青岛&keywords=' +
|
||
params.keywords,
|
||
config2
|
||
)
|
||
}
|
||
|
||
//西海岸 获取左侧标签树
|
||
export function getPlaceType() {
|
||
return axios.get(
|
||
'http://10.134.135.92:9537/data_service/placeTypes/getPlaceType',
|
||
config2
|
||
)
|
||
}
|
||
|
||
//西海岸 根据标签树查询视频列表
|
||
export function CameraConditionPlaceType(params) {
|
||
return axios.post(
|
||
'http://10.134.135.92:9537/data_service/getCamera/CameraConditionPlaceType',
|
||
params,
|
||
config2
|
||
)
|
||
}
|
||
// 西海岸--获取摄像头列表的后台地址 (测试环境地址:10.134.135.92:9537)
|
||
let _cameraUrl =
|
||
(_global &&
|
||
_global.config &&
|
||
_global.config.camreaInfo &&
|
||
_global.config.camreaInfo.cameraUrl) ||
|
||
'10.134.135.92:9537'
|
||
//能力集市基础设施-左侧列表
|
||
export function getCameraInfoByAreaId(params) {
|
||
return axios.get(
|
||
`http://${_cameraUrl}/data_service/getCamera/getCameraInfoByAreaId?areaId=${params.areaId}`,
|
||
config2
|
||
)
|
||
}
|
||
//能力集市基础设施-摄像头
|
||
export function getCameraByCondition(params) {
|
||
return axios.post(
|
||
`http://${_cameraUrl}/data_service/getCamera/getCameraByCondition`,
|
||
params,
|
||
config2
|
||
)
|
||
}
|
||
|
||
export function initiateMeet(data) {
|
||
// return request({
|
||
// url: '/enke/initiateMeet',
|
||
// method: 'post',
|
||
// data: data,
|
||
// })
|
||
return axios.post(
|
||
'http://10.134.135.92:8888/renren-admin/enke/initiateMeet',
|
||
data,
|
||
config2
|
||
)
|
||
} |