From 953c43fa62b5fa5d53c606fd57b84b2ea9716238 Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期二, 23 十二月 2025 14:33:22 +0800
Subject: [PATCH] #
---
src/main/webapp/components/DevpCard.js | 47 +++++++++++++++++++++++------------------------
1 files changed, 23 insertions(+), 24 deletions(-)
diff --git a/src/main/webapp/components/DevpCard.js b/src/main/webapp/components/DevpCard.js
index 497116a..6d5d678 100644
--- a/src/main/webapp/components/DevpCard.js
+++ b/src/main/webapp/components/DevpCard.js
@@ -39,6 +39,7 @@
<el-descriptions-item label="鍙嚭">{{ item.outEnable ? 'Y' : 'N' }}</el-descriptions-item>
<el-descriptions-item label="绌烘澘淇″彿">{{ item.emptyMk ? 'Y' : 'N' }}</el-descriptions-item>
<el-descriptions-item label="婊℃澘淇″彿">{{ item.fullPlt ? 'Y' : 'N' }}</el-descriptions-item>
+ <el-descriptions-item label="杩愯闃诲">{{ item.runBlock ? 'Y' : 'N' }}</el-descriptions-item>
<el-descriptions-item label="鎵樼洏楂樺害">{{ item.palletHeight }}</el-descriptions-item>
<el-descriptions-item label="鏉$爜">{{ item.barcode }}</el-descriptions-item>
<el-descriptions-item label="鏁呴殰浠g爜">{{ item.error }}</el-descriptions-item>
@@ -109,33 +110,31 @@
this.currentPage = 1;
},
getDevpStateInfo() {
+ if (this.$root.sendWs) {
+ this.$root.sendWs(JSON.stringify({
+ "url": "/console/latest/data/station",
+ "data": {}
+ }));
+ }
+ },
+ setStationList(res) {
let that = this;
- $.ajax({
- url: baseUrl + "/console/latest/data/station",
- headers: {
- token: localStorage.getItem("token"),
- },
- method: "post",
- success: (res) => {
- // 鍫嗗灈鏈轰俊鎭〃鑾峰彇
- if (res.code == 200) {
- let list = res.data;
+ if (res.code == 200) {
+ let list = res.data;
- if (that.searchStationId == "") {
- that.stationList = list;
- } else {
- let tmp = [];
- list.forEach((item) => {
- if (item.stationId == that.searchStationId) {
- tmp.push(item);
- }
- });
- that.stationList = tmp;
- that.currentPage = 1;
+ if (that.searchStationId == "") {
+ that.stationList = list;
+ } else {
+ let tmp = [];
+ list.forEach((item) => {
+ if (item.stationId == that.searchStationId) {
+ tmp.push(item);
}
- }
- },
- });
+ });
+ that.stationList = tmp;
+ that.currentPage = 1;
+ }
+ }
},
openControl() {
this.showControl = !this.showControl;
--
Gitblit v1.9.1