|
@@ -15,13 +15,13 @@
|
|
|
<span class="nav-link-text">云版管理</span>
|
|
|
</a>
|
|
|
<ul>
|
|
|
- <li data="0" do >
|
|
|
+ <li data="/cloud/curing/edition" do >
|
|
|
<a href="/cloud/curing/edition" title="养护云造价" data-filter-tags="application intel analytics dashboard">
|
|
|
<span class="nav-link-text">养护云造价</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
- <li data="1" do >
|
|
|
+ <li data="/cloud/build/edition" do >
|
|
|
<a href="/cloud/build/edition" title="大司空云计价" data-filter-tags="application intel marketing dashboard">
|
|
|
<span class="nav-link-text">大司空云计价</span>
|
|
|
</a>
|
|
@@ -37,24 +37,44 @@ $(document).ready(function(){
|
|
|
refreshCloudMenu();
|
|
|
})
|
|
|
|
|
|
+/*
|
|
|
$(function() {
|
|
|
- $('ul[menuActive]').delegate( 'li[do]','click', function(index){
|
|
|
- //var column = $(this).attr('data');
|
|
|
- console.log(index);
|
|
|
+ $('ul[menuActive]').delegate( 'li[do]','click', function(){
|
|
|
+ var data = $(this).attr('data');
|
|
|
$(this).addClass("active");
|
|
|
- //localStorage.setItem('curingMenuActive', column);
|
|
|
+ localStorage.setItem('curingMenuActive', data);
|
|
|
|
|
|
});
|
|
|
})
|
|
|
+*/
|
|
|
function refreshCloudMenu(){
|
|
|
|
|
|
- var curingMenuActive=localStorage.getItem('curingMenuActive');
|
|
|
- console.log(curingMenuActive);
|
|
|
- /*
|
|
|
+ var protocol = window.location.protocol;
|
|
|
+ var url = $('<a>', { href: protocol});
|
|
|
+ var pathName=url.prop('pathname');
|
|
|
+
|
|
|
+ //var curingMenuActive=localStorage.getItem('curingMenuActive');
|
|
|
$('ul[menuActive] li[do]').each(function(){
|
|
|
- $(this).removeClass("active");
|
|
|
+ var data=$(this).attr('data');
|
|
|
+ if(data==pathName){
|
|
|
+ $(this).addClass("active");
|
|
|
+ }else{
|
|
|
+ $(this).removeClass("active");
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
+
|
|
|
+ /*
|
|
|
+ if (isAccept==null||isAccept) {
|
|
|
+ checkBoxList.eq(cbi).attr("checked",'true');
|
|
|
+ }else{
|
|
|
+ checkBoxList.eq(cbi).removeAttr("checked");
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(curingMenuActive);
|
|
|
*/
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
</script>
|