<div class="panel panel-default">
        <!--标题-->
        <div class="panel-title">
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <!-- TODO 
                    <li class="breadcrumb-item">毕业审核</li>-->
                    <li class="breadcrumb-item active" aria-current="page">毕业证明</li>
                </ol>
            </nav>
        </div>

        <div [hidden]="editShowType=='only'||editShowType=='only1'" class="panel-title panel-heading jf-org-tab" style="margin-top:0px;margin-bottom:-1px;">
            <div class="panel-control" style="float:left;">
                <ul class="nav nav-tabs">
                    <li [class]='0 == isActive? "li-class-active" : "li-class" ' (click)="changeLi($event,0,1)">毕业成绩</li>
                    <li [class]='1 == isActive? "li-class-active" : "li-class" ' (click)="changeLi($event,1,2)">平时成绩</li>
                   
    
                </ul>
            </div>
        </div>
        
        <div *ngIf="0 == isActive" class="panel-body ml-sm" [hidden]="editShowType=='only' || editShowType=='authQuery'">
            <div class="card card-default">
                <div class="card-body">
                    <!--查询条件-->
                    <div class="row mb-3 ml-1" [hidden]="editShowType=='only' || editShowType=='authQuery'">
                        <div class="col-lg-12">
                            
                            <form (ngSubmit)="searchData($event)" class="form-inline">
                                    <table>
                                            <tr>
                                                <td>
                                        <div class="input-group mr-1 input-group-sm">
                                            <label>关键字：</label>
                                            <input name="keyword" [(ngModel)]="query.query" class="input-sm form-control" type="text"
                                                        value="" maxlength="50" placeholder="请输入姓名、准考证号、身份证号、毕业证号查询" style="width:400px;" >
                                        </div>
                                    </td>
                                    <td>
                                        <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="searchData($event)">
                                            <i class="fa fa-search"></i> 查询</button>
                                        
                                    </td>
                                       
                                        </tr>
                                        </table>
                                </form>
                        </div>
                    </div>
    
                  
                    <!--表格-->
                    <div class="row">
                        <div class="col-lg-12 ml-0" [hidden]="editShowType=='only' || editShowType=='authQuery'">
                                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                                        <thead>
                                            <tr>
                                                <th>
                                                    <div class="checkbox c-checkbox">
                                                        <label>
                                                            <input type="checkbox" (change)="framePager.checkedMasterToggle($event)" />
                                                            <span class="fa fa-check"></span>
                                                        </label>
                                                    </div>
                                                </th>
                                                <th>序号</th>
                                                <th align="center">毕业日期</th>
                                                <th align="center">准考证</th>
                                                <th>身份证</th>
                                                <th>姓名</th>
                                                <th>毕业证书号</th>
                                                <th>专业层次</th>
                                                <th>专业名称</th>
                                                
                                                <th>主考学校</th>
                                                
                                                
                                                
                                                <th align="center" nowrap>操作</th>
                                                
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr *ngFor="let item of framePager.getRecords(); let i = index">
                                                <td>
                                                    <div class="checkbox c-checkbox input-group-sm">
                                                        <label>
                                                            <input type="checkbox" [value]="item.id" [(checked)]="item.isChecked"
                                                                [(ngModel)]="item.isChecked" />
                                                            <span class="fa fa-check"></span>
                                                        </label>
                                                    </div>
                                                </td>
                                                <td>{{framePager.pageStart + i}}</td>
                                                <td align="center">{{item.exam_year_month}}</td>
                                                <td align="center">{{item.ticket_no}}</td>
                                                <td>{{item.cert_no}}</td>
                                                <td>{{item.std_name}}</td>
                                                <td>{{item.diaplma_no}}</td>
                                                <td  [innerHTML]="item.major_level | frameDict:'MajorLevel'"></td>
                                                <td>{{item.major_code}}-{{item.major_name}}</td>
                                                
                                                <td>{{item.org_code}}-{{item.org_name}}</td>
                                               
                                                
                                                    <td align="center">
                                                        <a href="#" (click)="showEditWin(item)" title="详情"><em
                                                                class="fa-lg fas icon-list mr-1"></em></a>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                        <a href="#" *ngIf="item.id>0" (click)="downloadByScoreTable(item.id)" title="下载毕业成绩证明">
                                                            <i class="fa fa-download"></i>
                                                        </a>  
                                                      
                                                    </td>
                                               
                                            </tr>
                                        </tbody>
                                    </table>
                            <!-- TODO -->
                            <frame-pager [url]="QUERY_URL" [autoLoad]="false" hideSearch="true" hasCheck="true" #framePager (preReqEvent)="search($event)"></frame-pager>
                        </div>
    
                        <!-- 编辑页面 -->
                        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType!='modal'">
                            <ng-container *ngTemplateOutlet="editTemplateModal">
                            </ng-container>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div *ngIf="1 == isActive" class="panel-body ml-sm" [hidden]="editShowType=='only1' || editShowType=='authQuery'">
            <div class="card card-default">
                <div class="card-body">
                    <!--查询条件-->
                    <div class="row mb-3 ml-1" [hidden]="editShowType=='only1' || editShowType=='authQuery'">
                        <div class="col-lg-12">
                            
                            <form (ngSubmit)="searchStd()" class="form-inline">
                                <div class="input-group mr-1 input-group-sm">
                                    <label>准考证号：</label>
                                    <input name="ticket_no" [(ngModel)]="ticket_no" class="input-sm form-control" type="text" value=""
                                      maxlength="64" placeholder="请输入准考证号">
                                  </div>
                                  <div class="input-group mr-1 input-group-sm">
                                    <label>考生姓名：</label>
                                    <input name="std_name" [(ngModel)]="std_name" class="input-sm form-control" type="text" value=""
                                      maxlength="64" placeholder="请输入考生姓名">
                                  </div>
                                  <div class="input-group mr-1 input-group-sm">
                                    <label>证件号码：</label>
                                    <input name="cert_no" [(ngModel)]="cert_no" class="input-sm form-control" type="text" value=""
                                      maxlength="64" placeholder="请输入证件号码">
                                  </div>
                                  <div class="input-group mr-1 input-group-sm">
                                    <label>手机号码：</label>
                                    <input name="std_mobile" [(ngModel)]="std_mobile" class="input-sm form-control" type="text" value=""
                                      maxlength="64" placeholder="请输入手机号码">
                                  </div>
                                  <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1">
                                    <i class="fa fa-search"></i> 查询</button>
                                </form>
                        </div>
                    </div>
    
                  

                    <!--表格-->
                    <div class="row">
                        <div class="col-lg-12 ml-0" [hidden]="editShowType=='only1' || editShowType=='authQuery'">
                            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                                <thead>
                                  <tr>
                                    <th align="center">准考证号</th>
                                    <th>考生姓名</th>
                                    <th>证件号码</th>
                                    <th>专业</th>
                                    <th>主考学校</th>
                                    <th>手机号码</th>
                                    <th style="width: 80px;" align="center">操作</th>
                                  </tr>
                                </thead>
                                <tbody>
                                  <tr *ngFor="let item of stdList; let i = index" >
                                    
                                    <td align="center">{{item.ticket_no}}</td>
                                    <td>{{item.std_name}}</td>
                                    <td>{{item.cert_no}}</td>
                                    <td>{{item.major_name}}</td>
                                    <td>{{item.school_name}}</td>
                                    <td>{{item.std_mobile}}</td>
                                    <td align="center">
                                      <a href="#" *ngIf="item.id>0" (click)="showEditWin1(item)" title="详情"><em
                                          class="fa-lg fas icon-list mr-1"></em></a>
                                      
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                        </div>
    
                        <!-- 编辑页面 -->
                        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType!='modal'">
                            <ng-container *ngTemplateOutlet="editTemplateModal">
                            </ng-container>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- only 审核界面-->
        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='only'">
            <ng-container *ngTemplateOutlet="editTemplateModal">
            </ng-container>
        </div>
        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='only1'">
            <ng-container *ngTemplateOutlet="editTemplateModal1">
            </ng-container>
        </div>
        <!-- authQuery 审核记录查询-->
        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='authQuery'">
            <ng-container *ngTemplateOutlet="authQueryModal">
            </ng-container>
        </div>
        <!--录入分数界面-->
        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='input'">
            <ng-container *ngTemplateOutlet="manualInputModal">
            </ng-container>
        </div>
        <!--课程顶替界面-->
        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='repl'">
            <ng-container *ngTemplateOutlet="courseReplModal">
            </ng-container>
        </div>
        <!--创建毕业申请-考生引用界面-->
        <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='stdRef'">
            <ng-container *ngTemplateOutlet="stdRefModal">
            </ng-container>
        </div>
    </div>
    
