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
8a268da0
Commit
8a268da0
authored
Jun 11, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_20200601' of
http://172.16.10.76/bank/AmosBankView
into develop_20200601
parents
ad7b2c8f
0500596b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
base.scss
src/styles/base.scss
+4
-0
Warnings.js
src/view/bank/situation/warn/Warnings.js
+18
-1
No files found.
src/styles/base.scss
View file @
8a268da0
...
...
@@ -72,3 +72,7 @@ body {
line-height
:
36px
;
border
:
0
;
}
.amos-toast-inner.amos-toast-inner-closable
{
top
:
150px
;
background
:
#49a9ee
;
}
src/view/bank/situation/warn/Warnings.js
View file @
8a268da0
...
...
@@ -3,6 +3,8 @@ import { Table, Col, Row, Pagination } from 'amos-antd';
import
{
Search
,
Icon
}
from
'amos-framework'
;
import
'./../../../../styles/view/biz/situation/warn.scss'
;
import
{
getWarningsData
,
getWarningsByPageData
,
getWarningsExcelData
}
from
'SERVICES/situationService'
;
import
AmosWebSocket
from
'amos-websocket'
;
import
SysWsURL
,
{
completeToken
}
from
'CONSTS/wsUrlConsts'
;
//页面列表
const
columnss
=
()
=>
[
...
...
@@ -127,9 +129,12 @@ class Warnings extends Component {
}
componentDidMount
()
{
this
.
initData
();
}
initData
=
()
=>
{
if
(
this
.
props
.
location
.
state
)
{
let
sourceId
=
this
.
props
.
location
.
state
.
sourceId
;
console
.
log
(
sourceId
);
this
.
onIconClick
(
null
,
sourceId
.
toString
());
}
else
{
this
.
getWarningsByPage
();
...
...
@@ -196,6 +201,16 @@ class Warnings extends Component {
window
.
open
(
url
);
}
/**
* webSocket接收数据
*/
handleData
=
data
=>
{
if
(
data
){
console
.
log
(
'alarmMarqueeWS'
);
this
.
initData
();
}
};
render
()
{
let
columns
=
columnss
();
let
{
selectedRowKeys
,
warnings
,
pageItem
}
=
this
.
state
;
...
...
@@ -203,8 +218,10 @@ class Warnings extends Component {
selectedRowKeys
,
onChange
:
this
.
onSelectChange
};
const
wsURL
=
completeToken
(
SysWsURL
.
view3dws
);
return
(
<
div
className
=
"amos-warn"
style
=
{{
overflow
:
'auto'
,
height
:
'100%'
}}
>
<
AmosWebSocket
ref
=
{
node
=>
(
this
.
aws
=
node
)}
url
=
{
wsURL
}
onMessage
=
{
this
.
handleData
}
reconnect
debug
/>
<
div
className
=
"amos-warn-up"
>
<
Row
>
<
Col
span
=
{
24
}
className
=
"amos-warn-top"
>
...
...
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