34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
|
|
|
||
|
|
layui.use(['element'], function () {
|
||
|
|
var element = layui.element;
|
||
|
|
|
||
|
|
|
||
|
|
//侧边栏点击事件监听
|
||
|
|
element.on('nav(test)', function(elem){
|
||
|
|
console.log(elem); //得到当前点击的DOM对象
|
||
|
|
let name = elem[0].innerText;
|
||
|
|
if(name === '系统日志'){
|
||
|
|
$("#content").prop('src','../../../html/base/log/child/systemLog.html');
|
||
|
|
}else if(name === '业务日志'){
|
||
|
|
$("#content").prop('src','../../../html/base/log/child/businessLog.html');
|
||
|
|
}else if(name === '运行日志'){
|
||
|
|
$("#content").prop('src','../../../html/base/log/child/runLog.html');
|
||
|
|
}else if(name === '日志分析'){
|
||
|
|
$("#content").prop('src','../../../html/base/log/child/logAnalysis.html');
|
||
|
|
}else if(name === '日志容量配置'){
|
||
|
|
$("#content").prop('src','../../../html/base/log/child/logCapacityConfiguration.html');
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//设置弹窗关闭
|
||
|
|
/*function reloading() {
|
||
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||
|
|
parent.layer.close(index); //再执行关闭
|
||
|
|
window.parent.location.reload();
|
||
|
|
}*/
|