49 lines
1.1 KiB
Vue
49 lines
1.1 KiB
Vue
|
/*
|
||
|
* @Author: hisense.wuhongjian
|
||
|
* @Date: 2022-04-20 17:16:35
|
||
|
* @LastEditors: hisense.wuhongjian
|
||
|
* @LastEditTime: 2022-05-26 22:40:46
|
||
|
* @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)
|
||
|
}
|