<nz-page-header>
  <nz-breadcrumb nz-page-header-breadcrumb>
    <nz-breadcrumb-item>教材申报</nz-breadcrumb-item>
    <nz-breadcrumb-item>申报流程</nz-breadcrumb-item>
    <nz-breadcrumb-item
      ><a>{{
        eduProcess?.get("department")?.get("name") || "未选择申报单位"
      }}</a></nz-breadcrumb-item
    >
  </nz-breadcrumb>
  <nz-page-header-title
    >{{ eduProcess?.get("department")?.get("name") || "未选择申报单位" }}
    <br />
    <div class="subtitle">
      在流程中邀请作者、高校联系人、评审员登录系统，创建并提交教材，由工作联系人评审、提交推荐教材完成流程工作
    </div>
  </nz-page-header-title>
</nz-page-header>
<div class="edit-content">
  <nz-tabset [(nzSelectedIndex)]="active">
    <nz-tab nzTitle="流程管理">
      @if (active == 0) {
      <app-process-create [isEdit]="true"></app-process-create>
      }
    </nz-tab>
    <nz-tab nzTitle="教材列表">
      @if (active == 1 && eduProcess) {
      <div class="title">待评审教材列表</div>
      <app-textbook
        [filterObj]="beforeFilterObj"
        [eduProcess]="eduProcess"
        ></app-textbook>
      <br />
      <div class="title">推荐教材列表</div>
      <app-textbook
        [filterObj]="afterFilterObj"
        [recommend]="true"
        [eduProcess]="eduProcess"
        ></app-textbook>
      }
    </nz-tab>
  </nz-tabset>
</div>
