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
4ad96e5e
Commit
4ad96e5e
authored
May 26, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
器材保养模块
parent
7815ce43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1094 additions
and
4 deletions
+1094
-4
asyncView.js
src/routes/asyncView.js
+5
-2
view.js
src/routes/view.js
+5
-2
index.scss
src/styles/view/index.scss
+3
-0
equipmentMaintain.scss
src/styles/view/monitor/equipmentMaintain.scss
+0
-0
EquipmentMaintainLeft.js
src/view/monitor/equipmentMaintain/EquipmentMaintainLeft.js
+545
-0
EquipmentMaintainRight.js
src/view/monitor/equipmentMaintain/EquipmentMaintainRight.js
+512
-0
index.js
src/view/monitor/equipmentMaintain/index.js
+24
-0
No files found.
src/routes/asyncView.js
View file @
4ad96e5e
...
@@ -11,6 +11,7 @@ const AsyncBills = props => <AsyncLoader load={import('../view/biz/regulate/bill
...
@@ -11,6 +11,7 @@ const AsyncBills = props => <AsyncLoader load={import('../view/biz/regulate/bill
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
AsyncDaliyTraining
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/monitor/dailyTrain/index'
)}
componentProps
=
{
props
}
/>
;
const
AsyncEquipmentMaintain
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/monitor/equipmentMaintain/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} />;
...
@@ -21,13 +22,15 @@ const Routes = {
...
@@ -21,13 +22,15 @@ const Routes = {
regulate
:
AsyncRegulate
,
regulate
:
AsyncRegulate
,
bills
:
AsyncBills
,
bills
:
AsyncBills
,
safetyTraining
:
AsyncSafetyTraining
,
safetyTraining
:
AsyncSafetyTraining
,
dailyTrain
:
AsyncDaliyTraining
dailyTrain
:
AsyncDaliyTraining
,
equipmentMaintain
:
AsyncEquipmentMaintain
};
};
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
:
[]
}
{
path
:
'dailyTrain'
,
group
:
'biz'
,
component
:
AsyncDaliyTraining
,
childRoutes
:
[]
},
{
path
:
'equipmentMaintain'
,
group
:
'biz'
,
component
:
AsyncEquipmentMaintain
,
childRoutes
:
[]
}
];
];
const
pageCompontent
=
key
=>
{
const
pageCompontent
=
key
=>
{
return
Routes
[
key
]
||
AsyncEmptyPage
;
return
Routes
[
key
]
||
AsyncEmptyPage
;
...
...
src/routes/view.js
View file @
4ad96e5e
...
@@ -8,6 +8,7 @@ import RootBizView from './../view/biz/index';
...
@@ -8,6 +8,7 @@ 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'
;
import
DaliyTraining
from
'./../view/monitor/dailyTrain/index'
;
import
EquipmentMaintain
from
'./../view/monitor/equipmentMaintain/index'
;
const
Routes
=
{
const
Routes
=
{
main
:
RootView
,
main
:
RootView
,
...
@@ -16,13 +17,15 @@ const Routes = {
...
@@ -16,13 +17,15 @@ const Routes = {
regulate
:
Regulate
,
regulate
:
Regulate
,
bills
:
Bills
,
bills
:
Bills
,
safetyTraining
:
SafetyTraining
,
safetyTraining
:
SafetyTraining
,
dailyTrain
:
DaliyTraining
dailyTrain
:
DaliyTraining
,
equipmentMaintain
:
EquipmentMaintain
};
};
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
:
[]
}
{
path
:
'dailyTrain'
,
group
:
'biz'
,
component
:
DaliyTraining
,
childRoutes
:
[]
},
{
path
:
'equipmentMaintain'
,
group
:
'biz'
,
component
:
EquipmentMaintain
,
childRoutes
:
[]
}
];
];
const
pageCompontent
=
key
=>
{
const
pageCompontent
=
key
=>
{
return
Routes
[
key
]
||
EmptyPage
;
return
Routes
[
key
]
||
EmptyPage
;
...
...
src/styles/view/index.scss
View file @
4ad96e5e
...
@@ -15,3 +15,6 @@
...
@@ -15,3 +15,6 @@
@import
'./monitor/table.scss'
;
@import
'./monitor/table.scss'
;
//日常训练
//日常训练
@import
'./monitor/dailyTrain.scss'
;
@import
'./monitor/dailyTrain.scss'
;
//器材保养equipmentMaintain
@import
'./monitor/equipmentMaintain.scss'
;
src/styles/view/monitor/equipmentMaintain.scss
0 → 100644
View file @
4ad96e5e
This diff is collapsed.
Click to expand it.
src/view/monitor/equipmentMaintain/EquipmentMaintainLeft.js
0 → 100644
View file @
4ad96e5e
This diff is collapsed.
Click to expand it.
src/view/monitor/equipmentMaintain/EquipmentMaintainRight.js
0 → 100644
View file @
4ad96e5e
This diff is collapsed.
Click to expand it.
src/view/monitor/equipmentMaintain/index.js
0 → 100644
View file @
4ad96e5e
import
React
,
{
Component
}
from
'react'
;
import
EquipmentMaintainLeft
from
'./EquipmentMaintainLeft'
;
import
EquipmentMaintainRight
from
'./EquipmentMaintainRight'
;
/**
* 器材保养模块
*/
export
default
class
EquipmentMaintainTrain
extends
Component
{
render
()
{
return
(
<
div
className
=
"equipmentMaintain-safety"
>
<
div
className
=
"equipmentMaintain-safty-content"
>
<
div
className
=
"equipmentMaintain-top"
><
/div
>
<
div
className
=
"equipmentMaintain-bottom"
>
<
EquipmentMaintainLeft
/>
<
EquipmentMaintainRight
/>
<
/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