自动模式设备日志

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