Merge branch 'zentaopms_289_gfl' into 'zentaopms_289'

Zentaopms 289 gfl

See merge request easycorp/zentaopms!6999
This commit is contained in:
王怡栋
2023-02-20 05:52:11 +00:00
4 changed files with 24 additions and 6 deletions
+2 -1
View File
@@ -204,4 +204,5 @@ $(function()
initPreference();
})
</script>
</script>
+3 -2
View File
@@ -12,10 +12,11 @@
/* menu-tree */
.menu-tree {flex: 0 0 200px; background: #fff; padding: 10px 10px;}
.menu-tree > .tree {padding-top: 20px;}
.menu-tree li {padding: 5px 25px;}
li.has-list > ul > li {padding-left: 10px;}
.tree ul {margin-bottom: 0;}
/* side-left */
.main-content > .side-left {flex: 0 0 160px; margin-left: 64px;}
.main-content > .side-left {flex: 0 0 160px; margin-left: 44px;}
.label-list {background: #F8F8F8; padding: 5px 0;}
.label-list > .input-label {display: flex; align-items: center; cursor: pointer; padding-left: 40px;}
+18 -2
View File
@@ -48,9 +48,14 @@ $(function()
{
$('#menuTree').tree(
{
data: menuTree
data: menuTree,
itemCreator: function($li, item)
{
$li.append('<a data-module="' + item.module + '" data-method="' + item.method + '" data-has-children="' + (item.children ? !!item.children.length : false) + '"class="text-muted""' + '" href=# >' + item.title + '</a>');
}
});
}
$('.menu-tree .search-input').on('input', function()
{
var val = $(this).val();
@@ -77,10 +82,21 @@ $(function()
}
item.children = children;
}
updateData.push(item);
if (item.children.length || item.title.includes(val) ||(item.key && item.key.includes(val)))
{
updateData.push(item);
}
}
}
$('#menuTree').data('zui.tree').reload(updateData);
})
$('#menuTree').on('click', 'a', function(e)
{
var target = $(e.target);
if (target.attr('data-has-children') === 'true') return
self.location.href = createLink('dev', 'langItem', 'type=' + type + '&module=' + target.attr('data-module') + '&method=' + target.attr('data-method'));
})
}
})
+1 -1
View File
@@ -30,7 +30,7 @@
<input type="search" class="form-control search-input" />
<label class="input-control-icon-left search-icon flex align-center justify-center"><i class="icon icon-search"></i></label>
</div>
<div id="menuTree"></div>
<div id="menuTree" class="menu-active-primary menu-hover-primary"></div>
</div>
<?php endif;?>
<form class='main-form form-ajax flex-1' method='post'>