From a71d0a6a0d5e31f0e93feaf0444d93bc603fdd90 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 12 十月 2023 13:02:33 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index a841049..37e92a7 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -187,7 +187,7 @@
 							<li><span>鏉$爜鍚嶇О</span><span class="right">鎵爜鏃堕棿</span></li>
 						</div>
 						<div id="barcode1" class="table-body">
-
+							<li v-for="(item,index) in codeList" :key="index"><span>{{item.barcode}}</span><span class="right">{{item.time}}</span></li>
 						</div>
 					</div>
 					<div class="tablebox">
@@ -340,6 +340,7 @@
 					liftList: [], //鎻愬崌鏈洪泦鍚�
 					systemStatus: true,//绯荤粺杩愯鐘舵��
 					consoleInterval: null,//瀹氭椂鍣ㄥ瓨鍌ㄥ彉閲�
+					codeList: [],//鏉$爜List
 				},
 				created() {
 					this.init()
@@ -357,6 +358,7 @@
 							this.getLiftStateInfo() //鑾峰彇鎻愬崌鏈轰俊鎭�
 							this.getSiteInfo() //鑾峰彇杈撻�佺珯鐐规暟鎹�
 							this.getMap(this.currentLev) //鑾峰彇瀹炴椂鍦板浘鏁版嵁
+							this.getCodeData()//鑾峰彇鏉$爜
 						}, 1000)
 					},
 					//鑾峰彇鍦板浘鏁版嵁
@@ -373,7 +375,7 @@
 								for (let i = 1; i < data.length - 1; i++) {
 									tmp.push(data[i])
 								}
-								console.log(tmp)
+								// console.log(tmp)
 								this.map = tmp
 							}
 						})
@@ -659,6 +661,19 @@
 								});
 							}
 						})
+					},
+					getCodeData(){
+						let that = this
+						$.ajax({
+							url:baseUrl +'/console/barcode/output/site',
+							method:'GET',
+							success:function (res) {
+								if(res.code === 200){
+									let data = JSON.parse(res.data)
+									that.codeList = data
+								}
+							}
+						})
 					}
 				}
 			})

--
Gitblit v1.9.1