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