add 大屏调用客户环境接口
This commit is contained in:
@@ -27,8 +27,3 @@ window._CONFIG["sendCompanyName"] = "中汽标准所"
|
|||||||
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
|
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
|
||||||
// 票据打印--寄件人邮编
|
// 票据打印--寄件人邮编
|
||||||
window._CONFIG["sendPostCode"] = "300300"
|
window._CONFIG["sendPostCode"] = "300300"
|
||||||
|
|
||||||
// 大屏--请求WP29的baseUrl
|
|
||||||
window._CONFIG["WP29BaseUrl"] = 'http://localhost:8090/jero-boot'
|
|
||||||
// 大屏--请求ISO的baseUrl
|
|
||||||
window._CONFIG["ISOBaseUrl"] = ''
|
|
||||||
@@ -25,8 +25,3 @@ window._CONFIG["sendCompanyName"] = "中汽标准所"
|
|||||||
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
|
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
|
||||||
// 票据打印--寄件人邮编
|
// 票据打印--寄件人邮编
|
||||||
window._CONFIG["sendPostCode"] = "300300"
|
window._CONFIG["sendPostCode"] = "300300"
|
||||||
|
|
||||||
// 大屏--请求WP29的baseUrl
|
|
||||||
window._CONFIG["WP29BaseUrl"] = ''
|
|
||||||
// 大屏--请求ISO的baseUrl
|
|
||||||
window._CONFIG["ISOBaseUrl"] = ''
|
|
||||||
@@ -24,8 +24,3 @@ window._CONFIG["sendCompanyName"] = "中汽标准所"
|
|||||||
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
|
window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
|
||||||
// 票据打印--寄件人邮编
|
// 票据打印--寄件人邮编
|
||||||
window._CONFIG["sendPostCode"] = "300300"
|
window._CONFIG["sendPostCode"] = "300300"
|
||||||
|
|
||||||
// 大屏--请求WP29的baseUrl
|
|
||||||
window._CONFIG["WP29BaseUrl"] = ''
|
|
||||||
// 大屏--请求ISO的baseUrl
|
|
||||||
window._CONFIG["ISOBaseUrl"] = ''
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { getAction } from '@/screenApi/manage'
|
||||||
|
|
||||||
|
// 汽车标准项目总体情况;包括发布的国行标、在研的国行标、立项上报的国行标、外文版项目数量
|
||||||
|
const StanderProjectGeneralSituation = (params) => getAction( '/serviceInterface/getDpData1', params)
|
||||||
|
|
||||||
|
export {
|
||||||
|
StanderProjectGeneralSituation
|
||||||
|
}
|
||||||
@@ -3,10 +3,12 @@
|
|||||||
*/
|
*/
|
||||||
import { axios } from '@/screenRequest/request'
|
import { axios } from '@/screenRequest/request'
|
||||||
|
|
||||||
export function screenGetAction(baseUrl, url, parameter) {
|
const baseUrl = '/zxd'
|
||||||
|
|
||||||
|
export function getAction(url, parameter) {
|
||||||
return axios({
|
return axios({
|
||||||
url: baseUrl + url,
|
url: baseUrl + url,
|
||||||
method:'post' ,
|
method: 'get',
|
||||||
data: parameter
|
params: parameter
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -88,6 +88,9 @@ const err = (error) => {
|
|||||||
|
|
||||||
// request interceptor
|
// request interceptor
|
||||||
service.interceptors.request.use(config => {
|
service.interceptors.request.use(config => {
|
||||||
|
if (config.url.indexOf('/zxd') === 0) {
|
||||||
|
config.headers['verifyToken'] = '1SRifTFQz86Wnqz'
|
||||||
|
}
|
||||||
const token = Vue.ls.get(ACCESS_TOKEN)
|
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||||
if (token) {
|
if (token) {
|
||||||
config.headers['X-Access-Token'] = token // 让每个请求携带自定义 token 请根据实际情况自行修改
|
config.headers['X-Access-Token'] = token // 让每个请求携带自定义 token 请根据实际情况自行修改
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -92,6 +92,12 @@ module.exports = {
|
|||||||
ws: false,
|
ws: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
|
// 请求大屏客户环境
|
||||||
|
'/zxd':{
|
||||||
|
target: 'http://www.catarc.org.cn:8088',
|
||||||
|
ws: false,
|
||||||
|
changeOrigin: true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user