ZengTao
2024-01-25 20f9e20e45a66a5dad1217c93455685d8174c6cf
CanadaMes-ui/src/views/Electrical/ManualonePosition2.vue
@@ -476,18 +476,62 @@
              }
              //启动
              for (let i = 0; i < jsonData2.length; i++) {
                let arr4 = jsonData2[i];
                for (let j = 0; j < arr4.length; j++) {
                  let obj4 = arr4[j];
                  if (obj4.button && (obj4.button.name.includes("启动") || obj4.button.name.includes("Start"))) {
                    obj4.button.value = obj.qidong[0][i];
                    // console.log(obj2.button.value)
                  }
                }
              // for (let i = 0; i < jsonData2.length; i++) {
              //   let arr4 = jsonData2[i];
              //   for (let j = 0; j < arr4.length; j++) {
              //     let obj4 = arr4[j];
              //     if (obj4.button && (obj4.button.name.includes("启动") || obj4.button.name.includes("Start"))) {
              //       obj4.button.value = obj.qidong[0][i];
              //       // console.log(obj2.button.value)
              //     }
              //   }
              }
              // }
              // for (let i = 0; i < jsonData2.length; i++) {
              //   let arr4 = jsonData2[i];
              //   for (let j = 0; j < arr4.length; j++) {
              //     let obj4 = arr4[j];
              //     if (obj4.button && (obj4.button.name.includes("启动") || obj4.button.name.includes("Start"))) {
              //       obj4.button.value = obj.qidong[0][i];
              //       // console.log(obj2.button.value)
              //     }
              //   }
              // }
              // for (let i = 0; i < jsonData2.length; i++) {
              //   let arr4 = jsonData2[i];
              //   for (let j = 0; j < arr4.length; j++) {
              //     let obj4 = arr4[j];
              //     if (obj4.button && (obj4.button.name.includes("复位") || obj4.button.name.includes("Reast"))) {
              //       obj4.button.value = obj.fuwei[0][i];
              //       // console.log(obj2.button.value)
              //     }
              //   }
              // }
              // for (let i = 0; i < jsonData2.length; i++) {
              //   let arr4 = jsonData2[i];
              //   for (let j = 0; j < arr4.length; j++) {
              //     let obj4 = arr4[j];
              //     if (obj4.button && (obj4.button.name.includes("回零") || obj4.button.name.includes("Home"))) {
              //       obj4.button.value = obj.huiling[0][i];
              //       // console.log(obj2.button.value)
              //     }
              //   }
              // }
              //改变未回零文字
for (let i = 0; i < jsonData2.length; i++) {