Commit 91ef7cd3 authored by maoying's avatar maoying

修改天气获取方式;配置文件删除无用数据,添加配置文件说明

parent 87f391b4
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// 普通http // 普通http
httpURI: { httpURI: {
baseURI: 'http://172.16.11.36:10005/', baseURI: 'http://172.16.11.36:10005/',
convertorURI: 'http://172.16.3.63:8083/', convertorURI: 'http://172.16.11.36:10005/',
patrolURI: 'http://172.16.3.122:8082/', patrolURI: 'http://172.16.3.122:8082/',
securityBaseURI: 'http://172.16.10.72:10005/', securityBaseURI: 'http://172.16.10.72:10005/',
pluginURI: 'http://172.16.10.91:8091/', pluginURI: 'http://172.16.10.91:8091/',
...@@ -27,9 +27,11 @@ ...@@ -27,9 +27,11 @@
}, },
// 外部链接地址 // 外部链接地址
outterURI: { outterURI: {
//xunjian: 'http://172.16.10.91:3001/outter?isSub=true&user={userId}&token={token}&orgCode={orgCode}', //巡检子服务地址,
xunjian: 'http://172.16.11.36:3001/outter?isSub=true&token={token}&companyId={companyId}&deptId={deptId}&roleId={roleId}', xunjian: 'http://172.16.11.36:3001/outter?isSub=true&token={token}&companyId={companyId}&deptId={deptId}&roleId={roleId}',
//规则管控模型地址
mgtCtrlModel: 'http://172.16.10.91:8080', mgtCtrlModel: 'http://172.16.10.91:8080',
//预案业务屏前端接口地址
prePlan: 'http://172.16.10.91:3004', prePlan: 'http://172.16.10.91:3004',
ue4URI: 'http://172.16.11.36:8089', ue4URI: 'http://172.16.11.36:8089',
userModelURI: 'http://172.16.10.72/main/authcenter/user?token={token}' //平台用户界面 userModelURI: 'http://172.16.10.72/main/authcenter/user?token={token}' //平台用户界面
...@@ -59,10 +61,6 @@ ...@@ -59,10 +61,6 @@
rule: { rule: {
packageName: '消防专项预案' packageName: '消防专项预案'
}, },
autoLoginConf: {
pwd: 'tanist',
accessToken: 'my'
},
//组态页面的配置 //组态页面的配置
morphic: { morphic: {
...@@ -85,7 +83,7 @@ ...@@ -85,7 +83,7 @@
}, },
// 区域风险点ID与态势图位置对应关系配置 // 区域风险点ID与态势图位置对应关系配置
riskDynamicChart: { riskDynamicChart: {
projectName: 'hainan', //yn 沂南站 shm 上海庙站 sn 苏南 hainan 海南站 projectName: 'zhumadian', //yn 沂南站 shm 上海庙站 sn 苏南 hainan 海南站
riskSourceIdMap: { riskSourceIdMap: {
'mapItem-1': 195, 'mapItem-1': 195,
'mapItem-2': 95, 'mapItem-2': 95,
...@@ -121,9 +119,10 @@ ...@@ -121,9 +119,10 @@
var LogConfig = { var LogConfig = {
isDebug: true // 调试模式时打印日志 isDebug: true // 调试模式时打印日志
}; };
//天气预报配置地址
var innerConfig = { var innerConfig = {
address: '河南' isUsed: true,
address: '西安市' //配置依据 weatherCity.json 文件中的city_name 字段
}; };
window.Amos = Amos; window.Amos = Amos;
......
...@@ -3,7 +3,7 @@ import { CONSTS, getInnerConfig } from './../../consts/storageConsts'; ...@@ -3,7 +3,7 @@ import { CONSTS, getInnerConfig } from './../../consts/storageConsts';
import { getRegion } from './../../utils/cacheUtils'; import { getRegion } from './../../utils/cacheUtils';
const lsTool = Store.lsTool; const lsTool = Store.lsTool;
const config = getInnerConfig();
export const header3dConf = { export const header3dConf = {
// logoIcon: require('./../../assets/logo/amos-white.png'), // logoIcon: require('./../../assets/logo/amos-white.png'),
// minIcon: require('./../../assets/logo/amos-white.png'), // minIcon: require('./../../assets/logo/amos-white.png'),
...@@ -29,5 +29,9 @@ export const triggerMenuChange = (data) => { ...@@ -29,5 +29,9 @@ export const triggerMenuChange = (data) => {
export const getAddress = () => { export const getAddress = () => {
let region = getRegion(); let region = getRegion();
region = JSON.parse(region) || {}; region = JSON.parse(region) || {};
return region.address; if(config.isUsed){
return config.address;
}
let address = region.company?region.company.address?region.company.address:config.address:config.address;
return address;
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment