From ad43be8dc3263cf0e5e3e2cb8374ef6c95b912e6 Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期四, 25 十二月 2025 12:50:31 +0800
Subject: [PATCH] #
---
src/main/webapp/components/WatchRgvCard.js | 46 +++++++++++++++++++++++-----------------------
1 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/src/main/webapp/components/WatchRgvCard.js b/src/main/webapp/components/WatchRgvCard.js
index 7adaf36..57e12c5 100644
--- a/src/main/webapp/components/WatchRgvCard.js
+++ b/src/main/webapp/components/WatchRgvCard.js
@@ -45,6 +45,7 @@
<el-descriptions-item label="鏄惁鏈夌墿">{{ item.loading }}</el-descriptions-item>
<el-descriptions-item label="鏁呴殰浠g爜">{{ item.warnCode }}</el-descriptions-item>
<el-descriptions-item label="鏁呴殰鎻忚堪">{{ item.alarm }}</el-descriptions-item>
+ <el-descriptions-item label="鎵╁睍鏁版嵁">{{ item.extend }}</el-descriptions-item>
</el-descriptions>
</el-collapse-item>
</el-collapse>
@@ -112,31 +113,30 @@
this.currentPage = 1;
},
getRgvStateInfo() {
+ if (this.$root.sendWs) {
+ this.$root.sendWs(JSON.stringify({
+ "url": "/rgv/table/rgv/state",
+ "data": {}
+ }));
+ }
+ },
+ setRgvList(res) {
let that = this;
- $.ajax({
- url: baseUrl + "/rgv/table/rgv/state",
- headers: {
- token: localStorage.getItem("token"),
- },
- method: "post",
- success: (res) => {
- if (res.code == 200) {
- let list = res.data || [];
- if (that.searchRgvNo == "") {
- that.rgvList = list;
- } else {
- let tmp = [];
- list.forEach((item) => {
- if (item.rgvNo == that.searchRgvNo) {
- tmp.push(item);
- }
- });
- that.rgvList = tmp;
- that.currentPage = 1;
+ if (res.code == 200) {
+ let list = res.data || [];
+ if (that.searchRgvNo == "") {
+ that.rgvList = list;
+ } else {
+ let tmp = [];
+ list.forEach((item) => {
+ if (item.rgvNo == that.searchRgvNo) {
+ tmp.push(item);
}
- }
- },
- });
+ });
+ that.rgvList = tmp;
+ that.currentPage = 1;
+ }
+ }
},
openControl() {
this.showControl = !this.showControl;
--
Gitblit v1.9.1