|
@@ -219,7 +219,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <script src="js/jquery-3.5.1.min.js"></script>
|
|
|
<script>
|
|
|
// 判断浏览器是否支持 webgl
|
|
|
if (!Detector.webgl) Detector.addGetWebGLMessage();
|
|
@@ -562,7 +562,7 @@
|
|
|
emphasis: {
|
|
|
focus: 'series'
|
|
|
},
|
|
|
- data: [0, 32, 10, 64, 90, 40, 50, 20, 100, 30]
|
|
|
+ data: [0, 32, 10, 0, 0, 0, 50, 20, 100, 30]
|
|
|
}
|
|
|
]
|
|
|
};
|
|
@@ -570,6 +570,34 @@
|
|
|
option && myChart.setOption(option);
|
|
|
</script>
|
|
|
<script>
|
|
|
+ var path = "https://www.cqna.gov.cn/data";
|
|
|
+
|
|
|
+ //办件数加载
|
|
|
+ function handlingNumber(area, timeType) {
|
|
|
+ var data1 = ''
|
|
|
+ $.ajax({
|
|
|
+ url: path + "/department/getOfficeNumberByAreaInfo", //url地址
|
|
|
+ dataType: "json", //返回的数据类型
|
|
|
+ type: "get", //发起请求的方式
|
|
|
+ cache: false,
|
|
|
+ async: false,
|
|
|
+ data: {
|
|
|
+ "area": area,
|
|
|
+ "timeType": timeType
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ data1 = data.data
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+ error: function () {
|
|
|
+ alert('网络错误,请稍后再试!');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ return data1;
|
|
|
+ }
|
|
|
+
|
|
|
function animateValue(obj, start, end, duration) {
|
|
|
let startTimestamp = null;
|
|
|
const step = (timestamp) => {
|
|
@@ -611,15 +639,31 @@
|
|
|
// 2号楼窗口数
|
|
|
const winNumElement2 = document.getElementById('winNum2');
|
|
|
animateValue(winNumElement2, 0, 11, time);
|
|
|
- // 本日办理数量
|
|
|
- const currTaskNumElement = document.getElementById('currDayTaskNum');
|
|
|
- animateValue(currTaskNumElement, 0, 98, time);
|
|
|
+ //本月加载
|
|
|
+ var data = handlingNumber(1, 2)
|
|
|
+ // $("#monthDeclare").html(data.applicationNumberNetwork + data.applicationNumberWindow)
|
|
|
+ // $("#monthAcceptance").html(data.acceptNumber)
|
|
|
+ // $("#monthConclude").html(data.serialNumber)
|
|
|
+
|
|
|
// 本月办理数量
|
|
|
const currMonthTaskNumElement = document.getElementById('currMonthTaskNum');
|
|
|
- animateValue(currMonthTaskNumElement, 0, 1298, time);
|
|
|
+ animateValue(currMonthTaskNumElement, 0, data.acceptNumber, time);
|
|
|
+ //本周加载
|
|
|
+ var data = handlingNumber(1, 1)
|
|
|
+ // $("#weekDeclare").html(data.applicationNumberNetwork + data.applicationNumberWindow)
|
|
|
+ // $("#weekAcceptance").html(data.acceptNumber)
|
|
|
+ // $("#weekConclude").html(parseInt(data.serialNumber))
|
|
|
+ // 本周办理数量
|
|
|
+ const currTaskNumElement = document.getElementById('currDayTaskNum');
|
|
|
+ animateValue(currTaskNumElement, 0, data.acceptNumber, time);
|
|
|
+ //本年加载
|
|
|
+ var data = handlingNumber(1, 3)
|
|
|
+ // $("#yearDeclare").html(data.applicationNumberNetwork + data.applicationNumberWindow)
|
|
|
+ // $("#yearAcceptance").html(data.acceptNumber)
|
|
|
+ // $("#yearConclude").html(data.serialNumber)
|
|
|
// 本年办理数量
|
|
|
const currYearTaskNumElement = document.getElementById('currYearTaskNum');
|
|
|
- animateValue(currYearTaskNumElement, 0, 6298, time);
|
|
|
+ animateValue(currYearTaskNumElement, 0, data.acceptNumber, time);
|
|
|
</script>
|
|
|
|
|
|
</html>
|