|
@@ -14,10 +14,10 @@
|
|
|
>
|
|
|
<template #default>
|
|
|
<view class="content-area">
|
|
|
- <view :id="index == allInfoList.length - 1 ? 'bottomInfo' : ''" v-for="(el, index) in allInfoList" :key="index" v-show="allInfoList.length > 0" @click="goContentDetails(all)">
|
|
|
+ <view :id="ind == allInfoList.length - 1 ? 'bottomInfo' : ''" v-for="(el, ind) in allInfoList" :key="ind" v-show="allInfoList.length > 0" @click="goContentDetails(el)">
|
|
|
<view class="content-area-time font24">{{ el.time }}</view>
|
|
|
<view class="content-area-center radius bg-white">
|
|
|
- <image class="content-area-center-img radius mb10" v-if="el.img" :src="el.img" />
|
|
|
+ <image class="content-area-center-img radius mb10" v-if="el.sitePhoto" :src="el.sitePhoto" />
|
|
|
<view class="content-area-center-title mb10">{{ el.deviceName }}</view>
|
|
|
<view class="content-area-center-cont">
|
|
|
<span class="label">设备号:</span>
|
|
@@ -82,7 +82,7 @@ function init() {
|
|
|
if (requset.status === "SUCCESS") {
|
|
|
requset.data.records.forEach((el) => {
|
|
|
allInfoList.value.push({
|
|
|
- img: "",
|
|
|
+ sitePhoto: el.sitePhoto,
|
|
|
time: proxy.$common.jktTimes(el.alarmTime),
|
|
|
deviceId: el.deviceId,
|
|
|
deviceName: el.deviceName,
|