Explorar el Código

UI:admin用户可以查看添加任务

温红权 hace 8 años
padre
commit
227ef3c35a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      VisualInspection/js/statistics/assess_ranking.js

+ 1 - 1
VisualInspection/js/statistics/assess_ranking.js

@@ -192,7 +192,7 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
                 html = "";
                 if (hasRole(ROLE_JICHA_ADMIN) || hasRole(ROLE_ADMIN) || hasRole(ROLE_ROAD_MANAGER)) {
                     isshownumber = true;
-                    if (hasRole(ROLE_JICHA_ADMIN)) {
+                    if (hasRole(ROLE_JICHA_ADMIN) || hasRole(ROLE_ADMIN)) {
                         html += "<button id=\"user_" + data[i].user.id + "\" onClick='addTask(" + data[i].user.id + ",\"" + data[i].user.truename + "\",\"" + data[i].user.fee_station_name + "\",\"" + data[i].checked_num + "\",\"" + param.start_date + "\",\"" + param.end_date + "\")'  class=\"btn\" style='margin-left: 10px;padding: 0px;border: 0;background: none;' type=\"button\"><i class=\"icon icon-plus-sign\"></i></button>"
                     }
                 }