add 大屏调用客户环境接口

This commit is contained in:
zhaoxiao
2022-11-22 09:40:44 +08:00
parent c5c7c5be30
commit 25389f84c0
8 changed files with 44 additions and 21 deletions
+1 -6
View File
@@ -26,9 +26,4 @@ window._CONFIG["sendCompanyName"] = "中汽标准所"
// 票据打印--寄件人地址
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
// 票据打印--寄件人邮编
window._CONFIG["sendPostCode"] = "300300"
// 大屏--请求WP29的baseUrl
window._CONFIG["WP29BaseUrl"] = 'http://localhost:8090/jero-boot'
// 大屏--请求ISO的baseUrl
window._CONFIG["ISOBaseUrl"] = ''
window._CONFIG["sendPostCode"] = "300300"
+1 -6
View File
@@ -24,9 +24,4 @@ window._CONFIG["sendCompanyName"] = "中汽标准所"
// 票据打印--寄件人地址
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
// 票据打印--寄件人邮编
window._CONFIG["sendPostCode"] = "300300"
// 大屏--请求WP29的baseUrl
window._CONFIG["WP29BaseUrl"] = ''
// 大屏--请求ISO的baseUrl
window._CONFIG["ISOBaseUrl"] = ''
window._CONFIG["sendPostCode"] = "300300"
+1 -6
View File
@@ -23,9 +23,4 @@ window._CONFIG["sendCompanyName"] = "中汽标准所"
// 票据打印--寄件人地址
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
// 票据打印--寄件人邮编
window._CONFIG["sendPostCode"] = "300300"
// 大屏--请求WP29的baseUrl
window._CONFIG["WP29BaseUrl"] = ''
// 大屏--请求ISO的baseUrl
window._CONFIG["ISOBaseUrl"] = ''
window._CONFIG["sendPostCode"] = "300300"
+8
View File
@@ -0,0 +1,8 @@
import { getAction } from '@/screenApi/manage'
// 汽车标准项目总体情况;包括发布的国行标、在研的国行标、立项上报的国行标、外文版项目数量
const StanderProjectGeneralSituation = (params) => getAction( '/serviceInterface/getDpData1', params)
export {
StanderProjectGeneralSituation
}
+5 -3
View File
@@ -3,10 +3,12 @@
*/
import { axios } from '@/screenRequest/request'
export function screenGetAction(baseUrl, url, parameter) {
const baseUrl = '/zxd'
export function getAction(url, parameter) {
return axios({
url: baseUrl + url,
method:'post' ,
data: parameter
method: 'get',
params: parameter
})
}
+3
View File
@@ -88,6 +88,9 @@ const err = (error) => {
// request interceptor
service.interceptors.request.use(config => {
if (config.url.indexOf('/zxd') === 0) {
config.headers['verifyToken'] = '1SRifTFQz86Wnqz'
}
const token = Vue.ls.get(ACCESS_TOKEN)
if (token) {
config.headers['X-Access-Token'] = token // 让每个请求携带自定义 token 请根据实际情况自行修改
+19
View File
@@ -0,0 +1,19 @@
<template>
<div></div>
</template>
<script>
import { StanderProjectGeneralSituation } from '@/screenApi/api'
export default {
name: 'HomePage',
created() {
StanderProjectGeneralSituation().then(res => {
console.log(res)
})
},
}
</script>
<style scoped>
</style>
+6
View File
@@ -92,6 +92,12 @@ module.exports = {
ws: false,
changeOrigin: true,
},
// 请求大屏客户环境
'/zxd':{
target: 'http://www.catarc.org.cn:8088',
ws: false,
changeOrigin: true,
}
},
},