温红权 8 лет назад
Родитель
Сommit
b9ab7ba265

+ 8 - 3
VisualInspection/js/user/userManager.js

@@ -146,7 +146,7 @@
 
              var userId = this.id;
              var user = UserMap.get(parseInt(userId));
-             
+
              layer.confirm('您确定要删除 "' + user.truename + '" ?', {
                  offset: offset,
                  shade: 0,
@@ -164,7 +164,7 @@
 
                      })
              }, function(index) {
-                layer.close(index);
+                 layer.close(index);
              });
          }
 
@@ -335,7 +335,7 @@
                      if (!roleContains("STATION")) {
                          btns += '<button class="btn btn-primary btn-sm" name="user_delete" id=' + user.id + ' ><i class="icon icon-remove-circle"></i>删除</button>';
                      }
-                     userdata["data"] = [i + 1, user.username, user.truename, user.workno == null ? -1 : user.workno, user.mobile == null ? "" : user.mobile, attr, btns];
+                     userdata["data"] = [i + 1, user.username, user.truename, stringlimit(user.workno == null ? -1 : user.workno, 6), stringlimit(user.mobile == null ? "" : user.mobile, 4), attr, btns];
                      rowdata.push(userdata);
                  }
              }
@@ -349,4 +349,9 @@
          function(error) {
 
          });
+ }
+
+ function stringlimit(string, linmit) {
+     if (string.length < linmit) return string;
+     return string.substr(0, linmit / 2) + "..." + string.substr(string.length - linmit / 2, linmit / 2)
  }

+ 25 - 25
VisualInspection/view/statistics/emp_ranking.html

@@ -74,36 +74,36 @@
                 <table border="1" width="100%" align="center">
                     <thead class="table-thead" align="center">
                         <tr>
-                            <th rowspan="2" width="4%;">序号</th>
-                            <th rowspan="2" width="6%">站名</th>
-                            <th rowspan="2" width="6%">姓名</th>
-                            <th rowspan="2" width="6%">岗位</th>
-                            <th rowspan="2" width="7%">工号</th>
-                            <th rowspan="2" width="4%">公司排名</th>
-                            <th rowspan="2" width="4%">道管排名</th>
-                            <th rowspan="2" width="4%">收费站排名</th>
-                            <th colspan="9" height="40px">考核扣分</th>
-                            <th rowspan="2" width="6%">受检次数
+                            <th rowspan="2" width="4%;" id='th_1'>序号</th>
+                            <th rowspan="2" width="6%" id='th_2'>站名</th>
+                            <th rowspan="2" width="6%" id='th_3'>姓名</th>
+                            <th rowspan="2" width="6%" id='th_4'>岗位</th>
+                            <th rowspan="2" width="7%" id='th_5'>工号</th>
+                            <th rowspan="2" width="4%" id='th_6'>公司排名</th>
+                            <th rowspan="2" width="4%" id='th_7'>道管排名</th>
+                            <th rowspan="2" width="4%" id='th_8'>收费站排名</th>
+                            <th colspan="9" height="40px" id='th_9'>考核扣分</th>
+                            <th rowspan="2" width="6%" id='th_10'>受检次数
                                 <div class="switch switch-inline hidden" id="show_check_div" data-toggle="tooltip" data-placement="right" title="收费站是否显示该列数据">
                                     <input type="checkbox" id="show_check" onchange="show_check_fun()">
                                     <label style="color: #000;" id="show_check_text">显示</label>
                                 </div>
                             </th>
-                            <th rowspan="2" width="4%">平均扣分(千分制)</th>
-                            <th rowspan="2" width="4%">得分</th>
-                            <th rowspan="2" width="4%">服务评价</th>
-                            <th rowspan="2" width="4%">备注</th>
+                            <th rowspan="2" width="4%" id='th_11'>平均扣分(千分制)</th>
+                            <th rowspan="2" width="4%" id='th_12'>得分</th>
+                            <th rowspan="2" width="4%" id='th_13'>服务评价</th>
+                            <th rowspan="2" width="4%" id='th_14'>备注</th>
                         </tr>
                         <tr>
-                            <th width="4%">环境卫生</th>
-                            <th width="4%">仪容仪表</th>
-                            <th width="4%">表情</th>
-                            <th width="4%">收费动作</th>
-                            <th width="4%">文明用语</th>
-                            <th width="4%">工作纪律</th>
-                            <th width="4%">便民服务</th>
-                            <th width="4%">安全管理</th>
-                            <th width="4%">扣分合计</th>
+                            <th width="4%" id='th_9_1'>环境卫生</th>
+                            <th width="4%" id='th_9_2'>仪容仪表</th>
+                            <th width="4%" id='th_9_3'>表情</th>
+                            <th width="4%" id='th_9_4'>收费动作</th>
+                            <th width="4%" id='th_9_5'>文明用语</th>
+                            <th width="4%" id='th_9_6'>工作纪律</th>
+                            <th width="4%" id='th_9_7'>便民服务</th>
+                            <th width="4%" id='th_9_8'>安全管理</th>
+                            <th width="4%" id='th_9_9'>扣分合计</th>
                         </tr>
                     </thead>
                     <!-- <tbody class="table-tbody" style="background:white; " align="center">
@@ -113,11 +113,11 @@
             </div>
         </div>
         <div id="scrollTable" style="height:300px;overflow:scroll;">
-                <table style="border-top:0;" border="1" width="100%"  align="center">
+            <table style="border-top:0;" border="1" width="100%" align="center">
                 <tbody class="table-tbody" style="background:white; " align="center">
 
                 </tbody>
-                </table>
+            </table>
         </div>
     </div>
 </div>