<!--******************************************************毕业审核详情界面****************************************************-->
<ng-template #editFormTemplate>
    <form [formGroup]="formModel" *ngIf="item" class="form-validate form-horizontal" novalidate="">
            <input type="hidden" class="form-control" formControlName="id" [(ngModel)]="item.id" [formControl]="formModel.controls['id']" />
            <div class="row mb-1">
                <!-- 学生基础信息 -->
                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                    <tbody>
                            <tr>
                                <td style="text-align: right" width="9%">姓名</td>
                                <td width="23%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.std_name" readonly/></td>
                                <td style="text-align: right" width="7%">身份证</td>
                                <td width="23%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.cert_no" readonly/></td>
                                <td rowspan="7" style="width:20%;text-align: center">
                                        <span *ngIf="item.photo_path">考生照片</span>
                                    <div *ngIf="item.photo_path" class="text-muted" style="vertical-align:middle;">
                                        <img  [src]="item.photo_path" style="width: 200;height: 200px">
                                    </div>
                                </td>
                                <td rowspan="7" style="width:20%;text-align: center">
                                    <span *ngIf="item.by_photo">毕业照片</span>
                                    <div *ngIf="item.by_photo" class="text-muted">
                                        <img [src]="item.by_photo" style="width: 200;height: 200px;" >
                                    </div>

                                    <span *ngIf="!item.by_photo && item.by_photo_path">毕业照片</span>
                                    <div *ngIf="!item.by_photo && item.by_photo_path" class="text-muted">
                                        <img [src]="item.by_photo_path" style="width: 200;height: 200px;" >
                                    </div>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">准考证</td>
                                <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.ticket_no" readonly/></td>
                                <td style="text-align: right">性别</td>
                                <td>
                                    <select [ngModelOptions]="{standalone: true}" disabled
                                        [(ngModel)]="item.std_sex" 
                                        frameDict [dictName]="'StdSexType'" 
                                        class="form-control">
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">民族</td>
                                <td>
                                    <select [ngModelOptions]="{standalone: true}" disabled
                                        [(ngModel)]="item.nation" 
                                        frameDict [dictName]="'std_nation'" 
                                        class="form-control">
                                    </select>
                                </td>
                                <td style="text-align: right">出生日期</td>
                                <td>
                                    <input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}"  DateTimePicker [dpType]="'date'" [dpValue]="item.std_birth" [(ngModel)]="item.std_birth"/>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">省市自治区</td>
                                <td><input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}" [(ngModel)]="item.native_prov"/></td>
                                <td style="text-align: right">市(县)</td>
                                <td><input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}" [(ngModel)]="item.native_city"/></td>
                            </tr>
                            <tr>
                                <td style="text-align: right">政治面貌</td>
                                <td>
                                    <select
                                        [(ngModel)]="item.political" disabled
                                        frameDict [dictName]="'std_political_status'" 
                                        [ngModelOptions]="{standalone: true}"
                                        class="form-control">
                                    </select>
                                </td>
                                <td style="text-align: right">考前学历</td>
                                <td><input class="form-control" type="text" readonly [(ngModel)]="item.pre_edu" [ngModelOptions]="{standalone: true}"/></td>
                            </tr>
                            <tr>
                                <td style="text-align: right">工作单位</td>
                                <td><input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}" [(ngModel)]="item.work_unit"/></td>
                                <td style="text-align: right">联系电话</td>
                                <td><input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}" [(ngModel)]="item.telephone"/></td>
                            </tr>
                            <tr>
                                <td style="text-align: right">家庭地址</td>
                                <td><input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}" [(ngModel)]="item.address"/></td>
                                <td style="text-align: right">邮政编码</td>
                                <td><input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}" [(ngModel)]="item.post_code"/></td>
                            </tr>

                            <tr>
                                <td style="text-align: right">毕业证书号</td>
                                <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.diaplma_no" readonly/></td>
                                <td style="text-align: right">专业层次</td>
                                <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="majorLevel" readonly/></td>
                            </tr>
                            <tr>
                                <td style="text-align: right">主考学校</td>
                                <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.org_name" readonly/></td>
    
                               
                                <td style="text-align: right">专业</td>
    
                                <td>
                                        {{item.major_code}}-{{item.major_name}}
                                </td>
                                <td colspan="2">
                                        
                                       
                                </td>
                            </tr>
                    </tbody>
                </table>
            </div>

            <div class="row mb-1">
               
                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th align="center">课程代码</th>
                            <th>课程名称</th>
                            <th align="center">学分</th>
                            <th align="center">成绩</th>
                            
                        </tr>
                    </thead>
                    <tbody>
                        <tr *ngFor="let it of scoreList; let i = index">
                            <td>{{i+1}}</td>
                            <td align="center">{{it.course_code}}</td>
                            <td>{{it.course_name}}</td>
                            <td align="right">{{it.course_score}}</td>
                            <td align="right">{{formateFinalScore(it)}}</td>                           
                        </tr>
                    </tbody>
                </table>
            </div>
            
           
    </form>
   
