75 lines
1.8 KiB
Vue
75 lines
1.8 KiB
Vue
/*
|
|
* @Author: hisense.wuhongjian
|
|
* @Date: 2022-04-20 17:16:35
|
|
* @LastEditors: hisense.liangjunhua
|
|
* @LastEditTime: 2022-06-19 17:32:12
|
|
* @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 count() {
|
|
return axios.post(
|
|
'http://10.134.135.24:30058/share-portal/platform/index/abilityMarket/count',
|
|
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
|
|
)
|
|
}
|