This commit is contained in:
weipengfei 2024-03-07 09:27:46 +08:00
parent be329da1af
commit 3d649b1886
3 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ const initData = (data) => {
[
`${data[i].code||'-'}`,
`${data[i].name||'-'}`,
`${data[i].create_time||'-'}`,
`${data[i].alarm_time || data[i].create_time||'-'}`,
`${data[i].alarm_value||'-'}`,
`${data[i].alarm_reason||'-'}`,
`<span class="btn">查看详情></span>`,
@ -170,7 +170,7 @@ onMounted(() => {
</div>
<div class="info-item">
<div class="tips">警告时间:</div>
<div>{{ showInfo.create_time || '-' }}</div>
<div>{{ showInfo.alarm_time || showInfo.create_time || '-' }}</div>
</div>
</div>
<div class="info">

View File

@ -285,7 +285,7 @@ onMounted(() => {
<div class="bg"></div>
</div>
<div class="c-box">
<videoFlv class="img" :url="farmInfo.video_url" />
<videoFlv v-if="farmInfo.video_url" class="img" :url="farmInfo.video_url" />
<div class="name">{{ farmInfo.farm_name }}</div>
</div>
</div>

View File

@ -34,7 +34,7 @@ const initData = (data) => {
[
`${data[i].code||'-'}`,
`${data[i].name||'-'}`,
`${data[i].create_time||'-'}`,
`${data[i].alarm_time || data[i].create_time||'-'}`,
`${data[i].alarm_value||'-'}`,
`${data[i].alarm_reason||'-'}`,
`<span class="btn">查看详情></span>`,
@ -169,7 +169,7 @@ onMounted(() => {
</div>
<div class="info-item">
<div class="tips">警告时间:</div>
<div>{{ showInfo.create_time || '-' }}</div>
<div>{{ showInfo.alarm_time || showInfo.create_time || '-' }}</div>
</div>
</div>
<div class="info">