<div class="mainCon">
    <Navbar [leftContent]="icon"
            (onLeftClick)="onLeftClick()"
            style="background-color: #28c9bd"
    >
        {{fieldRegionName}}控制
    </Navbar>
    <div class="topPart">
        <ListItem multipleLine *ngIf="this.yewei">
            当前液位:
            <div class="process">
                <div [class]="'inlineProcess ' + color" [ngStyle]="{width: proc + '%'}">
                </div>
            </div>
            {{yewei.toFixed(2)}}m
        </ListItem>
        <ListItem multipleLine *ngIf="this.temp">
            当前温度:
            <div style="display: inline-block;margin-left: calc(100% - 145px);vertical-align: middle">
                {{temp.toFixed(2)}}℃
            </div>
        </ListItem>
    </div>
    <div class="bottomPart">
        <ListItem multipleLine *ngFor="let a of devices;let i = index">
            {{a.fieldDeviceName}}
            <v-switch [value]="a.value" (click)="toggle(a)" [loading]="a.loading"></v-switch>
        </ListItem>
    </div>
</div>
<ng-template #icon>
    <span class="vo v-back"></span>
</ng-template>
