diff --git a/public/development_address_config.js b/public/development_address_config.js index cbd6e6b..a4c7bb2 100644 --- a/public/development_address_config.js +++ b/public/development_address_config.js @@ -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"] = '' \ No newline at end of file +window._CONFIG["sendPostCode"] = "300300" \ No newline at end of file diff --git a/public/local_production_address_config.js b/public/local_production_address_config.js index 41a5680..10ade18 100644 --- a/public/local_production_address_config.js +++ b/public/local_production_address_config.js @@ -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"] = '' \ No newline at end of file +window._CONFIG["sendPostCode"] = "300300" \ No newline at end of file diff --git a/public/production_address_config.js b/public/production_address_config.js index 6472629..1c3ab49 100644 --- a/public/production_address_config.js +++ b/public/production_address_config.js @@ -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"] = '' \ No newline at end of file +window._CONFIG["sendPostCode"] = "300300" \ No newline at end of file diff --git a/src/screenApi/api.js b/src/screenApi/api.js new file mode 100644 index 0000000..891484b --- /dev/null +++ b/src/screenApi/api.js @@ -0,0 +1,8 @@ +import { getAction } from '@/screenApi/manage' + +// 汽车标准项目总体情况;包括发布的国行标、在研的国行标、立项上报的国行标、外文版项目数量 +const StanderProjectGeneralSituation = (params) => getAction( '/serviceInterface/getDpData1', params) + +export { + StanderProjectGeneralSituation +} \ No newline at end of file diff --git a/src/screenApi/manage.js b/src/screenApi/manage.js index 23894bc..e30cbc9 100644 --- a/src/screenApi/manage.js +++ b/src/screenApi/manage.js @@ -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 }) } \ No newline at end of file diff --git a/src/screenRequest/request.js b/src/screenRequest/request.js index faa867d..62cfce5 100644 --- a/src/screenRequest/request.js +++ b/src/screenRequest/request.js @@ -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 请根据实际情况自行修改 diff --git a/src/views/screen/HomePage.vue b/src/views/screen/HomePage.vue new file mode 100644 index 0000000..bcd8caf --- /dev/null +++ b/src/views/screen/HomePage.vue @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 939bd47..40768d4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -92,6 +92,12 @@ module.exports = { ws: false, changeOrigin: true, }, + // 请求大屏客户环境 + '/zxd':{ + target: 'http://www.catarc.org.cn:8088', + ws: false, + changeOrigin: true, + } }, },