Commit bbefcccd by liuyang

2024-10-11 文档浏览树图标调整

parent 637c70de
......@@ -113,25 +113,13 @@ $(function () {
var title = item.text;
let icon = 'fa fa-globe'
if (item.label !== 'root') {
switch (item.type) {
case 'company':
// title = title + ' [公司]';
icon = 'fa fa-building'
break;
case 'dept':
// title = title + ' [部门]';
icon = 'fa fa-users'
break;
case 'post':
// title = title + ' [岗位]';
icon = 'fa fa-user'
break;
case '1':
switch (item.leafType) {
case 'P':
icon = 'fa fa-clipboard'
break;
default :
case 'C':
icon = 'fa fa-folder'
//icon = 'fa fa-home'
break;
}
}
return ' <span class="' + icon + '" style="padding-right: 8px"> </span> <span class="titleClass" title="' + item.label + '">' + title + '</span>'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment