<div class="mainCon upCon">
  <div style="background-color: #efeff4">
    <v-search-history *ngIf="items.length === 0" [history]="historys" (oneClick)="choose($event)"></v-search-history>
    <div class="item" *ngFor="let item of items" (click)="toControl(item.url, item.name, item.no)">
      <div>
        <div class="top">{{item.name}}
          <div class="right">{{item.time | date: 'yyyy-MM-dd HH:mm:ss'}}</div>
        </div>
        <div class="content">
          <div class="left">
            <img [src]="'../../assets/img/' + item.img">
          </div>
          <div class="rightCon">
            <div class="block1">池体液位: &nbsp;&nbsp;{{item.yewei}} m</div>
            <div class="block2">液体温度: &nbsp;&nbsp;{{item.temp}} ℃</div>
            <div class="block2">运行状态: &nbsp;&nbsp;{{item.state ? '工作中' : '离线'}} </div>
          </div>
        </div>
        <div class="bottom">
          <div [ngClass]="{'sucCir': item.state, 'errCir': !item.state}"></div>&nbsp;
          <span style="font-size: 13px">{{item.state ? '在线' : '离线'}}</span>
        </div>
      </div>
    </div>
  </div>
</div>
