From e53d36a01183ebe660ab2d77c9bcd4e0ab6c42a3 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期二, 06 二月 2024 19:20:06 +0800
Subject: [PATCH] #AGV 输送线扫码器扫描

---
 src/main/webapp/views/console1.html |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/views/console1.html b/src/main/webapp/views/console1.html
index 8fc40bb..ae94ed5 100644
--- a/src/main/webapp/views/console1.html
+++ b/src/main/webapp/views/console1.html
@@ -655,10 +655,17 @@
 							data:{},
 							method:'get',
 							success:function (res) {
-								that.$message({
-									message: that.currentLev + '灞傚湴鍥鹃噸缃畬鎴�',
-									type: 'success'
-								});
+								if (res.code === 200) {
+									that.$message({
+										message: that.currentLev + '灞傚湴鍥鹃噸缃畬鎴�',
+										type: 'success'
+									});
+								}else {
+									that.$message({
+										message: res.msg,
+										type: 'error'
+									});
+								}
 							}
 						})
 					},

--
Gitblit v1.9.1