Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AmosBankView
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
bank
AmosBankView
Commits
2c31a02e
Commit
2c31a02e
authored
Jul 08, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Plain Diff
修改城域网文字不居中Bug
parents
e5a8176c
1e9a21c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
17 deletions
+7
-17
indexMap.js
src/view/bank/3dview/indexMap.js
+5
-16
TopologyComponent.js
src/view/bank/financialCityLan/TopologyComponent.js
+2
-1
No files found.
src/view/bank/3dview/indexMap.js
View file @
2c31a02e
...
@@ -825,19 +825,16 @@ class IndexMap extends Component {
...
@@ -825,19 +825,16 @@ class IndexMap extends Component {
if
(
code
.
indexOf
(
'#'
)
!==
-
1
)
{
if
(
code
.
indexOf
(
'#'
)
!==
-
1
)
{
let
split
=
code
.
split
(
'#'
)
||
[];
let
split
=
code
.
split
(
'#'
)
||
[];
split
.
map
(
item
=>
{
split
.
map
(
item
=>
{
if
(
item
.
indexOf
(
'-'
)
!==
-
1
)
{
if
(
item
.
indexOf
(
'-'
)
!==
-
1
)
{
let
array
=
item
.
split
(
'-'
)
||
[];
let
array
=
item
.
split
(
'-'
)
||
[];
if
(
array
.
length
>
0
&&
array
[
0
]
===
orgCode
)
{
if
(
array
.
length
>
0
&&
array
[
0
]
===
orgCode
)
{
xianshi
=
true
;
xianshi
=
true
;
}
}
}
else
{
}
else
{
if
(
item
===
orgCode
)
{
if
(
item
===
orgCode
)
{
xianshi
=
true
;
xianshi
=
true
;
}
}
}
}
});
});
}
else
{
}
else
{
let
arr
=
code
.
split
(
'-'
)
||
[];
let
arr
=
code
.
split
(
'-'
)
||
[];
...
@@ -846,22 +843,19 @@ class IndexMap extends Component {
...
@@ -846,22 +843,19 @@ class IndexMap extends Component {
}
}
}
}
}
}
return
xianshi
;
return
xianshi
;
};
};
//处理告警数据
//处理告警数据
handleAlarmData
=
()
=>
{
handleAlarmData
=
()
=>
{
getAlarms
().
then
(
data
=>
{
getAlarms
().
then
(
data
=>
{
this
.
processingAlarmData
(
data
);
this
.
processingAlarmData
(
data
);
});
});
}
}
//过滤告警列表
//过滤告警列表
processingAlarmData
=
data
=>
{
processingAlarmData
=
data
=>
{
let
{
orgCode
}
=
this
.
state
;
let
{
orgCode
}
=
this
.
state
;
if
(
orgCode
!==
''
)
{
if
(
orgCode
!==
''
)
{
let
dictionaryList
=
lsTool
.
read
(
'dictionaryList'
);
let
dictionaryList
=
lsTool
.
read
(
'dictionaryList'
);
...
@@ -885,13 +879,13 @@ class IndexMap extends Component {
...
@@ -885,13 +879,13 @@ class IndexMap extends Component {
if
(
!
utils
.
isEmpty
(
newData
)
&&
utils
.
isArray
(
newData
))
{
if
(
!
utils
.
isEmpty
(
newData
)
&&
utils
.
isArray
(
newData
))
{
const
xianFlag
=
newData
.
some
(
e
=>
{
const
xianFlag
=
newData
.
some
(
e
=>
{
// if (e.code === xianCode) {
// if (e.code === xianCode) {
if
(
e
.
code
.
startsWith
(
xianCode
)
||
((
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
xianCode
)
!==
-
1
)
||
(
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
kejichuxianCode
)
!==
-
1
)))
{
if
(
e
.
code
.
startsWith
(
xianCode
)
||
e
.
code
.
startsWith
(
kejichuxianCode
)
||
((
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
xianCode
)
!==
-
1
)
||
(
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
kejichuxianCode
)
!==
-
1
)))
{
return
true
;
return
true
;
}
}
});
});
const
xianyangFlag
=
newData
.
some
(
e
=>
{
const
xianyangFlag
=
newData
.
some
(
e
=>
{
if
(
if
(
e
.
code
.
startsWith
(
xianyangCode
)
||
e
.
code
.
startsWith
(
xianyangCode
)
||
e
.
code
.
startsWith
(
kejichuxianyangCode
)
||
((
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
xianyangCode
)
!==
-
1
)
||
(
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
kejichuxianyangCode
)
!==
-
1
))
((
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
xianyangCode
)
!==
-
1
)
||
(
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
kejichuxianyangCode
)
!==
-
1
))
)
{
)
{
return
true
;
return
true
;
...
@@ -914,10 +908,8 @@ class IndexMap extends Component {
...
@@ -914,10 +908,8 @@ class IndexMap extends Component {
});
});
this
.
initBankInfoList
(
'xian'
,
null
,
false
);
this
.
initBankInfoList
(
'xian'
,
null
,
false
);
this
.
initBankInfoList
(
'xianyang'
,
null
,
false
);
this
.
initBankInfoList
(
'xianyang'
,
null
,
false
);
}
}
}
}
};
};
...
@@ -928,8 +920,6 @@ class IndexMap extends Component {
...
@@ -928,8 +920,6 @@ class IndexMap extends Component {
this
.
handleAlarmData
();
this
.
handleAlarmData
();
};
};
/**
/**
* 根据告警city或者eqpId的重构数据
* 根据告警city或者eqpId的重构数据
*
*
...
@@ -954,7 +944,6 @@ class IndexMap extends Component {
...
@@ -954,7 +944,6 @@ class IndexMap extends Component {
* webSocket接收数据
* webSocket接收数据
*/
*/
handleData
=
data
=>
{
handleData
=
data
=>
{
this
.
handleAlarmData
();
this
.
handleAlarmData
();
};
};
...
...
src/view/bank/financialCityLan/TopologyComponent.js
View file @
2c31a02e
...
@@ -298,7 +298,8 @@ class TopologyComponent extends Component {
...
@@ -298,7 +298,8 @@ class TopologyComponent extends Component {
new
go
.
Binding
(
'width'
,
'text'
,
(
v
)
=>
this
.
setEllipseWidth
(
v
))
new
go
.
Binding
(
'width'
,
'text'
,
(
v
)
=>
this
.
setEllipseWidth
(
v
))
),
),
goObj
(
go
.
TextBlock
,
'无'
,
goObj
(
go
.
TextBlock
,
'无'
,
{
margin
:
-
30
,
stroke
:
'#1c9ad2'
,
font
:
'20px sans-serif'
},
{
margin
:
new
go
.
Margin
(
-
40
,
0
,
0
,
0
),
verticalAlignment
:
go
.
Spot
.
Center
,
stroke
:
'#1c9ad2'
,
font
:
'20px sans-serif'
},
new
go
.
Binding
(
'text'
),
new
go
.
Binding
(
'text'
),
),
),
));
));
...
...
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