自动模式设备日志
parent
35b9480a29
commit
67eab66e8a
|
|
@ -29,14 +29,14 @@
|
||||||
@change="switchTab"
|
@change="switchTab"
|
||||||
v-if="logList.length>0"
|
v-if="logList.length>0"
|
||||||
:height="80"></tn-subsection>
|
:height="80"></tn-subsection>
|
||||||
<swiper class="swiper" :current="current" :acceleration="true"
|
<swiper :current="current" :acceleration="true"
|
||||||
v-if="logList.length>0"
|
v-if="logList.length>0"
|
||||||
@change="change">
|
@change="change">
|
||||||
<swiper-item v-for="(roller, key) in filmRollerList"
|
<swiper-item v-for="(roller, key) in filmRollerList"
|
||||||
@touchmove.stop
|
@touchmove.stop
|
||||||
:key="key">
|
:key="key">
|
||||||
<!-- 视频列表(带时间轴) -->
|
<!-- 视频列表(带时间轴) -->
|
||||||
<scroll-view scroll-y class="video-list" v-if="logList.length>0">
|
<scroll-view scroll-y class="log-list" v-if="logList.length>0">
|
||||||
<!-- 一个 uni-collapse 容器 + accordion="true" 实现互斥展开 -->
|
<!-- 一个 uni-collapse 容器 + accordion="true" 实现互斥展开 -->
|
||||||
<uni-collapse :accordion="true">
|
<uni-collapse :accordion="true">
|
||||||
<!-- v-for 写在 uni-collapse-item 上 -->
|
<!-- v-for 写在 uni-collapse-item 上 -->
|
||||||
|
|
@ -153,25 +153,162 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
getLogInfo() {
|
getLogInfo() {
|
||||||
this.loading = true;
|
|
||||||
this.status = 'loading';
|
|
||||||
if (!this.imei || !this.date) {
|
if (!this.imei || !this.date) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.loading = true;
|
||||||
|
this.status = 'loading';
|
||||||
var loginfo = {
|
var loginfo = {
|
||||||
imei: this.imei,
|
imei: this.imei,
|
||||||
monitorDate: formatDate(this.date, "yyyy-MM-dd")
|
monitorDate: formatDate(this.date, "yyyy-MM-dd")
|
||||||
}
|
}
|
||||||
getAutoLogList(loginfo).then(response => {
|
// getAutoLogList(loginfo).then(response => {
|
||||||
if (response.code === 200) {
|
// if (response.code === 200) {
|
||||||
this.logList = response.data;
|
// this.logList = response.data;
|
||||||
}
|
// }
|
||||||
}).finally(() => {
|
// }).finally(() => {
|
||||||
|
// if (this.logList && this.logList.length>0) {
|
||||||
|
// this.tabList = this.logList.filter(item => item.roller === `jm${this.current+1}`);
|
||||||
|
// }
|
||||||
|
// this.loading = false;
|
||||||
|
// }
|
||||||
|
setTimeout(() => {
|
||||||
|
this.logList = [
|
||||||
|
// jm1 卷膜数据
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
imei: "868402051234567",
|
||||||
|
roll_film: "jm1",
|
||||||
|
monitor_period: "08:00-12:00",
|
||||||
|
current_temp: 25.3,
|
||||||
|
ref_temp: "26.0",
|
||||||
|
suitable_temp: 1,
|
||||||
|
fan_status: 1.0,
|
||||||
|
is_last: 0,
|
||||||
|
exec_cmd: "rollerjm1: 开棚",
|
||||||
|
log_id: 1001,
|
||||||
|
create_time: "2026-03-30 09:15:22"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
imei: "868402051234567",
|
||||||
|
roll_film: "jm1",
|
||||||
|
monitor_period: "12:00-16:00",
|
||||||
|
current_temp: 28.7,
|
||||||
|
ref_temp: "26.0",
|
||||||
|
suitable_temp: 0,
|
||||||
|
fan_status: 1.0,
|
||||||
|
is_last: 0,
|
||||||
|
exec_cmd: "rollerjm1: 关棚",
|
||||||
|
log_id: 1002,
|
||||||
|
create_time: "2026-03-30 13:20:45"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
imei: "868402051234567",
|
||||||
|
roll_film: "jm1",
|
||||||
|
monitor_period: "16:00-20:00",
|
||||||
|
current_temp: 26.2,
|
||||||
|
ref_temp: "26.0",
|
||||||
|
suitable_temp: 1,
|
||||||
|
fan_status: 0.5,
|
||||||
|
is_last: 1,
|
||||||
|
exec_cmd: "rollerjm1: 开棚",
|
||||||
|
log_id: 1003,
|
||||||
|
create_time: "2026-03-30 17:40:18"
|
||||||
|
},
|
||||||
|
// jm2 卷膜数据
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
imei: "868402057654321",
|
||||||
|
roll_film: "jm2",
|
||||||
|
monitor_period: "08:00-12:00",
|
||||||
|
current_temp: 24.1,
|
||||||
|
ref_temp: "24.0",
|
||||||
|
suitable_temp: 1,
|
||||||
|
fan_status: 0.0,
|
||||||
|
is_last: 0,
|
||||||
|
exec_cmd: "rollerjm2: 开棚",
|
||||||
|
log_id: 1004,
|
||||||
|
create_time: "2026-03-30 10:05:11"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
imei: "868402057654321",
|
||||||
|
roll_film: "jm2",
|
||||||
|
monitor_period: "12:00-16:00",
|
||||||
|
current_temp: 25.8,
|
||||||
|
ref_temp: "24.0",
|
||||||
|
suitable_temp: 1,
|
||||||
|
fan_status: 0.5,
|
||||||
|
is_last: 0,
|
||||||
|
exec_cmd: "rollerjm2: 关棚",
|
||||||
|
log_id: 1005,
|
||||||
|
create_time: "2026-03-30 14:35:33"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
imei: "868402057654321",
|
||||||
|
roll_film: "jm2",
|
||||||
|
monitor_period: "16:00-20:00",
|
||||||
|
current_temp: 23.9,
|
||||||
|
ref_temp: "24.0",
|
||||||
|
suitable_temp: 1,
|
||||||
|
fan_status: 0.0,
|
||||||
|
is_last: 1,
|
||||||
|
exec_cmd: "rollerjm2: 开棚",
|
||||||
|
log_id: 1006,
|
||||||
|
create_time: "2026-03-30 18:22:09"
|
||||||
|
},
|
||||||
|
// jm3 卷膜数据
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
imei: "868402059876543",
|
||||||
|
roll_film: "jm3",
|
||||||
|
monitor_period: "08:00-12:00",
|
||||||
|
current_temp: 23.5,
|
||||||
|
ref_temp: "25.0",
|
||||||
|
suitable_temp: 1,
|
||||||
|
fan_status: 0.0,
|
||||||
|
is_last: 0,
|
||||||
|
exec_cmd: "rollerjm3: 开棚",
|
||||||
|
log_id: 1007,
|
||||||
|
create_time: "2026-03-30 08:45:33"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
|
imei: "868402059876543",
|
||||||
|
roll_film: "jm3",
|
||||||
|
monitor_period: "12:00-16:00",
|
||||||
|
current_temp: 27.4,
|
||||||
|
ref_temp: "25.0",
|
||||||
|
suitable_temp: 0,
|
||||||
|
fan_status: 1.0,
|
||||||
|
is_last: 0,
|
||||||
|
exec_cmd: "rollerjm3: 关棚",
|
||||||
|
log_id: 1008,
|
||||||
|
create_time: "2026-03-30 12:50:27"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 9,
|
||||||
|
imei: "868402059876543",
|
||||||
|
roll_film: "jm3",
|
||||||
|
monitor_period: "16:00-20:00",
|
||||||
|
current_temp: 25.1,
|
||||||
|
ref_temp: "25.0",
|
||||||
|
suitable_temp: 1,
|
||||||
|
fan_status: 0.5,
|
||||||
|
is_last: 1,
|
||||||
|
exec_cmd: "rollerjm3: 开棚",
|
||||||
|
log_id: 1009,
|
||||||
|
create_time: "2026-03-30 16:10:55"
|
||||||
|
}
|
||||||
|
];
|
||||||
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.roller === `jm${this.current+1}`);
|
||||||
}
|
}
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
})
|
}, 1000);
|
||||||
},
|
},
|
||||||
switchTab(e) {
|
switchTab(e) {
|
||||||
this.current=e.index
|
this.current=e.index
|
||||||
|
|
@ -242,10 +379,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 视频列表 */
|
/* 视频列表 */
|
||||||
.video-list {
|
.log-list {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
height: calc(100vh - var(--status-bar-height) - 180rpx);
|
height: 90vh;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue