This commit is contained in:
Iruka 2024-12-18 16:28:51 +08:00
parent ba94353b37
commit 697db12aa9

View File

@ -349,11 +349,11 @@
:plain="dc.dataObj[child.dataKey].btnObj.open1.work"
@click="dc.deviceControlHandle(child, 1)">
<span v-if="dc.dataObj[child.dataKey].btnObj.open1.work">
<span v-if="dc.countdownObj[child.dataKey]">
({{ dc.countdownObj[child.dataKey] }})
<span v-if="dc.countdownObj[`${child.dataKey}_open1`]">
({{ dc.countdownObj[`${child.dataKey}_open1`] }})
</span>
<span v-else class="timeout">
{{ dc.timeoutObj[child.dataKey] }}
{{ dc.timeoutObj[`${child.dataKey}_open1`] }}
</span>
</span>
</u-button>
@ -370,11 +370,11 @@
@click="dc.deviceControlHandle(child, 2)">
<span
v-if="dc.dataObj[child.dataKey].btnObj.open2.work">
<span v-if="dc.countdownObj[child.dataKey]">
({{ dc.countdownObj[child.dataKey] }})
<span v-if="dc.countdownObj[`${child.dataKey}_open2`]">
({{ dc.countdownObj[`${child.dataKey}_open2`] }})
</span>
<span v-else class="timeout">
{{ dc.timeoutObj[child.dataKey] }}
{{ dc.timeoutObj[`${child.dataKey}_open2`] }}
</span>
</span>
</u-button>
@ -412,12 +412,11 @@
@click="dc.deviceControlHandle(child, 4)">
<span
v-if="dc.dataObj[child.dataKey].btnObj.open4.work">
<span v-if="dc.countdownObj[child.dataKey]">
({{ dc.countdownObj[child.dataKey] }})
<span v-if="dc.countdownObj[`${child.dataKey}_open4`]">
({{ dc.countdownObj[`${child.dataKey}_open4`] }})
</span>
<span v-else class="timeout"
style="color: red;">
{{ dc.timeoutObj[child.dataKey] }}
<span v-else class="timeout">
{{ dc.timeoutObj[`${child.dataKey}_open4`] }}
</span>
</span>
</u-button>
@ -433,11 +432,11 @@
:plain="dc.dataObj[child.dataKey].btnObj.open3.work"
@click="dc.deviceControlHandle(child, 3)">
<span v-if="dc.dataObj[child.dataKey].btnObj.open3.work">
<span v-if="dc.countdownObj[child.dataKey]">
({{ dc.countdownObj[child.dataKey] }})
<span v-if="dc.countdownObj[`${child.dataKey}_open3`]">
({{ dc.countdownObj[`${child.dataKey}_open3`] }})
</span>
<span v-else class="timeout">
{{ dc.timeoutObj[child.dataKey] }}
{{ dc.timeoutObj[`${child.dataKey}_open3`] }}
</span>
</span>
</u-button>