ZengTao
2023-12-15 5f9ca1634f6a0ba288048556e29fe2b3e7784682
CanadaMes-ui/src/views/Electrical/ManualonePosition2.vue
@@ -269,11 +269,11 @@
      }
      if (currentButtonName === '回零' || currentButtonName === 'Zero') {
      if (currentButtonName === '回零' || currentButtonName === 'Home') {
        const data2 = [];
        const resetButtonValues = this.jsonData.map(item => {
          const buttonItem = item.find(subItem => subItem.button && ['回零', 'Zero'].includes(subItem.button.name));
          const buttonItem = item.find(subItem => subItem.button && ['回零', 'Home'].includes(subItem.button.name));
          return buttonItem ? buttonItem.button.value : null;
        }).filter(value => value !== null);
@@ -327,7 +327,7 @@
          const jsonData2 = this.jsonData;
          const weihuiling = obj.weihuiling;
          const handleMouseMove = throttle(function (event) {
            const inputBox = document.querySelectorAll('.el-card__body');
            const inputBox = document.querySelectorAll('.input-box');
            const target = event.target;
            if (obj.zuhe1 && inputBox && Array.from(inputBox).every(box => !box.contains(target))) {
              // 执行更新逻辑