| | |
| | | }); |
| | | |
| | | // TODO 有几组 |
| | | const onlyOneGroup = ref(false); |
| | | |
| | | const onlyOneGroup = computed(() => { |
| | | return rtDatas.value.devStates[0].batteryCount == 1; |
| | | }); |
| | | |
| | | const devInfo = ref({}); |
| | | |
| | |
| | | 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() { |
| | |
| | | </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="设置测试参数" |
| | |
| | | text-align: center; |
| | | background: #02a7f0; |
| | | &.max { |
| | | background: #d9001b; |
| | | background: #438D29; |
| | | } |
| | | &.min { |
| | | background: #f59a23; |
| | | background: #DBD608; |
| | | } |
| | | } |
| | | } |
| | |
| | | text-align: center; |
| | | background: #02a7f0; |
| | | &.max { |
| | | background: #d9001b; |
| | | background: #438D29; |
| | | } |
| | | &.min { |
| | | background: #f59a23; |
| | | background: #DBD608; |
| | | } |
| | | } |
| | | } |
| | |
| | | padding: 2px 10px; |
| | | border-radius: 6px; |
| | | &.max { |
| | | background: #d9001b; |
| | | background: #438D29; |
| | | } |
| | | &.min { |
| | | background: #f59a23; |
| | | background: #DBD608; |
| | | } |
| | | } |
| | | } |