增加SSO逻辑

This commit is contained in:
yubaolee
2016-07-08 11:28:38 +08:00
parent d3c98fdc87
commit 032bc20e1e
112 changed files with 52068 additions and 178 deletions

View File

@@ -126,18 +126,21 @@
<ul id="bjui-doc-tree-base" class="ztree ztree_main" data-toggle="ztree" data-on-click="MainMenuClick"
data-expand-all="true" data-faicon="star-o" data-tit="控制台">
@foreach (var module in Model)
@if (Model != null)
{
foreach (var module in Model)
{
<li data-id="@module.Id" data-pid="@module.ParentId"
@if (string.IsNullOrWhiteSpace(module.Url.Trim())) { @: data - faicon="folder-open-o"
@: data - faicon - close="folder-o"
} else { @: data-faicon="caret-right"
@: data-url="@module.Url"
@: data-tabid="@module.Id"
}>@module.Name</li>
<li data-id="@module.Id" data-pid="@module.ParentId"
@if (string.IsNullOrWhiteSpace(module.Url.Trim())) { @: data - faicon="folder-open-o"
@: data - faicon - close="folder-o"
} else { @: data-faicon="caret-right"
@: data-url="@module.Url"
@: data-tabid="@module.Id"
}>@module.Name</li>
}
}
</ul>
</div>
</li>
@@ -175,7 +178,7 @@
<!--标签头-->
<div class="tabsPageHeaderContent">
<ul class="navtab-tab nav nav-tabs">
<li data-url="Home/Main" @*class="external" <!--该class标识在iframe中打开-->*@>
<li data-url="/Home/Main" @*class="external" <!--该class标识在iframe中打开-->*@>
<a href="javascript:;">
<span>
<i class="fa fa-home"></i> #maintab#

View File

@@ -128,6 +128,9 @@
<script type="text/javascript">
var COOKIE_NAME = 'sys__username';
$(function () {
if (top != window) {
top.location.href = window.location.href;
}
choose_bg();
//changeCode();
if ($.cookie(COOKIE_NAME)) {

View File

@@ -32,7 +32,7 @@
<tr>
<td>
<label for="Url" class="control-label x120">主页面URL</label>
<input type="text" id="Url" name="Url" value=""/>
<input type="text" id="Url" name="url" value=""/>
</td>
</tr>
<tr>

View File

@@ -80,7 +80,7 @@
overwriteHomeTab: false //[可选]当打开一个未定义id的navtab时是否可以覆盖主navtab(我的主页)
},
debug: true, // [可选]调试模式 [true|false默认false]
theme: 'sky' // 若有Cookie['bjui_theme'],优先选择Cookie['bjui_theme']。皮肤[五种皮肤:default, orange, purple, blue, red, green]
theme: 'sky' // 若有cookie['bjui_theme'],优先选择cookie['bjui_theme']。皮肤[五种皮肤:default, orange, purple, blue, red, green]
});
});
</script>