From 241d327e57cbfe504aa806c61aa22e6205706098 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期六, 11 四月 2026 16:59:46 +0800
Subject: [PATCH] 引用纠正

---
 fzzy-igdss-web/src/main/resources/static/group/index.js |   77 ++++++++++++++++++++------------------
 1 files changed, 41 insertions(+), 36 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/group/index.js b/fzzy-igdss-web/src/main/resources/static/group/index.js
index a5a3281..bc422a4 100644
--- a/fzzy-igdss-web/src/main/resources/static/group/index.js
+++ b/fzzy-igdss-web/src/main/resources/static/group/index.js
@@ -98,27 +98,27 @@
             html += '<li style="float: left; width: 246px;">';
             html += '<div class="item">';
             html += '<div class="pic">';
-            html += '<img src="'+item.imgName+'" alt="">';
-            html += '</div><div class="tit">'+item.snapTime+'</div>';
-            html += '<div class="tit" style="white-space: nowrap;">'+deptListMap[item.deptId]+'</div>';
+            html += '<img src="' + item.imgName + '" alt="">';
+            html += '</div><div class="tit">' + item.time + '</div>';
+            html += '<div class="tit" style="white-space: nowrap;">' + deptListMap[item.deptId] + '</div>';
             html += '</div></li>';
         })
-    }else {
+    } else {
         $.each(deptAllList, function (index, item) {
             html += '<li style="float: left; width: 246px;">';
             html += '<div class="item">';
             html += '<div class="pic">';
             html += '<img src="/img/img-fail.jpg" alt="">';
             html += '</div><div class="tit">杩戞湡鏆傛棤鎶撴媿鍥�</div>';
-            html += '<div class="tit" style="white-space: nowrap;">'+item.kqmc+'</div>';
+            html += '<div class="tit" style="white-space: nowrap;">' + item.kqmc + '</div>';
             html += '</div></li>';
         })
     }
     $("#snapList").html(html);
 
     //鎶撴媿璺熻釜婊氬姩
-    jQuery(".block2").slide({ mainCell: ".bd ul", autoPage: true, effect: "topLoop", autoPlay: true, vis: 4 });
-    jQuery(".follow").slide({ mainCell: ".bd ul", autoPlay: true, effect: "leftMarquee", vis: 5, interTime: 40 });
+    jQuery(".block2").slide({mainCell: ".bd ul", autoPage: true, effect: "topLoop", autoPlay: true, vis: 4});
+    jQuery(".follow").slide({mainCell: ".bd ul", autoPlay: true, effect: "leftMarquee", vis: 5, interTime: 40});
 
 }
 
