From 54f1d5ed531f609cb3fdbba47cd3a88c0a50d4e2 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期六, 08 六月 2024 22:23:33 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/deviceOperate/jarOperate.html |   71 ++++++++++++++++++++++++-----------
 1 files changed, 48 insertions(+), 23 deletions(-)

diff --git a/src/main/webapp/views/deviceOperate/jarOperate.html b/src/main/webapp/views/deviceOperate/jarOperate.html
index c56105b..bdae65b 100644
--- a/src/main/webapp/views/deviceOperate/jarOperate.html
+++ b/src/main/webapp/views/deviceOperate/jarOperate.html
@@ -39,6 +39,25 @@
 					<div slot="header" class="clearfix">
 						<span>纭寲搴撲綅</span>
 					</div>
+					<div v-if="currentIndex == null">
+						<el-empty description="璇烽�夋嫨璁惧"></el-empty>
+					</div>
+					<div v-else>
+						<el-table border :data="item" highlight-current-row max-height="350" style="width: 100%">
+							<el-table-column property="jarId" label="纭寲缃�">
+							</el-table-column>
+							<el-table-column property="wrkNo" label="宸ヤ綔鍙�">
+							</el-table-column>
+							<el-table-column property="jarMode" label="妯″紡">
+							</el-table-column>
+							<el-table-column property="region" label="鍖哄煙">
+							</el-table-column>
+							<el-table-column property="jarCode" label="浠e彿">
+							</el-table-column>
+							<el-table-column property="jarErr" label="寮傚父浠g爜">
+							</el-table-column>
+						</el-table>
+					</div>
 
 				</el-card>
 			</div>
@@ -53,25 +72,15 @@
 						</div>
 						<div v-else>
 							<el-descriptions :title="currentTitle" direction="vertical" :column="4" border>
-								<el-descriptions-item label="RGV">{{ tableData[currentIndex].rgvNo }}
-								</el-descriptions-item>
-								<el-descriptions-item label="宸ヤ綔鍙�">
-									{{ tableData[currentIndex].workNo1 }}
+								<el-descriptions-item label="纭寲缃�">{{ tableData[currentIndex].jarNo }}
 								</el-descriptions-item>
 								<el-descriptions-item label="妯″紡">
-									<el-tag>{{ tableData[currentIndex].statusType }}</el-tag>
-								</el-descriptions-item>
-								<el-descriptions-item label="浠诲姟鐘舵��">
-
-										<el-tag>{{ tableData[currentIndex].status}}</el-tag>
-
+									<el-tag>{{ tableData[currentIndex].jarMode }}</el-tag>
 								</el-descriptions-item>
 								<el-descriptions-item label="璁惧鐘舵��">
-									<el-tag>{{ tableData[currentIndex].walkPos }}</el-tag>
+									<el-tag>{{ tableData[currentIndex].jarStatus }}</el-tag>
 								</el-descriptions-item>
-								<el-descriptions-item label="鏁呴殰浠g爜">{{ tableData[currentIndex].warnCode }}
-								</el-descriptions-item>
-								<el-descriptions-item label="鏁呴殰鎻忚堪">{{ tableData[currentIndex].alarm }}
+								<el-descriptions-item label="鏁呴殰浠g爜">{{ tableData[currentIndex].jarErr }}
 								</el-descriptions-item>
 <!--								<el-descriptions-item label="婧愮珯">{{ tableData[currentIndex].staNo }}-->
 <!--								</el-descriptions-item>-->
@@ -134,7 +143,8 @@
 					}
 				],
 				demo: 'X',
-				rgvMode: 0
+				rgvMode: 0,
+				item: []
 			},
 			created() {
 				this.init()
@@ -182,17 +192,32 @@
 
 					setInterval(() => {
 						this.getTableData()
-						this.demoStatus()
+						// this.demoStatus()
 					}, 1000)
 				},
 				handleRowClick(row, col, event) {
-					const index = this.tableData.indexOf(row)
-					this.currentRow = row;
-					this.currentIndex = index
-					this.currentTitle = row.jarNo + "鍙风~鍖栫綈"
-					this.formParam.rgvNo = row.rgvNo
-					this.enableIn = row.inEnable == "Y" ? true : false
-					this.enableOut = row.outEnable == "Y" ? true : false
+					var that = this
+					const index = that.tableData.indexOf(row)
+					that.currentRow = row;
+					that.currentIndex = index
+					that.currentTitle = row.jarNo + "鍙风~鍖栫綈"
+					that.formParam.rgvNo = row.rgvNo
+					that.enableIn = row.inEnable == "Y" ? true : false
+					that.enableOut = row.outEnable == "Y" ? true : false
+
+					$.ajax({
+						url: baseUrl + "/basJarMast/JatId/auth",
+						headers: {
+							'token': localStorage.getItem('token')
+						},
+						data: {
+							id: row.jarNo
+						},
+						success: function (res) {
+							that.item = res.data
+							console.log(that.item)
+						}
+					});
 				},
 				getTableData() {
 					let that = this;

--
Gitblit v1.9.1