|
|
@@ -130,15 +130,25 @@ $(document).ready(function () {
|
|
|
html.push('</div>');
|
|
|
html.push('</li>');
|
|
|
}
|
|
|
- auditorshtml.push('<li class="list-group-item" data-auditorid="' + data.audit_id + '">');
|
|
|
- auditorshtml.push('<i class="fa ' + (index+1 === datas.length ? 'fa-stop-circle' : 'fa-chevron-circle-down') + '"></i> ');
|
|
|
- auditorshtml.push(data.name + ' <small class="text-muted">' + data.role + '</small>');
|
|
|
+ auditorshtml.push('<li class="list-group-item d-flex justify-content-between align-items-center" data-auditorid="' + data[0].audit_id + '">');
|
|
|
if (index === 0) {
|
|
|
- auditorshtml.push('<span class="pull-right">原报</span>');
|
|
|
+ auditorshtml.push('<span class="mr-1"><i class="fa fa fa-play-circle fa-rotate-90"></i></span>');
|
|
|
+ } else if (index === datas.length - 1) {
|
|
|
+ auditorshtml.push('<span class="mr-1"><i class="fa fa fa-stop-circle"></i></span>');
|
|
|
+ } else {
|
|
|
+ auditorshtml.push('<span class="mr-1"><i class="fa fa-chevron-circle-down"></i></span>');
|
|
|
+ }
|
|
|
+ auditorshtml.push('<span class="text-muted">');
|
|
|
+ for (const auditor of data) {
|
|
|
+ auditorshtml.push(`<small class="d-inline-block text-dark mx-1" title="${auditor.company}" data-auditorId="${auditor.audit_id}">${auditor.name}</small>`);
|
|
|
+ }
|
|
|
+ auditorshtml.push('</span>');
|
|
|
+ if (index === 0) {
|
|
|
+ auditorshtml.push('<div class="d-flex ml-auto"><span class="pull-right">原报</span></div>');
|
|
|
} else if (index+1 === datas.length) {
|
|
|
- auditorshtml.push('<span class="pull-right">终审</span>');
|
|
|
+ auditorshtml.push('<div class="d-flex ml-auto"><span class="pull-right">终审</span></div>');
|
|
|
} else {
|
|
|
- auditorshtml.push('<span class="pull-right">'+ transFormToChinese(index) +'审</span>');
|
|
|
+ auditorshtml.push('<div class="d-flex ml-auto"><span class="pull-right">'+ transFormToChinese(index) +'审</span></div>');
|
|
|
}
|
|
|
auditorshtml.push('</li>');
|
|
|
}
|