|
@@ -173,7 +173,7 @@
|
|
|
</div>
|
|
|
<div class="level-menu-box">
|
|
|
{volist name="menus" id="v"}
|
|
|
- <div class="menu-name-box {if $curmenu == $v.id}cur-menu-style{/if}" data-id="{$v['id']}" onclick="changeMenu(this)">
|
|
|
+ <div class="menu-name-box {if $curmenu == $v.id}cur-menu-style{/if}" data-id="{$v['id']}" data-title="{$v['title']}"onclick="changeMenu(this)">
|
|
|
<text>{$v.title}</text>
|
|
|
</div>
|
|
|
{/volist}
|
|
@@ -193,7 +193,7 @@
|
|
|
{/if}-->
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;" style="color: #284A94;height: 100%;margin-top: 5px">欢迎,{:session('user_auth.real_name')} </a>
|
|
|
<ul class="dropdown-menu animated fadeInRight m-t-xs">
|
|
|
- <li><a class="JmenuItem" href="{:url('User/modifyPass')}">修改密码</a></li>
|
|
|
+ <li><a class="JmenuItem" href="{:url('User/modifyPass')}" onclick="savePassWord()">修改密码</a></li>
|
|
|
<li><a href="{:url('Common/logout')}">安全退出</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
@@ -205,8 +205,16 @@
|
|
|
|
|
|
<div class="indexsub-bread-crumbs-box" style="margin: 70px 19px 0px;width: calc(100% - 38px)">
|
|
|
<a href="{:url('index/index')}" class="active">首页</a>
|
|
|
- <a href="javascript:;">首页</a>
|
|
|
- <a href="javascript:;">首页</a>
|
|
|
+ {if $menuTitle}
|
|
|
+ <a href="javascript:;" id="onebreadcrumbs">{$menuTitle}</a>
|
|
|
+ {/if}
|
|
|
+ {if $menuTitle1}
|
|
|
+ <a href="javascript:;" id="twobreadcrumbs">{$menuTitle1}</a>
|
|
|
+ {/if}
|
|
|
+ {if $menuTitle2}
|
|
|
+ <a href="javascript:;" id="threebreadcrumbs">{$menuTitle2}</a>
|
|
|
+ {/if}
|
|
|
+
|
|
|
</div>
|
|
|
<div class="qsidenav" style="height: calc(100% - 58px)!important;">
|
|
|
<div class="qsidenav-list qsidenablistthreemenulist" >
|
|
@@ -229,7 +237,7 @@
|
|
|
|
|
|
|
|
|
<div class="main-box main-box-h2 gongzuotaimenu" id="main-iframe">
|
|
|
- <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('Index/def')}" frameborder="0" data-id="index_v1.html" seamless></iframe>
|
|
|
+ <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('Index/def')}" frameborder="0" data-id="index_v1.html" seamless id="defbreadcrumbs"></iframe>
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -754,98 +762,42 @@
|
|
|
window.location.href = '{:url("index/index")}';
|
|
|
}
|
|
|
|
|
|
+
|
|
|
var menus = {:json_encode($menus)};
|
|
|
|
|
|
function changeMenu(_self) {
|
|
|
+
|
|
|
var menuId = $(_self).attr('data-id');
|
|
|
- // $('.menu-name-box').removeClass('cur-menu-style');
|
|
|
- // $(_self).addClass('cur-menu-style');
|
|
|
+ var onebreadcrumbs = $(_self).attr('data-title');
|
|
|
window.location.href="{:url('indexsub','','')}/curmenu/"+menuId;
|
|
|
- // if(menuId == 500){
|
|
|
- // location.reload();
|
|
|
- // $('.gyindexsub-menu-list-box').css('display','none');
|
|
|
- // $('.gongzuotaimenu').css('display','block');
|
|
|
- // }else{
|
|
|
- //
|
|
|
- // $('.gyindexsub-menu-list-box').css('display','block');
|
|
|
- // $('.gongzuotaimenu').css('display','none');
|
|
|
- // var newMenus = [];
|
|
|
- // var menuurl = '';
|
|
|
- // menus.forEach((item) => {
|
|
|
- // if(Number(menuId) == Number(item.id)){
|
|
|
- // newMenus = item.child;
|
|
|
- // var childList = item.child;
|
|
|
- // if(childList.length >0){
|
|
|
- // for (let i in childList){
|
|
|
- // if(childList[0].url){
|
|
|
- // menuurl = childList[0].url
|
|
|
- // }else{
|
|
|
- // var subChildList = childList[0].child;
|
|
|
- // if(childList[0].child){
|
|
|
- // for(let o in subChildList){
|
|
|
- // if(subChildList[0].url){
|
|
|
- // menuurl = subChildList[0].url;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- //
|
|
|
- // }
|
|
|
- // }
|
|
|
- //
|
|
|
- // }
|
|
|
- // }
|
|
|
- // });
|
|
|
- //
|
|
|
- // var str = '';
|
|
|
- // for (let i in newMenus){
|
|
|
- // var childList = newMenus[i].child;
|
|
|
- // if(childList.length >0){
|
|
|
- // str += '<div class="qsidenav-list">';
|
|
|
- // str += '<div class="qsidenav-twomenu-name">'+newMenus[i].title+'</div>';
|
|
|
- // str += '<div class="sub">';
|
|
|
- // if(childList.length >0){
|
|
|
- // for (let o in childList){
|
|
|
- // str += '<a href="javascript:;">';
|
|
|
- // str += '<div class="sub-list endmenuactive" data-url="'+childList[o].url+'" data-id="'+newMenus[i].id+'" onclick="changeEndSubMenu(this)">'+childList[o].title+'</div>';
|
|
|
- // str += '</a>';
|
|
|
- // }
|
|
|
- // }
|
|
|
- // str += '</div>';
|
|
|
- // str += '</div>';
|
|
|
- // }else{
|
|
|
- // str += '<div class="qsidenav-list">';
|
|
|
- // // str += '<div class="qsidenav-twomenu-name">'+newMenus[i].title+'</div>';
|
|
|
- // str += '<div class="sub">';
|
|
|
- // str += '<a href="javascript:;">';
|
|
|
- // str += '<div class="sub-list endmenuactive" data-url="'+newMenus[i].url+'" data-id="'+newMenus[i].id+'" onclick="changeEndSubMenu(this)">'+newMenus[i].title+'</div>';
|
|
|
- // str += '</a>';
|
|
|
- // str += '</div>';
|
|
|
- // str += '</div>';
|
|
|
- // }
|
|
|
- //
|
|
|
- // }
|
|
|
- // $('.qsidenablistthreemenulist').html(str);
|
|
|
- //
|
|
|
- //
|
|
|
- // let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl+'" frameborder="0" data-id="'+menuurl+'" seamless></iframe>';
|
|
|
- // $('#gy-main-iframe-menu').html(menustr);
|
|
|
- // }
|
|
|
-
|
|
|
|
|
|
}
|
|
|
|
|
|
- function changeEndSubMenu(_self){
|
|
|
+ function changeEndSubMenu(_self,type){
|
|
|
var menuId = $(_self).attr('data-id');
|
|
|
var menuurl = $(_self).attr('data-url');
|
|
|
- $('.endmenuactive').removeClass('cur');
|
|
|
+ var menutitle = $(_self).attr('data-title');
|
|
|
+ var menuftitle = $(_self).attr('data-ftitle');
|
|
|
+ // $('.endmenuactive').removeClass('cur');
|
|
|
+ $('.sub-list').removeClass('cur');
|
|
|
$(_self).addClass('cur');
|
|
|
|
|
|
+ if(type == 1){
|
|
|
+ $('#twobreadcrumbs').html(menuftitle)
|
|
|
+ $('#threebreadcrumbs').html(menutitle)
|
|
|
+ }else{
|
|
|
+ $('#twobreadcrumbs').html(menutitle)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl+'" frameborder="0" data-id="'+menuurl+'" seamless></iframe>';
|
|
|
$('#gy-main-iframe-menu').html(str);
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var curmenu = {:json_encode($curmenu)};
|
|
|
+ var menuId = {:json_encode($menuId)};
|
|
|
$(function (){
|
|
|
if(curmenu == 500){
|
|
|
$('.gyindexsub-menu-list-box').css('display','none');
|
|
@@ -856,19 +808,38 @@
|
|
|
|
|
|
var menusublist = [];
|
|
|
var menuurl2 = '';
|
|
|
+ var firstmenuid = '';
|
|
|
for (let i in menus){
|
|
|
if(curmenu == menus[i].id){
|
|
|
menusublist = menus[i].child;
|
|
|
let submenulistaa = menus[i].child;
|
|
|
if(submenulistaa.length >0){
|
|
|
for (let a in submenulistaa){
|
|
|
- menuurl2 = submenulistaa[0].url;
|
|
|
- let aaaa = submenulistaa[0].child;
|
|
|
- if(aaaa.length > 0){
|
|
|
- for (let z in aaaa){
|
|
|
- menuurl2 = aaaa[0].url;
|
|
|
+ if(menuId > 0 && submenulistaa[a].id == menuId){
|
|
|
+
|
|
|
+ menuurl2 = submenulistaa[a].url;
|
|
|
+ firstmenuid = submenulistaa[a].id;
|
|
|
+ aaaa = submenulistaa[a].child;
|
|
|
+ if(aaaa.length > 0){
|
|
|
+ for (let z in aaaa){
|
|
|
+ menuurl2 = aaaa[0].url;
|
|
|
+ firstmenuid = aaaa[0].id;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }else{
|
|
|
+ menuurl2 = submenulistaa[0].url;
|
|
|
+ firstmenuid = submenulistaa[0].id;
|
|
|
+ let aaaa = submenulistaa[0].child;
|
|
|
+ if(aaaa.length > 0){
|
|
|
+ for (let z in aaaa){
|
|
|
+ menuurl2 = aaaa[0].url;
|
|
|
+ firstmenuid = aaaa[0].id;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -883,10 +854,11 @@
|
|
|
str += '<div class="qsidenav-list">';
|
|
|
str += '<div class="qsidenav-twomenu-name">'+menusublist[i].title+'</div>';
|
|
|
str += '<div class="sub">';
|
|
|
+ let ftitle = menusublist[i].title;
|
|
|
if(childList.length >0){
|
|
|
for (let o in childList){
|
|
|
str += '<a href="javascript:;">';
|
|
|
- str += '<div class="sub-list endmenuactive" data-url="'+childList[o].url+'" data-id="'+menusublist[i].id+'" onclick="changeEndSubMenu(this)">'+childList[o].title+'</div>';
|
|
|
+ str += '<div class="sub-list endmenuactive'+childList[o].id+'" data-url="'+childList[o].url+'" data-id="'+menusublist[i].id+'" data-title="'+childList[o].title+'" data-ftitle="'+ftitle+'" onclick="changeEndSubMenu(this,1)">'+childList[o].title+'</div>';
|
|
|
str += '</a>';
|
|
|
}
|
|
|
}
|
|
@@ -896,7 +868,7 @@
|
|
|
str += '<div class="qsidenav-list">';
|
|
|
str += '<div class="sub">';
|
|
|
str += '<a href="javascript:;">';
|
|
|
- str += '<div class="sub-list endmenuactive" data-url="'+menusublist[i].url+'" data-id="'+menusublist[i].id+'" onclick="changeEndSubMenu(this)">'+menusublist[i].title+'</div>';
|
|
|
+ str += '<div class="sub-list endmenuactive'+menusublist[i].id+'" data-url="'+menusublist[i].url+'" data-id="'+menusublist[i].id+'" data-ftitle="" data-title="'+menusublist[i].title+'" onclick="changeEndSubMenu(this,2)">'+menusublist[i].title+'</div>';
|
|
|
str += '</a>';
|
|
|
str += '</div>';
|
|
|
str += '</div>';
|
|
@@ -906,8 +878,12 @@
|
|
|
$('.qsidenablistthreemenulist').html(str);
|
|
|
|
|
|
|
|
|
- let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl2+'" frameborder="0" data-id="'+menuurl2+'" seamless></iframe>';
|
|
|
+ let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl2+'" frameborder="0" data-id="'+menuurl2+'" seamless id="def2breadcrumbs"></iframe>';
|
|
|
$('#gy-main-iframe-menu').html(menustr);
|
|
|
+
|
|
|
+ if(firstmenuid){
|
|
|
+ $('.endmenuactive'+firstmenuid).addClass('cur');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|