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
5d30068f
Commit
5d30068f
authored
May 26, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安全巡检模块
parent
4ad96e5e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
181 additions
and
4 deletions
+181
-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
safetyInspection.scss
src/styles/view/monitor/safetyInspection.scss
+145
-0
SafetyInspectionLeft.js
src/view/monitor/safetyInspection/SafetyInspectionLeft.js
+0
-0
index.js
src/view/monitor/safetyInspection/index.js
+23
-0
No files found.
src/routes/asyncView.js
View file @
5d30068f
...
@@ -12,6 +12,7 @@ const AsyncRootBizView = props => <AsyncLoader load={import('./../view/biz/index
...
@@ -12,6 +12,7 @@ const AsyncRootBizView = props => <AsyncLoader load={import('./../view/biz/index
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
AsyncEquipmentMaintain
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/monitor/equipmentMaintain/index'
)}
componentProps
=
{
props
}
/>
;
const
AsyncSafetyInspection
=
props
=>
<
AsyncLoader
load
=
{
import
(
'../view/monitor/safetyInspection/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} />;
...
@@ -23,14 +24,16 @@ const Routes = {
...
@@ -23,14 +24,16 @@ const Routes = {
bills
:
AsyncBills
,
bills
:
AsyncBills
,
safetyTraining
:
AsyncSafetyTraining
,
safetyTraining
:
AsyncSafetyTraining
,
dailyTrain
:
AsyncDaliyTraining
,
dailyTrain
:
AsyncDaliyTraining
,
equipmentMaintain
:
AsyncEquipmentMaintain
equipmentMaintain
:
AsyncEquipmentMaintain
,
safetyInspection
:
AsyncSafetyInspection
};
};
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
:
[]
}
{
path
:
'equipmentMaintain'
,
group
:
'biz'
,
component
:
AsyncEquipmentMaintain
,
childRoutes
:
[]
},
{
path
:
'safetyInspection'
,
group
:
'biz'
,
component
:
AsyncSafetyInspection
,
childRoutes
:
[]
}
];
];
const
pageCompontent
=
key
=>
{
const
pageCompontent
=
key
=>
{
return
Routes
[
key
]
||
AsyncEmptyPage
;
return
Routes
[
key
]
||
AsyncEmptyPage
;
...
...
src/routes/view.js
View file @
5d30068f
...
@@ -9,6 +9,7 @@ import EmptyPage from './../view/common/emptyPage/EmptyPage';
...
@@ -9,6 +9,7 @@ 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'
;
import
EquipmentMaintain
from
'./../view/monitor/equipmentMaintain/index'
;
import
SafetyInspection
from
'./../view/monitor/safetyInspection/index'
;
const
Routes
=
{
const
Routes
=
{
main
:
RootView
,
main
:
RootView
,
...
@@ -18,14 +19,16 @@ const Routes = {
...
@@ -18,14 +19,16 @@ const Routes = {
bills
:
Bills
,
bills
:
Bills
,
safetyTraining
:
SafetyTraining
,
safetyTraining
:
SafetyTraining
,
dailyTrain
:
DaliyTraining
,
dailyTrain
:
DaliyTraining
,
equipmentMaintain
:
EquipmentMaintain
equipmentMaintain
:
EquipmentMaintain
,
safetyInspection
:
SafetyInspection
};
};
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
:
[]
}
{
path
:
'equipmentMaintain'
,
group
:
'biz'
,
component
:
EquipmentMaintain
,
childRoutes
:
[]
},
{
path
:
'safetyInspection'
,
group
:
'biz'
,
component
:
SafetyInspection
,
childRoutes
:
[]
}
];
];
const
pageCompontent
=
key
=>
{
const
pageCompontent
=
key
=>
{
return
Routes
[
key
]
||
EmptyPage
;
return
Routes
[
key
]
||
EmptyPage
;
...
...
src/styles/view/index.scss
View file @
5d30068f
...
@@ -17,4 +17,7 @@
...
@@ -17,4 +17,7 @@
@import
'./monitor/dailyTrain.scss'
;
@import
'./monitor/dailyTrain.scss'
;
//器材保养equipmentMaintain
//器材保养equipmentMaintain
@import
'./monitor/equipmentMaintain.scss'
;
@import
'./monitor/equipmentMaintain.scss'
;
//安全巡检 safetyInspection
@import
'./monitor/safetyInspection.scss'
;
src/styles/view/monitor/safetyInspection.scss
0 → 100644
View file @
5d30068f
.safetyInspection-safety
{
position
:
absolute
;
height
:
100%
;
width
:
100%
;
background-image
:
url('/src/assets/safetyManage/bjt.png')
;
background-repeat
:
no-repeat
;
.safetyInspection-safty-content
{
height
:
100%
;
.safetyInspection-top
{
height
:
2%
;
width
:
100%
;
}
.safetyInspection-bottom
{
height
:
93%
;
width
:
100%
;
position
:
relative
;
.safetyInspection-bottom-left
{
height
:
98%
;
width
:
94%
;
position
:
absolute
;
left
:
2
.6%
;
border
:
2px
solid
rgba
(
0
,
185
,
255
,
0
.3
);
.safetyInspection-bottom-left-content
{
height
:
100%
;
.one-div
{
height
:
9%
;
// border:2px solid blue;
width
:
100%
;
display
:
flex
;
background
:
#222b51
!
important
;
.search-one
{
height
:
100%
;
width
:
30%
;
position
:
relative
;
text-align
:
center
;
/* vertical-align: middle; */
top
:
29%
;
left
:
41%
;
.search-one-input
{
width
:
59%
;
.ant-input-affix-wrapper
.ant-input-suffix
{
position
:
absolute
;
padding-right
:
24px
;
top
:
50%
;
transform
:
translateY
(
-50%
);
line-height
:
0
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
}
.ant-input-affix-wrapper
{
padding
:
0
;
margin
:
0
;
font-family
:
"Helvetica Neue For Number"
,
-
apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"Microsoft YaHei"
,
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
12px
;
font-variant
:
tabular-nums
;
line-height
:
1
.5
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
list-style
:
none
;
box-sizing
:
border-box
;
position
:
relative
;
display
:
inline-block
;
width
:
50
;
padding-left
:
24px
;
padding-right
:
24px
;
}
.ant-input-search
{
.anticon-search
{
&
:
:
before
{
position
:
relative
;
display
:
inline-block
;
background
:
url('/src/assets/safetyManage/sousuo.png')
no-repeat
;
width
:
20px
;
height
:
20px
;
background-size
:
100%
100%
;
top
:
0px
;
content
:
''
!
important
;
}
}
}
.ant-input
{
// width: 10.7rem;
height
:
30px
;
// position: relative;
font-size
:
10px
;
font-family
:
Microsoft
YaHei
;
font-weight
:bold
;
// line-height:50px;
color
:rgba
(
225
,
231
,
232
,
1
)
;
-webkit-text-stroke
:
1
rgba
(
0
,
0
,
0
,
0
.00
);
text-stroke
:
1
rgba
(
0
,
0
,
0
,
0
.00
);
opacity
:
1
;
background
:
rgba
(
0
,
185
,
255
,
0
.3
)
!
important
;
border-radius
:
17px
;
left
:
34%
;
.anticon
:before
{
margin-top
:
1px
;
}
border-color
:rgba
(
0
,
185
,
255
,
0
.3
)
}
}
}
}
.two-div
{
height
:
91%
;
// border:2px solid green;
}
}
}
}
}
}
\ No newline at end of file
src/view/monitor/safetyInspection/SafetyInspectionLeft.js
0 → 100644
View file @
5d30068f
This diff is collapsed.
Click to expand it.
src/view/monitor/safetyInspection/index.js
0 → 100644
View file @
5d30068f
import
React
,
{
Component
}
from
'react'
;
import
SafetyInspectionLeft
from
'./SafetyInspectionLeft'
;
/**
* 安全巡检模块
*/
export
default
class
SafetyInspection
extends
Component
{
render
()
{
return
(
<
div
className
=
"safetyInspection-safety"
>
<
div
className
=
"safetyInspection-safty-content"
>
<
div
className
=
"safetyInspection-top"
><
/div
>
<
div
className
=
"safetyInspection-bottom"
>
<
SafetyInspectionLeft
/>
<
/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