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
6a7e1c61
Commit
6a7e1c61
authored
May 27, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改样式
parent
6919fabc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
35 deletions
+45
-35
statistical.scss
...ts/3dviewConvertor/styles/view/panoramic/statistical.scss
+25
-20
ModelContent.js
...dviewConvertor/view/panoramic/statistical/ModelContent.js
+16
-12
SafetyExecuteList.js
...Convertor/view/panoramic/statistical/SafetyExecuteList.js
+2
-1
SafetyIndex.js
...3dviewConvertor/view/panoramic/statistical/SafetyIndex.js
+1
-1
conf.js
...onents/3dviewConvertor/view/panoramic/statistical/conf.js
+1
-1
No files found.
mods/components/3dviewConvertor/styles/view/panoramic/statistical.scss
View file @
6a7e1c61
...
@@ -121,7 +121,6 @@
...
@@ -121,7 +121,6 @@
width
:
90%
;
width
:
90%
;
span
{
span
{
position
:
absolute
;
margin-top
:
3px
;
margin-top
:
3px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
rgba
(
255
,
255
,
255
,
1
);
color
:
rgba
(
255
,
255
,
255
,
1
);
...
@@ -487,48 +486,54 @@
...
@@ -487,48 +486,54 @@
display
:
flex
;
display
:
flex
;
height
:
calc
(
100%
-
50px
);
height
:
calc
(
100%
-
50px
);
.model-line
{
.model-line
{
float
:
left
;
display
:
inline
;
width
:
32%
;
height
:
88%
;
height
:
88%
;
text-align
:
center
;
padding-left
:
35px
;
margin-top
:
5px
;
margin-top
:
5px
;
margin-left
:
10px
;
text-align
:
center
;
overflow
:
auto
;
flex
:
1
;
&
-img
{
height
:
30px
;
}
.model-title
{
.model-title
{
height
:
30px
;
height
:
30px
;
font-size
:
16px
;
font-size
:
16px
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
padding-top
:
10px
;
}
}
.model-content
{
.content-div
{
.model-content
{
height
:
calc
(
100%
-
60px
);
padding-left
:
10px
;
overflow
:
auto
;
.content-div
{
min-width
:
80px
;
min-width
:
80px
;
min-height
:
120px
;
min-height
:
120px
;
text-align
:
left
;
padding-top
:
20px
;
padding-top
:
20px
;
text-align
:
left
;
.title
{
.title
{
height
:
30px
;
height
:
30px
;
font-size
:
16px
;
font-size
:
16px
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
}
}
.next-title
{
.next-title
{
padding-left
:
5px
;
padding-left
:
5px
;
}
}
.rows
{
.rows
{
padding-left
:
15px
;
padding-left
:
15px
;
font-size
:
14px
;
font-size
:
14px
;
color
:rgba
(
255
,
255
,
255
,
1
)
;
color
:rgba
(
255
,
255
,
255
,
1
)
;
.row
{
.row
{
display
:
inline-block
;
display
:
inline-block
;
height
:
28px
;
height
:
28px
;
}
}
.date
{
.date
{
padding-left
:
25px
;
padding-left
:
25px
;
}
}
}
}
...
...
mods/components/3dviewConvertor/view/panoramic/statistical/ModelContent.js
View file @
6a7e1c61
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
{
safetyIndexDetailAction
}
from
'./../../../services/panoramicService'
;
import
{
safetyIndexDetailAction
}
from
'./../../../services/panoramicService'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
const
format
=
'YYYY-MM-dd'
;
export
default
class
ModelContent
extends
Component
{
export
default
class
ModelContent
extends
Component
{
...
@@ -14,18 +14,10 @@ export default class ModelContent extends Component {
...
@@ -14,18 +14,10 @@ export default class ModelContent extends Component {
}
}
componentDidMount
(){
componentDidMount
(){
le
t
{
type
}
=
this
.
props
;
cons
t
{
type
}
=
this
.
props
;
this
.
safetyIndexDetail
(
type
);
this
.
safetyIndexDetail
(
type
);
}
}
safetyIndexDetail
=
(
type
)
=>
{
safetyIndexDetailAction
(
type
).
then
(
data
=>
{
this
.
setState
({
alarmData
:
data
});
});
}
/**
/**
* 获取标题
* 获取标题
*
*
...
@@ -41,6 +33,14 @@ export default class ModelContent extends Component {
...
@@ -41,6 +33,14 @@ export default class ModelContent extends Component {
return
titleParams
[
v
];
return
titleParams
[
v
];
}
}
safetyIndexDetail
=
(
type
)
=>
{
safetyIndexDetailAction
(
type
).
then
(
data
=>
{
this
.
setState
({
alarmData
:
data
});
});
}
formatData
=
(
str
)
=>
{
formatData
=
(
str
)
=>
{
let
date
=
str
.
split
(
' '
)[
0
];
let
date
=
str
.
split
(
' '
)[
0
];
return
date
;
return
date
;
...
@@ -63,12 +63,12 @@ export default class ModelContent extends Component {
...
@@ -63,12 +63,12 @@ export default class ModelContent extends Component {
render
()
{
render
()
{
let
{
alarmData
}
=
this
.
state
;
let
{
alarmData
}
=
this
.
state
;
le
t
{
type
}
=
this
.
props
;
cons
t
{
type
}
=
this
.
props
;
return
(
return
(
<
div
className
=
'model-content'
>
<
div
className
=
'model-content'
>
{(
alarmData
||
[]).
map
(
item
=>
{
{(
alarmData
||
[]).
map
(
item
=>
{
return
(
return
(
<
div
className
=
'content-div'
>
<
div
key
=
{
item
.
typeCode
}
className
=
'content-div'
>
<
div
className
=
'title'
>
<
div
className
=
'title'
>
<
span
>|<
/span
>
<
span
>|<
/span
>
<
span
className
=
'next-title'
>
{
type
===
'risk'
?
this
.
getTitle
(
item
.
typeCode
)
:
item
.
typeName
}
<
/span
>
<
span
className
=
'next-title'
>
{
type
===
'risk'
?
this
.
getTitle
(
item
.
typeCode
)
:
item
.
typeName
}
<
/span
>
...
@@ -81,3 +81,7 @@ export default class ModelContent extends Component {
...
@@ -81,3 +81,7 @@ export default class ModelContent extends Component {
);
);
}
}
}
}
ModelContent
.
propTypes
=
{
type
:
PropTypes
.
string
};
mods/components/3dviewConvertor/view/panoramic/statistical/SafetyExecuteList.js
View file @
6a7e1c61
...
@@ -81,7 +81,8 @@ export default class SafetyExecuteList extends Component {
...
@@ -81,7 +81,8 @@ export default class SafetyExecuteList extends Component {
datas
.
map
((
item
,
index
)
=>
{
datas
.
map
((
item
,
index
)
=>
{
return
(
return
(
<
div
key
=
{
item
.
id
}
className
=
"title-child"
>
<
div
key
=
{
item
.
id
}
className
=
"title-child"
>
<
span
className
=
"title-text"
>
{
item
.
label
}
<
/span
>
<
span
className
=
"title-text"
>
{
item
.
label
}
<
/span>  
;
<
span
className
=
"title-text"
>
{
item
.
changeDate
}
<
/span
>
<
/div
>
<
/div
>
);
);
})
})
...
...
mods/components/3dviewConvertor/view/panoramic/statistical/SafetyIndex.js
View file @
6a7e1c61
...
@@ -109,7 +109,7 @@ export default class SafetyIndex extends Component {
...
@@ -109,7 +109,7 @@ export default class SafetyIndex extends Component {
{
warnController
.
map
(
item
=>
{
{
warnController
.
map
(
item
=>
{
return
(
return
(
<
div
key
=
{
item
.
key
}
className
=
'model-line'
>
<
div
key
=
{
item
.
key
}
className
=
'model-line'
>
<
div
>
<
div
className
=
'model-line-img'
>
<
img
src
=
{
getIcon
(
item
.
icon
)}
alt
=
''
/>
<
img
src
=
{
getIcon
(
item
.
icon
)}
alt
=
''
/>
<
/div
>
<
/div
>
<
div
className
=
'model-title'
>
{
item
.
label
}
<
/div
>
<
div
className
=
'model-title'
>
{
item
.
label
}
<
/div
>
...
...
mods/components/3dviewConvertor/view/panoramic/statistical/conf.js
View file @
6a7e1c61
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* 告警控制
* 告警控制
*/
*/
export
const
warnController
=
[
export
const
warnController
=
[
{
key
:
'
fire'
,
icon
:
'model_fire'
,
type
:
'fire
'
,
label
:
'故障告警'
},
{
key
:
'
equip'
,
icon
:
'model_fire'
,
type
:
'equip
'
,
label
:
'故障告警'
},
{
key
:
'risk'
,
icon
:
'model_risk'
,
type
:
'risk'
,
label
:
'风险异常'
},
{
key
:
'risk'
,
icon
:
'model_risk'
,
type
:
'risk'
,
label
:
'风险异常'
},
{
key
:
'check'
,
icon
:
'model_patrol'
,
type
:
'check'
,
label
:
'巡检异常'
}
{
key
:
'check'
,
icon
:
'model_patrol'
,
type
:
'check'
,
label
:
'巡检异常'
}
];
];
...
...
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