Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-station-module-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-station-module-view
Commits
0604ed7a
Commit
0604ed7a
authored
May 18, 2020
by
xinglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加首页websocket刷新
parent
4c395eb2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
19 deletions
+30
-19
SafetyIndexWeek.js
...s/panoramic/view/panoramic/statistical/SafetyIndexWeek.js
+7
-4
StatisticsCheck.js
...s/panoramic/view/panoramic/statistical/StatisticsCheck.js
+7
-6
StatisticsDuty.js
...ts/panoramic/view/panoramic/statistical/StatisticsDuty.js
+7
-6
index.js
.../components/panoramic/view/panoramic/statistical/index.js
+9
-3
No files found.
mods/components/panoramic/view/panoramic/statistical/SafetyIndexWeek.js
View file @
0604ed7a
...
...
@@ -88,16 +88,19 @@ class SafetyIndexWeek extends Component {
super
(
props
);
this
.
state
=
{
data
:
{}
};
}
componentDidMount
()
{
this
.
safetyIndexWeekData
();
}
safetyIndexWeekData
=
()
=>
{
safetyIndexWeekAction
().
then
(
data
=>
{
this
.
setState
({
data
:
data
})
})
data
})
;
})
;
}
getOptionsx
=
(
map
)
=>
{
...
...
mods/components/panoramic/view/panoramic/statistical/StatisticsCheck.js
View file @
0604ed7a
...
...
@@ -64,20 +64,21 @@ class StatisticsCheck extends Component {
super
(
props
);
this
.
state
=
{
data
:
[]
};
}
componentDidMount
()
{
this
.
statisticsCheckData
();
}
statisticsCheckData
=
()
=>
{
statisticsCheckAction
().
then
(
data
=>
{
this
.
setState
({
data
:
data
})
})
data
})
;
})
;
}
getOptionsx
=
(
data
)
=>
{
return
{
tooltip
:
{
...
...
mods/components/panoramic/view/panoramic/statistical/StatisticsDuty.js
View file @
0604ed7a
...
...
@@ -13,18 +13,19 @@ class StatisticsDuty extends Component {
super
(
props
);
this
.
state
=
{
data
:
{}
};
}
componentDidMount
()
{
this
.
statisticsDutyData
();
}
statisticsDutyData
=
()
=>
{
statisticsDutyAction
().
then
(
data
=>
{
this
.
setState
({
data
:
data
})
})
data
})
;
})
;
}
render
()
{
...
...
mods/components/panoramic/view/panoramic/statistical/index.js
View file @
0604ed7a
...
...
@@ -38,11 +38,14 @@ export default class Statistical extends Component {
break
;
case
'week_safety_index'
:
console
.
log
(
'一周安全指数趋势刷新~~~~~~~~~~~~~~~~~~~~'
);
this
.
safetyIndexWeek
.
safetyIndexWeekData
();
break
;
case
'today_check_status'
:
console
.
log
(
'今日巡检情况刷新~~~~~~~~~~~~~~~~~~~~'
);
this
.
statisticsCheck
.
statisticsCheckData
();
break
;
case
'today_duty'
:
this
.
statisticsDuty
.
statisticsDutyData
();
console
.
log
(
'今日值班刷新~~~~~~~~~~~~~~~~~~~~'
);
break
;
case
'all'
:
...
...
@@ -50,6 +53,9 @@ export default class Statistical extends Component {
this
.
safetyIndex
.
getSafetyIndex
();
this
.
safetyExecute
.
safetyExecuteList
();
this
.
equipStatus
.
equipStatusList
();
this
.
safetyIndexWeek
.
safetyIndexWeekData
();
this
.
statisticsCheck
.
statisticsCheckData
();
this
.
statisticsDuty
.
statisticsDutyData
();
break
;
default
:
console
.
log
(
refreshType
,
':类型不支持'
);
...
...
@@ -68,9 +74,9 @@ export default class Statistical extends Component {
<
EquipStatusList
ref
=
{
node
=>
this
.
equipStatus
=
node
}
/
>
<
/div
>
<
div
className
=
"statistical-right"
>
<
SafetyIndexWeek
/>
<
StatisticsCheck
/>
<
StatisticsDuty
/>
<
SafetyIndexWeek
ref
=
{
node
=>
this
.
safetyIndexWeek
=
node
}
/
>
<
StatisticsCheck
ref
=
{
node
=>
this
.
statisticsCheck
=
node
}
/
>
<
StatisticsDuty
ref
=
{
node
=>
this
.
statisticsDuty
=
node
}
/
>
<
/div
>
<
/div
>
);
...
...
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