wuyouming666
2024-05-06 0c5f7c66f34b02c07c3a1bf9832ef402fa26339d
CanadaMes-ui/src/views/Electrical/ServoManualone.vue
@@ -8,13 +8,13 @@
        active-class="blue-button"
        >{{ $t("Alarm") }}</router-link
      >
      <router-link
      <!-- <router-link
        to="/Electrical/State"
        tag="el-button"
        type="text"
        active-class="blue-button"
        >{{ $t("State") }}</router-link
      >
      > -->
      <!-- <router-link to="/Electrical/Action" tag="el-button" type="text" active-class="blue-button">{{ $t('Action')
        }}</router-link> -->
      <!-- <router-link to="/Electrical/Parameter" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter')
@@ -195,9 +195,9 @@
                  'error-button':
                    item.button.name === 'Fault' && item.button.value === 1,
                  'error-button2':
                    item.button.name === 'NotZero' && item.button.value === 0,
                    item.button.name === 'NotZero' && item.button.value === 1,
                  'error-button3':
                    item.button.name === 'Zero' && item.button.value === 1,
                    item.button.name === 'Zero' && item.button.value === 0,
                  fuwei:
                    item.button.name === 'Reset' && item.button.value === 1,
                  huiling:
@@ -238,9 +238,9 @@
                  'error-button':
                    item.button.name === '故障' && item.button.value === 1,
                  'error-button3':
                    item.button.name === '已回零' && item.button.value === 1,
                    item.button.name === '已回零' && item.button.value === 0,
                  'error-button2':
                    item.button.name === '未回零' && item.button.value === 0,
                    item.button.name === '未回零' && item.button.value === 1,
                  fuwei: item.button.name === '复位' && item.button.value === 1,
                  huiling:
                    item.button.name === '回零' && item.button.value === 1,
@@ -787,19 +787,36 @@
            }
            // 复位更新
            for (let i = 0; i < jsonData2.length; i++) {
              let arr = jsonData2[i];
              for (let j = 0; j < arr.length; j++) {
                let obj2 = arr[j];
                if (
                  obj2.button &&
                  (obj2.button.name === "复位" || obj2.button.name === "Reset")
                ) {
                  obj2.button.value = obj.fuwei[0][i];
                  //  console.log(obj2.button.value)
                }
              }
            }
            // for (let i = 0; i < jsonData2.length; i++) {
            //   let arr = jsonData2[i];
            //   for (let j = 0; j < arr.length; j++) {
            //     let obj2 = arr[j];
            //     if (
            //       obj2.button &&
            //       (obj2.button.name === "复位" || obj2.button.name === "Reset")
            //     ) {
            //       obj2.button.value = obj.fuwei[0][i];
            //       //  console.log(obj2.button.value)
            //     }
            //   }
            // }
            // for (let i = 0; i < jsonData2.length; i++) {
            //   let arr = jsonData2[i];
            //   for (let j = 0; j < arr.length; j++) {
            //     let obj2 = arr[j];
            //     if (
            //       obj2.button &&
            //       (obj2.button.name === "回零" || obj2.button.name === "Home")
            //     ) {
            //       obj2.button.value = obj.huiling[0][i];
            //       //  console.log(obj2.button.value)
            //     }
            //   }
            // }
            //未回零更新
@@ -815,7 +832,7 @@
            // console.log(jsonData2[5][4].button.value)
            if (
              jsonData2[2][3].button.value === 1 &&
              jsonData2[2][3].button.value === 0 &&
              (jsonData2[2][3].button.name === "NotZero" ||
                jsonData2[2][3].button.name === "未回零")
            ) {
@@ -829,7 +846,7 @@
              );
            }
            if (
              jsonData2[3][3].button.value === 1 &&
              jsonData2[3][3].button.value === 0 &&
              (jsonData2[3][3].button.name === "NotZero" ||
                jsonData2[3][3].button.name === "未回零")
            ) {
@@ -843,7 +860,7 @@
              );
            }
            if (
              jsonData2[4][4].button.value === 1 &&
              jsonData2[4][4].button.value === 0 &&
              (jsonData2[4][4].button.name === "NotZero" ||
                jsonData2[4][4].button.name === "未回零")
            ) {
@@ -857,7 +874,7 @@
              );
            }
            if (
              jsonData2[5][4].button.value === 1 &&
              jsonData2[5][4].button.value === 0 &&
              (jsonData2[5][4].button.name === "NotZero" ||
                jsonData2[5][4].button.name === "未回零")
            ) {
@@ -872,7 +889,7 @@
            }
            if (
              jsonData2[2][3].button.value === 0 &&
              jsonData2[2][3].button.value === 1 &&
              (jsonData2[2][3].button.name === "Zero" ||
                jsonData2[2][3].button.name === "已回零")
            ) {
@@ -886,7 +903,7 @@
              );
            }
            if (
              jsonData2[3][3].button.value === 0 &&
              jsonData2[3][3].button.value === 1 &&
              (jsonData2[3][3].button.name === "Zero" ||
                jsonData2[3][3].button.name === "已回零")
            ) {
@@ -900,7 +917,7 @@
              );
            }
            if (
              jsonData2[4][4].button.value === 0 &&
              jsonData2[4][4].button.value === 1 &&
              (jsonData2[4][4].button.name === "Zero" ||
                jsonData2[4][4].button.name === "已回零")
            ) {
@@ -914,7 +931,7 @@
              );
            }
            if (
              jsonData2[5][4].button.value === 0 &&
              jsonData2[5][4].button.value === 1 &&
              (jsonData2[5][4].button.name === "Zero" ||
                jsonData2[5][4].button.name === "已回零")
            ) {