he wei
2024-11-09 5cc9eb2d302ffe6218221208a28b60f91b57e41e
src/views/test/jhyTestDetails.vue
@@ -29,8 +29,9 @@
});
// TODO  有几组
const onlyOneGroup = ref(false);
const onlyOneGroup = computed(() => {
  return rtDatas.value.devStates[0].batteryCount == 1;
});
const devInfo = ref({});
@@ -115,12 +116,12 @@
  let [res1, res2] = [0, 1].map(
    (v) => states[rtDatas.value.devStates[v].workMode]
  );
  return `组1:${res1}, 组2: ${res2}`;
  return onlyOneGroup.value ? `组1:${res1}` : `组1:${res1}, 组2: ${res2}`;
});
const testStates = computed(() => {
  let [res1, res2] = [0, 1].map((v) => rtDatas.value.devStates[v].moduleStatus);
  return `组1:${res1}, 组2: ${res2}`;
  return onlyOneGroup.value ? `组1:${res1}` : `组1:${res1}, 组2: ${res2}`;
});
function getInfo() {
@@ -253,7 +254,11 @@
        </div>
      </div>
    </yc-card>
    <jhy-rt-info class="p-content" :onlyOneGroup="onlyOneGroup" :devId="devId"></jhy-rt-info>
    <jhy-rt-info
      class="p-content"
      :onlyOneGroup="onlyOneGroup"
      :devId="devId"
    ></jhy-rt-info>
    <!-- 弹窗 -->
    <el-dialog
      title="设置测试参数"