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
609b6878
Commit
609b6878
authored
Jul 21, 2020
by
yating.lin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面微调
parent
57df9b6b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
19 deletions
+29
-19
package.json
package.json
+1
-1
env-home.page.html
src/app/envCtrl/env-home/env-home.page.html
+5
-5
env-home.page.scss
src/app/envCtrl/env-home/env-home.page.scss
+12
-3
env-shower.page.ts
src/app/envCtrl/env-shower/env-shower.page.ts
+7
-6
other.page.ts
src/app/other/other.page.ts
+4
-4
No files found.
package.json
View file @
609b6878
...
@@ -105,4 +105,4 @@
...
@@ -105,4 +105,4 @@
"ios"
"ios"
]
]
}
}
}
}
\ No newline at end of file
src/app/envCtrl/env-home/env-home.page.html
View file @
609b6878
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</div>
</div>
<h1
class=
"main-title"
>
牛舍列表
</h1>
<h1
class=
"main-title"
>
牛舍列表
</h1>
<ion-list
*
ngIf=
"items.length > 0"
mode=
"md"
class=
"list-view"
insert =
"false"
line=
"none"
>
<ion-list
*
ngIf=
"items.length > 0"
mode=
"md"
class=
"list-view"
insert =
"false"
line=
"none"
>
<ion-item
*
ngFor=
"let item of items"
(
click
)="
toControl
(
item
)"
class=
"ion-item"
style=
"width:
100
%; --padding-start: 0px"
>
<ion-item
*
ngFor=
"let item of items"
(
click
)="
toControl
(
item
)"
class=
"ion-item"
style=
"width:
98
%; --padding-start: 0px"
>
<div
class=
"item"
>
<div
class=
"item"
>
<div
class=
"top"
>
<div
class=
"top"
>
<div
style=
"float:left;padding-top:3px;"
>
<div
style=
"float:left;padding-top:3px;"
>
...
@@ -56,10 +56,10 @@
...
@@ -56,10 +56,10 @@
</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%"
>
氨气:
<span
class=
"{{item.NH3Color}}Color"
>
{{item.NH3 | number:'0.0-2'}}ppm
</span></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%"
>
温度:
<span
class=
"{{item.tempColor}}Color"
>
{{item.temp | number:'0.1-1'}}℃
</span></div>
<div
*
ngIf=
"item.temp !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
温度:
<span
class=
"{{item.tempColor}}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%"
>
湿度:
<span
class=
"{{item.humiColor}}Color"
>
{{item.humi | number:'0.1-1'}}% RH
</span></div>
<div
*
ngIf=
"item.humi !== '--'"
class=
"detailInfo"
style=
"width: 40%"
>
湿度:
<span
class=
"{{item.humiColor}}Color"
>
{{item.humi | number:'0.1-1'}}% 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>
...
...
src/app/envCtrl/env-home/env-home.page.scss
View file @
609b6878
...
@@ -130,11 +130,20 @@
...
@@ -130,11 +130,20 @@
}
}
.list-view
{
.list-view
{
width
:
96%
;
width
:
94%
;
margin-left
:
2%
;
margin
:
auto
;
padding-bottom
:
0px
;
padding
:
5px
;
border-radius
:
5px
;
}
}
.ion-item
{
margin-top
:
5px
;
margin-bottom
:
5px
;
background-color
:
#ffffff
;
display
:
block
;
width
:
calc
(
100%
);
}
//.searchbar-input-container {
//.searchbar-input-container {
// height: 25px;
// height: 25px;
// contain: strict;
// contain: strict;
...
...
src/app/envCtrl/env-shower/env-shower.page.ts
View file @
609b6878
...
@@ -120,12 +120,13 @@ export class EnvShowerPage implements OnInit {
...
@@ -120,12 +120,13 @@ export class EnvShowerPage implements OnInit {
}
}
init
()
{
init
()
{
this
.
route
.
paramMap
.
subscribe
(
params
=>
{
// this.route.paramMap.subscribe(params => {
this
.
fieldRegionNo
=
params
.
get
(
'fieldRegionNo'
);
// this.fieldRegionNo = params.get('fieldRegionNo');
this
.
operationModel
=
+
params
.
get
(
'operationModel'
);
// this.operationModel = +params.get('operationModel');
this
.
online
=
+
params
.
get
(
'online'
);
// this.online = +params.get('online');
this
.
getData
(
0
);
// this.getData(0);
});
// });
this
.
getData
(
0
);
}
}
getData
(
time
)
{
getData
(
time
)
{
...
...
src/app/other/other.page.ts
View file @
609b6878
...
@@ -5,7 +5,6 @@ import {Load} from '../service/load';
...
@@ -5,7 +5,6 @@ import {Load} from '../service/load';
import
{
ActivatedRoute
}
from
'@angular/router'
;
import
{
ActivatedRoute
}
from
'@angular/router'
;
import
{
flyIn
}
from
'../animations/flyIn'
;
import
{
flyIn
}
from
'../animations/flyIn'
;
import
{
AlertController
}
from
'@ionic/angular'
;
import
{
AlertController
}
from
'@ionic/angular'
;
import
{
debug
}
from
'util'
;
@
Component
({
@
Component
({
selector
:
'v-other'
,
selector
:
'v-other'
,
...
@@ -90,7 +89,8 @@ export class OtherPage implements OnInit {
...
@@ -90,7 +89,8 @@ export class OtherPage implements OnInit {
unlock
()
{
unlock
()
{
const
opt
=
{
fieldDeviceNo
:
this
.
alarmMsg
.
DeviceNo
,
const
opt
=
{
fieldDeviceNo
:
this
.
alarmMsg
.
DeviceNo
,
op
:
0
,
op
:
0
,
startTime
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
),
startTime
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
),
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
...
@@ -112,14 +112,14 @@ export class OtherPage implements OnInit {
...
@@ -112,14 +112,14 @@ export class OtherPage implements OnInit {
return
;
return
;
}
}
const
opt
=
{
fieldDeviceNo
:
this
.
workModeSetting
.
DeviceNo
,
const
opt
=
{
fieldDeviceNo
:
this
.
workModeSetting
.
DeviceNo
,
op
:
this
.
workModeSetting
.
workMode
,
op
:
this
.
workModeSetting
.
workMode
,
startTime
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
),
startTime
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
),
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
};
};
opt
.
startTime
=
opt
.
ts
;
opt
.
startTime
=
opt
.
ts
;
this
.
api
.
control
.
controlSwitch
([
opt
,
(
data
)
=>
{
this
.
api
.
control
.
controlSwitch
([
opt
,
(
data
)
=>
{
if
(
data
&&
data
.
code
===
1
)
{
if
(
data
&&
data
.
code
===
1
)
{
this
.
getData
(
1
);
this
.
getData
(
1
);
...
...
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