@@ -126,8 +126,8 @@
  * 搴撳尯瀹氭椂鍒囨崲
  */
 function timing() {
-    timer = setInterval(function() {
-        if(deptNum === deptList.length){
+    timer = setInterval(function () {
+        if (deptNum === deptList.length) {
             deptNum = 0;
         }
 
@@ -148,11 +148,11 @@
 
 //鍔犺浇鎸囧畾鍦板尯鍦板浘鍜岀偣浣�
 function renderMapPoints(areaName) {
-    if(!areaName){
+    if (!areaName) {
         return;
     }
     var names = areaName.split(",");
-    if(names.length < 1){
+    if (names.length < 1) {
         return;
     }
 
@@ -167,13 +167,13 @@
     geoMap = [];
     for (var j = 0; j < names.length; j++) {
         for (var i = 0; i < all.length; i++) {
-            if(all[i].properties.name === names[j]){
+            if (all[i].properties.name === names[j]) {
                 map.features.push(all[i]);
                 // if(all[i].properties.name === "浼婄妬鍝堣惃鍏嬭嚜娌诲窞"){
-                    geoMap.push({
-                        name: all[i].properties.centerName,
-                        value: [all[i].properties.center[0], all[i].properties.center[1], 12]
-                    });
+                geoMap.push({
+                    name: all[i].properties.centerName,
+                    value: [all[i].properties.center[0], all[i].properties.center[1], 12]
+                });
                 // }
                 // renderMap();
                 break;
@@ -193,7 +193,7 @@
     echarts.registerMap('chinaMapOutline', map);
 
     var option = {
-        backgroundColor:'transparent',
+        backgroundColor: 'transparent',
         tooltip: {
             show: false,
             trigger: 'item'
@@ -310,7 +310,7 @@
                 type: 'effectScatter',
                 coordinateSystem: 'geo',
                 data: geoMap,
-                symbolSize:  function (val) {
+                symbolSize: function (val) {
                     return val[2];
                 },
                 rippleEffect: {
@@ -339,7 +339,7 @@
         ]
     };
 
-    myChart.setOption( option );
+    myChart.setOption(option);
     mapChart = {"chart": myChart, "option": option};
 }
 
@@ -354,15 +354,17 @@
     var flag = false;
     if (deptList != null && deptList.length > 0) {
         $.each(deptList, function (index, item) {
-            if(item.dailyTotal === 0){
+            if (item.dailyTotal === 0) {
                 num1 = '褰撴棩涓�鍒囨甯�';
-            }else{
-                num1 = '褰撴棩鏁伴噺'+ item.dailyTotal + '涓�';
+            } else if (item.dailyTotal < 0) {
+                num1 = '鏈娴嬪埌缃戝叧';
+            } else {
+                num1 = '褰撴棩鏁伴噺' + item.dailyTotal + '涓�';
             }
-            if(item.warnNum7 === 0){
+            if (item.warnNum7 === 0) {
                 num7 = '杩戜竷澶╀竴鍒囨甯�';
-            }else{
-                num7 = '杩戜竷澶╂暟閲�'+ item.warnNum7 + '涓�';
+            } else {
+                num7 = '杩戜竷澶╂暟閲�' + item.warnNum7 + '涓�';
             }
             html += '<div class="panel-content-body-tr">';
             if (item.dailyTotal > 0) {
@@ -379,14 +381,14 @@
             //     html += '<span class="body-item sp" style="color: #f37b3d;">' + num1+ '</span>';
             //     html += '<span class="body-item sp" style="color: #f37b3d;">' + num7 + '</span>';
             // }else {
-                html += '<span class="body-item sp" style="flex: 1.5;">' + item.deptName + '</span>';
-                html += '<span class="body-item sp">' + num1 + '</span>';
-                html += '<span class="body-item sp">' + num7 + '</span>';
+            html += '<span class="body-item sp" style="flex: 1.5;">' + item.deptName + '</span>';
+            html += '<span class="body-item sp">' + num1 + '</span>';
+            html += '<span class="body-item sp">' + num7 + '</span>';
             // }
             html += '</div>';
         })
     }
-    if(flag){
+    if (flag) {
         $("#panel-title").html('搴撳尯AI浜嬩欢淇℃伅  <i class="dot"></i>');
     }
     $("#inventoryInfo").html(html);
@@ -441,13 +443,13 @@
 
 function updateDeptMap() {
     var points = [];
-    $.each(deptList, function(index, item) {
+    $.each(deptList, function (index, item) {
         var val = [];
         var name = '';
-        if(index === deptNum){
+        if (index === deptNum) {
             name = item.deptName;
             val = [item.jd, item.wd, 17];
-        }else {
+        } else {
             val = [item.jd, item.wd, 8];
         }
         points.push({
@@ -500,12 +502,15 @@
     $("#depotBankNum").html(data.depotBankNum);
 
     /*----- 鐩戠鏁伴噺淇℃伅 -----*/
-    if (data.foodSum.length > 8 || data.packFoodSum.length > 8) {
+    // if (data.foodSum.length > 8 || data.packFoodSum.length > 8) {
+    //     $("#foodSum").css("font-size", "32px");
+    //     $("#packFoodSum").css("font-size", "32px");
+    // }
+    if (data.foodSum.length > 8) {
         $("#foodSum").css("font-size", "32px");
-        $("#packFoodSum").css("font-size", "32px");
     }
     $("#foodSum").html(data.foodSum);
-    $("#packFoodSum").html(data.packFoodSum);
+    // $("#packFoodSum").html(data.packFoodSum);
 
     /*----- 鍒嗗搧绉嶆煴鐘跺浘 -----*/
     if (data.xaxis.length > 0 && data.seriesData.length > 0) {
@@ -563,7 +568,7 @@
 function initChart() {
     /* 搴撳瓨鍥捐〃鍔犺浇 */
     allInventoryChartLoad(
-        ['灏忛害', '鐜夌背', '绋昏胺', '鎴愬搧绮�',  '鎴愬搧娌�', '鍏朵粬'],
+        ['灏忛害', '鐜夌背', '绋昏胺', '鎴愬搧绮�', '鎴愬搧娌�', '鍏朵粬'],
         [1000, 1200, 1500, 1300, 1100, 1600]
     );
 }

--
Gitblit v1.9.3