Merge branch 'master' of http://192.168.1.136:82/monitor_v3/hg-monitor-web
Showing
1 changed file
with
8 additions
and
1 deletions
@@ -597,7 +597,14 @@ | @@ -597,7 +597,14 @@ | ||
597 | <script type="text/html" id="resindex_resName"> | 597 | <script type="text/html" id="resindex_resName"> |
598 | <!-- 更改单元格溢出时的tip跑到左上角 LSQ 2022/1/6--> | 598 | <!-- 更改单元格溢出时的tip跑到左上角 LSQ 2022/1/6--> |
599 | <div id="res-div"> | 599 | <div id="res-div"> |
600 | - {{# var w=$("[lay-id='resListTable'] table thead th[data-field='resName']").data('minwidth'); | 600 | + {{# var urlLast=window.location.hash; |
601 | + var w=$(".layui-table thead th[data-field='resName']").data('minwidth'); | ||
602 | + if(urlLast=="#/res/index"){ | ||
603 | + w=$("[lay-id='resListTable'] table thead th[data-field='resName'").data('minwidth'); | ||
604 | + | ||
605 | + }else if(urlLast=="#/biz/index"){ | ||
606 | + w=$("[lay-id='bizListTable'] table thead th[data-field='resName'").data('minwidth'); | ||
607 | + } | ||
601 | var maxW=(w-45)+'px'; | 608 | var maxW=(w-45)+'px'; |
602 | var styleW="float: left;max-width: "+maxW+";overflow: hidden; text-overflow: ellipsis; white-space: nowrap;display: inline-block;"; | 609 | var styleW="float: left;max-width: "+maxW+";overflow: hidden; text-overflow: ellipsis; white-space: nowrap;display: inline-block;"; |
603 | }} | 610 | }} |
-
Please register or login to post a comment