|
|
|
@ -38,12 +38,12 @@ |
|
|
|
<input type="text" name="bureauDeptName"/> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<p>时段:</p> |
|
|
|
<p>发布时段:</p> |
|
|
|
<select id="year" name="year"> |
|
|
|
<!--<option value="2024">2024</option>--> |
|
|
|
<option th:each="y:${yearList}" th:text="${y}" th:value="${y}"></option> |
|
|
|
</select> |
|
|
|
<select id="dateSearch" name="dateSearch" onchange="timeType()"> |
|
|
|
<select id="dateSearch" name="dateSearch" onchange="timeChange()"> |
|
|
|
<option value="year">年度</option> |
|
|
|
<option value="quarter">季度</option> |
|
|
|
<option value="month">月度</option> |
|
|
|
@ -152,23 +152,13 @@ |
|
|
|
var echarts2 = echarts.init(document.getElementById('echars3')); |
|
|
|
var echarts3 = echarts.init(document.getElementById('echars4')); |
|
|
|
window.onload = function () { |
|
|
|
// selectDate(); |
|
|
|
staticAllProgram(); |
|
|
|
/*staticProgramWithAll();*/ |
|
|
|
/*staticProgramWithYear(); |
|
|
|
staticProgramWithQuarter(); |
|
|
|
staticProgramWithMonth();*/ |
|
|
|
//初始化默认隐藏 |
|
|
|
/*$("#yearDom").hide(); |
|
|
|
$("#quarterDom").hide(); |
|
|
|
$("#monthDom").hide();*/ |
|
|
|
$("#quarter").hide(); |
|
|
|
$("#month").hide(); |
|
|
|
$("#day").hide(); |
|
|
|
// $("#select-time").hide(); |
|
|
|
$("#chart-box-1").hide(); |
|
|
|
$("#chart-box-2").hide(); |
|
|
|
$("#chart-box-3").hide(); |
|
|
|
staticAllProgram(); |
|
|
|
echartsTotal(); |
|
|
|
$(".fixed-table-toolbar").hide(); |
|
|
|
$("#detail").hide(); |
|
|
|
@ -359,39 +349,6 @@ |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
*/ |
|
|
|
/*function changeSelect(){ |
|
|
|
var options = $("#timeType option:selected"); |
|
|
|
if("year" == options.val()){ |
|
|
|
$("#yearDom").show(); |
|
|
|
$("#quarterDom").hide(); |
|
|
|
$("#monthDom").hide(); |
|
|
|
document.getElementById("quarter").selectedIndex = -1; |
|
|
|
$("input[name='month']").val("") |
|
|
|
}else if("quarter" == options.val()){ |
|
|
|
$("#yearDom").hide(); |
|
|
|
$("#quarterDom").show(); |
|
|
|
$("#monthDom").hide(); |
|
|
|
$("input[name='year']").val(""); |
|
|
|
document.getElementById("quarter").selectedIndex = -1; |
|
|
|
$("input[name='month']").val("") |
|
|
|
}else if("month" == options.val()){ |
|
|
|
$("#yearDom").hide(); |
|
|
|
$("#quarterDom").hide(); |
|
|
|
$("#monthDom").show(); |
|
|
|
$("input[name='year']").val(""); |
|
|
|
document.getElementById("quarter").selectedIndex = -1; |
|
|
|
$("input[name='month']").val("") |
|
|
|
} |
|
|
|
if("year" != options.val()){ |
|
|
|
$("input[name='year']").val(""); |
|
|
|
var date = new Date(); |
|
|
|
$("#yearDate").text(date.getFullYear()); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
$(function() { |
|
|
|
var options = { |
|
|
|
@ -485,7 +442,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'enforcementTime', |
|
|
|
title : '上传时间', |
|
|
|
title : '发布时间', |
|
|
|
align : 'center' |
|
|
|
}, |
|
|
|
{ |
|
|
|
@ -585,79 +542,35 @@ |
|
|
|
|
|
|
|
function query() { |
|
|
|
var params = $("#formId").bootstrapTable('getOptions'); |
|
|
|
console.log(params); |
|
|
|
$("#bootstrap-table").bootstrapTable('refresh', params); |
|
|
|
/*this.changeEcharts();*/ |
|
|
|
staticAllProgram(); |
|
|
|
$("#detail").hide(); |
|
|
|
} |
|
|
|
function queryP2() { |
|
|
|
echartsTotal(); |
|
|
|
} |
|
|
|
function timeType() { |
|
|
|
var dateSearch = document.getElementById("dateSearch"); |
|
|
|
console.log(dateSearch.value); |
|
|
|
/* if(dateSearch.value=="quarter"){ |
|
|
|
$("#quarter").show(); |
|
|
|
$("#month").hide(); |
|
|
|
document.getElementById("month").value=""; |
|
|
|
}else if(dateSearch.value=="month"){ |
|
|
|
$("#quarter").hide(); |
|
|
|
document.getElementById("quarter").value=""; |
|
|
|
$("#month").show(); |
|
|
|
}else { |
|
|
|
$("#quarter").hide(); |
|
|
|
document.getElementById("quarter").value=""; |
|
|
|
$("#month").hide(); |
|
|
|
document.getElementById("month").value=""; |
|
|
|
}*/ |
|
|
|
if(dateSearch.value=="quarter"){ |
|
|
|
$("#year").show(); |
|
|
|
if(document.getElementById("year").value==''){ |
|
|
|
document.getElementById("year").value=document.getElementById("year").options[0].value; |
|
|
|
} |
|
|
|
$("#day").hide(); |
|
|
|
document.getElementById("beginTime").value=""; |
|
|
|
document.getElementById("endTime").value=""; |
|
|
|
$("#quarter").show(); |
|
|
|
$("#month").hide(); |
|
|
|
document.getElementById("month").value=""; |
|
|
|
}else if(dateSearch.value=="month"){ |
|
|
|
$("#year").show(); |
|
|
|
if(document.getElementById("year").value==''){ |
|
|
|
document.getElementById("year").value=document.getElementById("year").options[0].value; |
|
|
|
} |
|
|
|
$("#day").hide(); |
|
|
|
document.getElementById("beginTime").value=""; |
|
|
|
document.getElementById("endTime").value=""; |
|
|
|
$("#quarter").hide(); |
|
|
|
document.getElementById("quarter").value=""; |
|
|
|
$("#month").show(); |
|
|
|
}else if(dateSearch.value=="day"){ |
|
|
|
$("#day").show(); |
|
|
|
function timeChange() { |
|
|
|
$("#quarter option:first").prop("selected",true); |
|
|
|
$("#month option:first").prop("selected",true); |
|
|
|
$("#quarter").hide(); |
|
|
|
$("#month").hide(); |
|
|
|
$("#day").hide(); |
|
|
|
var type = $("#dateSearch option:selected").val(); |
|
|
|
if(type==="year")$("#year").show(); |
|
|
|
if(type==="quarter") $("#quarter").show(); |
|
|
|
if(type==="month") $("#month").show(); |
|
|
|
if(type==="day"){ |
|
|
|
$("#year").hide(); |
|
|
|
document.getElementById("year").value=""; |
|
|
|
$("#quarter").hide(); |
|
|
|
document.getElementById("quarter").value=""; |
|
|
|
$("#month").hide(); |
|
|
|
document.getElementById("month").value=""; |
|
|
|
}else { |
|
|
|
$("#year").show(); |
|
|
|
if(document.getElementById("year").value==''){ |
|
|
|
document.getElementById("year").value=document.getElementById("year").options[0].value; |
|
|
|
} |
|
|
|
$("#day").hide(); |
|
|
|
document.getElementById("beginTime").value=""; |
|
|
|
document.getElementById("endTime").value=""; |
|
|
|
$("#quarter").hide(); |
|
|
|
document.getElementById("quarter").value=""; |
|
|
|
$("#month").hide(); |
|
|
|
document.getElementById("month").value=""; |
|
|
|
$("#day").show(); |
|
|
|
} |
|
|
|
} |
|
|
|
function resetP(){ |
|
|
|
$("#year").show(); |
|
|
|
$("#quarter").hide(); |
|
|
|
$("#month").hide(); |
|
|
|
$("#day").hide(); |
|
|
|
$('form').eq(0).trigger("reset"); |
|
|
|
query(); |
|
|
|
timeType(); |
|
|
|
} |
|
|
|
function resetP2(){ |
|
|
|
$('form').eq(1).trigger("reset"); |
|
|
|
|