diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/home.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/home.html index b143688a..0834aef6 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/home.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/home.html @@ -191,6 +191,9 @@ var q_jc_num = 0; var q_njc_num = 0; + var leftAct = true; + var rightAct = false; + $(function(){ changeDate(); }); @@ -1450,6 +1453,13 @@ function showDetail(idx, aElement) { + if (leftAct) { + $(".admin").addClass("active"); + $(".non-admin").removeClass("active"); + } else { + $(".admin").removeClass("active"); + $(".non-admin").addClass("active"); + } var ame = $(aElement); var aflag = ame.attr("flag"); var foldCoutArray = $(".fold_cont"); @@ -1480,6 +1490,8 @@ $(".tab_inspect_item:first-child").show(); $(".tab_inspect_item:last-child").hide(); $("#districtSS .tab_inspect_item").css("width","auto"); + leftAct = true; + rightAct = false; } else if('fxzzf' == flag) { $("#xzzf"+index).hide(); $("#fxzzf"+index).show(); @@ -1489,6 +1501,8 @@ $(".tab_inspect_item:first-child").hide(); $(".tab_inspect_item:last-child").show(); $("#districtSS .tab_inspect_item").css("width","40rem"); + leftAct = false; + rightAct = true; } $(aElement).addClass("active").siblings().removeClass("active");