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
a882d143
Commit
a882d143
authored
Sep 03, 2019
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改header部[返回]按钮
parent
c9ae7410
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
330 additions
and
307 deletions
+330
-307
alarm.page.html
src/app/alarm/alarm.page.html
+26
-21
alarm.page.scss
src/app/alarm/alarm.page.scss
+7
-0
alarm.page.ts
src/app/alarm/alarm.page.ts
+0
-4
east.page.html
src/app/east/east.page.html
+82
-79
east.page.scss
src/app/east/east.page.scss
+8
-1
east.page.ts
src/app/east/east.page.ts
+0
-5
env-detail.page.html
src/app/envCtrl/env-detail/env-detail.page.html
+4
-4
env-detail.page.scss
src/app/envCtrl/env-detail/env-detail.page.scss
+4
-2
env-home.page.html
src/app/envCtrl/env-home/env-home.page.html
+4
-18
env-home.page.ts
src/app/envCtrl/env-home/env-home.page.ts
+1
-10
tabs.page.html
src/app/envCtrl/tabs/tabs.page.html
+26
-24
home.page.html
src/app/home/home.page.html
+21
-18
home.page.scss
src/app/home/home.page.scss
+3
-3
home.page.ts
src/app/home/home.page.ts
+1
-9
mine.page.html
src/app/mine/mine.page.html
+40
-36
mine.page.scss
src/app/mine/mine.page.scss
+8
-0
mine.page.ts
src/app/mine/mine.page.ts
+0
-3
other.page.html
src/app/other/other.page.html
+69
-65
other.page.scss
src/app/other/other.page.scss
+7
-0
other.page.ts
src/app/other/other.page.ts
+0
-4
variables.scss
src/theme/variables.scss
+19
-1
No files found.
src/app/alarm/alarm.page.html
View file @
a882d143
<div
class=
"mainCon"
style=
"overflow-y: hidden"
>
<ion-header>
<Navbar
[
leftContent
]="
icon
"
<ion-toolbar
color=
"secondary"
>
(
onLeftClick
)="
onLeftClick
()"
<ion-buttons
slot=
"start"
>
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;z-index: 2;"
<ion-back-button
text=
""
defaultHref=
"/index"
></ion-back-button>
>
报警信息
</ion-buttons>
</Navbar>
<ion-title
class=
"ion-tittle"
>
报警信息
</ion-title>
</ion-toolbar>
</ion-header>
<SegmentedControl
class=
"nav-title"
[
values
]="['今日报警信息',
'近一周报警信息']"
<ion-content>
(
onChange
)="
choose
($
event
)"
<div
class=
"mainCon"
style=
"overflow-y: hidden"
>
></SegmentedControl>
<SegmentedControl
class=
"nav-title"
[
values
]="['今日报警信息',
'近一周报警信息']"
(
onChange
)="
choose
($
event
)"
></SegmentedControl>
<div
class=
"alarmCon"
style=
"overflow-y: hidden"
>
<div
class=
"alarmCon"
style=
"overflow-y: hidden"
>
<v-refresh
[
list
]="
data
"
*
ngIf=
"itemExit;else other_content"
></v-refresh>
<v-refresh
[
list
]="
data
"
*
ngIf=
"itemExit;else other_content"
></v-refresh>
</div>
</div>
</div>
</div>
<ng-template
#
icon
>
<ng-template
#
icon
>
<span
class=
"vo v-back"
></span>
<span
class=
"vo v-back"
></span>
</ng-template>
</ng-template>
<ng-template
#
other_content
>
<ng-template
#
other_content
>
<div
class=
"empty-content"
>
<div
class=
"empty-content"
>
<i
class=
"vo v-shebeiguanli1"
></i><br><br>
<i
class=
"vo v-shebeiguanli1"
></i><br><br>
<span
class=
"empty"
>
没有报警信息
</span>
<span
class=
"empty"
>
没有报警信息
</span>
</div>
</div>
</ng-template>
</ng-template>
</ion-content>
src/app/alarm/alarm.page.scss
View file @
a882d143
...
@@ -47,3 +47,10 @@
...
@@ -47,3 +47,10 @@
height
:
100%
;
height
:
100%
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.ion-tittle
{
text-align
:
center
;
padding-left
:
0px
;
font-weight
:
lighter
;
font-size
:
large
}
src/app/alarm/alarm.page.ts
View file @
a882d143
...
@@ -98,8 +98,4 @@ export class AlarmPage implements OnInit {
...
@@ -98,8 +98,4 @@ export class AlarmPage implements OnInit {
}
}
}
}
onLeftClick
()
{
this
.
tf
.
transfer
({
url
:
'/index'
});
}
}
}
src/app/east/east.page.html
View file @
a882d143
<div
class=
"mainCon"
style=
""
[@
EnterLeave
]
>
<ion-header
mode=
"ios"
translucent=
"false"
>
<Navbar
[
leftContent
]="
icon
"
<ion-toolbar
color=
"secondary"
>
(
onLeftClick
)="
onLeftClick
()"
<ion-buttons
slot=
"start"
>
[
rightContent
]="
r
"
<ion-back-button
text=
""
defaultHref=
"/index"
></ion-back-button>
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;z-index: 2;"
</ion-buttons>
>
<ion-title
class=
"ion-tittle"
>
{{fieldRegionName}}控制
</ion-title>
{{fieldRegionName}}控制
<ion-buttons
slot=
"end"
>
</Navbar>
<ion-button
style=
"font-size: medium"
>
刷新
</ion-button>
<ng-template
#
r
>
</ion-buttons>
<span
(
click
)="
pullToRefresh
()"
>
刷新
</span>
</ion-toolbar>
</ng-template>
</ion-header>
<ion-content
style=
"padding-top: 45px ;margin-bottom:45px ;position:relative;overflow-y:auto;"
>
<ion-content>
<div
class=
"topPart"
>
<div
class=
"mainCon"
style=
""
[@
EnterLeave
]
>
<ListItem
multipleLine
*
ngIf=
"yewei || yewei === 0"
>
<ion-content
style=
"padding-top: 45px ;margin-bottom:45px ;position:relative;overflow-y:auto;"
>
当前液位:
<div
class=
"topPart"
>
<div
class=
"process"
>
<ListItem
multipleLine
*
ngIf=
"yewei || yewei === 0"
>
<div
[
class
]="'
inlineProcess
'
+
color
"
[
ngStyle
]="{
width:
proc
+
'%'}"
>
当前液位:
<div
class=
"process"
>
<div
[
class
]="'
inlineProcess
'
+
color
"
[
ngStyle
]="{
width:
proc
+
'%'}"
>
</div>
</div>
</div>
</div>
{{yewei.toFixed(2)}}m
{{yewei.toFixed(2)}}m
</ListItem>
<ListItem
multipleLine
*
ngIf=
"temp || temp === 0"
>
当前温度:
<div
style=
"display: inline-block;margin-left: calc(100% - 145px);vertical-align: middle"
>
{{temp.toFixed(2)}}℃
</div>
</ListItem>
<div
*
ngFor=
"let a of nb;let i = index"
>
<ListItem
multipleLine
[
extra
]="
a
.
fieldDeviceName =
==
'南水'
?
s1
:
s2
"
>
{{a.fieldDeviceName}}
</ListItem>
</ListItem>
<ListItem
multipleLine
*
ngIf=
"a.fieldDeviceName === '南水' ? nanClicked : beiClicked"
>
<ListItem
multipleLine
*
ngIf=
"temp || temp === 0"
>
选择开启时间
当前温度:
<Stepper
class=
"stepClass"
[(
ngModel
)]="
duration
"
[
min
]="
1
"
[
showNumber
]="
true
"
></Stepper>
<div
style=
"display: inline-block;margin-left: calc(100% - 145px);vertical-align: middle"
>
分钟
{{temp.toFixed(2)}}℃
<div
style=
"text-align: right;padding-top: 10px"
>
<div
Button
style=
"margin-right: 10px"
class=
"btn"
(
click
)="
cancel
()"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
default
'"
>
取消
</div>
<div
Button
(
click
)="
confirm
(
a
)"
class=
"btn"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
primary
'"
>
确认
</div>
</div>
</div>
</ListItem>
</ListItem>
<div
*
ngFor=
"let a of nb;let i = index"
>
<ListItem
multipleLine
[
extra
]="
a
.
fieldDeviceName =
==
'南水'
?
s1
:
s2
"
>
{{a.fieldDeviceName}}
</ListItem>
<ListItem
multipleLine
*
ngIf=
"a.fieldDeviceName === '南水' ? nanClicked : beiClicked"
>
选择开启时间
<Stepper
class=
"stepClass"
[(
ngModel
)]="
duration
"
[
min
]="
1
"
[
showNumber
]="
true
"
></Stepper>
分钟
<div
style=
"text-align: right;padding-top: 10px"
>
<div
Button
style=
"margin-right: 10px"
class=
"btn"
(
click
)="
cancel
()"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
default
'"
>
取消
</div>
<div
Button
(
click
)="
confirm
(
a
)"
class=
"btn"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
primary
'"
>
确认
</div>
</div>
</ListItem>
</div>
</div>
</div>
</div>
<div
class=
"middlePart"
>
<div
class=
"middlePart"
>
<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
)]="
workModeSetting
.
workMode
"
[(
value
)]="
workModeSetting
.
workMode
"
(
ionChange
)="
workModeEvent
()"
>
<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>
</ion-select>
</ion-select>
</ion-item>
</ion-item>
<!--<ion-label>发现设备运行时间过长</ion-label>-->
<!--<ion-label>发现设备运行时间过长</ion-label>-->
</div>
</div>
<div
class=
"bottomPart"
>
<div
class=
"bottomPart"
>
<ion-list>
<ion-list>
<ion-item
*
ngFor=
"let a of devices;let i = index"
lines =
"full"
>
<ion-item
*
ngFor=
"let a of devices;let i = index"
lines =
"full"
>
<ion-label>
{{a.fieldDeviceName}}
</ion-label>
<ion-label>
{{a.fieldDeviceName}}
</ion-label>
<v-switch
(
click
)="
toggle
(
a
)"
[
value
]="
a
.
value
"
[
disabled
]="
opDisable
"
[
loading
]="
a
.
loading
"
></v-switch>
<v-switch
(
click
)="
toggle
(
a
)"
[
value
]="
a
.
value
"
[
disabled
]="
opDisable
"
[
loading
]="
a
.
loading
"
></v-switch>
</ion-item>
</ion-item>
</ion-list>
</ion-list>
<!--<ListItem multipleLine *ngFor="let a of devices;let i = index">-->
<!--<ListItem multipleLine *ngFor="let a of devices;let i = index">-->
<!---->
<!---->
<!---->
<!---->
<!--</ListItem>-->
<!--</ListItem>-->
</div>
</div>
<ion-button
color=
"danger"
expand=
"full"
(
click
)="
unlock
()"
*
ngIf=
"alarmMsg.locked"
>
现设备运行时间过长点击解锁
</ion-button>
<ion-button
color=
"danger"
expand=
"full"
(
click
)="
unlock
()"
*
ngIf=
"alarmMsg.locked"
>
现设备运行时间过长点击解锁
</ion-button>
</ion-content>
</ion-content>
</div>
</div>
<ng-template
#
icon
>
<ng-template
#
icon
>
<span
class=
"vo v-back"
></span>
<span
class=
"vo v-back"
></span>
</ng-template>
</ng-template>
<ng-template
#
s1
>
<ng-template
#
s1
>
<v-switch
[
value
]="
value
[
0
]"
[
disabled
]="
beiLoading
||
value
[
1
]"
(
click
)="
toggleNb
(
0
)"
<v-switch
[
value
]="
value
[
0
]"
[
disabled
]="
beiLoading
||
value
[
1
]"
(
click
)="
toggleNb
(
0
)"
[
loading
]="
nanLoading
"
></v-switch>
[
loading
]="
nanLoading
"
></v-switch>
</ng-template>
</ng-template>
<ng-template
#
s2
>
<ng-template
#
s2
>
<v-switch
[
value
]="
value
[
1
]"
[
disabled
]="
nanLoading
||
value
[
0
]"
(
click
)="
toggleNb
(
1
)"
<v-switch
[
value
]="
value
[
1
]"
[
disabled
]="
nanLoading
||
value
[
0
]"
(
click
)="
toggleNb
(
1
)"
[
loading
]="
beiLoading
"
></v-switch>
[
loading
]="
beiLoading
"
></v-switch>
</ng-template>
</ng-template>
<v-loading-bump
style=
"z-index: 9999; color: red"
[
remain
]="
comm
.
remain
"
*
ngIf=
"comm.isLoading"
></v-loading-bump>
<v-loading-bump
style=
"z-index: 9999; color: red"
[
remain
]="
comm
.
remain
"
*
ngIf=
"comm.isLoading"
></v-loading-bump>
</ion-content>
src/app/east/east.page.scss
View file @
a882d143
...
@@ -43,4 +43,11 @@
...
@@ -43,4 +43,11 @@
.topPart
{
.topPart
{
padding-top
:
45px
;
padding-top
:
45px
;
}
}
\ No newline at end of file
.ion-tittle
{
text-align
:
center
;
padding-left
:
0px
;
font-weight
:
lighter
;
font-size
:
large
}
src/app/east/east.page.ts
View file @
a882d143
...
@@ -281,11 +281,6 @@ export class EastPage implements OnInit {
...
@@ -281,11 +281,6 @@ export class EastPage implements OnInit {
}]);
}]);
}
}
onLeftClick
()
{
// this.tf.transfer({url: '/home'});
this
.
nav
.
navigateBack
(
'/home'
);
}
getData
(
time
)
{
getData
(
time
)
{
if
(
time
)
{
if
(
time
)
{
this
.
load
.
toLoad
(
'加载中...'
,
false
);
this
.
load
.
toLoad
(
'加载中...'
,
false
);
...
...
src/app/envCtrl/env-detail/env-detail.page.html
View file @
a882d143
<ion-header
mode=
"ios"
color=
"light"
translucent=
"false"
style=
"background-color: #F0F0F0"
>
<ion-header
mode=
"ios"
translucent=
"false"
style=
"background-color: #F0F0F0"
>
<ion-toolbar>
<ion-toolbar
color=
"secondary"
>
<ion-buttons
slot=
"start"
>
<ion-buttons
slot=
"start"
>
<ion-back-button></ion-back-button>
<ion-back-button
text=
""
></ion-back-button>
</ion-buttons>
</ion-buttons>
<ion-title
mode=
"ios"
class=
"title"
>
{{fieldRegionName}}详情页
</ion-title>
<ion-title
mode=
"ios"
class=
"title"
>
{{fieldRegionName}}详情页
</ion-title>
</ion-toolbar>
</ion-toolbar>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</div>
</div>
</ion-header>
</ion-header>
<ion-content
style=
"background-color: #F3F4F4;"
>
<ion-content
style=
"background-color: #F3F4F4;"
>
<ion-toolbar>
<ion-toolbar>
<!--<ion-buttons slot="start">-->
<!--<ion-buttons slot="start">-->
<!--<ion-back-button></ion-back-button>-->
<!--<ion-back-button></ion-back-button>-->
...
...
src/app/envCtrl/env-detail/env-detail.page.scss
View file @
a882d143
...
@@ -5,7 +5,9 @@
...
@@ -5,7 +5,9 @@
.title
{
.title
{
text-align
:
center
;
text-align
:
center
;
padding-left
:
0px
padding-left
:
0px
;
font-weight
:
lighter
;
font-size
:
large
}
}
.home-bar
{
.home-bar
{
...
@@ -33,4 +35,4 @@
...
@@ -33,4 +35,4 @@
box-shadow
:
#ccc
0
.5px
0
.5px
3px
;
box-shadow
:
#ccc
0
.5px
0
.5px
3px
;
padding
:
1px
1px
1px
1px
;
padding
:
1px
1px
1px
1px
;
color
:
white
;
color
:
white
;
}
}
\ No newline at end of file
src/app/envCtrl/env-home/env-home.page.html
View file @
a882d143
<ion-header
style=
"background-color: #F3F4F4;"
>
<ion-header
mode=
"ios"
>
<!--<div class="topIcon" (click)="toIndex()">-->
<!--<i class="vo v-back"></i>-->
<!--</div>-->
<!--<div class="topSearch">-->
<!--<SearchBar [placeholder]="'点击此处进行搜索'" [(ngModel)]="searchText"-->
<!--(onCancel)="searchText ='';toggleFocus(false);"-->
<!--[setFocus]="false" (onFocus)="toggleFocus(true)" (onBlur)="toggleFocus(false)"-->
<!--(onClear)="searchText ='';toggleFocus(false);"></SearchBar>-->
<!--</div>-->
<ion-toolbar>
<ion-toolbar>
<ion-button
slot=
"start"
size =
"small"
color=
"light"
(
click
)="
goTo
()"
>
Home
</ion-button>
<ion-buttons
slot=
"start"
>
<ion-back-button
color=
"secondary"
defaultHref=
"/index"
text=
""
></ion-back-button>
</ion-buttons>
<ion-searchbar></ion-searchbar>
<ion-searchbar></ion-searchbar>
</ion-toolbar>
</ion-toolbar>
<!--<ion-slides mode="ios"-->
<!--[options]="lunbo" (ionSlideTouchEnd)="slideDidChange()">-->
<!--<ion-slide class="slideCon" *ngFor="let one of imgs">-->
<!--<img [src]="'../../../assets/lunbo/' + one">-->
<!--</ion-slide>-->
<!--</ion-slides>-->
</ion-header>
</ion-header>
<ion-content
color=
'light'
>
<ion-content
color=
'light'
>
<h1
style=
"
<h1
style=
"
font-size: 16px;
font-size: 16px;
...
...
src/app/envCtrl/env-home/env-home.page.ts
View file @
a882d143
...
@@ -190,8 +190,7 @@ export class EnvHomePage implements OnInit {
...
@@ -190,8 +190,7 @@ export class EnvHomePage implements OnInit {
//this.nav.navigateRoot(one.url + query);
//this.nav.navigateRoot(one.url + query);
}
}
getData
()
getData
()
{
{
}
}
...
@@ -203,12 +202,4 @@ export class EnvHomePage implements OnInit {
...
@@ -203,12 +202,4 @@ export class EnvHomePage implements OnInit {
toggleFocus
(
a
){
toggleFocus
(
a
){
}
}
goTo
(){
// console.log('+goTo');
const
query
=
'/index'
;
this
.
nav
.
navigateRoot
(
query
);
// console.log('-goTo');
}
}
}
src/app/envCtrl/tabs/tabs.page.html
View file @
a882d143
<router-outlet
name=
'tabs'
(
activate
)='
onActivate
($
event
)'
></router-outlet>
<router-outlet
name=
'tabs'
(
activate
)='
onActivate
($
event
)'
></router-outlet>
<ion-tabs>
<ion-content>
<ion-tab-bar
slot=
"bottom"
>
<ion-tabs>
<ion-tab-bar
slot=
"bottom"
>
<ion-tab-button
tab=
"tab-home"
selected=
"true"
>
<ion-tab-button
tab=
"tab-home"
selected=
"true"
>
<ion-label>
首页
</ion-label>
<ion-label>
首页
</ion-label>
<ion-icon
name=
"home"
></ion-icon>
<ion-icon
name=
"home"
></ion-icon>
</ion-tab-button>
</ion-tab-button>
<!--<ion-tab-button tab="tab-detail">-->
<!--<ion-tab-button tab="tab-detail">-->
<!--<ion-label>详情</ion-label>-->
<!--<ion-label>详情</ion-label>-->
<!--<ion-icon name="settings"></ion-icon>-->
<!--<ion-icon name="settings"></ion-icon>-->
<!--</ion-tab-button>-->
<!--</ion-tab-button>-->
<ion-tab-button
tab=
"tab-anal"
>
<ion-tab-button
tab=
"tab-anal"
>
<ion-label>
分析
</ion-label>
<ion-label>
分析
</ion-label>
<ion-icon
name=
"stats"
></ion-icon>
<ion-icon
name=
"stats"
></ion-icon>
</ion-tab-button>
</ion-tab-button>
<ion-tab-button
tab=
"tab-alarm"
>
<ion-tab-button
tab=
"tab-alarm"
>
<ion-label>
告警
</ion-label>
<ion-label>
告警
</ion-label>
<ion-icon
name=
"hammer"
></ion-icon>
<ion-icon
name=
"hammer"
></ion-icon>
</ion-tab-button>
</ion-tab-button>
<ion-tab-button
tab=
"tab-cfg"
>
<ion-tab-button
tab=
"tab-cfg"
>
<ion-label>
配置
</ion-label>
<ion-label>
配置
</ion-label>
<ion-icon
name=
"construct"
></ion-icon>
<ion-icon
name=
"construct"
></ion-icon>
</ion-tab-button>
</ion-tab-button>
</ion-tab-bar>
</ion-tab-bar>
</ion-tabs>
</ion-tabs>
</ion-content>
src/app/home/home.page.html
View file @
a882d143
<!--<div class="mainCon">-->
<!--<div class="mainCon">-->
<ion-header>
<ion-header>
<div
class=
"topIcon"
(
click
)="
toIndex
()"
>
<ion-toolbar
color=
"gray"
>
<i
class=
"vo v-back"
></i>
<ion-buttons
slot=
"start"
>
</div>
<ion-back-button
text=
""
defaultHref=
"/index"
color=
"secondary"
></ion-back-button>
<div
class=
"topSearch"
>
</ion-buttons>
<SearchBar
[
placeholder
]="'点击此处进行搜索'"
[(
ngModel
)]="
searchText
"
<div
class=
"topSearch"
>
(
onCancel
)="
searchText =
''
;
toggleFocus
(
false
);"
<SearchBar
[
placeholder
]="'点击此处进行搜索'"
[(
ngModel
)]="
searchText
"
[
setFocus
]="
false
"
(
onFocus
)="
toggleFocus
(
true
)"
(
onBlur
)="
toggleFocus
(
false
)"
(
onCancel
)="
searchText =
''
;
toggleFocus
(
false
);"
(
onClear
)="
searchText =
''
;
toggleFocus
(
false
);"
></SearchBar>
[
setFocus
]="
false
"
(
onFocus
)="
toggleFocus
(
true
)"
(
onBlur
)="
toggleFocus
(
false
)"
</div>
(
onClear
)="
searchText =
''
;
toggleFocus
(
false
);"
></SearchBar>
</div>
</ion-toolbar>
<v-search
*
ngIf=
"ifFocus"
[(
value
)]="
searchText
"
></v-search>
<v-search
*
ngIf=
"ifFocus"
[(
value
)]="
searchText
"
></v-search>
<ion-slides
style=
"width: 100%;height: 125px;"
mode=
"ios"
<ion-slides
style=
"width: 100%;height: 125px;"
mode=
"ios"
[
options
]="
lunbo
"
#
slide
(
ionSlideTouchEnd
)="
slideDidChange
()"
>
[
options
]="
lunbo
"
#
slide
(
ionSlideTouchEnd
)="
slideDidChange
()"
>
<ion-slide
class=
"slideCon"
*
ngFor=
"let one of imgs"
>
<ion-slide
class=
"slideCon"
*
ngFor=
"let one of imgs"
>
<div
class=
"inBox"
>
<div
class=
"inBox"
>
<img
[
src
]="'../../../
assets
/
lunbo
/'
+
one
"
>
<img
[
src
]="'../../../
assets
/
lunbo
/'
+
one
"
>
</div>
</div>
</ion-slide>
</ion-slide>
</ion-slides>
</ion-slides>
<!--<v-alarm-bar></v-alarm-bar>-->
<!--<v-alarm-bar></v-alarm-bar>-->
<!--<v-sub-title title="监测信息" style="background-color: #ffffff"></v-sub-title>-->
<!--<v-sub-title title="监测信息" style="background-color: #ffffff"></v-sub-title>-->
<h1
style=
"
<h1
style=
"
...
@@ -93,4 +96,4 @@
...
@@ -93,4 +96,4 @@
<!--<span style="font-size: 13px">{{item.online ? '在线' : '离线'}}</span>-->
<!--<span style="font-size: 13px">{{item.online ? '在线' : '离线'}}</span>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
\ No newline at end of file
src/app/home/home.page.scss
View file @
a882d143
...
@@ -109,8 +109,8 @@
...
@@ -109,8 +109,8 @@
display
:
inline-block
;
display
:
inline-block
;
width
:
calc
(
100%
-
30px
);
width
:
calc
(
100%
-
30px
);
vertical-align
:
top
;
vertical-align
:
top
;
background-color
:
#28c9bd
// background-color: #28c9bd;
padding-left
:
5px
;
}
}
.listview
{
.listview
{
...
@@ -122,4 +122,4 @@
...
@@ -122,4 +122,4 @@
.ino-item
{
.ino-item
{
padding
:
0px
0px
0px
0px
!
important
;
padding
:
0px
0px
0px
0px
!
important
;
margin
:
0px
0px
0px
0px
!
important
;
margin
:
0px
0px
0px
0px
!
important
;
}
}
\ No newline at end of file
src/app/home/home.page.ts
View file @
a882d143
...
@@ -114,15 +114,7 @@ export class HomePage implements OnInit, OnDestroy {
...
@@ -114,15 +114,7 @@ export class HomePage implements OnInit, OnDestroy {
// });
// });
console
.
log
(
one
.
url
+
query
);
console
.
log
(
one
.
url
+
query
);
this
.
nav
.
navigateForward
(
one
.
url
+
query
);
this
.
nav
.
navigateForward
(
one
.
url
+
query
);
//this.nav.navigateRoot(one.url + query);
// this.nav.navigateRoot(one.url + query);
}
toIndex
()
{
if
(
this
.
ifFocus
)
{
this
.
ifFocus
=
false
;
}
else
{
this
.
tf
.
transfer
({
url
:
'/index'
});
}
}
}
pullToRefresh
(
event
)
{
pullToRefresh
(
event
)
{
...
...
src/app/mine/mine.page.html
View file @
a882d143
<div
class=
"mainContent"
style=
"padding-top: 45px"
>
<ion-header>
<Navbar
[
leftContent
]="
icon
"
<ion-toolbar
color=
"secondary"
>
(
onLeftClick
)="
onLeftClick
()"
<ion-buttons
slot=
"start"
>
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;z-index: 2;"
<ion-back-button
text=
""
defaultHref=
"/index"
></ion-back-button>
>
</ion-buttons>
个人中心
<ion-title
class=
"ion-tittle"
>
个人中心
</ion-title>
</Navbar>
</ion-toolbar>
<div
class=
"topBar"
>
</ion-header>
<div
class=
"top"
>
<ion-content>
<div
class=
"imgPart"
>
<div
class=
"mainContent"
>
<img
style=
"height: 100%;border-radius: 100%"
src=
"../../../assets/img/none.png"
>
<div
class=
"topBar"
>
</div>
<div
class=
"top"
>
<div
class=
"topRight"
>
<div
class=
"imgPart"
>
<div
class=
"rightTop"
>
{{user.userName}}
</div>
<img
style=
"height: 100%;border-radius: 100%"
src=
"../../../assets/img/none.png"
>
<div
class=
"rightBottom"
>
{{user.companyName}}
</div>
</div>
<div
class=
"topRight"
>
<div
class=
"rightTop"
>
{{user.userName}}
</div>
<div
class=
"rightBottom"
>
{{user.companyName}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"middleCon"
>
<div
class=
"middleCon"
>
<div
class=
"line"
>
<div
class=
"line"
>
<div
class=
"label"
>
昵称
</div>
<div
class=
"label"
>
昵称
</div>
<div
class=
"text"
>
{{user.nickName}}
</div>
<div
class=
"text"
>
{{user.nickName}}
</div>
</div>
<div
class=
"line"
>
<div
class=
"label"
>
邮箱
</div>
<div
class=
"text"
>
{{user.email}}
</div>
</div>
<div
class=
"line"
>
<div
class=
"label"
>
手机号
</div>
<div
class=
"text"
>
{{user.phone}}
</div>
</div>
</div>
</div>
<div
class=
"line"
>
<div
class=
"bottomBtn"
>
<div
class=
"label"
>
邮箱
</div>
<div
Button
class=
"button"
(
click
)="
loginOut
()"
[
type
]="'
primary
'"
style=
"letter-spacing: 2px"
>
退出登录
</div>
<div
class=
"text"
>
{{user.email}}
</div>
</div>
</div>
<div
class=
"line"
>
<div
style=
"position: fixed;bottom: 20px;display: inline-block;width: 100%;text-align: center;color: #666666;font-size: 14px;"
>
<div
class=
"label"
>
手机号
</div>
版本信息: v2.9.1
<div
class=
"text"
>
{{user.phone}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"bottomBtn"
>
<div
Button
class=
"button"
(
click
)="
loginOut
()"
[
type
]="'
primary
'"
style=
"letter-spacing: 2px"
>
退出登录
</div>
</div>
<div
style=
"position: fixed;bottom: 20px;display: inline-block;width: 100%;text-align: center;color: #666666;font-size: 14px;"
>
版本信息: v2.9.1
</div>
</div>
<ng-template
#
icon
>
<ng-template
#
icon
>
<span
class=
"vo v-back"
></span>
<span
class=
"vo v-back"
></span>
</ng-template>
</ng-template>
</ion-content>
src/app/mine/mine.page.scss
View file @
a882d143
...
@@ -82,3 +82,11 @@
...
@@ -82,3 +82,11 @@
}
}
}
}
}
}
.ion-tittle
{
text-align
:
center
;
padding-left
:
0px
;
font-weight
:
lighter
;
font-size
:
large
}
src/app/mine/mine.page.ts
View file @
a882d143
...
@@ -41,7 +41,4 @@ export class MinePage implements OnInit {
...
@@ -41,7 +41,4 @@ export class MinePage implements OnInit {
}]);
}]);
}
}
onLeftClick
()
{
this
.
tf
.
transfer
({
url
:
'/index'
});
}
}
}
src/app/other/other.page.html
View file @
a882d143
<div
class=
"mainCon"
style=
"padding-top: 45px;"
[@
EnterLeave
]
>
<ion-header
mode=
"ios"
translucent=
"false"
>
<Navbar
[
leftContent
]="
icon
"
<ion-toolbar
color=
"secondary"
>
(
onLeftClick
)="
onLeftClick
()"
<ion-buttons
slot=
"start"
>
[
rightContent
]="
r
"
<ion-back-button
text=
""
defaultHref=
"/home"
></ion-back-button>
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;z-index: 2;"
</ion-buttons>
>
<ion-title
calss=
"ion-tittle"
>
{{fieldRegionName}}控制
</ion-title>
{{fieldRegionName}}控制
<ion-buttons
slot=
"end"
>
</Navbar>
<ion-button
style=
"font-size: medium"
(
click
)="
pullToRefresh
()"
>
刷新
</ion-button>
<ng-template
#
r
>
</ion-buttons>
<span
(
click
)="
pullToRefresh
()"
>
刷新
</span>
</ion-toolbar>
</ng-template>
</ion-header>
<div
class=
"topPart"
>
<ListItem
multipleLine
*
ngIf=
"yewei || yewei === 0"
>
<ion-content>
当前液位:
<div
class=
"mainCon"
style=
"padding-top: 45px;"
[@
EnterLeave
]
>
<div
class=
"process"
>
<div
class=
"topPart"
>
<div
[
class
]="'
inlineProcess
'
+
color
"
[
ngStyle
]="{
width:
proc
+
'%'}"
>
<ListItem
multipleLine
*
ngIf=
"yewei || yewei === 0"
>
当前液位:
<div
class=
"process"
>
<div
[
class
]="'
inlineProcess
'
+
color
"
[
ngStyle
]="{
width:
proc
+
'%'}"
>
</div>
</div>
</div>
</div>
{{yewei.toFixed(2)}}m
{{yewei.toFixed(2)}}m
</ListItem>
</ListItem>
<ListItem
multipleLine
*
ngIf=
"temp || temp === 0"
>
<ListItem
multipleLine
*
ngIf=
"temp || temp === 0"
>
当前温度:
当前温度:
<div
style=
"display: inline-block;margin-left: calc(100% - 145px);vertical-align: middle"
>
<div
style=
"display: inline-block;margin-left: calc(100% - 145px);vertical-align: middle"
>
{{temp.toFixed(2)}}℃
{{temp.toFixed(2)}}℃
</div>
</div>
</ListItem>
</ListItem>
</div>
</div>
<div
class=
"middlePart"
>
<div
class=
"middlePart"
>
<ion-list>
<ion-list>
<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
)]="
workModeSetting
.
workMode
"
[(
value
)]="
workModeSetting
.
workMode
"
(
ionChange
)="
workModeEvent
()"
>
<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>
</ion-select>
</ion-select>
</ion-item>
</ion-item>
<!--一键控制{{a.l}}-->
<!--一键控制{{a.l}}-->
<!--<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
*
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>
一键控制{{a.l}}
</ion-label>
<v-switch
[
value
]="
a
.
v
"
(
click
)="
allCheck
(
a
)"
[
loading
]="
a
.
d
"
></v-switch>
</ion-item>
</ion-list>
</div>
<div
class=
"bottomPart"
>
<ion-list>
<!--{{a.fieldDeviceName}}-->
<ion-item
*
ngFor=
"let a of devices;let i = index"
lines=
"full"
>
<!--<v-switch [value]="a.value" (click)="toggle(a)" [loading]="a.loading"></v-switch>-->
<!--<v-switch [value]="a.value" (click)="toggle(a)" [loading]="a.loading"></v-switch>-->
<ion-label>
一键控制{{a.l}}
</ion-label>
<ion-label>
{{a.fieldDeviceName}}
</ion-label>
<v-switch
[
value
]="
a
.
v
"
(
click
)="
allCheck
(
a
)"
[
loading
]="
a
.
d
"
></v-switch>
<v-switch
[
value
]="
a
.
value
"
(
click
)="
toggle
(
a
)"
[
loading
]="
a
.
loading
"
></v-switch>
</ion-item>
</ion-item>
</ion-list>
</ion-list>
</div>
</div>
<div
class=
"bottomPart"
>
<ion-list>
<!--{{a.fieldDeviceName}}-->
<ion-item
*
ngFor=
"let a of devices;let i = index"
lines=
"full"
>
<!--<v-switch [value]="a.value" (click)="toggle(a)" [loading]="a.loading"></v-switch>-->
<ion-label>
{{a.fieldDeviceName}}
</ion-label>
<v-switch
[
value
]="
a
.
value
"
(
click
)="
toggle
(
a
)"
[
loading
]="
a
.
loading
"
></v-switch>
</ion-item>
</ion-list>
</div>
</div>
</div>
<ng-template
#
icon
>
<ng-template
#
icon
>
<span
class=
"vo v-back"
></span>
<span
class=
"vo v-back"
></span>
</ng-template>
</ng-template>
<!--<div class="popBox123" style="z-index: 9999;-->
<!--<div class="popBox123" style="z-index: 9999;-->
<!--position: absolute;-->
<!--position: absolute;-->
<!--top: 40%;-->
<!--top: 40%;-->
<!--width: 500px;-->
<!--width: 500px;-->
<!--background-color: #ffffff;">-->
<!--background-color: #ffffff;">-->
<!--<div class="content-frank">正在向设备发起指令,预计还有 15 秒</div>-->
<!--<div class="content-frank">正在向设备发起指令,预计还有 15 秒</div>-->
<!--</div>-->
<!--</div>-->
<v-loading-bump
style=
"z-index: 9999; color: red"
[
remain
]="
comm
.
remain
"
*
ngIf=
"comm.isLoading"
></v-loading-bump>
<v-loading-bump
style=
"z-index: 9999; color: red"
[
remain
]="
comm
.
remain
"
*
ngIf=
"comm.isLoading"
></v-loading-bump>
</ion-content>
src/app/other/other.page.scss
View file @
a882d143
...
@@ -37,3 +37,10 @@
...
@@ -37,3 +37,10 @@
height
:
100%
;
height
:
100%
;
background-color
:
white
;
background-color
:
white
;
}
}
.ion-tittle
{
text-align
:
center
;
padding-left
:
0px
;
font-weight
:
lighter
;
font-size
:
large
}
src/app/other/other.page.ts
View file @
a882d143
...
@@ -177,10 +177,6 @@ export class OtherPage implements OnInit {
...
@@ -177,10 +177,6 @@ export class OtherPage implements OnInit {
}
}
onLeftClick
()
{
this
.
tf
.
transfer
({
url
:
'/home'
});
}
initAllBtn
()
{
initAllBtn
()
{
if
(
this
.
fieldRegionGroup
===
'发酵池控制组'
)
{
if
(
this
.
fieldRegionGroup
===
'发酵池控制组'
)
{
this
.
allBtns
=
[];
this
.
allBtns
=
[];
...
...
src/theme/variables.scss
View file @
a882d143
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
--ion-color-primary-tint
:
#4c8dff
;
--ion-color-primary-tint
:
#4c8dff
;
/** secondary **/
/** secondary **/
--ion-color-secondary
:
#0cd1e8
;
// --ion-color-secondary: #0cd1e8;
--ion-color-secondary
:
#28c9bd
;
--ion-color-secondary-rgb
:
12
,
209
,
232
;
--ion-color-secondary-rgb
:
12
,
209
,
232
;
--ion-color-secondary-contrast
:
#ffffff
;
--ion-color-secondary-contrast
:
#ffffff
;
--ion-color-secondary-contrast-rgb
:
255
,
255
,
255
;
--ion-color-secondary-contrast-rgb
:
255
,
255
,
255
;
...
@@ -82,6 +83,14 @@
...
@@ -82,6 +83,14 @@
--ion-color-white-contrast-rgb
:
0
,
0
,
0
;
--ion-color-white-contrast-rgb
:
0
,
0
,
0
;
--ion-color-white-shade
:
#e0e0e0
;
--ion-color-white-shade
:
#e0e0e0
;
--ion-color-white-tint
:
#ffffff
;
--ion-color-white-tint
:
#ffffff
;
/** light gray **/
--ion-color-gray
:
#efeff4
;
--ion-color-gray-rgb
:
239
,
239
,
244
;
--ion-color-gray-contrast
:
#000000
;
--ion-color-gray-contrast-rgb
:
0
,
0
,
0
;
--ion-color-gray-shade
:
#e0e0e0
;
--ion-color-gray-tint
:
#ffffff
;
}
}
.ion-color-white
{
.ion-color-white
{
...
@@ -92,3 +101,12 @@
...
@@ -92,3 +101,12 @@
--ion-color-shade
:
var
(
--
ion-color-white-shade
);
--ion-color-shade
:
var
(
--
ion-color-white-shade
);
--ion-color-tint
:
var
(
--
ion-color-white-tint
);
--ion-color-tint
:
var
(
--
ion-color-white-tint
);
}
}
.ion-color-gray
{
--ion-color-base
:
var
(
--
ion-color-gray
);
--ion-color-base-rgb
:
var
(
--
ion-color-gray-rgb
);
--ion-color-contrast
:
var
(
--
ion-color-gray-contrast
);
--ion-color-contrast-rgb
:
var
(
--
ion-color-gray-contrast-rgb
);
--ion-color-shade
:
var
(
--
ion-color-gray-shade
);
--ion-color-tint
:
var
(
--
ion-color-gray-tint
);
}
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