</ng-template>

<ng-template #editTemplateModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 详情页面
            </div>
            <button type="button" class="close" (click)="hideModal()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="editFormTemplate"></div>
        </div>

        <div class="modal-footer" style="text-align: center">
           
            <button class="btn btn-default" (click)="hideModal()">
                <i class="icon-close"> </i> 关闭
            </button>
        </div>
    </div>
</ng-template>



<ng-template #editFormTemplate1>
    <form [formGroup]="formModel" *ngIf="item" class="form-validate form-horizontal" novalidate="">
            <input type="hidden" class="form-control" formControlName="id" [(ngModel)]="item.id" [formControl]="formModel.controls['id']" />
            <div class="row mb-1">
                <!-- 学生基础信息 -->
                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                        <tbody>
                                <tr>
                                    <td style="text-align: right" width="9%">姓名</td>
                                    <td width="23%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.std_name" readonly/></td>
                                    <td style="text-align: right" width="7%">身份证</td>
                                    <td width="23%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.cert_no" readonly/></td>
                                    <td rowspan="7" style="width:20%;text-align: center;">
                                        <div *ngIf="item.photo_path" class="text-muted" style="vertical-align:middle;">
                                            <img  [src]="item.photo_path" style="width: 200;height: 200px">
                                        </div>
                                    </td>
                                    
                                </tr>
                                <tr>
                                    <td style="text-align: right">准考证</td>
                                    <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.ticket_no" readonly/></td>
                                    <td style="text-align: right">性别</td>
                                    <td>
                                        <select [ngModelOptions]="{standalone: true}" disabled
                                            [(ngModel)]="item.std_sex" 
                                            frameDict [dictName]="'StdSexType'" 
                                            class="form-control">
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: right">民族</td>
                                    <td>
                                        <select [ngModelOptions]="{standalone: true}" disabled
                                            [(ngModel)]="item.std_nation" 
                                            frameDict [dictName]="'std_nation'" 
                                            class="form-control">
                                        </select>
                                    </td>
                                    <td style="text-align: right">出生日期</td>
                                    <td>
                                        <input class="form-control" type="text" readonly [ngModelOptions]="{standalone: true}"  DateTimePicker [dpType]="'date'" [dpValue]="item.std_birth" [(ngModel)]="item.std_birth"/>
                                    </td>
                                </tr>
                               
                                <tr>
                                    <td style="text-align: right">政治面貌</td>
                                    <td>
                                        <select
                                            [(ngModel)]="item.political_status" disabled
                                            frameDict [dictName]="'std_political_status'" 
                                            [ngModelOptions]="{standalone: true}"
                                            class="form-control">
                                        </select>
                                    </td>
                                    <td style="text-align: right">学历</td>
                                    <td>
                                        <select
                                            [(ngModel)]="item.std_edu" disabled
                                            frameDict [dictName]="'std_edu'" 
                                            [ngModelOptions]="{standalone: true}"
                                            class="form-control">
                                        </select>
    
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td style="text-align: right">手机号码</td>
                                    <td>
                                            <input class="form-control" type="text" maxlength="11" readonly [(ngModel)]="item.std_mobile" [ngModelOptions]="{standalone: true}" />
    
                                    </td>
                             </tr>
    
                                
                                <tr>
                                    <td style="text-align: right">专业层次</td>
                                    <td>
                                        <select class="custom-select"  frameDict [dictName]="'MajorLevel'"  [(dictValue)]="item.major_level"  [(ngModel)]="item.major_level"
                                        (change)="majorLevelChange(item.major_level)" [ngModelOptions]="{standalone: true}">
                                        </select>
                                    </td>
        
                                   
                                    <td style="text-align: right">专业</td>
                                    <td>
                                        <flex-select [allowClear]="true" [(items)]="majorArray" respDataPath="array" optionTextField="major_full_name" optionValueField="id"
                                        [(ngModel)]="item.major_id" placeholder="请选择" width="300" noResultsFound="无数据" (ngModelChange)="majorChange(item)"
                                        [ngModelOptions]="{standalone: true}">
                                        </flex-select>
                                   
                                            
                                    </td>
                                   
                                </tr>
                        </tbody>
                    </table>
            </div>

             <!-- 工具栏 -->
             <div class="row mb-2" >
                    <div class="col-lg-12">
                        <div class="pull-left" style="text-align: right;">
                            <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left"
                                (click)="downloadStdMajorScoreTable(item)" title="下载专业成绩证明">
                                下载专业成绩证明</button>
                            
                                
                        </div>

                    </div>

                   

                </div>

            <div class="row mb-1">
               
                    <table class="table table-sm table-striped table-hover table-bordered bg-white">
                            <thead>
                              <tr align="center">
                                <th>序号</th>
                                <th  align="center">考试年月</th>
                                <th>考生姓名</th>
                                <th  align="center">准考证号</th>
                                <th>身份证</th>
                                <th  align="center">课程代码</th>
                                <th>课程名称</th>
                                <th  align="center">成绩</th>
                                 <!--<th>状态</th> -->
                                <th>成绩来源</th>
                                <th>成绩性质</th>
                                <th>专业</th>
                                <th>主考学校</th> 
                              </tr>
                            </thead>
                            <tbody>
                              <tr *ngFor="let item of historyScore; let i = index" align="center">
                                <td title="红色表示课程成绩未合格" *ngIf="item.id != null"><font *ngIf="item.remark == 'red'" color="red">{{item.id}}</font><font *ngIf="item.remark != 'red'">{{item.id}}</font></td>
                                <td title="红色表示课程成绩未合格" *ngIf="item.id == null"><font *ngIf="item.remark == 'red'" color="red">{{i+1}}</font><font *ngIf="item.remark != 'red'">{{i+1}}</font></td>
                                <td  align="center" title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.year_code}}</font><font *ngIf="item.remark != 'red'">{{item.year_code}}</font></td>
                                <td title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.std_name}}</font><font *ngIf="item.remark != 'red'">{{item.std_name}}</font></td>
                                <td  align="center" title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.ticket_no}}</font><font *ngIf="item.remark != 'red'">{{item.ticket_no}}</font></td>
                                <td title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.cert_no}}</font><font *ngIf="item.remark != 'red'">{{item.cert_no}}</font></td>
                                <td  align="center" title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.course_code}}</font><font *ngIf="item.remark != 'red'">{{item.course_code}}</font></td>
                                <td title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.course_name}}</font><font *ngIf="item.remark != 'red'">{{item.course_name}}</font></td>
                                <td  align="right" title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.final_score}}</font><font *ngIf="item.remark != 'red'">{{item.final_score}}</font></td>
                                 <!--<td>{{item.status_name}}</td> -->
                                <td title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.score_source_name}}</font><font *ngIf="item.remark != 'red'">{{item.score_source_name}}</font></td>
                                <td title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.score_type_name}}</font><font *ngIf="item.remark != 'red'">{{item.score_type_name}}</font></td>
                                <td title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.major_name}}</font><font *ngIf="item.remark != 'red'">{{item.major_name}}</font></td>
                                <td title="红色表示课程成绩未合格"><font *ngIf="item.remark == 'red'" color="red">{{item.org_name}}</font><font *ngIf="item.remark != 'red'">{{item.org_name}}</font></td> 
                  
                              </tr>
                              
                            </tbody>
                          </table>
            </div>
            
           
    </form>
   
