<ion-header>
  <ion-navbar>
    <ion-title text-center>外出报备</ion-title>
  </ion-navbar>
</ion-header>

<ion-content class="content">
  <div class="item1">
    <div class="img-box">
      <img class="item1-image" src="{{picture}}">
     

    </div>
    <div class="item1-content">
      <div class="item1-content-header">
        <div class="item1-title">{{premanager.title}}</div>
      </div>
      <div class="item1-introduction">
       {{introduce}}
        <button class="btn-introduce" (click)="show()">详细说明</button>
      </div>
    </div>
  </div>
  <ion-list>
    <ion-item>
      <div class="report-info">
        报备信息
      </div>
    </ion-item>
    <ion-item>

      <div class="choose-item">
        <div (click)="chooseLeave(1)" class="report-item-title {{ !isLeave?'isLeave':'notLeave' }}">
          不离沪
          <img *ngIf="!isLeave" class="right-icon" src="./assets/imgs/right-white.png"  >
        </div>


        <div (click)="chooseLeave(0)" class="report-item-title {{ isLeave?'isLeave':'notLeave' }}">
          离沪
          <img *ngIf="isLeave" class="right-icon" src="./assets/imgs/right-white.png"  >
        </div>
      </div>

    </ion-item>
    <ion-item *ngIf="isLeave" (click)="editReport()">
      <div class="report-item">
        <div class="report-item-title">离沪详情信息</div>
        <div class="report-item-content">
          <span>{{dategap}}</span>
          <img class="right-icon" src="./assets/imgs/right-arrow.png" >
        </div>
      </div>
    </ion-item>

    <ion-item *ngIf="isLeave">
      <div class="report-item">
        <div class="report-item-title">离沪地点信息</div>
        <div class="report-item-content">
          <span>{{locations}}</span>
        </div>
      </div>
    </ion-item>

  </ion-list>
  <button class="submit-btn submit" *ngIf="!premanager.reported" (click)="savePremanager()">提交报备</button>
  <button class="submit-btn submit" *ngIf="premanager.reported" (click)="editPremanager()">修改报备</button>
</ion-content>


<div class="cover" *ngIf="isCover">
	<div class="cover-content">
		<div class="cover-content-box">
			<h4 class="cover-content-title">具体介绍</h4>
			<div class="cover-content-info">
				<p>
          {{premanager.managerDesc}}
				</p>
			</div>
			<button style="width: 100%;" class="submit-btn submit" (click)="hidden()">
				关闭
			</button>
		</div>
	</div>
</div>