|  |  |  | 
|---|
|  |  |  | <!-- 站点状态数据监控版 --> | 
|---|
|  |  |  | <div id="site-monitor" class="main-board"> | 
|---|
|  |  |  | <!-- 表格 --> | 
|---|
|  |  |  | <table id="site-table"> | 
|---|
|  |  |  | <!--固定表头 table 加table-layout: fixed;  th 加 position:sticky;top: 0;--> | 
|---|
|  |  |  | <table id="site-table" style="table-layout: fixed;"> | 
|---|
|  |  |  | <!-- 表头 --> | 
|---|
|  |  |  | <thead> | 
|---|
|  |  |  | <thead style="position:sticky;top: 0;"> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <th>站号</th> | 
|---|
|  |  |  | <th>工作号</th> | 
|---|
|  |  |  | 
|---|
|  |  |  | <th>入库标记</th> | 
|---|
|  |  |  | <th>空板信号</th> | 
|---|
|  |  |  | <th>目标站</th> | 
|---|
|  |  |  | <th>高低库位</th> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </thead> | 
|---|
|  |  |  | <!-- 表格内容 --> | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </body> | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | // 初始化 | 
|---|
|  |  |  | 
|---|
|  |  |  | setVal(tr.children("td").eq(6), table[i-1].pakMk); | 
|---|
|  |  |  | setVal(tr.children("td").eq(7), table[i-1].emptyMk); | 
|---|
|  |  |  | setVal(tr.children("td").eq(8), table[i-1].staNo); | 
|---|
|  |  |  | setVal(tr.children("td").eq(9), table[i-1].locType1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else if (res.code === 403){ | 
|---|
|  |  |  | window.location.href = baseUrl+"/login"; | 
|---|
|  |  |  | 
|---|
|  |  |  | "       <td></td>\n" + | 
|---|
|  |  |  | "       <td></td>\n" + | 
|---|
|  |  |  | "       <td></td>\n" + | 
|---|
|  |  |  | "       <td></td>\n" + | 
|---|
|  |  |  | "     </tr>\n"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | $('#site-table tbody').after(html); | 
|---|
|  |  |  | 
|---|
|  |  |  | // 详情操作 ------------------------------------------------------------------------- | 
|---|
|  |  |  | var layerDetl; | 
|---|
|  |  |  | $(document).on('dblclick ','#site-table tr', function () { | 
|---|
|  |  |  | stop = false | 
|---|
|  |  |  | stop = true | 
|---|
|  |  |  | var siteId = $(this).children("td").eq(0).html(); | 
|---|
|  |  |  | if (siteId !== null && siteId !== "") { | 
|---|
|  |  |  | layerDetl = layer.open({ | 
|---|
|  |  |  | 
|---|
|  |  |  | $('#workNo').val(""); | 
|---|
|  |  |  | $('#staNo').val(""); | 
|---|
|  |  |  | $('#pakMk').val(""); | 
|---|
|  |  |  | stop = false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | stop = true | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $(document).on('click ','#save', function () { | 
|---|