|
|
@@ -32,7 +32,7 @@ $(function() {
|
|
|
// 检索
|
|
|
getFsWorkInfo(0);
|
|
|
}, userId);
|
|
|
- },true);
|
|
|
+ }, true);
|
|
|
|
|
|
// 当初始化月份值
|
|
|
var months = month_method_2();
|
|
|
@@ -67,15 +67,15 @@ $(function() {
|
|
|
// if (center_manage_id == '') {
|
|
|
// $("#fs_station,#fs_employee").html('');
|
|
|
// } else {
|
|
|
- getFsStationList(center_manage_id, function(obj) {
|
|
|
- $("#fs_station").html(obj);
|
|
|
- //默认选中第一个
|
|
|
- $("#fs_station option:first").attr("selected", 'selected');
|
|
|
- if (roleContains("STATION")) {
|
|
|
- var dept = getCurrentUser().organid;
|
|
|
- $("#fs_station").val(dept);
|
|
|
- }
|
|
|
- },true);
|
|
|
+ getFsStationList(center_manage_id, function(obj) {
|
|
|
+ $("#fs_station").html(obj);
|
|
|
+ //默认选中第一个
|
|
|
+ $("#fs_station option:first").attr("selected", 'selected');
|
|
|
+ if (roleContains("STATION")) {
|
|
|
+ var dept = getCurrentUser().organid;
|
|
|
+ $("#fs_station").val(dept);
|
|
|
+ }
|
|
|
+ }, true);
|
|
|
// }
|
|
|
})
|
|
|
|
|
|
@@ -156,6 +156,17 @@ function getTableContent(obj, seq) {
|
|
|
if (d != 0) {
|
|
|
class_type = d;
|
|
|
}
|
|
|
+ var normal = false;
|
|
|
+
|
|
|
+ if (roleContains("STATION")) {
|
|
|
+ normal = true;
|
|
|
+ }
|
|
|
+ if (roleContains("ROAD_MANAGER")) {
|
|
|
+ normal = true;
|
|
|
+ }
|
|
|
+ if (hasRole("ROLE_STATION")) {
|
|
|
+ normal = true;
|
|
|
+ }
|
|
|
|
|
|
for (var i = 26; i <= days; i++) {
|
|
|
if (map_class[i + "-" + class_type] != undefined) {
|
|
|
@@ -163,9 +174,9 @@ function getTableContent(obj, seq) {
|
|
|
class_html[d] += '<td width="20px">/</td>';
|
|
|
} else {
|
|
|
if (map_class[i + "-" + class_type] == 3) {
|
|
|
- class_html[d] += '<td class="b-grey" width="20px"></td>';
|
|
|
+ class_html[d] += '<td ' + (normal ? "" : "class='b-grey'") + ' width="20px"></td>';
|
|
|
} else {
|
|
|
- class_html[d] += '<td class="b-grey" width="20px">/</td>';
|
|
|
+ class_html[d] += '<td ' + (normal ? "" : "class='b-grey'") + ' width="20px">/</td>';
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
@@ -178,10 +189,11 @@ function getTableContent(obj, seq) {
|
|
|
class_html[d] += '<td width="20px">/</td>';
|
|
|
} else {
|
|
|
if (map_class[i + "-" + class_type] == 3) {
|
|
|
- class_html[d] += '<td class="b-grey" width="20px"></td>';
|
|
|
+ class_html[d] += '<td ' + (normal ? "" : "class='b-grey'") + ' width="20px"></td>';
|
|
|
} else {
|
|
|
- class_html[d] += '<td class="b-grey" width="20px">/</td>';
|
|
|
+ class_html[d] += '<td ' + (normal ? "" : "class='b-grey'") + ' width="20px">/</td>';
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
} else {
|
|
|
class_html[d] += '<td width="20px"></td>';
|