Browse Source

首页弹窗

v6
蟑螂恶霸 1 year ago
parent
commit
af8909f821
  1. 11
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/home.html

11
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/home.html

@ -373,7 +373,7 @@ function area_registration() {
base_html += ' <ul>'; base_html += ' <ul>';
base_html += ' <li><label>被检查企业数量</label><span>{nqy_num}</span></li><li>'; base_html += ' <li><label>被检查企业数量</label><span>{nqy_num}</span></li><li>';
base_html += ' <li><label>涉企检查次数</label><span>{njc_num}</span></li><li>'; base_html += ' <li><label>涉企检查次数</label><span>{njc_num}</span></li><li>';
base_html += ' <li><label>涉企投诉次数</label><span>{com_jc_num}</span></li><li>'; // base_html += ' <li><label>涉企投诉次数</label><span>{com_jc_num}</span></li><li>';
base_html += ' </ul>'; base_html += ' </ul>';
base_html += ' </div>'; base_html += ' </div>';
base_html += ' </div>'; base_html += ' </div>';
@ -575,9 +575,14 @@ function analysis_njc_all() {
function showDetail(idx, aElement) { function showDetail(idx, aElement) {
var ame = $(aElement); var ame = $(aElement);
// ame.attr("flag", "1");
var aflag = ame.attr("flag"); var aflag = ame.attr("flag");
var foldCoutArray = $(".fold_cont"); var foldCoutArray = $(".fold_cont");
for (let i = 0; i < 11; i++) {
if ((idx-1) != i) {
foldCoutArray.eq(i).attr("flag", "1");
}
foldCoutArray.eq(i).hide();
}
if (aflag == "1") { if (aflag == "1") {
foldCoutArray.eq(idx).show(); foldCoutArray.eq(idx).show();
ame.attr("flag", "0"); ame.attr("flag", "0");
@ -587,6 +592,8 @@ function showDetail(idx, aElement) {
ame.attr("flag", "1"); ame.attr("flag", "1");
$(this).removeClass("active") $(this).removeClass("active")
} }
// $(aElement).addClass("flag").siblings().removeClass("flag");
// $(aElement).addClass("active").siblings().removeClass("active");
} }
/** 时间维度 */ /** 时间维度 */

Loading…
Cancel
Save