| | |
| | | return _list.filter((v) => v.devId == currentDevId.value)[0] || {}; |
| | | }); |
| | | |
| | | // 是否可以修改均衡仪电池组数 |
| | | const canChangeBattCount = computed(() => { |
| | | // !currentDev.state[0].isTesting && !currentDev.state[1].isTesting |
| | | if (1 == devType.value || !currentDev.value.state) { |
| | | return false; |
| | | } |
| | | if (onlyOneGroup.value) { |
| | | return !currentDev.value.state[0].isTesting; |
| | | } else { |
| | | return !currentDev.value.state[0].isTesting && !currentDev.value.state[1].isTesting; |
| | | } |
| | | }); |
| | | |
| | | const testMode = computed(() => { |
| | | if (1 == devType.value) { |
| | | return ["--", "放电测试", "充电测试"][currentDev.value.state?.testType]; |
| | |
| | | ? states[currentDev.value.state[v].workMode] || "--" |
| | | : "--" |
| | | ); |
| | | return `组1:${res1}, 组2: ${res2}`; |
| | | return onlyOneGroup.value ? `组1:${res1}` : `组1:${res1}, 组2: ${res2}`; |
| | | } |
| | | }); |
| | | |
| | |
| | | ? currentDev.value.state[v].moduleStatus || "--" |
| | | : "--" |
| | | ); |
| | | return `组1:${res1}, 组2: ${res2}`; |
| | | return onlyOneGroup.value ? `组1:${res1}` : `组1:${res1}, 组2: ${res2}`; |
| | | } |
| | | }); |
| | | |
| | |
| | | |
| | | function setBattCount() { |
| | | jhyBattCountVisible.value = true; |
| | | console.log("cur", currentDev, "============="); |
| | | // console.log("cur", currentDev, "============="); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | function pauseYtj(type) { |
| | | console.log("currentDev", currentDev, "============="); |
| | | // console.log("currentDev", currentDev, "============="); |
| | | if (!currentDev.value.devId) { |
| | | return false; |
| | | } |
| | |
| | | size="small" |
| | | :disabled="!currentDev.devOnline" |
| | | class="btn-start btn-grp1" |
| | | v-if="!currentDev.state[0].isTesting" |
| | | v-if="canChangeBattCount" |
| | | @click="setBattCount" |
| | | >设置组数</el-button |
| | | > |