瀏覽代碼

修改问题

MS-FUUVYHVOEAYJ\Administrator 6 月之前
父節點
當前提交
0c4c82ea1c

+ 2 - 2
nngkxxdp/src/main/resources/static/naxsb/indexsyyg.html

@@ -233,10 +233,10 @@
                 <li class="active" @click="golink('indexsyyg.html')">首页</li>
                 <li @click="golink('yqgk.html')">园区概况</li>
                 <li>产业布局</li>
-                <li @click="window.open('https://www.cqna.gov.cn/zczs/')">南岸政策通</li>
+                <li @click="window.open('https://www.cqna.gov.cn/zczs/')">政策通</li>
                 <li @click=" golink('tsfw.html?id=1')">特色服务</li>
                 <li @click="golink('ztcrlist.html?id=-1')">载体租售</li>
-                <li>党群服务</li>
+                <li @click=" golink('dqfw.html?id=1')">党群服务</li>
             </ul>
         </div>
         <div class="title">

+ 51 - 7
nngkxxdp/src/main/resources/static/naxsb/qjt.html

@@ -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>