12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <!--#include file="/inc/header.html"-->
- <script type="text/javascript">
- window.renderHeader=function(e)
- {
- var template="{{#childenList}}<li class=\"bif-nav-item\" data-type=\"{{moduleType}}\">{{moduleName}}</li>{{/childenList}}";
- var views = Mustache.render(template, e);
- $("#bif-nav-ul").html(views);
- $(".tree-breadcrumb #nav-item-a").html($("#bif-nav-ul li:first-child").html());
- $("#bif-nav-ul li:first-child").addClass("active");
- tabSelect.equipmentDeviceTree(e.childenList);
- };
- $(function(){
- var modules=JSON.parse(window.sessionStorage.getItem("modules"));
- if(window.treemap){
- renderHeader(window.treemap[10]);//器材设备管理ID 10
- }else if(modules){
- renderHeader(modules.treemap[10]);
- }
- })
- var getGrainData = {};
- $.ajax({
- type: "get",
- dataType: 'json',
- async: false,
- url: config.baseUrl + config.organization.getAllGrainList,
- success: function(e) {
- getGrainData = e.data.data;
- },
- error: function(e) {
- console.log(e);
- }
- });
- </script>
- <div class="con-wrap">
- <div class="tree-breadcrumb">
- <span class="nav-prov">首页</span>>
- <span class="nav-item"><a href="javascript:;" id="nav-item-a"></a></span>
- </div>
- <div class="bif-nav">
- <div id="jsonId"></div>
- <ul id="bif-nav-ul">
- </ul>
- </div>
- <div id="con-main">
- <div id="con-map" class="main3">
- </div>
- </div>
- </div>
- <!--#include file="/inc/footer.html"-->
- <style>
- #con-map{
- height:400px;
- min-height: 400px;
- }
- #con-main{
- min-height:420px;
- }
- .bif-nav-item{
- width: 150px;
- text-align: center;
- }
- </style>
- <script type="text/javascript" src="/src/toDo.js"></script>
- </body>
- </html>
|