From faa3b0410410415c4ad788c7e0955ef97158df2e Mon Sep 17 00:00:00 2001
From: 严智鑫 <test>
Date: 星期四, 13 三月 2025 22:37:20 +0800
Subject: [PATCH] 贴膜机任务数据显示异常修改

---
 UI-Project/src/views/ManualReporting/manualReporting.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/UI-Project/src/views/ManualReporting/manualReporting.vue b/UI-Project/src/views/ManualReporting/manualReporting.vue
index 79d2735..c7c992c 100644
--- a/UI-Project/src/views/ManualReporting/manualReporting.vue
+++ b/UI-Project/src/views/ManualReporting/manualReporting.vue
@@ -25,7 +25,7 @@
 const searcheh = ref();  
 
 const userInfo=JSON.parse(window.localStorage.getItem('userInfo'));
-const pageParams=userInfo.user.menus[0].pages[4].params;
+const pageParams=userInfo.user.menus[0].pages[6].params;
 const pageParamsJson=JSON.parse(pageParams);
 const machineId = pageParamsJson.machineId;//褰撳墠椤甸潰鐨勮澶嘔D
 console.log(machineId);
@@ -41,7 +41,7 @@
   // 鏇存柊 tableData 鐨勬暟鎹�
   //taskinggoruby.value = data.taskinggoruby[0];
   //loadData.value =getDataSort(data.taskingList[0]);
-  let dataJson = data[""+machineId][0];
+  const dataJson = data[""+machineId][0];
   loadData.value = dataJson.taskingList[0];
   findMachine.value = dataJson.machine[0];
   
@@ -61,8 +61,7 @@
 };
 // 瀹氫箟娑堟伅澶勭悊鍑芥暟锛屾洿鏂� receivedData 鍙橀噺
 const handleMessage2 = (data) => {
-  let dataJson = data[""+machineId][0];
-  downLineTask.value = dataJson.downLineTask[0];
+  downLineTask.value = data.downLineTask[0];
   // console.log(data);
 };
 onUnmounted(() => {

--
Gitblit v1.8.0