Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
station-elec-manage-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
station-elec-manage-view
Commits
7815ce43
Commit
7815ce43
authored
May 26, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常训练模块
parent
fe9793bb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
7 deletions
+39
-7
asyncView.js
src/routes/asyncView.js
+6
-2
view.js
src/routes/view.js
+5
-3
index.scss
src/styles/view/index.scss
+4
-2
dailyTrain.scss
src/styles/view/monitor/dailyTrain.scss
+0
-0
DailyTrainLeft.js
src/view/monitor/dailyTrain/DailyTrainLeft.js
+0
-0
DailyTrainRight.js
src/view/monitor/dailyTrain/DailyTrainRight.js
+0
-0
index.js
src/view/monitor/dailyTrain/index.js
+24
-0
No files found.
src/routes/asyncView.js
View file @
7815ce43
...
@@ -10,6 +10,8 @@ const AsyncRegulate = props => <AsyncLoader load={import('../view/monitor/regula
...
@@ -10,6 +10,8 @@ const AsyncRegulate = props => <AsyncLoader load={import('../view/monitor/regula
const
AsyncBills
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/biz/regulate/bills'
)}
componentProps
=
{
props
}
/>
;
const
AsyncBills
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/biz/regulate/bills'
)}
componentProps
=
{
props
}
/>
;
const
AsyncRootBizView
=
props
=>
<
AsyncLoader
load
=
{
import
(
'./../view/biz/index'
)}
componentProps
=
{
props
}
/>
;
const
AsyncRootBizView
=
props
=>
<
AsyncLoader
load
=
{
import
(
'./../view/biz/index'
)}
componentProps
=
{
props
}
/>
;
const
AsyncSafetyTraining
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/monitor/safetyManage/index'
)}
componentProps
=
{
props
}
/>
;
const
AsyncSafetyTraining
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/monitor/safetyManage/index'
)}
componentProps
=
{
props
}
/>
;
const
AsyncDaliyTraining
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/monitor/dailyTrain/index'
)}
componentProps
=
{
props
}
/>
;
// const AsyncRegionList = props => <AsyncLoader load={import('./../view/common/region/index')} componentProps={props} />;
// const AsyncRegionList = props => <AsyncLoader load={import('./../view/common/region/index')} componentProps={props} />;
const
Routes
=
{
const
Routes
=
{
...
@@ -18,12 +20,14 @@ const Routes = {
...
@@ -18,12 +20,14 @@ const Routes = {
situation
:
AsyncSituation
,
situation
:
AsyncSituation
,
regulate
:
AsyncRegulate
,
regulate
:
AsyncRegulate
,
bills
:
AsyncBills
,
bills
:
AsyncBills
,
safetyTraining
:
AsyncSafetyTraining
safetyTraining
:
AsyncSafetyTraining
,
dailyTrain
:
AsyncDaliyTraining
};
};
export
const
businessRouts
=
[
export
const
businessRouts
=
[
{
path
:
'situation'
,
group
:
'biz'
,
component
:
AsyncSituation
,
childRoutes
:
[]
},
{
path
:
'situation'
,
group
:
'biz'
,
component
:
AsyncSituation
,
childRoutes
:
[]
},
{
path
:
'safetyTraining'
,
group
:
'biz'
,
component
:
AsyncSafetyTraining
,
childRoutes
:
[]
},
{
path
:
'safetyTraining'
,
group
:
'biz'
,
component
:
AsyncSafetyTraining
,
childRoutes
:
[]
},
{
path
:
'bills'
,
group
:
'biz'
,
component
:
AsyncBills
,
childRoutes
:
[]
}
{
path
:
'bills'
,
group
:
'biz'
,
component
:
AsyncBills
,
childRoutes
:
[]
},
{
path
:
'dailyTrain'
,
group
:
'biz'
,
component
:
AsyncDaliyTraining
,
childRoutes
:
[]
}
];
];
const
pageCompontent
=
key
=>
{
const
pageCompontent
=
key
=>
{
return
Routes
[
key
]
||
AsyncEmptyPage
;
return
Routes
[
key
]
||
AsyncEmptyPage
;
...
...
src/routes/view.js
View file @
7815ce43
...
@@ -6,8 +6,8 @@ import Regulate from '../view/monitor/regulate';
...
@@ -6,8 +6,8 @@ import Regulate from '../view/monitor/regulate';
import
Bills
from
'../view/biz/regulate/bills'
;
import
Bills
from
'../view/biz/regulate/bills'
;
import
RootBizView
from
'./../view/biz/index'
;
import
RootBizView
from
'./../view/biz/index'
;
import
EmptyPage
from
'./../view/common/emptyPage/EmptyPage'
;
import
EmptyPage
from
'./../view/common/emptyPage/EmptyPage'
;
import
SafetyTraining
from
'./../view/monitor/safetyManage/index'
;
import
SafetyTraining
from
'./../view/monitor/safetyManage/index'
;
import
DaliyTraining
from
'./../view/monitor/dailyTrain/index'
;
const
Routes
=
{
const
Routes
=
{
main
:
RootView
,
main
:
RootView
,
...
@@ -15,12 +15,14 @@ const Routes = {
...
@@ -15,12 +15,14 @@ const Routes = {
situation
:
Situation
,
situation
:
Situation
,
regulate
:
Regulate
,
regulate
:
Regulate
,
bills
:
Bills
,
bills
:
Bills
,
safetyTraining
:
SafetyTraining
safetyTraining
:
SafetyTraining
,
dailyTrain
:
DaliyTraining
};
};
export
const
businessRouts
=
[
export
const
businessRouts
=
[
{
path
:
'situation'
,
group
:
'biz'
,
component
:
Situation
,
childRoutes
:
[]
},
{
path
:
'situation'
,
group
:
'biz'
,
component
:
Situation
,
childRoutes
:
[]
},
{
path
:
'bills'
,
group
:
'biz'
,
component
:
Bills
,
childRoutes
:
[]
},
{
path
:
'bills'
,
group
:
'biz'
,
component
:
Bills
,
childRoutes
:
[]
},
{
path
:
'safetyTraining'
,
group
:
'biz'
,
component
:
SafetyTraining
,
childRoutes
:
[]
}
{
path
:
'safetyTraining'
,
group
:
'biz'
,
component
:
SafetyTraining
,
childRoutes
:
[]
},
{
path
:
'dailyTrain'
,
group
:
'biz'
,
component
:
DaliyTraining
,
childRoutes
:
[]
}
];
];
const
pageCompontent
=
key
=>
{
const
pageCompontent
=
key
=>
{
return
Routes
[
key
]
||
EmptyPage
;
return
Routes
[
key
]
||
EmptyPage
;
...
...
src/styles/view/index.scss
View file @
7815ce43
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
// 导入amos-pro
// 导入amos-pro
@import
'~amos-pro/dist/amospro.css'
;
@import
'~amos-pro/dist/amospro.css'
;
@import
'~ray-progress/assets/progress.css'
;
@import
'~ray-progress/assets/progress.css'
;
//安全培训
@import
'./monitor/safetyTrain.scss'
;
@import
'./monitor/safetyTrain.scss'
;
@import
'./monitor/table.scss'
@import
'./monitor/table.scss'
;
//日常训练
@import
'./monitor/dailyTrain.scss'
;
src/styles/view/monitor/dailyTrain.scss
0 → 100644
View file @
7815ce43
This diff is collapsed.
Click to expand it.
src/view/monitor/dailyTrain/DailyTrainLeft.js
0 → 100644
View file @
7815ce43
This diff is collapsed.
Click to expand it.
src/view/monitor/dailyTrain/DailyTrainRight.js
0 → 100644
View file @
7815ce43
This diff is collapsed.
Click to expand it.
src/view/monitor/dailyTrain/index.js
0 → 100644
View file @
7815ce43
import
React
,
{
Component
}
from
'react'
;
import
DailyTrainyLeft
from
'./DailyTrainLeft'
;
import
DailyTrainRight
from
'./DailyTrainRight'
;
/**
* 日常训练模块
*/
export
default
class
DailyTrain
extends
Component
{
render
()
{
return
(
<
div
className
=
"dailyTrain-safety"
>
<
div
className
=
"dailyTrain-safty-content"
>
<
div
className
=
"dailyTrain-top"
><
/div
>
<
div
className
=
"dailyTrain-bottom"
>
<
DailyTrainyLeft
/>
<
DailyTrainRight
/>
<
/div
>
<
/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