</ng-template>

<ng-template #editTemplateModal1>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 详情页面
            </div>
            <button type="button" class="close" (click)="hideModal()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="editFormTemplate1"></div>
        </div>

        <div class="modal-footer" style="text-align: center">
           
            <button class="btn btn-default" (click)="hideModal()">
                <i class="icon-close"> </i> 关闭
            </button>
        </div>
    </div>
</ng-template>

    
<!-- ***********************************************审核记录查询框******************************************************* -->
<ng-template #authQueryModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 查看页面
            </div>
            <button type="button" class="close" (click)="hideModal()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="authQueryTemplate"></div>
        </div>

        <div class="modal-footer" style="text-align: center">
            <button class="btn btn-default" (click)="hideModal()">
                <i class="icon-close"> </i> 关闭
            </button>
        </div>
    </div>
</ng-template>
    
<ng-template #authQueryTemplate>
    <form [formGroup]="formModel" *ngIf="item" class="form-validate form-horizontal" novalidate="">
            <input type="hidden" class="form-control" formControlName="id" [(ngModel)]="item.id" [formControl]="formModel.controls['id']" />
            <div class="row mb-1">
                <!-- 学生基础信息 -->
                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                    <tbody>
                        <tr>
                            <td colspan="2">准考证号：{{item.ticket_no}}</td>
                        </tr>
                        <tr>
                            <td>姓名：{{item.std_name}}</td>
                            <td>性别：{{item.std_sex | frameDict:'StdSexType'}}</td>
                        </tr>
                        <tr>
                            <td>主考学校：{{item.school_name}}</td>
                            <td>专业：{{item.major_name}}</td>
                        </tr>
                        <tr>
                            <td>身份证号码：{{item.cert_no}}</td>
                            <td>联系电话：{{item.telephone}}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="row mb-1" style="text-align: center">
                <label class="col-lg-2 col-form-label text-lg-left">审核流程信息</label>
            </div>
            <div class="row mb-1">
                <!-- 审核流程列表 -->
                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                    <thead>
                        <tr>
                            <th width="10%">序号</th>
                            <th>审核类型</th>
                            <th>审核时间</th>
                            <th>审核人</th>
                            <th>审核意见</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr *ngFor="let it of authList; let i = index">
                            <td>{{i+1}}</td>
                            <td>{{it.auth_type | frameDict:'ByAuthType'}}</td>
                            <td>{{it.auth_time}}</td>
                            <td>{{it.optr_name}}</td>
                            <td>{{it.auth_remark}}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="row mb-1" style="text-align: center">
                <label class="col-lg-2 col-form-label text-lg-left">成绩列表</label>
            </div>
            <div class="row mb-1">
                <!-- 成绩列表 -->
                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>课程代码</th>
                            <th>课程名称</th>
                            <th>课程性质</th>
                            <th>成绩来源</th>
                            <th>原始成绩</th>
                            <th>最终成绩</th>
                            <th>是否合格</th>
                            
                        </tr>
                    </thead>
                    <tbody>
                        <tr *ngFor="let it of scoreList; let i = index">

                            <td>{{i+1}}</td>
                            <td>{{it.course_code}}</td>
                            <td>{{it.course_name}}</td>
                            <td [innerHTML]="it.course_nature | frameDict:'CourseNature'"></td>
                            <td [innerHTML]="it.score_source | frameDict:'ScoreSource'"></td><!--成绩来源-->
                            <td>{{formateOrignScore(it)}}</td><!--原始成绩-->
                            <td>{{formateFinalScore(it)}}</td><!--最终成绩(合成后)-->
                            <td [innerHTML]="it.is_passed | frameDict:'YesOrNo'"></td>

                        </tr>
                    </tbody>
                </table>
            </div>
    </form>
</ng-template>

<!--*******************************手工录入分数**********************************************************************-->
<ng-template #manualInputModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 编辑页面
            </div>
            <button type="button" class="close" (click)="inputModalWin.hide()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="manualInputTemplate"></div>
        </div>

        <div class="modal-footer">
            <button class="btn btn-info" (click)="saveMannualInput()">
                <i class="fa fa-info-circle"> </i> 保存
            </button>
            <button class="btn btn-default" (click)="inputModalWin.hide()">
                <i class="icon-close"> </i> 取消
            </button>
        </div>
    </div>
</ng-template>

<ng-template #manualInputTemplate>
    <form [formGroup]="scoreFormModel" class="form-validate form-horizontal" novalidate="">
            <div class="row mb-1">
                <label class="col-md-2 col-form-label text-md-right">课程代码</label>
                <div class="col-md-3">
                    <input type="text" class="form-control" formControlName="course_code" [(ngModel)]="inputScore.course_code" [formControl]="scoreFormModel.controls['course_code']"/>
                    <span class="text-danger" *ngIf="scoreFormModel.get('course_code').hasError('required') && (scoreFormModel.get('course_code').dirty || scoreFormModel.get('course_code').touched)">请输入课程代码</span>
                </div>
            </div>
            <div class="row mb-1">
                <label class="col-md-2 col-form-label text-md-right">课程名称</label>
                <div class="col-md-3">
                    <input type="text" class="form-control" formControlName="course_name" [(ngModel)]="inputScore.course_name" [formControl]="scoreFormModel.controls['course_name']"/>
                    <span class="text-danger" *ngIf="scoreFormModel.get('course_name').hasError('required') && (scoreFormModel.get('course_name').dirty || scoreFormModel.get('course_name').touched)">请输入课程代码</span>
                </div>
            </div>
            <div class="row mb-1">
                <label class="col-md-2 col-form-label text-md-right">最终成绩</label>
                <div class="col-md-3">
                    <input class="form-control" formControlName="final_score" type="number" 
                        [(ngModel)]="inputScore.final_score" [formControl]="scoreFormModel.controls['final_score']"  width="100"/>
                    <span class="text-danger" *ngIf="scoreFormModel.get('final_score').hasError('required') && (scoreFormModel.get('final_score').dirty || scoreFormModel.get('final_score').touched)">请输入最终成绩</span>
                </div>
            </div>
    </form>
</ng-template>

<!--*****************************课程顶替**************************************************************************-->
<ng-template #courseReplModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 课程顶替
            </div>
            <button type="button" class="close" (click)="courseReplWin.hide()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="courseReplTemplate"></div>
        </div>

        <div class="modal-footer">
            <button class="btn btn-info" (click)="replSave()">
                <i class="fa fa-info-circle"> </i> 顶替
            </button>
            <button class="btn btn-default" (click)="courseReplWin.hide()">
                <i class="icon-close"> </i> 取消
            </button>
        </div>
    </div>
</ng-template>

<ng-template #courseReplTemplate>
    <div class="col-lg-12 ml-0">
        <!-- 审核流程列表 -->
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
            <thead>
                <tr>
                    <th>
                        <div class="checkbox c-checkbox">
                            <label>
                            </label>
                        </div>
                    </th>
                    <th width="10%">序号</th>
                    <th>课程代码</th>
                    <th>课程名称</th>
                    <th>分数</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let it of replScoreList; let i = index">
                    <td>
                        <div class="checkbox c-checkbox input-group-sm">
                            <label>
                                <label class="radio-inline c-radio" style="margin: 0px !important">
                                    <input type="radio" name="radio" [value]="it.id" (click)="replRadioCheckFun(it)"/>
                                    <span class="fa fa-circle" style="margin: 0px !important"></span>
                                  </label>
                            </label>
                        </div>
                    </td>
                    <td>{{i+1}}</td>
                    <td>{{it.course_code}}</td>
                    <td>{{it.course_name}}</td>
                    <td>{{it.final_score}}</td>
                </tr>
            </tbody>
        </table>
    </div>
</ng-template>

<!--**********************************老生成绩*******************************************************************-->
<ng-template #oldCjModal>
        <div class="modal-content">
            <div class="modal-header info-success-qm">
                <div class="pull-left">
                    <em class="fa-lg fas fa-edit "></em> 老生成绩
                </div>
                <button type="button" class="close" (click)="oldCjWin.hide()">×</button>
            </div>
    
            <!-- 1@3 -->
            <div class="modal-body">
                <div [ngTemplateOutlet]="oldCjTemplate"></div>
            </div>
    
            <div class="modal-footer">
                <button class="btn btn-info" (click)="selectOldCj()">
                    <i class="fa fa-info-circle"> </i> 选择
                </button>
                <button class="btn btn-default" (click)="oldCjWin.hide()">
                    <i class="icon-close"> </i> 取消
                </button>
            </div>
        </div>
</ng-template>
    
<ng-template #oldCjTemplate>
        <div class="row mb-3 ml-1">
            <div class="col-lg-10  ml-0 form-inline">
                <div class="input-group mr-1 input-group-sm">
                    <label>关键字：</label>
                    <input name="keyword" [(ngModel)]="oldCjQuery.query" class="input-sm form-control" type="text"
                                value="" maxlength="50" placeholder="请输入查询关键字" width="40">
                </div>
                <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="oldCjPager.goSearch()">
                        <i class="fa fa-search"></i> 查询</button>
            </div>
        </div>
        <div class="row mb-2">
            <div class="col-lg-12 ml-0">
                <!-- 审核流程列表 -->
                <table class="table table-sm table-striped table-hover table-bordered bg-white">
                    <thead>
                        <tr>
                            <th>
                                <div class="checkbox c-checkbox">
                                    <label>
                                        <input type="checkbox" (change)="oldCjPager.checkedMasterToggle($event)" />
                                        <span class="fa fa-check"></span>
                                    </label>
                                </div>
                            </th>
                            <th width="10%">序号</th>
                            <th>考生姓名</th>
                            <th>准考证号</th>
                            <th>专业代号</th>
                            <th>课程代码</th>
                            <th>成绩</th>
                            <th>年</th>
                            <th>月</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr *ngFor="let it of oldCjPager.getRecords(); let i = index">
                            <td>
                                <div class="checkbox c-checkbox input-group-sm">
                                    <label>
                                        <input type="checkbox" [value]="it.id" [(checked)]="it.isChecked"
                                            [(ngModel)]="it.isChecked" />
                                        <span class="fa fa-check"></span>
                                    </label>
                                </div>
                            </td>
                            <td>{{i+1}}</td>
                            <td>{{it.xingming}}</td>
                            <td>{{it.zhunkaozhenghao}}</td>
                            <td>{{it.zhuanyedaihao}}</td>
                            <td>{{it.kechengdaihao}}</td>
                            <td>{{it.chengji}}</td>
                            <td>{{it.nian}}</td>
                            <td>{{it.yue}}</td>
                        </tr>
                    </tbody>
                </table>
                <frame-pager [url]="OLD_CJ_URL" hideSearch="true" hasCheck="true" #oldCjPager (preReqEvent)="oldCjSearch($event)"></frame-pager>
            </div>
        </div>
</ng-template>

<!--**********************************转入成绩关联-单选-radio*******************************************************************-->
<ng-template #turnInAssocitModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 转入关联
            </div>
            <button type="button" class="close" (click)="turnInAssocitWin.hide()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="turnInAssocitTemplate"></div>
        </div>

        <div class="modal-footer">
            <button class="btn btn-info" (click)="selectTurnInScore()">
                <i class="fa fa-info-circle"> </i> 选择
            </button>
            <button class="btn btn-default" (click)="turnInAssocitWin.hide()">
                <i class="icon-close"> </i> 取消
            </button>
        </div>
    </div>
</ng-template>

<ng-template #turnInAssocitTemplate>
    <div class="row mb-3 ml-1">
        <div class="col-lg-10  ml-0 form-inline">
            <div class="input-group mr-1 input-group-sm">
                <label>姓名：</label>
                <input name="stdName" [(ngModel)]="turnInQuery.stdName" class="input-sm form-control" type="text"
                            value="" maxlength="50" placeholder="请输入考生姓名" width="40">
            </div>&nbsp;
            <div class="input-group mr-1 input-group-sm">
                <label>准考证号：</label>
                <input name="ticketNo" [(ngModel)]="turnInQuery.ticketNo" class="input-sm form-control" type="text"
                            value="" maxlength="50" placeholder="请输入准考证号" width="40">
            </div>
        </div>
    </div>
    <div class="row mb-3 ml-1">
        <div class="col-lg-10  ml-0 form-inline">
            <div class="input-group mr-1 input-group-sm">
                <label>课程代码：</label>
                <input name="courseCode" [(ngModel)]="turnInQuery.courseCode" class="input-sm form-control" type="text"
                            value="" maxlength="50" placeholder="请输入课程代码" width="40">
            </div>&nbsp;
            <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="turnInQueryRequest()">
                <i class="fa fa-search"></i> 查询</button>
        </div>
    </div>
    <div class="row mb-2">
        <div class="col-lg-12 ml-0">
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th>
                            <div class="checkbox c-checkbox">
                                <label>
                                </label>
                            </div>
                        </th>
                        <th width="10%">序号</th>
                        <th>考生姓名</th>
                        <th>准考证号</th>
                        <th>课程代码</th>
                        <th>课程名称</th>
                        <th>转入成绩</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of turnInScoreList; let i = index">
                        <td>
                            <div class="checkbox c-checkbox input-group-sm">
                                <label class="radio-inline c-radio" style="margin: 0px !important">
                                    <input type="radio" name="radio" [value]="it.id" (click)="turnInSelect(it)"  [(ngModel)]="radioItem.id"/>
                                    <span class="fa fa-circle" style="margin: 0px !important"></span>
                                </label>
                            </div>
                        </td>
                        <td>{{i+1}}</td>
                        <td>{{it.std_name}}</td>
                        <td>{{it.ticket_no}}</td>
                        <td>{{it.course_code}}</td>
                        <td>{{it.course_name}}</td>
                        <td>{{it.final_score}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</ng-template>

<!--**********************************关联准考证*******************************************************************-->
<ng-template #ticketNoAssocitModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 关联准考证
            </div>
            <button type="button" class="close" (click)="closeAssoTicketWin();">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="ticketNoAssocitTemplate"></div>
        </div>

        <div class="modal-footer">

        </div>
    </div>
</ng-template>

<ng-template #ticketNoAssocitTemplate>
    <div class="row mb-3 ml-1">
        <div class="col-lg-10  ml-0 form-inline">
            <div class="input-group mr-1 input-group-sm">
                <label>准考证号：</label>
                <input name="ticketNo" [(ngModel)]="ticketAssoQuery.ticketNo" class="input-sm form-control" type="text"
                            value="" maxlength="50" placeholder="请输入准考证号" width="40">
            </div>
            <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="findStdTicketRefList();">
                <i class="fa fa-search"></i> 查询
            </button>&nbsp;&nbsp;
            <button class="btn btn-primary bg-danger btn-sm  mr-1" (click)="selectTicketNoAssocit()">
                <i class="fa fa-docker"> </i> 关联
            </button>&nbsp;&nbsp;
            <button class="btn btn-primary bg-danger btn-sm  mr-1" (click)="unSelectTicketNoAssocit()">
                <i class="fa fa-undo"> </i> 取消关联
            </button>&nbsp;
        </div>
    </div>
    <div class="row mb-2">
        <div class="col-lg-12 ml-0">
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th width="6%">
                            <div class="checkbox c-checkbox">
                                <label>
                                </label>
                            </div>
                        </th>
                        <th width="6%">序号</th>
                        <th>考生姓名</th>
                        <th>身份证</th>
                        <th>准考证号</th>
                        <th>学校</th>
                        <th>手机号码</th>
                        <th>地址</th>
                        <th>关联状态</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of stdTicketRefList; let i = index">
                        <td>
                            <div class="checkbox c-checkbox input-group-sm">
                                <label class="radio-inline c-radio" style="margin: 0px !important">
                                    <input type="radio" name="radio" [value]="it.id" (click)="stdTicketCheckFun(it)"  [(ngModel)]="ticketRadioItem.id"/>
                                    <span class="fa fa-circle" style="margin: 0px !important"></span>
                                  </label>
                            </div>
                        </td>
                        <td>{{i+1}}</td>
                        <td>{{it.std_name}}</td>
                        <td>{{it.cert_no}}</td>
                        <td>{{it.ticket_no}}</td>
                        <!--<td [innerHTML]="it.std_source| frameDict:'StudentType'"></td>-->
                        <td>{{it.school_name}}</td>
                        <td>{{it.std_mobile}}</td>
                        <td>{{it.std_address}}</td>
                        <td>{{it.assoStatus}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!--选中的考生准考证对应的成绩-->
    <div class="row mb-2">
        <div class="col-lg-12 ml-0" *ngIf="showTicketPage == true">
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th>
                            <div class="checkbox c-checkbox input-group-sm">
                                <label>
                                    <!--<input type="checkbox" (change)="ticketAssoPager.checkedMasterToggle($event)" />
                                    <span class="fa fa-check"></span>-->
                                </label>
                            </div>
                        </th>
                        <th width="10%">序号</th>
                        <th>考生姓名</th>
                        <th>准考证号</th>
                        <th>课程代码</th>
                        <th>课程名称</th>
                        <th>成绩</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of ticketAssoPager.getRecords(); let i = index">
                        <td>
                            <div class="checkbox c-checkbox input-group-sm">
                                <label>
                                    <!--<input type="checkbox" [value]="it.id" [(checked)]="it.isChecked"
                                        [(ngModel)]="it.isChecked" />
                                    <span class="fa fa-check"></span>-->
                                </label>
                            </div>
                        </td>
                        <td>{{i+1}}</td>
                        <td>{{it.std_name}}</td>
                        <td>{{it.ticket_no}}</td>
                        <td>{{it.course_code}}</td>
                        <td>{{it.course_name}}</td>
                        <td>{{it.final_score}}</td>
                    </tr>
                </tbody>
            </table>
            <frame-pager [url]="TICKET_ASSO_SCORE_URL" hideSearch="true" hasCheck="true" #ticketAssoPager (preReqEvent)="ticketAssoSearch($event)"></frame-pager>
        </div>
    </div>    
</ng-template>

<!--**********************************毕业申请-手工引用考生*******************************************************************-->
<ng-template #stdRefModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 毕业申请
            </div>
            <button type="button" class="close" (click)="stdRefWin.hide()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="stdRefTemplate"></div>
        </div>

        <div class="modal-footer">
            <button class="btn btn-info" (click)="selectStdRef()">
                <i class="fa fa-info-circle"> </i> 选择
            </button>
            <button class="btn btn-default" (click)="stdRefWin.hide()">
                <i class="icon-close"> </i> 取消
            </button>
        </div>
    </div>
</ng-template>

<ng-template #stdRefTemplate>
    <div class="row mb-3 ml-1">
        <div class="col-lg-10  ml-0 form-inline">
            <div class="input-group mr-1 input-group-sm">
                <label>准考证：</label>
                <input name="ticketNo" [(ngModel)]="stdRefQuery.ticketNo" class="input-sm form-control" type="text"
                            value="" maxlength="30" placeholder="请输入准考证号" width="40">
            </div>
            <div class="input-group mr-1 input-group-sm">
                <label>身份证：</label>
                <input name="certNo" [(ngModel)]="stdRefQuery.certNo" class="input-sm form-control" type="text"
                            value="" maxlength="30" placeholder="请输入身份证号" width="40">
            </div>
            <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="findStdRefList();">
                    <i class="fa fa-search"></i> 查询</button>
        </div>
    </div>
    <div class="row mb-4">
        <div class="col-lg-12 ml-0">
            <!-- 审核流程列表 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th width="6%">
                            <div class="checkbox c-checkbox">
                                <label>
                                </label>
                            </div>
                        </th>
                        <th width="6%">序号</th>
                        <th>考生姓名</th>
                        <th>身份证</th>
                        <th>准考证号</th>
                        <th>考生来源</th>
                        <th>学校</th>
                        <th>性别</th>
                        <th>手机号码</th>
                        <th>地址</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of stdRefList; let i = index">
                        <td>
                            <div class="checkbox c-checkbox input-group-sm">
                                <label class="radio-inline c-radio" style="margin: 0px !important">
                                    <input type="radio" name="radio" [value]="it.id" (click)="stdRefRadioCheckFun(it)"  [(ngModel)]="radioItem.id"/>
                                    <span class="fa fa-circle" style="margin: 0px !important"></span>
                                  </label>
                            </div>
                        </td>
                        <td>{{i+1}}</td>
                        <td>{{it.std_name}}</td>
                        <td>{{it.cert_no}}</td>
                        <td>{{it.ticket_no}}</td>
                        <td [innerHTML]="it.std_source| frameDict:'StudentType'"></td>
                        <td>{{it.school_name}}</td>
                        <td [innerHTML]="it.std_sex| frameDict:'StdSexType'"></td>
                        <td>{{it.std_mobile}}</td>
                        <td>{{it.std_address}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="row mb-2">
        <div class="col-lg-12 ml-0 form-inline">
            <div class="input-group mr-1 input-group-sm">
                <label>专业：</label>
                <flex-select [allowClear]="true"
                    [(items)] = "majorList"
                    respDataPath= "array"
                    optionValueField="id"
                    optionTextField="major_full_name"
                    [(ngModel)]="stdRefQuery.majorId"
                    placeholder="请选择"
                    [ngModelOptions]="{standalone: true}"
                    width = "100"
                    noResultsFound = "无数据"
                    >
                </flex-select>
            </div>&nbsp;&nbsp;
            <div class="input-group mr-1 input-group-sm">
                <label>主考学校：</label>
                <flex-select [allowClear]="true"
                    [(items)] = "masterSchoolList"
                    respDataPath= "array"
                    optionValueField="id"
                    optionTextField="org_name"
                    [(ngModel)]="stdRefQuery.masterSchoolId"
                    placeholder="请选择"
                    [ngModelOptions]="{standalone: true}"
                    width = "100"
                    noResultsFound = "无数据"
                    >
                </flex-select>
            </div>&nbsp;&nbsp;
        </div>
    </div>
</ng-template>