From 31101f632c27c05d15f30ca3084e3ed3da2a29af Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期五, 08 十二月 2023 11:42:08 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 CanadaMes-ui/src/views/Electrical/ServoManualone.vue |   60 ++++++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 46 insertions(+), 14 deletions(-)

diff --git a/CanadaMes-ui/src/views/Electrical/ServoManualone.vue b/CanadaMes-ui/src/views/Electrical/ServoManualone.vue
index 035fed1..9323ec7 100644
--- a/CanadaMes-ui/src/views/Electrical/ServoManualone.vue
+++ b/CanadaMes-ui/src/views/Electrical/ServoManualone.vue
@@ -267,6 +267,33 @@
   // )
 }
 
+// if (currentButtonName === 'Abort/ResumeTasks' || currentButtonName === '鎬ュ仠鍚庝腑姝�/缁х画閫夋嫨') {
+//   const data3 = [];
+//   const resetButtonValues3 = this.jsonData.map(item => {
+//     const buttonItem3 = item.find(subItem => subItem.button && ['Abort/resumeTasks', '鎬ュ仠鍚庝腑姝�/缁х画閫夋嫨'].includes(subItem.button.name));
+
+//     return buttonItem3 ? buttonItem3.button.value : null;
+//   }).filter(value => value !== null);
+
+//   // 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
+//   data3.push(resetButtonValues3.flat());
+
+//   // 鍦� data3 鏁扮粍鍓嶉潰娣诲姞涓や釜绌烘暟缁�
+  
+//   data3.push([], [], [],[], [], [], [],[]);
+
+//   // 鍒涘缓 jsonObject3 瀵硅薄锛屽苟娣诲姞 data3 灞炴��
+//   const jsonObject3 = { data: data3 };
+
+//   // 鎻愪氦鏁版嵁鍒板悗绔�
+//   const jsonString3 = JSON.stringify(jsonObject3);
+//   console.log('鎬ュ仠鍚庝腑姝�/缁х画閫夋嫨:', jsonString3);
+//   socket?.send(jsonString3);
+//   // setTimeout(()=>
+//   //   window.location.reload(),2000
+//   // )
+// }
+
 
 //A01鍗婅嚜鍔ㄦ彁浜�
 
@@ -441,7 +468,7 @@
   }
 
   let obj = JSON.parse(msg.data);
-  // console.log(obj)
+   console.log(obj)
 const weihuiling=obj.weihuiling;
   const jsonData2 = this.jsonData;
 
@@ -522,22 +549,27 @@
 
 //鏈洖闆舵洿鏂�
 
-for (let i = 3; i < jsonData2.length; i++) {
-  let arr2 = jsonData2[i];
-  for (let j = 3; j < arr2.length; j++) {
-    let obj3 = arr2[j];
-    if(obj3.button){
-      if (obj3.button && (obj3.button.name === "鏈洖闆�" || obj3.button.name === "NotZero" )) {
-      obj3.button.value = weihuiling[0][i];
-      //  console.log(obj3.button.value)
-    }
+jsonData2[2][3].button.value = weihuiling[0][0]; 
+jsonData2[3][3].button.value = weihuiling[0][1]; 
+jsonData2[4][4].button.value = weihuiling[0][2];  
+jsonData2[5][4].button.value = weihuiling[0][3];
 
-    }
+// for (let i = 3; i < jsonData2.length; i++) {
+//   let arr2 = jsonData2[i];
+//   for (let j = 3; j < arr2.length; j++) {
+//     let obj3 = arr2[j];
+//     if(obj3.button){
+//       if (obj3.button && (obj3.button.name === "鏈洖闆�" || obj3.button.name === "NotZero" )) {
+//       obj3.button.value = weihuiling[0][i];
+//       //  console.log(obj3.button.value)
+//     }
+
+//     }
    
-  }
+//   }
 
      
-}
+// }
 // console.log(jsonData2)
 //杩涚墖id
 jsonData2.forEach((item) => {
@@ -560,7 +592,7 @@
 //鎬ュ仠
 
 
-jsonData2[6][0].button.value = obj.resumeTasks[0][0];
+
 
 
 

--
Gitblit v1.8.0