소스 검색

fix: 修复审核员角色显示逻辑,确保正确显示审核员的角色信息

caipin 2 달 전
부모
커밋
83754b08d7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/public/js/measure_stage.js

+ 1 - 1
app/public/js/measure_stage.js

@@ -127,7 +127,7 @@ $('a[data-target="#sp-list" ]').on('click', function () {
                 historyHTML.push('<div class="card"><div class="card-body px-3 py-0">');
                 for (const [i, auditor] of group.auditors.entries()) {
                     historyHTML.push(`<div class="card-text p-2 py-3 row ${ ( i > 0 ? 'border-top' : '') }">`);
-                    historyHTML.push(`<div class="col-10"><span class="h6">${auditor.name}</span><span class="text-muted ml-1">${auditor.company}${user.role ? ' - ' + user.role : ''}</span></div>`);
+                    historyHTML.push(`<div class="col-10"><span class="h6">${auditor.name}</span><span class="text-muted ml-1">${auditor.company}${auditor.role ? ' - ' + auditor.role : ''}</span></div>`);
                     historyHTML.push('<div class="col">');
                     if (auditor.status === auditConst.status.checked) {
                         historyHTML.push('<span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>');