|
|
|
@ -510,7 +510,7 @@ layui.use(['element','table','layer','form','upload','iconHhysFa'], function(){
@@ -510,7 +510,7 @@ layui.use(['element','table','layer','form','upload','iconHhysFa'], function(){
|
|
|
|
|
var url = '<a target = "_blank" href = "' + d.url + '" title = "' + d.url + '">' + d.url + '</a>'; |
|
|
|
|
return url; |
|
|
|
|
}} |
|
|
|
|
,{field: 'title', title: '链接标题', width:140} |
|
|
|
|
,{field: 'title', title: '链接标题', width:140,edit: 'text'} |
|
|
|
|
,{field: 'add_time', title: '添加时间', width:148, sort: true,templet:function(d){ |
|
|
|
|
var add_time = timestampToTime(d.add_time); |
|
|
|
|
return add_time; |
|
|
|
@ -525,7 +525,7 @@ layui.use(['element','table','layer','form','upload','iconHhysFa'], function(){
@@ -525,7 +525,7 @@ layui.use(['element','table','layer','form','upload','iconHhysFa'], function(){
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}} |
|
|
|
|
,{field: 'weight', title: '权重', width: 75,sort:true} |
|
|
|
|
,{field: 'weight', title: '权重', width: 75,sort:true,edit: 'text'} |
|
|
|
|
,{field: 'property', title: '私有', width: 80, sort: true,templet: function(d){ |
|
|
|
|
if(d.property == 1) { |
|
|
|
|
return '<button type="button" class="layui-btn layui-btn-xs">是</button>'; |
|
|
|
@ -1150,4 +1150,27 @@ function del_link_icon(){
@@ -1150,4 +1150,27 @@ function del_link_icon(){
|
|
|
|
|
layer.msg(data.msg,{icon:5}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$(document).ready(function() { |
|
|
|
|
// 获取当前页面的 URL
|
|
|
|
|
var currentUrl = window.location.href; |
|
|
|
|
|
|
|
|
|
// 遍历导航栏菜单的子菜单项
|
|
|
|
|
$('.layui-nav-child dd a').each(function() { |
|
|
|
|
var $this = $(this); |
|
|
|
|
var linkUrl = $this.attr('href'); |
|
|
|
|
|
|
|
|
|
// 如果子菜单项的链接与当前页面的 URL 匹配,则为该子菜单项添加 'layui-this' 类
|
|
|
|
|
if (currentUrl.indexOf(linkUrl) !== -1) { |
|
|
|
|
// 移除其他菜单项的 'layui-this' 类
|
|
|
|
|
$('.layui-nav-child dd').removeClass('layui-this'); |
|
|
|
|
|
|
|
|
|
// 为匹配的子菜单项添加 'layui-this' 类
|
|
|
|
|
$this.parent().addClass('layui-this'); |
|
|
|
|
|
|
|
|
|
// 结束遍历
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |