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
2eed3519
Commit
2eed3519
authored
Sep 06, 2019
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
牛舍详情页(风机90%)
parent
4bce0835
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
56 deletions
+19
-56
env-detail.page.html
src/app/envCtrl/env-detail/env-detail.page.html
+2
-2
env-fan.page.html
src/app/envCtrl/env-fan/env-fan.page.html
+11
-38
env-fan.page.ts
src/app/envCtrl/env-fan/env-fan.page.ts
+6
-16
No files found.
src/app/envCtrl/env-detail/env-detail.page.html
View file @
2eed3519
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
</ion-buttons>
</ion-buttons>
<ion-title
mode=
"ios"
class=
"title"
>
{{item.fieldRegionName}}详情
</ion-title>
<ion-title
mode=
"ios"
class=
"title"
>
{{item.fieldRegionName}}详情
</ion-title>
</ion-toolbar>
</ion-toolbar>
<div
style=
"
margin-top: 5px;margin-bottom: 7px;
background-color: #F0F0F0"
>
<div
style=
"
padding-top: 5px; padding-bottom: 7px;
background-color: #F0F0F0"
>
<span
[
ngClass
]="{'
online
'
:
item
.
online
,
'
offline
'
:
!
item
.
online
}"
>
{{item.online ? '在线' : '离线'}}
</span>
<span
[
ngClass
]="{'
online
'
:
item
.
online
,
'
offline
'
:
!
item
.
online
}"
>
{{item.online ? '在线' : '离线'}}
</span>
<span
*
ngIf=
"item.operationModel"
class=
"online"
>
{{item.operationModel ? '平控' :'现控'}}
</span>
<span
*
ngIf=
"item.operationModel"
class=
"online"
>
{{item.operationModel ? '平控' :'现控'}}
</span>
<span
*
ngIf=
"item.operationModel"
[
ngClass
]="{'
online
'
:
item
.
isWisdomModel
,
'
offline
'
:
!
item
.
isWisdomModel
}"
class=
"online"
>
智控
</span>
<span
*
ngIf=
"item.operationModel"
[
ngClass
]="{'
online
'
:
item
.
isWisdomModel
,
'
offline
'
:
!
item
.
isWisdomModel
}"
class=
"online"
>
智控
</span>
</div>
</div>
<div
style=
"background-color: #F0F0F0"
>
<div
style=
"background-color: #F0F0F0
;"
align=
"center
"
>
<v-kanban
class=
"home-bar"
name=
"温度"
[
inData
]="
item
.
temp
"
iconClass=
"vo v-wendu"
iconColor=
"#285B90"
iconSize=
"14px"
></v-kanban>
<v-kanban
class=
"home-bar"
name=
"温度"
[
inData
]="
item
.
temp
"
iconClass=
"vo v-wendu"
iconColor=
"#285B90"
iconSize=
"14px"
></v-kanban>
<v-kanban
class=
"home-bar"
name=
"湿度"
[
inData
]="
item
.
humi
"
iconClass=
"vo v-shidu"
iconColor=
"#285B90"
iconSize=
"14px"
></v-kanban>
<v-kanban
class=
"home-bar"
name=
"湿度"
[
inData
]="
item
.
humi
"
iconClass=
"vo v-shidu"
iconColor=
"#285B90"
iconSize=
"14px"
></v-kanban>
<v-kanban
class=
"home-bar"
name=
"热应激"
[
inData
]="
item
.
heatStressLevelName
"
iconClass=
"vo v-nav-ico"
iconColor=
"#285B90"
iconSize=
"14px"
></v-kanban>
<v-kanban
class=
"home-bar"
name=
"热应激"
[
inData
]="
item
.
heatStressLevelName
"
iconClass=
"vo v-nav-ico"
iconColor=
"#285B90"
iconSize=
"14px"
></v-kanban>
...
...
src/app/envCtrl/env-fan/env-fan.page.html
View file @
2eed3519
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
margin-bottom: 5px;"
>
模式状态
</h1>
margin-bottom: 5px;"
>
模式状态
</h1>
<ion-item
lines=
"full"
>
<ion-item
lines=
"full"
>
<ion-label>
运行模式
</ion-label>
<ion-label>
运行模式
</ion-label>
<ion-select
multiple=
"false"
cancelText=
"取消"
okText=
"确认"
[(
ngModel
)]="
workModeSetting
.
workMode
"
[(
value
)]="
workModeSetting
.
workMode
"
(
ionChange
)="
workModeEvent
()
"
>
<ion-select
multiple=
"false"
cancelText=
"取消"
okText=
"确认"
[(
ngModel
)]="
controlModel
"
>
<ion-select-option
value=
"0"
>
手控模式
</ion-select-option>
<ion-select-option
value=
"0"
>
手控模式
</ion-select-option>
<ion-select-option
value=
"1"
>
自控模式
</ion-select-option>
<ion-select-option
value=
"1"
>
自控模式
</ion-select-option>
<ion-select-option
value=
"2"
>
智慧控制
</ion-select-option>
<ion-select-option
value=
"2"
>
智慧控制
</ion-select-option>
...
@@ -23,50 +23,23 @@
...
@@ -23,50 +23,23 @@
border-left: 5px solid #28c9bd;
border-left: 5px solid #28c9bd;
line-height: 25px;
line-height: 25px;
margin-bottom: 5px;"
>
控制/状态
</h1>
margin-bottom: 5px;"
>
控制/状态
</h1>
<ion-item
*
ngFor=
"let a of allBtns"
lines=
"full"
insert=
"false"
>
<!--<ion-item *ngFor="let a of allBtns" lines="full" insert="false">-->
<!--<v-switch [value]="a.value" (click)="toggle(a)" [loading]="a.loading"></v-switch>-->
<!--<ion-label>一键控制</ion-label>-->
<ion-label>
一键控制{{a.l}}
</ion-label>
<!--<v-switch [value]="a.v" (click)="allCheck(a)" [loading]="a.d"></v-switch>-->
<v-switch
[
value
]="
a
.
v
"
(
click
)="
allCheck
(
a
)"
[
loading
]="
a
.
d
"
></v-switch>
<!--</ion-item>-->
<ion-item
lines=
"full"
>
<ion-label>
一键控制
</ion-label>
<v-switch
[
value
]="
false
"
(
click
)="
allCheck
()"
></v-switch>
</ion-item>
</ion-item>
<div>
<div>
<ion-card
*
ngFor=
"let
a of workarea.param
"
class=
"card"
color=
"white"
>
<ion-card
*
ngFor=
"let
device of devices
"
class=
"card"
color=
"white"
>
<ion-card-header>
<ion-card-header>
<ion-card-subtitle
>
{{a.n
ame}}
</ion-card-subtitle>
<ion-card-subtitle
align=
"center"
>
{{device.fieldDeviceN
ame}}
</ion-card-subtitle>
</ion-card-header>
</ion-card-header>
<ion-card-content>
<ion-card-content>
<v-switch
[
value
]="
a
.
runningS
tate
"
(
click
)="
toggle
(
a
)"
style=
"float: none;display: inline-block;margin-top: 5px"
></v-switch>
<v-switch
[
value
]="
device
.
s
tate
"
(
click
)="
toggle
(
a
)"
style=
"float: none;display: inline-block;margin-top: 5px"
></v-switch>
</ion-card-content>
</ion-card-content>
</ion-card>
</ion-card>
<!--<ion-card class="card" color="white">-->
<!--<ion-card-header>-->
<!--<ion-card-subtitle>1号风机组</ion-card-subtitle>-->
<!--</ion-card-header>-->
<!--<ion-card-content>-->
<!--<v-switch [value]="true" (click)="toggle(a)" style="float: none;display: inline-block;"></v-switch>-->
<!--</ion-card-content>-->
<!--</ion-card>-->
<!--<ion-card class="card" color="white">-->
<!--<ion-card-header>-->
<!--<ion-card-subtitle>2号风机组</ion-card-subtitle>-->
<!--</ion-card-header>-->
<!--<ion-card-content>-->
<!--<v-switch [value]=true style="float: none;display: inline-block;"></v-switch>-->
<!--</ion-card-content>-->
<!--</ion-card>-->
<!--<ion-card class="card" color="white">-->
<!--<ion-card-header>-->
<!--<ion-card-subtitle>3号风机组</ion-card-subtitle>-->
<!--</ion-card-header>-->
<!--<ion-card-content>-->
<!--<v-switch [value]=true style="float: none;display: inline-block;"></v-switch>-->
<!--</ion-card-content>-->
<!--</ion-card>-->
</div>
</div>
</ion-content>
</ion-content>
src/app/envCtrl/env-fan/env-fan.page.ts
View file @
2eed3519
...
@@ -27,23 +27,10 @@ export class EnvFanPage implements OnInit {
...
@@ -27,23 +27,10 @@ export class EnvFanPage implements OnInit {
isLoading
:
true
isLoading
:
true
};
};
allBtns
=
[{
v
:
1
}];
allBtns
=
[{
v
:
1
}];
// TODO 待删除
fieldRegionNo
=
''
;
fieldRegionNo
=
''
;
fieldRegionName
=
''
;
fieldRegionName
=
''
;
workarea
=
{
param
:
[
{
name
:
'1号风机组'
,
runningState
:
true
,
// 是否开启
},
{
name
:
'2号风机组'
,
runningState
:
false
,
}
]
};
constructor
(
private
api
:
Api
,
private
ac
:
ActivatedRoute
,
private
load
:
Load
)
{
}
constructor
(
private
api
:
Api
,
private
ac
:
ActivatedRoute
,
private
load
:
Load
)
{
}
ngOnInit
()
{
ngOnInit
()
{
...
@@ -62,20 +49,23 @@ export class EnvFanPage implements OnInit {
...
@@ -62,20 +49,23 @@ export class EnvFanPage implements OnInit {
if
(
data
)
{
if
(
data
)
{
this
.
controlModel
=
data
.
controlModel
;
this
.
controlModel
=
data
.
controlModel
;
this
.
devices
=
data
.
param
;
this
.
devices
=
data
.
param
;
// TODO 测试用准备数据
this
.
devices
.
push
({
fieldDeviceNo
:
'136641005998194688'
,
fieldDeviceName
:
'X号风机组'
,
state
:
1
});
this
.
devices
.
push
({
fieldDeviceNo
:
'136641005998194688'
,
fieldDeviceName
:
'Y号风机组'
,
state
:
0
});
}
}
}]);
}]);
}
}
toggle
(
a
)
{
toggle
(
a
)
{
// console.log("123")
;
a
.
value
=
true
;
}
}
allCheck
(
a
)
{
allCheck
(
a
)
{
a
.
d
=
true
;
a
.
d
=
true
;
const
req
=
{
const
req
=
{
fieldRegionNo
:
this
.
fieldRegionNo
,
fieldRegionNo
:
this
.
fieldRegionNo
,
fieldDeviceType
:
a
.
t
,
op
:
a
.
v
?
0
:
1
,
op
:
a
.
v
?
0
:
1
,
type
:
a
.
t
,
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
};
};
this
.
comm
.
remain
=
120
;
this
.
comm
.
remain
=
120
;
...
...
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