自动模式设备日志

feasure-livedata
lld 2026-03-30 01:38:57 +08:00
parent 67eab66e8a
commit 3fa350d783
1 changed files with 20 additions and 20 deletions

View File

@ -36,22 +36,21 @@
@touchmove.stop @touchmove.stop
:key="key"> :key="key">
<!-- 视频列表带时间轴 --> <!-- 视频列表带时间轴 -->
<scroll-view scroll-y class="log-list" v-if="logList.length>0"> <scroll-view scroll-y class="log-list" v-if="tabList.length>0">
<!-- 一个 uni-collapse 容器 + accordion="true" 实现互斥展开 --> <uni-collapse :accordion="true" v-model="activeIndex">
<uni-collapse :accordion="true"> <!-- 循环 tabList当前卷膜的数据 -->
<!-- v-for 写在 uni-collapse-item -->
<uni-collapse-item <uni-collapse-item
v-for="(item, index) in logList" v-for="(item, index) in tabList"
:key="index" :key="index"
:title="item.title || '视频标题'" :title="item.create_time"
:border="true" :border="true"
title-border="show"> >
<view class="content"> <view class="content">
<view>{{}}</view> <view>监测时段{{ item.monitor_period }}</view>
<view>{{}}</view> <view>当前温度{{ item.current_temp }} </view>
<view>{{}}</view> <view>参考温度{{ item.ref_temp }} </view>
<view>{{}}</view> <view>温度适宜{{ item.suitable_temp === 1 ? '是' : '否' }}</view>
<view>{{}}</view> <view>执行指令{{ item.exec_cmd }}</view>
</view> </view>
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
@ -90,7 +89,8 @@ export default {
contentnomore: '没有更多数据了' contentnomore: '没有更多数据了'
}, },
status: 'more', status: 'more',
loading: false loading: false,
activeIndex: '', //
} }
}, },
mounted() { mounted() {
@ -168,7 +168,7 @@ export default {
// } // }
// }).finally(() => { // }).finally(() => {
// if (this.logList && this.logList.length>0) { // if (this.logList && this.logList.length>0) {
// this.tabList = this.logList.filter(item => item.roller === `jm${this.current+1}`); // this.tabList = this.logList.filter(item => item.roll_film === `jm${this.current+1}`);
// } // }
// this.loading = false; // this.loading = false;
// } // }
@ -199,7 +199,7 @@ export default {
suitable_temp: 0, suitable_temp: 0,
fan_status: 1.0, fan_status: 1.0,
is_last: 0, is_last: 0,
exec_cmd: "rollerjm1: 关棚", exec_cmd: "jm1: 关棚",
log_id: 1002, log_id: 1002,
create_time: "2026-03-30 13:20:45" create_time: "2026-03-30 13:20:45"
}, },
@ -305,7 +305,7 @@ export default {
} }
]; ];
if (this.logList && this.logList.length>0) { if (this.logList && this.logList.length>0) {
this.tabList = this.logList.filter(item => item.roller === `jm${this.current+1}`); this.tabList = this.logList.filter(item => item.roll_film === `jm${this.current+1}`);
} }
this.loading = false; this.loading = false;
}, 1000); }, 1000);
@ -315,6 +315,7 @@ export default {
}, },
change(e) { change(e) {
this.current=e.detail.current this.current=e.detail.current
this.tabList = this.logList.filter(item => item.roll_film === `jm${this.current+1}`);
} }
} }
@ -378,16 +379,15 @@ export default {
width: 50%; width: 50%;
} }
/* 视频列表 */
.log-list { .log-list {
flex: 1; flex: 1;
padding: 0 30rpx; padding: 0 30rpx;
height: 90vh; height: calc(100vh - 300rpx); /* 关键 */
} }
.content { .content {
padding: 15px; padding: 20rpx;
line-height: 1.6;
} }
/deep/.uni-select__input-placeholder { /deep/.uni-select__input-placeholder {
font-size: 24rpx !important; font-size: 24rpx !important;
} }