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
30f553d6
Commit
30f553d6
authored
Sep 19, 2019
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改header部[返回]按钮
parent
91a2ce13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
218 additions
and
212 deletions
+218
-212
kanban.component.ts
src/app/components/kanban/kanban.component.ts
+3
-3
env-cfg.page.ts
src/app/envCtrl/env-cfg/env-cfg.page.ts
+122
-123
env-detail.page.ts
src/app/envCtrl/env-detail/env-detail.page.ts
+18
-16
env-home.page.ts
src/app/envCtrl/env-home/env-home.page.ts
+75
-70
No files found.
src/app/components/kanban/kanban.component.ts
View file @
30f553d6
...
@@ -14,13 +14,13 @@ export class KanbanComponent implements OnInit {
...
@@ -14,13 +14,13 @@ export class KanbanComponent implements OnInit {
iconClass
=
''
;
iconClass
=
''
;
@
Input
()
@
Input
()
iconColor
=
""
;
iconColor
=
''
;
@
Input
()
@
Input
()
fontColor
=
""
;
fontColor
=
''
;
@
Input
()
@
Input
()
iconSize
=
""
;
iconSize
=
''
;
@
Input
()
@
Input
()
inData
=
''
;
inData
=
''
;
...
...
src/app/envCtrl/env-cfg/env-cfg.page.ts
View file @
30f553d6
This diff is collapsed.
Click to expand it.
src/app/envCtrl/env-detail/env-detail.page.ts
View file @
30f553d6
...
@@ -49,24 +49,26 @@ export class EnvDetailPage implements OnInit {
...
@@ -49,24 +49,26 @@ export class EnvDetailPage implements OnInit {
if
(
data
)
{
if
(
data
)
{
this
.
item
=
data
;
this
.
item
=
data
;
// TODO 测试用准备数据
this
.
item
=
{
// 3-重度热应激 在线 平控 非智控(自控) 有报警
fieldRegionNo
:
'FRN136641006052720640'
,
fieldRegionName
:
'1号牛舍'
,
temp
:
'23.5'
,
humi
:
'82.8'
,
heatStressLevel
:
'3'
,
heatStressLevelName
:
this
.
getHeatStressLevelName
(
'3'
),
online
:
1
,
// 0-离线,1-在线
operationModel
:
1
,
// 0-现控,1-平控
isWisdomModel
:
0
,
// 0-非智控(自控),1-智控
alarm
:
1
,
inHouse
:
this
.
getInHouseState
(
1
),
// 0-离舍,1-在舍
ts
:
'2019-08-05 23:44'
,
};
}
}
}]);
}]);
// ----------------------------------------------
// TODO 测试用准备数据
// this.item = {
// // 3-重度热应激 在线 平控 非智控(自控) 有报警
// fieldRegionNo: 'FRN136641006052720640',
// fieldRegionName: '1号牛舍',
// temp: '23.5',
// humi: '82.8',
// heatStressLevel: '3',
// heatStressLevelName: this.getHeatStressLevelName('3'),
// online: 1, // 0-离线,1-在线
// operationModel: 1, // 0-现控,1-平控
// isWisdomModel: 0, // 0-非智控(自控),1-智控
// alarm: 1,
// inHouse : this.getInHouseState(1), // 0-离舍,1-在舍
// ts: '2019-08-05 23:44',
// };
// ----------------------------------------------
}
}
getHeatStressLevelName
(
id
)
{
getHeatStressLevelName
(
id
)
{
...
...
src/app/envCtrl/env-home/env-home.page.ts
View file @
30f553d6
...
@@ -94,76 +94,6 @@ export class EnvHomePage implements OnInit {
...
@@ -94,76 +94,6 @@ export class EnvHomePage implements OnInit {
this
.
alarmTotal
=
data
.
alarmTotal
;
this
.
alarmTotal
=
data
.
alarmTotal
;
// 牛舍列表
// 牛舍列表
if
(
data
.
resultIndexDataListForAppVos
&&
data
.
resultIndexDataListForAppVos
.
constructor
===
Array
)
{
if
(
data
.
resultIndexDataListForAppVos
&&
data
.
resultIndexDataListForAppVos
.
constructor
===
Array
)
{
// TODO 测试用准备数据
this
.
items
=
[
{
// 0-无热应激 离线 无报警
fieldRegionNo
:
'FRN136641006052720640'
,
fieldRegionName
:
'1号牛舍'
,
temp
:
'23.5'
,
humi
:
'82'
,
heatStressLevel
:
'0'
,
heatStressLevelName
:
this
.
getHeatStressLevelName
(
'0'
),
online
:
0
,
// 0-离线,1-在线
alarm
:
0
,
ts
:
'2019-08-05 23:44'
,
},
{
// 1-轻度热应激 在线 现控 无报警
fieldRegionNo
:
'FN108050436279648256'
,
fieldRegionName
:
'2号牛舍'
,
temp
:
'23.5'
,
humi
:
'82'
,
heatStressLevel
:
'1'
,
heatStressLevelName
:
this
.
getHeatStressLevelName
(
'1'
),
online
:
1
,
// 0-离线,1-在线
operationModel
:
0
,
// 0-现控,1-平控
alarm
:
0
,
ts
:
'2019-08-05 23:44'
,
},
{
// 2-中度热应激 在线 平控 非智控(手控) 有报警
fieldRegionNo
:
'FN108050436279648256'
,
fieldRegionName
:
'3号牛舍'
,
temp
:
'23.5'
,
humi
:
'82'
,
heatStressLevel
:
'2'
,
heatStressLevelName
:
this
.
getHeatStressLevelName
(
'2'
),
online
:
1
,
// 0-离线,1-在线
operationModel
:
1
,
// 0-现控,1-平控
isWisdomModel
:
0
,
// 0-非智控(手控),1-智控
alarm
:
1
,
ts
:
'2019-08-05 23:44'
,
},
{
// 3-重度热应激 在线 平控 非智控(自控) 有报警
fieldRegionNo
:
'FN108050436279648256'
,
fieldRegionName
:
'4号牛舍'
,
temp
:
'23.5'
,
humi
:
'82'
,
heatStressLevel
:
'3'
,
heatStressLevelName
:
this
.
getHeatStressLevelName
(
'3'
),
online
:
1
,
// 0-离线,1-在线
operationModel
:
1
,
// 0-现控,1-平控
isWisdomModel
:
0
,
// 0-非智控(自控),1-智控
alarm
:
1
,
ts
:
'2019-08-05 23:44'
,
},
{
// 4-II重度热应激 在线 平控 智控 有报警
fieldRegionNo
:
'FN108050436279648256'
,
fieldRegionName
:
'测试用5号牛舍'
,
temp
:
'23.5'
,
humi
:
'82'
,
heatStressLevel
:
'4'
,
heatStressLevelName
:
this
.
getHeatStressLevelName
(
'4'
),
online
:
1
,
// 0-离线,1-在线
operationModel
:
1
,
// 0-现控,1-平控
isWisdomModel
:
1
,
// 0-非智控(自控),1-智控
alarm
:
1
,
ts
:
'2019-08-05 23:44'
,
},
];
this
.
isError
=
false
;
this
.
isError
=
false
;
data
.
resultIndexDataListForAppVos
.
map
((
value
,
index
)
=>
{
data
.
resultIndexDataListForAppVos
.
map
((
value
,
index
)
=>
{
const
itemInfo
=
{
const
itemInfo
=
{
...
@@ -185,6 +115,81 @@ export class EnvHomePage implements OnInit {
...
@@ -185,6 +115,81 @@ export class EnvHomePage implements OnInit {
this
.
api
.
presentMsgToast
(
'获取数据失败'
);
this
.
api
.
presentMsgToast
(
'获取数据失败'
);
this
.
isError
=
true
;
this
.
isError
=
true
;
}
}
// -------------------------------------------------
// TODO 测试用准备数据
// this.thiGood = 1;
// this.thiBad = 12;
// this.alarmTotal = 5;
// this.items = [
// {
// // 0-无热应激 离线 无报警
// fieldRegionNo: 'FRN136641006052720640',
// fieldRegionName: '1号牛舍',
// temp: '23.5',
// humi: '82',
// heatStressLevel: '0',
// heatStressLevelName: this.getHeatStressLevelName('0'),
// online: 0, // 0-离线,1-在线
// alarm: 0,
// ts: '2019-08-05 23:44',
// },
// {
// // 1-轻度热应激 在线 现控 无报警
// fieldRegionNo: 'FN108050436279648256',
// fieldRegionName: '2号牛舍',
// temp: '23.5',
// humi: '82',
// heatStressLevel: '1',
// heatStressLevelName: this.getHeatStressLevelName('1'),
// online: 1, // 0-离线,1-在线
// operationModel: 0, // 0-现控,1-平控
// alarm: 0,
// ts: '2019-08-05 23:44',
// },
// {
// // 2-中度热应激 在线 平控 非智控(手控) 有报警
// fieldRegionNo: 'FN108050436279648256',
// fieldRegionName: '3号牛舍',
// temp: '23.5',
// humi: '82',
// heatStressLevel: '2',
// heatStressLevelName: this.getHeatStressLevelName('2'),
// online: 1, // 0-离线,1-在线
// operationModel: 1, // 0-现控,1-平控
// isWisdomModel: 0, // 0-非智控(手控),1-智控
// alarm: 1,
// ts: '2019-08-05 23:44',
// },
// {
// // 3-重度热应激 在线 平控 非智控(自控) 有报警
// fieldRegionNo: 'FN108050436279648256',
// fieldRegionName: '4号牛舍',
// temp: '23.5',
// humi: '82',
// heatStressLevel: '3',
// heatStressLevelName: this.getHeatStressLevelName('3'),
// online: 1, // 0-离线,1-在线
// operationModel: 1, // 0-现控,1-平控
// isWisdomModel: 0, // 0-非智控(自控),1-智控
// alarm: 1,
// ts: '2019-08-05 23:44',
// },
// {
// // 4-II重度热应激 在线 平控 智控 有报警
// fieldRegionNo: 'FN108050436279648256',
// fieldRegionName: '测试用5号牛舍',
// temp: '23.5',
// humi: '82',
// heatStressLevel: '4',
// heatStressLevelName: this.getHeatStressLevelName('4'),
// online: 1, // 0-离线,1-在线
// operationModel: 1, // 0-现控,1-平控
// isWisdomModel: 1, // 0-非智控(自控),1-智控
// alarm: 1,
// ts: '2019-08-05 23:44',
// },
// ];
// -------------------------------------------------
}
}
this
.
load
.
offLoad
();
this
.
load
.
offLoad
();
}]);
}]);
...
...
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