Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
muChangApp
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
WitCloud
muChangApp
Commits
9f30fd1e
Commit
9f30fd1e
authored
Nov 20, 2019
by
yating.lin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
牛舍首页,详情页整理layout修改基本完毕
parent
b2a21057
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
89 additions
and
24 deletions
+89
-24
kanban-double.component.html
...app/components/kanban-double/kanban-double.component.html
+3
-3
kanban-double.component.scss
...app/components/kanban-double/kanban-double.component.scss
+1
-1
env-detail.page.html
src/app/envCtrl/env-detail/env-detail.page.html
+3
-3
env-detail.page.ts
src/app/envCtrl/env-detail/env-detail.page.ts
+29
-4
env-fan.page.html
src/app/envCtrl/env-fan/env-fan.page.html
+1
-1
env-home.page.html
src/app/envCtrl/env-home/env-home.page.html
+4
-4
env-home.page.scss
src/app/envCtrl/env-home/env-home.page.scss
+6
-2
env-home.page.ts
src/app/envCtrl/env-home/env-home.page.ts
+22
-2
env-light.page.html
src/app/envCtrl/env-light/env-light.page.html
+1
-1
env-shower.page.html
src/app/envCtrl/env-shower/env-shower.page.html
+2
-2
env-shower.page.ts
src/app/envCtrl/env-shower/env-shower.page.ts
+9
-1
global.scss
src/global.scss
+8
-0
No files found.
src/app/components/kanban-double/kanban-double.component.html
View file @
9f30fd1e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<!--<ion-icon name="ios-heart" style="padding: auto"></ion-icon>-->
<!--<ion-icon name="ios-heart" style="padding: auto"></ion-icon>-->
<ion-row>
<ion-row>
<ion-col
style=
"padding: 0px 0px 0px 10px;"
>
<ion-col
style=
"padding: 0px 0px 0px 10px;"
>
<img
[
src
]="
iconImg1
"
[
ngStyle
]="{'
width
'
:
iconWidth
,
'
margin-left
'
:
'
5px
'}"
>
<img
[
src
]="
iconImg1
"
[
ngStyle
]="{'
width
'
:
iconWidth
,
'
margin-left
'
:
'
5px
'
,
'
height
'
:
'
auto
'
}"
>
</ion-col>
</ion-col>
<ion-col
style=
"padding-left: 0px;"
>
<ion-col
style=
"padding-left: 0px;"
>
<div
style=
"padding-left: 5px;"
>
<div
style=
"padding-left: 5px;"
>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<span
style=
"border-right: 1px solid #E0E0E0; font-size:30px;vertical-align: center"
></span>
<span
style=
"border-right: 1px solid #E0E0E0; font-size:30px;vertical-align: center"
></span>
</ion-col>
</ion-col>
<ion-col
style=
"padding: 0px 0px 0px 10px;"
>
<ion-col
style=
"padding: 0px 0px 0px 10px;"
>
<img
[
src
]="
iconImg2
"
[
ngStyle
]="{'
width
'
:
iconWidth
}"
>
<img
[
src
]="
iconImg2
"
[
ngStyle
]="{'
width
'
:
iconWidth
,
'
height
'
:
'
auto
'
}"
>
</ion-col>
</ion-col>
<ion-col
style=
"padding-left: 0px;"
>
<ion-col
style=
"padding-left: 0px;"
>
<div>
<div>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<span
style=
"border-right: 1px solid #E0E0E0; font-size:30px;vertical-align: center"
></span>
<span
style=
"border-right: 1px solid #E0E0E0; font-size:30px;vertical-align: center"
></span>
</ion-col>
</ion-col>
<ion-col
style=
"padding: 0px 0px 0px 10px;"
>
<ion-col
style=
"padding: 0px 0px 0px 10px;"
>
<img
[
src
]="
iconImg3
"
style=
"width: 90% !important; height:
90%
; padding-top: 3px;"
>
<img
[
src
]="
iconImg3
"
style=
"width: 90% !important; height:
auto
; padding-top: 3px;"
>
</ion-col>
</ion-col>
<ion-col
style=
"padding-left: 0px;"
>
<ion-col
style=
"padding-left: 0px;"
>
<div
style=
"padding-left: 5px;"
>
<div
style=
"padding-left: 5px;"
>
...
...
src/app/components/kanban-double/kanban-double.component.scss
View file @
9f30fd1e
.kanban
{
.kanban
{
width
:
99%
;
width
:
99%
;
height
:
100
px
;
height
:
95
px
;
align-items
:center
;
align-items
:center
;
justify-content
:
justify-content
:
center
;
text-align
:
center
;
center
;
text-align
:
center
;
...
...
src/app/envCtrl/env-detail/env-detail.page.html
View file @
9f30fd1e
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
<span
*
ngIf=
"item.ts"
class=
"right font-ts"
>
{{item.ts | date: 'yyyy-MM-dd HH:mm'}}
</span>
<span
*
ngIf=
"item.ts"
class=
"right font-ts"
>
{{item.ts | date: 'yyyy-MM-dd HH:mm'}}
</span>
</div>
</div>
<div
style=
"background-color: #F0F0F0;"
align=
"center"
>
<div
style=
"background-color: #F0F0F0;"
align=
"center"
>
<v-kanban-small
class=
"home-bar"
name=
"温度"
[
inData
]="
item
.
temp
"
iconWidth=
"50%"
unit=
"℃"
[
iconImg
]="'../../
assets
/
img
/
icon-temp
.
png
'"
iconColor=
"#61C7CC
"
fontSize=
"14px"
></v-kanban-small>
<v-kanban-small
class=
"home-bar"
name=
"温度"
[
inData
]="
item
.
temp
"
iconWidth=
"50%"
unit=
"℃"
[
iconImg
]="'../../
assets
/
img
/
icon-temp
.
png
'"
[
fontColor
]="
item
.
tempColor
"
fontSize=
"14px"
></v-kanban-small>
<v-kanban-small
class=
"home-bar"
name=
"湿度"
[
inData
]="
item
.
humi
"
iconWidth=
"50%"
unit=
"% rH"
[
iconImg
]="'../../
assets
/
img
/
icon-humi
.
png
'"
iconColor=
"#61C7CC
"
fontSize=
"14px"
></v-kanban-small>
<v-kanban-small
class=
"home-bar"
name=
"湿度"
[
inData
]="
item
.
humi
"
iconWidth=
"50%"
unit=
"% rH"
[
iconImg
]="'../../
assets
/
img
/
icon-humi
.
png
'"
[
fontColor
]="
item
.
humiColor
"
fontSize=
"14px"
></v-kanban-small>
<v-kanban-small
class=
"home-bar"
name=
"热应激"
[
inData
]="
item
.
heatStressLevelName
"
iconWidth=
"35%"
[
iconImg
]="'../../
assets
/
img
/
icon-heat
.
png
'"
[
icon
Color
]="
item
.
heatStressColor
"
fontSize=
"14px"
></v-kanban-small>
<v-kanban-small
class=
"home-bar"
name=
"热应激"
[
inData
]="
item
.
heatStressLevelName
"
iconWidth=
"35%"
[
iconImg
]="'../../
assets
/
img
/
icon-heat
.
png
'"
[
font
Color
]="
item
.
heatStressColor
"
fontSize=
"14px"
></v-kanban-small>
<v-kanban-small
class=
"home-bar"
name=
"在离舍"
[
inData
]="
inHouseName
"
iconWidth=
"35%"
[
iconImg
]="'../../
assets
/
img
/
icon-house
.
png
'"
iconColor=
"#61C7CC"
fontSize=
"14px"
></v-kanban-small>
<v-kanban-small
class=
"home-bar"
name=
"在离舍"
[
inData
]="
inHouseName
"
iconWidth=
"35%"
[
iconImg
]="'../../
assets
/
img
/
icon-house
.
png
'"
iconColor=
"#61C7CC"
fontSize=
"14px"
></v-kanban-small>
</div>
</div>
<div
class=
"inHouseDiv font-content-title"
>
<div
class=
"inHouseDiv font-content-title"
>
...
...
src/app/envCtrl/env-detail/env-detail.page.ts
View file @
9f30fd1e
...
@@ -24,15 +24,17 @@ export class EnvDetailPage implements OnInit {
...
@@ -24,15 +24,17 @@ export class EnvDetailPage implements OnInit {
});
});
}
}
item
=
{
item
:
any
=
{
factoryNo
:
''
,
factoryNo
:
''
,
factoryName
:
''
,
factoryName
:
''
,
fieldRegionNo
:
''
,
fieldRegionNo
:
''
,
fieldRegionName
:
''
,
fieldRegionName
:
''
,
temp
:
0
,
temp
:
0
,
humi
:
0
,
humi
:
0
,
// tempColor: '#61C7CC',
// humiColor: '#61C7CC',
heatStressLevel
:
0
,
heatStressLevel
:
0
,
heatStressColor
:
'#61C7CC'
,
//
heatStressColor: '#61C7CC',
heatStressLevelName
:
'无'
,
heatStressLevelName
:
'无'
,
online
:
0
,
online
:
0
,
operationModel
:
1
,
operationModel
:
1
,
...
@@ -91,18 +93,19 @@ export class EnvDetailPage implements OnInit {
...
@@ -91,18 +93,19 @@ export class EnvDetailPage implements OnInit {
}
}
this
.
api
.
cowshedApp
.
getRealDataByFieldRegionNo
([{
fieldRegionNo
:
this
.
fieldRegionNo
},
(
data
)
=>
{
this
.
api
.
cowshedApp
.
getRealDataByFieldRegionNo
([{
fieldRegionNo
:
this
.
fieldRegionNo
},
(
data
)
=>
{
if
(
data
)
{
if
(
data
)
{
const
environmentConfigJson
=
JSON
.
parse
(
data
.
environmentConfigJson
.
toString
());
this
.
item
=
data
;
this
.
item
=
data
;
this
.
item
.
heatStressLevelName
=
this
.
getHeatStressLevelName
(
data
.
heatStressLevel
);
this
.
item
.
heatStressLevelName
=
this
.
getHeatStressLevelName
(
data
.
heatStressLevel
);
this
.
item
.
inHouse
.
inHouseName
=
this
.
getInHouseState
(
data
.
inHouse
.
inHouse
);
this
.
item
.
inHouse
.
inHouseName
=
this
.
getInHouseState
(
data
.
inHouse
.
inHouse
);
this
.
item
.
inHouse
.
inHouseState
=
data
.
inHouse
.
inHouse
===
1
?
true
:
false
;
this
.
item
.
inHouse
.
inHouseState
=
data
.
inHouse
.
inHouse
===
1
?
true
:
false
;
this
.
inHouseName
=
this
.
getInHouseState
(
data
.
inHouse
.
inHouse
);
this
.
inHouseName
=
this
.
getInHouseState
(
data
.
inHouse
.
inHouse
);
this
.
inHouseState
=
data
.
inHouse
.
inHouse
===
1
?
true
:
false
;
this
.
inHouseState
=
data
.
inHouse
.
inHouse
===
1
?
true
:
false
;
this
.
initLayout
();
this
.
initLayout
(
environmentConfigJson
);
}
}
}]);
}]);
}
}
initLayout
()
{
initLayout
(
environmentConfigJson
)
{
// this.showerLink = '/env-detail/shower/' + this.fieldRegionNo;
// this.showerLink = '/env-detail/shower/' + this.fieldRegionNo;
// this.lightLink = '/env-detail/light/' + this.fieldRegionNo;
// this.lightLink = '/env-detail/light/' + this.fieldRegionNo;
// this.waterchannelLink = '/env-detail/waterchannel/' + this.fieldRegionNo;
// this.waterchannelLink = '/env-detail/waterchannel/' + this.fieldRegionNo;
...
@@ -116,9 +119,31 @@ export class EnvDetailPage implements OnInit {
...
@@ -116,9 +119,31 @@ export class EnvDetailPage implements OnInit {
this
.
item
.
heatStressLevel
===
1
?
'#61C7CC'
:
this
.
item
.
heatStressLevel
===
1
?
'#61C7CC'
:
this
.
item
.
heatStressLevel
===
2
?
'#F8B72D'
:
this
.
item
.
heatStressLevel
===
2
?
'#F8B72D'
:
this
.
item
.
heatStressLevel
===
3
?
'#F2401C'
:
'#F2401C'
;
this
.
item
.
heatStressLevel
===
3
?
'#F2401C'
:
'#F2401C'
;
this
.
item
.
tempColor
=
this
.
getColor
(
this
.
item
.
temp
,
environmentConfigJson
.
TU
,
environmentConfigJson
.
TL
);
this
.
item
.
humiColor
=
this
.
getColor
(
this
.
item
.
humi
,
environmentConfigJson
.
HU
,
environmentConfigJson
.
HL
);
}
}
}
}
getColor
(
value
,
maxValue
,
minValue
?)
{
if
(
value
!==
undefined
&&
value
!==
null
&&
value
!==
''
&&
maxValue
!==
undefined
&&
maxValue
!==
null
&&
maxValue
!==
''
)
{
if
(
value
>
maxValue
)
{
return
'#F2401C'
;
}
else
{
if
(
minValue
!==
undefined
&&
minValue
!==
null
)
{
if
(
value
<
minValue
)
{
return
'#F2401C'
;
}
else
{
return
'#61C7CC'
;
}
}
}
}
return
'#61C7CC'
;
}
getHeatStressLevelName
(
level
)
{
getHeatStressLevelName
(
level
)
{
let
levelName
=
''
;
let
levelName
=
''
;
switch
(
level
)
{
switch
(
level
)
{
...
...
src/app/envCtrl/env-fan/env-fan.page.html
View file @
9f30fd1e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<ion-content
color=
"light"
style=
"height: 100%;"
>
<ion-content
color=
"light"
style=
"height: 100%;"
>
<div
class=
"env-detail-content"
>
<div
class=
"env-detail-content"
>
<h1
class=
"main-title-detail"
>
模式状态
</h1>
<h1
class=
"main-title-detail"
>
模式状态
</h1>
<ion-item
lines=
"none"
style=
"width: 98%;"
>
<ion-item
lines=
"none"
style=
"width: 98%;"
class=
"item-height"
>
<ion-grid>
<ion-grid>
<ion-row>
<ion-row>
<ion-col>
<ion-col>
...
...
src/app/envCtrl/env-home/env-home.page.html
View file @
9f30fd1e
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
[
iconImg2
]="'../../
assets
/
img
/
level-bad
.
png
'"
[
iconImg2
]="'../../
assets
/
img
/
level-bad
.
png
'"
[
iconImg3
]="'../../
assets
/
img
/
alarm
.
png
'"
[
iconImg3
]="'../../
assets
/
img
/
alarm
.
png
'"
iconColor1=
"#61C7CC"
iconColor2=
"#F8B72D"
iconColor3=
"#F2401C"
iconColor1=
"#61C7CC"
iconColor2=
"#F8B72D"
iconColor3=
"#F2401C"
fontSize=
"3
5
px"
></v-kanban-double>
fontSize=
"3
0
px"
></v-kanban-double>
<!--<v-kanban-large class="home-bar" name="热应激" [inData]="thiBad" [iconImg]="'../../assets/img/level-bad.png'" iconColor="#FAB139" fontSize="25px" iconWidth="45px !important"></v-kanban-large>-->
<!--<v-kanban-large class="home-bar" name="热应激" [inData]="thiBad" [iconImg]="'../../assets/img/level-bad.png'" iconColor="#FAB139" fontSize="25px" iconWidth="45px !important"></v-kanban-large>-->
<!--<v-kanban-large class="kanban-large" name="故障总数" [inData]="alarmTotal" [iconImg]="'../../assets/img/alarm.png'" iconColor="#F2401C" fontSize="25px" iconWidth="45px !important"></v-kanban-large>-->
<!--<v-kanban-large class="kanban-large" name="故障总数" [inData]="alarmTotal" [iconImg]="'../../assets/img/alarm.png'" iconColor="#F2401C" fontSize="25px" iconWidth="45px !important"></v-kanban-large>-->
</div>
</div>
...
@@ -50,11 +50,11 @@
...
@@ -50,11 +50,11 @@
</div>
</div>
<div
class=
"content font-content"
>
<div
class=
"content font-content"
>
<div
class=
"detailInfo"
style=
"width: 40%"
>
热应激:
<span
class=
"warmColor{{item.heatStressLevel}}"
>
{{item.heatStressLevelName}}
</span></div>
<div
class=
"detailInfo"
style=
"width: 40%"
>
热应激:
<span
class=
"warmColor{{item.heatStressLevel}}"
>
{{item.heatStressLevelName}}
</span></div>
<div
*
ngIf=
"item.NH3 !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
氨气:
{{item.NH3 | number:'0.0-2'}}ppm
</div>
<div
*
ngIf=
"item.NH3 !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
氨气:
<span
class=
"{{item.NH3Color}}Color"
>
{{item.NH3 | number:'0.0-2'}}ppm
</span>
</div>
<div
*
ngIf=
"item.NH3 === '--'"
class=
"detailInfo"
style=
"width: 40%"
>
氨气:
{{'--'}}ppm
</div>
<div
*
ngIf=
"item.NH3 === '--'"
class=
"detailInfo"
style=
"width: 40%"
>
氨气:
{{'--'}}ppm
</div>
<div
*
ngIf=
"item.temp !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
温度:
{{item.temp | number:'0.1-1'}}℃
</div>
<div
*
ngIf=
"item.temp !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
温度:
<span
class=
"{{item.NH3Color}}Color"
>
{{item.temp | number:'0.1-1'}}℃
</span>
</div>
<div
*
ngIf=
"item.temp === '--'"
class=
"detailInfo"
style=
"width: 40%"
>
温度:
{{'--'}}℃
</div>
<div
*
ngIf=
"item.temp === '--'"
class=
"detailInfo"
style=
"width: 40%"
>
温度:
{{'--'}}℃
</div>
<div
*
ngIf=
"item.humi !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
湿度:
{{item.humi | number:'0.0-0'}}% rH
</div>
<div
*
ngIf=
"item.humi !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
湿度:
<span
class=
"{{item.NH3Color}}Color"
>
{{item.humi | number:'0.0-0'}}% rH
</span>
</div>
<div
*
ngIf=
"item.humi === '--'"
class=
"detailInfo"
style=
"width: 40%"
>
湿度:
{{'--'}}% rH
</div>
<div
*
ngIf=
"item.humi === '--'"
class=
"detailInfo"
style=
"width: 40%"
>
湿度:
{{'--'}}% rH
</div>
</div>
</div>
<div
class=
"bottom"
>
<div
class=
"bottom"
>
...
...
src/app/envCtrl/env-home/env-home.page.scss
View file @
9f30fd1e
...
@@ -99,11 +99,15 @@
...
@@ -99,11 +99,15 @@
padding-left
:
5px
;
padding-left
:
5px
;
}
}
.warmColor0
,
.warmColor1
{
}
.warmColor2
{
.warmColor2
{
color
:
#F
AB139
;
color
:
#F
8B72D
;
}
}
.warmColor3
,
.warmColor4
{
.warmColor3
,
.warmColor4
{
color
:
#
B22222
;
color
:
#
F2401C
;
}
}
.kanban-double
{
.kanban-double
{
...
...
src/app/envCtrl/env-home/env-home.page.ts
View file @
9f30fd1e
...
@@ -98,7 +98,7 @@ export class EnvHomePage implements OnInit {
...
@@ -98,7 +98,7 @@ export class EnvHomePage implements OnInit {
this
.
isError
=
false
;
this
.
isError
=
false
;
this
.
items
=
[];
this
.
items
=
[];
data
.
resultIndexDataListForAppVos
.
map
((
value
,
index
)
=>
{
data
.
resultIndexDataListForAppVos
.
map
((
value
,
index
)
=>
{
const
environmentConfigJson
=
value
.
environmentConfigJson
;
const
environmentConfigJson
=
JSON
.
parse
(
value
.
environmentConfigJson
.
toString
())
;
const
itemInfo
=
{
const
itemInfo
=
{
factoryNo
:
value
.
factoryNo
,
factoryNo
:
value
.
factoryNo
,
factoryName
:
value
.
factoryName
,
factoryName
:
value
.
factoryName
,
...
@@ -107,6 +107,9 @@ export class EnvHomePage implements OnInit {
...
@@ -107,6 +107,9 @@ export class EnvHomePage implements OnInit {
temp
:
this
.
getParam
(
value
.
temp
),
temp
:
this
.
getParam
(
value
.
temp
),
humi
:
this
.
getParam
(
value
.
humi
),
humi
:
this
.
getParam
(
value
.
humi
),
NH3
:
this
.
getParam
(
value
.
NH3
),
NH3
:
this
.
getParam
(
value
.
NH3
),
tempColor
:
this
.
getColor
(
value
.
temp
,
environmentConfigJson
.
TU
,
environmentConfigJson
.
TL
),
humiColor
:
this
.
getColor
(
value
.
humi
,
environmentConfigJson
.
HU
,
environmentConfigJson
.
HL
),
NH3Color
:
this
.
getColor
(
value
.
NH3
,
environmentConfigJson
.
NH3U
),
heatStressLevel
:
value
.
heatStressLevel
,
heatStressLevel
:
value
.
heatStressLevel
,
heatStressLevelName
:
this
.
getHeatStressLevelName
(
value
.
heatStressLevel
),
heatStressLevelName
:
this
.
getHeatStressLevelName
(
value
.
heatStressLevel
),
online
:
value
.
online
,
online
:
value
.
online
,
...
@@ -115,7 +118,6 @@ export class EnvHomePage implements OnInit {
...
@@ -115,7 +118,6 @@ export class EnvHomePage implements OnInit {
alarm
:
value
.
alarm
,
alarm
:
value
.
alarm
,
ts
:
value
.
ts
ts
:
value
.
ts
};
};
this
.
items
.
push
(
itemInfo
);
this
.
items
.
push
(
itemInfo
);
});
});
}
else
{
}
else
{
...
@@ -147,6 +149,24 @@ export class EnvHomePage implements OnInit {
...
@@ -147,6 +149,24 @@ export class EnvHomePage implements OnInit {
return
result
;
return
result
;
}
}
getColor
(
value
,
maxValue
,
minValue
?)
{
if
(
value
!==
undefined
&&
value
!==
null
&&
value
!==
''
&&
maxValue
!==
undefined
&&
maxValue
!==
null
&&
maxValue
!==
''
)
{
if
(
value
>
maxValue
)
{
return
'alarm'
;
}
else
{
if
(
minValue
!==
undefined
&&
minValue
!==
null
)
{
if
(
value
<
minValue
)
{
return
'alarm'
;
}
else
{
return
'normal'
;
}
}
}
}
return
'normal'
;
}
getHeatStressLevelName
(
codeId
)
{
getHeatStressLevelName
(
codeId
)
{
let
levelName
=
''
;
let
levelName
=
''
;
switch
(
codeId
)
{
switch
(
codeId
)
{
...
...
src/app/envCtrl/env-light/env-light.page.html
View file @
9f30fd1e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<ion-content
color=
"light"
style=
"height: 100%;"
>
<ion-content
color=
"light"
style=
"height: 100%;"
>
<div
class=
"env-detail-content"
>
<div
class=
"env-detail-content"
>
<h1
class=
"main-title-detail"
>
模式状态
</h1>
<h1
class=
"main-title-detail"
>
模式状态
</h1>
<ion-item
lines=
"none"
style=
"width: 98%;"
>
<ion-item
lines=
"none"
style=
"width: 98%;"
class=
"item-height"
>
<ion-grid>
<ion-grid>
<ion-row>
<ion-row>
<ion-col>
<ion-col>
...
...
src/app/envCtrl/env-shower/env-shower.page.html
View file @
9f30fd1e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<ion-content
color=
"light"
style=
"height: 100%;"
>
<ion-content
color=
"light"
style=
"height: 100%;"
>
<div
class=
"env-detail-content"
>
<div
class=
"env-detail-content"
>
<h1
class=
"main-title-detail"
>
模式状态
</h1>
<h1
class=
"main-title-detail"
>
模式状态
</h1>
<ion-item
lines=
"none"
style=
"width: 98%;"
>
<ion-item
lines=
"none"
style=
"width: 98%;"
class=
"item-height"
>
<ion-grid>
<ion-grid>
<ion-row>
<ion-row>
<ion-col>
<ion-col>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</ion-item>
</ion-item>
<h1
class=
"main-title-detail"
>
供液泵状态
</h1>
<h1
class=
"main-title-detail"
>
供液泵状态
</h1>
<ion-item
lines=
"none"
class=
"item-content"
>
<ion-item
lines=
"none"
class=
"item-content"
class=
"item-height"
>
<div>
<div>
<!-- 1-异常,0-正常 -->
<!-- 1-异常,0-正常 -->
<img
*
ngIf=
"bump.alarm === 0"
src=
"../../assets/img/model-on.png"
class=
"modelState"
style=
"margin-right: 0px;"
>
<img
*
ngIf=
"bump.alarm === 0"
src=
"../../assets/img/model-on.png"
class=
"modelState"
style=
"margin-right: 0px;"
>
...
...
src/app/envCtrl/env-shower/env-shower.page.ts
View file @
9f30fd1e
...
@@ -122,11 +122,12 @@ export class EnvShowerPage implements OnInit {
...
@@ -122,11 +122,12 @@ export class EnvShowerPage implements OnInit {
this
.
fieldDeviceType
=
data
.
fieldDeviceType
;
this
.
fieldDeviceType
=
data
.
fieldDeviceType
;
this
.
controlModel
=
data
.
controlModel
;
this
.
controlModel
=
data
.
controlModel
;
this
.
bump
=
data
.
bump
;
this
.
bump
=
data
.
bump
;
this
.
bump
.
press
=
this
.
getPress
(
data
.
bump
.
press
);
this
.
controlConfig
=
data
.
controlConfig
;
this
.
controlConfig
=
data
.
controlConfig
;
this
.
param
=
data
.
param
;
this
.
param
=
data
.
param
;
this
.
param
.
forEach
(
device
=>
{
this
.
param
.
forEach
(
device
=>
{
device
.
op
=
device
.
cycle
===
1
?
true
:
false
;
device
.
op
=
device
.
cycle
===
1
?
true
:
false
;
device
.
press
=
device
.
press
<
0
?
0
:
device
.
press
;
device
.
press
=
this
.
getPress
(
device
.
press
)
;
});
});
if
(
this
.
param
[
0
])
{
if
(
this
.
param
[
0
])
{
...
@@ -141,6 +142,13 @@ export class EnvShowerPage implements OnInit {
...
@@ -141,6 +142,13 @@ export class EnvShowerPage implements OnInit {
}]);
}]);
}
}
getPress
(
param
)
{
if
(
param
===
undefined
||
param
===
null
||
param
<
0
)
{
return
0
;
}
return
param
;
}
initButtons
()
{
initButtons
()
{
this
.
param
.
forEach
((
device
)
=>
{
this
.
param
.
forEach
((
device
)
=>
{
// 远控的场合 小按钮活性(disabled = false)
// 远控的场合 小按钮活性(disabled = false)
...
...
src/global.scss
View file @
9f30fd1e
...
@@ -198,6 +198,10 @@ img {
...
@@ -198,6 +198,10 @@ img {
color
:
#F2401C
;
color
:
#F2401C
;
}
}
.normalColor
{
color
:
#a5a5a5
;
}
.main-title
{
.main-title
{
font-size
:
16px
;
font-size
:
16px
;
padding-left
:
5px
;
padding-left
:
5px
;
...
@@ -286,3 +290,7 @@ img {
...
@@ -286,3 +290,7 @@ img {
border-radius
:
7px
;
border-radius
:
7px
;
padding
:
5px
;
padding
:
5px
;
}
}
.item-height
{
height
:
38px
;
}
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