1
0
Fork 0
HANYANG_MES/show_dir/www/kadm/inc/footer_inc.html

84 lines
1.9 KiB
HTML

<script>
jQuery(document).ready(function(){
side_menu_load();
});
const side_menu_load = function(){
ajax_json({
url: "<?=_ADM_INC_URL_?>/common.ajax.php",
type: "POST",
data: {
mode:'getSiteMenuList',
menu_code:'<?=$GLOBALS['_Menu_']['menu_code']?>'
},
success: function(data){
if( data.code ){
jQuery('#side-nav').treeview({
nodeIcon: '',
selectedColor: 'var(--bs-warning)',
selectedBackColor: 'var(--bs-secondary)',
showTags: true,
enableLinks: true,
data: data.data
});
}
},
error: function(request, status, error) {
},
complete: function(request, status){
jQuery("#side-nav").on("click","a",function(e){
e.preventDefault();
});
jQuery("#side-nav").on("click",".node-side-nav",function(e){
if( jQuery(this).find(".expand-icon").length == 0 ){
let href = jQuery(this).find("> a").attr("href");
href && (location.href = href);
}
});
}
});
};
</script>
<script type="module">
/*
const { createApp } = Vue;
import App from '/kadm/inc/js/treeview.vue.js';
const treedata = {
name: '',
isOpen: true,
children: [
{ name: 'hello',isOpen: true, },
{ name: 'wat',isOpen: true, },
{
name: 'child folder',isOpen: true,
children: [
{
name: 'child folder',isOpen: true,
children: [{ name: 'hello',isOpen: true, }, { name: 'wat',isOpen: true, }]
},
{ name: 'hello',isOpen: true, },
{ name: 'wat',isOpen: true, },
{
name: 'child folder',isOpen: true,
children: [{ name: 'hello',isOpen: true, }, { name: 'wat',isOpen: true, }]
}
]
}
]
};
createApp({
data() {
return {
treedata
}
},
components: {
App: App
}
}).mount("#sd");
*/
</script>