<ion-header>

  <ion-navbar>
    <ion-title>问卷调查</ion-title>
  </ion-navbar>

</ion-header>


<ion-content class="bgc-e7e8ed">
  <ion-list>
    <ng-container *ngIf="list.length > 0">
      <ng-container *ngFor="let item of list" >
        <ng-container *ngIf="item?.writeSelf != 0">
          <ion-item class="item-list margin-bottom-10" >
            <div class="item" (click)="goToResult(item)">
              <div class="item-header padding-15-0">
                <div class="item-header-style">
                  <span class="item-title">{{item.title}}</span>
                  <span float-right class="done">已完成</span>
                </div>
              </div>
              <div class="content-button padding-15-0">
                <span>参与人员:</span>
                <span *ngIf="item.groupName">{{item.groupName}}</span>
                <span *ngIf="!item.groupName">全体人员</span>
                <span float-right class="look">查看</span>
              </div>
            </div>
          </ion-item>
        </ng-container>
        <ng-container *ngIf="item?.writeSelf == 0">
          <ion-item class="item-list margin-bottom-10">
            <div class="item" (click)="geToWrite(item)" >
              <div class="item-header padding-15-0">
                <div class="item-header-style">
                  <span class="item-title">{{item.title}}</span>
                  <span float-right class="going">未作答</span>
                </div>
              </div>
              <div class="content-button padding-15-0">
                <span>参与人员:</span>
                <span *ngIf="item.groupName">{{item.groupName}}</span>
                <span *ngIf="!item.groupName">全体人员</span>
                <span float-right class="join">参与</span>
              </div>
            </div>
          </ion-item>
        </ng-container>
      </ng-container>
    </ng-container>
  </ion-list>
</ion-content>
