Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
amos-convertor-view
Commits
91ef7cd3
Commit
91ef7cd3
authored
Jun 22, 2020
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改天气获取方式;配置文件删除无用数据,添加配置文件说明
parent
87f391b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
amos.config.js
amos.config.js
+8
-9
headerConf.js
src/view/mainframe/headerConf.js
+6
-2
No files found.
amos.config.js
View file @
91ef7cd3
...
@@ -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
:
'
hain
an'
,
//yn 沂南站 shm 上海庙站 sn 苏南 hainan 海南站
projectName
:
'
zhumadi
an'
,
//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
;
...
...
src/view/mainframe/headerConf.js
View file @
91ef7cd3
...
@@ -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
;
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment