|  | @@ -38,8 +38,8 @@ $('a[data-target="#sp-list" ]').on('click', function () {
 | 
	
		
			
				|  |  |                  </li>`
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  | -        $('#auditor-list').empty()
 | 
	
		
			
				|  |  | -        $('#auditor-list').append(auditorsHTML)
 | 
	
		
			
				|  |  | +        $('#auditor-list').empty();
 | 
	
		
			
				|  |  | +        $('#auditor-list').append(auditorsHTML);
 | 
	
		
			
				|  |  |          auditHistory.forEach((auditors, idx) => {
 | 
	
		
			
				|  |  |              if(idx === auditHistory.length - 1 && auditHistory.length !== 1) {
 | 
	
		
			
				|  |  |                  historyHTML += `<div class="text-right"><a href="javascript: void(0);" id="fold-btn" data-target="show"
 | 
	
	
		
			
				|  | @@ -75,29 +75,20 @@ $('a[data-target="#sp-list" ]').on('click', function () {
 | 
	
		
			
				|  |  |                      <li class="timeline-list-item pb-2">
 | 
	
		
			
				|  |  |                          <div class="timeline-item-date">
 | 
	
		
			
				|  |  |                              ${formatDate(auditor.end_time)}
 | 
	
		
			
				|  |  | -                        </div>`
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                        if(index < auditors.length - 1) {
 | 
	
		
			
				|  |  | -                            historyHTML += `<div class="timeline-item-tail"></div>`
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                        if(auditor.status === auditConst.status.checked) {
 | 
	
		
			
				|  |  | -                            historyHTML += `<div class="timeline-item-icon bg-success text-light">
 | 
	
		
			
				|  |  | -                                <i class="fa fa-check"></i>
 | 
	
		
			
				|  |  | -                            </div>`
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                        } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {
 | 
	
		
			
				|  |  | -                            historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 | 
	
		
			
				|  |  | -                                <i class="fa fa-level-up"></i>
 | 
	
		
			
				|  |  | -                            </div>`
 | 
	
		
			
				|  |  | -                        } else if(auditor.status === auditConst.status.checking) {
 | 
	
		
			
				|  |  | -                            historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 | 
	
		
			
				|  |  | -                                <i class="fa fa-ellipsis-h"></i>
 | 
	
		
			
				|  |  | -                            </div>`
 | 
	
		
			
				|  |  | -                        } else {
 | 
	
		
			
				|  |  | -                            historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                        historyHTML += `<div class="timeline-item-content">
 | 
	
		
			
				|  |  | +                        </div>`;
 | 
	
		
			
				|  |  | +                    if (index < auditors.length - 1) {
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-tail"></div>`;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    if (auditor.status === auditConst.status.checked) {
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>`;
 | 
	
		
			
				|  |  | +                    } else if (auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>`;
 | 
	
		
			
				|  |  | +                    } else if (auditor.status === auditConst.status.checking) {
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>`;
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    historyHTML += `<div class="timeline-item-content">
 | 
	
		
			
				|  |  |                              <div class="card">
 | 
	
		
			
				|  |  |                                  <div class="card-body p-3">
 | 
	
		
			
				|  |  |                                      <div class="card-text">
 | 
	
	
		
			
				|  | @@ -106,67 +97,50 @@ $('a[data-target="#sp-list" ]').on('click', function () {
 | 
	
		
			
				|  |  |                                          </p>
 | 
	
		
			
				|  |  |                                          <p class="text-muted mb-0">${auditor.role}</p>
 | 
	
		
			
				|  |  |                                      </div>
 | 
	
		
			
				|  |  | -                                </div>`
 | 
	
		
			
				|  |  | -                        if (auditor.opinion) {
 | 
	
		
			
				|  |  | -                        historyHTML += `<div class="card-body p-3 border-top">
 | 
	
		
			
				|  |  | -                                <p style="margin: 0;">${auditor.opinion}</p>
 | 
	
		
			
				|  |  | -                            </div>`
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                        historyHTML += `</div></div></li>`
 | 
	
		
			
				|  |  | +                                </div>`;
 | 
	
		
			
				|  |  | +                    if (auditor.opinion) {
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="card-body p-3 border-top"><p style="margin: 0;">${auditor.opinion}</p></div>`;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    historyHTML += `</div></div></li>`
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  | -                    historyHTML += `<li class="timeline-list-item pb-2">
 | 
	
		
			
				|  |  | -                    <div class="timeline-item-date">
 | 
	
		
			
				|  |  | -                        ${formatDate(auditor.end_time)}
 | 
	
		
			
				|  |  | -                    </div>`
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                    historyHTML += `<li class="timeline-list-item pb-2"><div class="timeline-item-date">${formatDate(auditor.end_time)}</div>`;
 | 
	
		
			
				|  |  |                      if(index < auditors.length - 1) {
 | 
	
		
			
				|  |  |                          historyHTML += `<div class="timeline-item-tail"></div>`
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      if(auditor.status === auditConst.status.checked) {
 | 
	
		
			
				|  |  | -                        historyHTML += `<div class="timeline-item-icon bg-success text-light">
 | 
	
		
			
				|  |  | -                            <i class="fa fa-check"></i>
 | 
	
		
			
				|  |  | -                        </div>`
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>`;
 | 
	
		
			
				|  |  |                      } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {
 | 
	
		
			
				|  |  | -                        historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 | 
	
		
			
				|  |  | -                            <i class="fa fa-level-up"></i>
 | 
	
		
			
				|  |  | -                        </div>`
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>`;
 | 
	
		
			
				|  |  |                      } else if(auditor.status === auditConst.status.checking) {
 | 
	
		
			
				|  |  | -                        historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 | 
	
		
			
				|  |  | -                            <i class="fa fa-ellipsis-h"></i>
 | 
	
		
			
				|  |  | -                        </div>`
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>`;
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  | -                        historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`;
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      historyHTML += `<div class="timeline-item-content">
 | 
	
		
			
				|  |  |                      <div class="card">
 | 
	
		
			
				|  |  |                          <div class="card-body p-3">
 | 
	
		
			
				|  |  |                              <div class="card-text">
 | 
	
		
			
				|  |  |                                  <p class="mb-1"><span class="h5">${auditor.name}</span>
 | 
	
		
			
				|  |  | -                                    <span
 | 
	
		
			
				|  |  | -                                        class="pull-right
 | 
	
		
			
				|  |  | -                                                        ${auditConst.statusClass[auditor.status]}">${auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''}
 | 
	
		
			
				|  |  | +                                    <span class="pull-right ${auditConst.statusClass[auditor.status]}">
 | 
	
		
			
				|  |  | +                                        ${auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''}
 | 
	
		
			
				|  |  |                                          ${auditor.status === auditConst.status.checkNo ? user.name : ''}
 | 
	
		
			
				|  |  | -                                        ${auditor.status === auditConst.status.checkNoPre ? auditors[index-1].name : ''}
 | 
	
		
			
				|  |  | +                                        ${auditor.status === auditConst.status.checkNoPre ? auditors[index+1].name : ''}
 | 
	
		
			
				|  |  |                                      </span>
 | 
	
		
			
				|  |  |                                  </p>
 | 
	
		
			
				|  |  |                                  <p class="text-muted mb-0">${auditor.role}</p>
 | 
	
		
			
				|  |  |                              </div>
 | 
	
		
			
				|  |  | -                        </div>`
 | 
	
		
			
				|  |  | +                        </div>`;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                      if (auditor.opinion) {
 | 
	
		
			
				|  |  | -                    historyHTML += `<div class="card-body p-3 border-top">
 | 
	
		
			
				|  |  | -                        <p style="margin: 0;">${auditor.opinion} </p>
 | 
	
		
			
				|  |  | -                    </div>`
 | 
	
		
			
				|  |  | +                        historyHTML += `<div class="card-body p-3 border-top"><p style="margin: 0;">${auditor.opinion} </p></div>`;
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | -                    historyHTML += `</div></div></li>`
 | 
	
		
			
				|  |  | +                    historyHTML += `</div></div></li>`;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -            })
 | 
	
		
			
				|  |  | -            historyHTML += '</ul></div>'
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        $('#audit-list').empty()
 | 
	
		
			
				|  |  | -        $('#audit-list').append(historyHTML)
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            historyHTML += '</ul></div>';
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        $('#audit-list').empty();
 | 
	
		
			
				|  |  | +        $('#audit-list').append(historyHTML);
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  });
 |