From c7b33db117fd2893d7d1c93bf5d46e87d33e44d0 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 16 十二月 2024 16:08:51 +0800
Subject: [PATCH] 初审结果查询

---
 src/views/sampling/sampling/index.vue |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index d387186..ba8ecc1 100644
--- a/src/views/sampling/sampling/index.vue
+++ b/src/views/sampling/sampling/index.vue
@@ -391,6 +391,9 @@
       ids: [],
       // 缁戝畾鍗曢�夋寜閽�
       tjStatus: "1",
+      dayinData: [],
+      jsonObj: {},
+
       // 闈炲崟涓鐢�
       single: true,
       // 闈炲涓鐢�
@@ -974,7 +977,6 @@
 
     buda() {
       var websocket = null;
-
       var url = this.valueUrl;
       if ("WebSocket" in window) {
         websocket = new WebSocket(url);
@@ -989,8 +991,7 @@
       };
       websocket.onopen = () => {
         this.websocket = websocket;
-        var list = this.selectList;
-        var data = list.map((item) => ({
+        this.dayinData = this.selectList.map((item) => ({
           jyxh: item.jyxh,
           proName: item.proName,
           cusName: item.cusName,
@@ -999,24 +1000,21 @@
           cardId: item.cardId,
           tjTime: item.createTime,
         }));
+        console.log(this.dayinData, 2222);
 
         // 杩炴帴璁惧
-        var jsonObj = {
+        this.jsonObj = {
           type: "3",
           array: {
-            data: data,
+            data: this.dayinData,
           },
         };
-        var jStr = JSON.stringify(jsonObj);
+        var jStr = JSON.stringify(this.jsonObj);
         this.websocket.send(jStr);
-        var jsonObj = {};
-        this.dialogVisible = false;
+        this.jsonObj = {};
+        // this.dialogVisible = false;
       };
-      // websocket.onmessage = (event) => {
-      //   var resultObj = eval("(" + event.data + ")");
-      //   console.log(resultObj, 9988);
-      // };
-      this.getList();
+      // this.getList();
     },
 
     // 纭閲囨牱
@@ -1079,8 +1077,8 @@
             websocket.onmessage = (event) => {
               var resultObj = eval("(" + event.data + ")");
               console.log(resultObj, 9988);
-            };
- */
+            }; */
+
             // this.Collection();
             this.getList();
           } else {

--
Gitblit v1.8.0