<ion-header>
<ion-toolbar style="text-align:center;--background: #6495ED;--color:#FFFFFF">
<ion-buttons slot="start">
<ion-button (click)="returnPage()">
<ion-icon name="arrow-back"></ion-icon>
</ion-button>
</ion-buttons>
<ion-title>上课班信息</ion-title>
<ion-buttons slot="end">
<ion-button (click)="onCreate()" style="margin-right:24px">
<ion-icon name="person-add"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content style="--background:#EEEEEE" padding>
<ion-card *ngFor="let item of course,let i=index">
<ion-item>
<ion-label (click)="isShowHandler(i,item.courseId)">{{item.courseName}}</ion-label>
<ion-icon slot="end" name="ios-arrow-down" *ngIf="isShow =='show'+i" (click)="isShowHandler(i,item.courseId)"></ion-icon>
<ion-icon slot="end" name="ios-arrow-forward" *ngIf="isShow !='show'+i" (click)="isShowHandler(i,item.courseId)"></ion-icon>
</ion-item>
<!--展开-->
<ion-list *ngIf="isShow=='show'+i">
<ion-item class="program" *ngFor="let pItem of teachClass">
<ion-label (click)="teachClassInfo(pItem.teachClassId,pItem.name,pItem.code)">
{{pItem.name}}
</ion-label>
<ion-button *ngIf="pItem.name != '此课程暂无上课班'" (click)="deleteTeachClass(pItem.teachClassId)" color="danger">删除</ion-button>
</ion-item>
</ion-list>
</ion-card>
</ion-content>