瀏覽代碼

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">');
                 historyHTML.push('<div class="card"><div class="card-body px-3 py-0">');
                 for (const [i, auditor] of group.auditors.entries()) {
                 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="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">');
                     historyHTML.push('<div class="col">');
                     if (auditor.status === auditConst.status.checked) {
                     if (auditor.status === auditConst.status.checked) {
                         historyHTML.push('<span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>');
                         historyHTML.push('<span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>');