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
3a321c1a
Commit
3a321c1a
authored
Jun 11, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
b2c4121e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
3 deletions
+39
-3
View3D.js
src/view/bank/3dview/View3D.js
+39
-3
No files found.
src/view/bank/3dview/View3D.js
View file @
3a321c1a
...
...
@@ -1205,6 +1205,39 @@ class View3D extends Component {
});
};
existData
=
(
code
,
orgCode
)
=>
{
let
xianshi
=
false
;
if
(
code
){
if
(
code
.
indexOf
(
'#'
)
!==
-
1
)
{
let
split
=
code
.
split
(
'#'
)
||
[];
split
.
map
(
item
=>
{
if
(
item
.
indexOf
(
'-'
)
!==
-
1
)
{
let
array
=
item
.
split
(
'-'
)
||
[];
if
(
array
.
length
>
0
&&
array
[
0
]
===
orgCode
)
{
xianshi
=
true
;
}
}
else
{
if
(
item
===
orgCode
){
xianshi
=
true
;
}
}
});
}
else
{
let
arr
=
code
.
split
(
'-'
)
||
[];
if
(
arr
.
length
>
0
&&
arr
[
0
]
===
orgCode
)
{
xianshi
=
true
;
}
}
}
return
xianshi
;
};
/**
* 加载告警数据
*
...
...
@@ -1258,10 +1291,13 @@ class View3D extends Component {
if
(
city
===
'xian'
||
city
===
'xianyang'
||
city
===
'科技处西安'
||
city
===
'科技处咸阳'
){
if
(
alarmData
&&
!
utils
.
isEmpty
(
alarmData
)
&&
utils
.
isArray
(
alarmData
))
{
//过滤该公司没有权限的设备(有则跑马灯显示,否则不显示)
//过滤该公司没有权限的设备(有则跑马灯显示,否则不显示)
let
newData
=
[];
alarmData
.
map
(
e
=>
{
if
((
e
.
code
.
indexOf
(
userOrgCode
)
!==-
1
)
||
(
e
.
authOrg
&&
e
.
authOrg
.
indexOf
(
userOrgCode
)
!==-
1
)){
alarmData
.
map
(
e
=>
{
let
xianshi
=
this
.
existData
(
e
.
code
,
userOrgCode
);
let
authOrgXianshi
=
this
.
existData
(
e
.
authOrg
,
userOrgCode
);
if
(
xianshi
||
authOrgXianshi
)
{
newData
.
push
(
e
);
}
});
...
...
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