0 Star 0 Fork 262

yangshanbo/B-JUI-Plus

forked from xknaan/B-JUI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
table-layout.html 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
<script type="text/javascript">
function do_open_layout(event, treeId, treeNode) {
if (treeNode.isParent) {
var zTree = $.fn.zTree.getZTreeObj(treeId)
zTree.expandNode(treeNode)
return
}
$(event.target).bjuiajax('doLoad', {url:treeNode.url, target:treeNode.divid})
event.preventDefault()
}
</script>
<div class="bjui-pageContent">
<div style="float:left; width:200px;">
<ul id="layout-tree" class="ztree" data-toggle="ztree" data-expand-all="true" data-on-click="do_open_layout">
<li data-id="1" data-pid="0">第一业务</li>
<li data-id="10" data-pid="1" data-url="layout/layout-01.html" data-divid="#layout-01">业务1</li>
<li data-id="11" data-pid="1" data-url="layout/layout-02.html" data-divid="#layout-02">业务2</li>
<li data-id="2" data-pid="0">第二业务</li>
<li data-id="20" data-pid="2" data-url="layout/layout-03.html" data-divid="#layout-01">业务3</li>
<li data-id="21" data-pid="2" data-url="layout/layout-04.html" data-divid="#layout-02">业务4</li>
</ul>
</div>
<div style="margin-left:210px; height:99.9%; overflow:hidden;">
<div style="height:50%; overflow:hidden;">
<fieldset style="height:100%;">
<legend>第一/三业务区</legend>
<div id="layout-01" style="height:94%; overflow:hidden;">
</div>
</fieldset>
</div>
<div style="height:50%; overflow:hidden;">
<fieldset style="height:100%;">
<legend>第二/四业务区</legend>
<div id="layout-02" style="height:94%; overflow:hidden;">
</div>
</fieldset>
</div>
</div>
</div>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yangshanbo2020/B-JUI-Plus.git
git@gitee.com:yangshanbo2020/B-JUI-Plus.git
yangshanbo2020
B-JUI-Plus
B-JUI-Plus
master

搜索帮助