');
// 名称
html.push('');
if (node.parent_id !== undefined) {
// html.push(' ', node.name);
html.push(' ', node.name);
} else {
html.push('');
html.push(arr.indexOf(node) === arr.length - 1 ? '└' : '├');
html.push('');
//html.push('', node[c.field], '');
html.push('', node.name, '');
if (node.have_notice){
html.push('');
}
}
html.push(' | ');
// 创建人
html.push('', node.user_name ? node.user_name : '', ' | ');
// 创建时间
html.push('', node.in_time && node.parent_id === undefined ? moment(node.in_time).format('YYYY-MM-DD HH:mm:ss') : '', ' | ');
// 审批流程
html.push('');
if (node.parent_id === undefined && auditPermission.admin && (node.uid === uid || is_admin)) {
html.push('设置');
}
html.push(' | ');
// 操作
html.push('');
if (auditPermission.admin && (node.uid === uid || is_admin || node.parent_id !== undefined)) {
html.push(' \n' +
' \n' +
' \n' +
' ');
}
html.push(' | ');
html.push('
');
if (node.children) {
for (const c of node.children) {
html.push(recursiveGetTenderNodeHtml(c, node.children, node.sort_id));
}
}
return html.join('');
}
// 根据TenderTree数据获取Html代码
function getTenderTreeHtml () {
if (tenderTree.length > 0) {
const html = [];
html.push('