From fbc22dcbef9887f87247b04e878a6107787854bc Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期一, 26 一月 2026 15:16:02 +0800
Subject: [PATCH] 调整数量检测协议

---
 fzzy-igdss-web/src/main/resources/static/security/quantity.js |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/security/quantity.js b/fzzy-igdss-web/src/main/resources/static/security/quantity.js
index 3c8be27..3b6670f 100644
--- a/fzzy-igdss-web/src/main/resources/static/security/quantity.js
+++ b/fzzy-igdss-web/src/main/resources/static/security/quantity.js
@@ -59,9 +59,6 @@
 
     //娓叉煋璁板綍
     ajaxListRecord();
-
-    //娓叉煋鎶撴媿鍥�
-    ajaxSnapImg();
 }
 
 /**
@@ -83,7 +80,7 @@
         contentType: "application/json;charset=UTF-8",
         data: JSON.stringify(data),
         success: function (result) {
-            if (result.code != "SUCCESS") {
+            if (result.code != "0000") {
                 renderSnapImg();
             } else {
                 fileRecord = result.data;
@@ -157,7 +154,7 @@
         contentType: "application/json;charset=UTF-8",
         data: JSON.stringify(data),
         success: function (result) {
-            if (result.code != "SUCCESS") {
+            if (result.code != "0000") {
                 renderEcharts(null);
             } else {
                 renderEcharts(result.data);
@@ -176,11 +173,11 @@
 function renderEcharts(chartData) {
     var chart = hisChart;
     if (chartData && chartData.xaxis.length > 0 && chartData.seriesData.length > 0) {
-        chart.option.xAxis.data = chartData.xaxis;
+        chart.option.xAxis[0].data = chartData.xaxis;
         chart.option.series[0].data = chartData.seriesData;
         chart.chart.setOption(chart.option, true);
     } else {
-        chart.option.xAxis.data = names;
+        chart.option.xAxis[0].data = names;
         chart.option.series[0].data = data;
         chart.chart.setOption(chart.option, true);
     }
@@ -203,7 +200,7 @@
         contentType: "application/json;charset=UTF-8",
         data: JSON.stringify(data),
         success: function (result) {
-            if (result.code != "SUCCESS") {
+            if (result.code != "0000") {
                 renderListRecord();
             } else {
                 listRecord = result.data;
@@ -222,9 +219,17 @@
  */
 function renderListRecord() {
 
-    if (!listRecord) return null;
+    if (!listRecord) {
+        //娓叉煋鎶撴媿鍥�
+        ajaxSnapImg();
+        return null;
+    }
 
-    if (listRecord.length === 0) return null;
+    if (listRecord.length === 0) {
+        //娓叉煋鎶撴媿鍥�
+        ajaxSnapImg();
+        return null;
+    }
 
     var record = listRecord[0];
     if (record) {
@@ -270,6 +275,9 @@
         $("#record_time4").text("----");
         $("#record_content4").text("妫�娴嬮噸閲忎负---- KG锛屽疄闄呴噸閲忎负---- KG锛岃宸皬浜�-%銆�");
     }
+
+    //娓叉煋鎶撴媿鍥�
+    ajaxSnapImg();
 }
 
 /**
@@ -417,7 +425,7 @@
                 type: 'value',
                 name: '鏁伴噺 (KG)',
                 min: 0,
-                max: 3000000,
+                // max: 3000000,
                 axisLabel: {
                     formatter: '{value} KG'
                 }

--
Gitblit v1.9.3