feat: 日期为空时是null ,事件概况详情显示缩略图
| | |
| | | |
| | | <div class="eventList"> |
| | | <div class="eventListItem" v-for="item in list"> |
| | | <img class="eventListItemImg" :src="item.photo_url" alt="" /> |
| | | <img class="eventListItemImg" |
| | | :src="item.photo_url ? |
| | | item.photo_url.substring(0, item.photo_url.lastIndexOf('.')) + '_small' + |
| | | item.photo_url.substring(item.photo_url.lastIndexOf('.')) |
| | | : ''" |
| | | alt="" |
| | | /> |
| | | <div class="eventListItemText"> |
| | | <div class="eventListItemName">{{ item.event_name }}</div> |
| | | <div @click="positioning(item)">定位</div> |
| | |
| | | create_dept: '', // 创建部门 |
| | | date_enum: '', // 日期枚举,可用值:TODAY,CURRENT_WEEK,CURRENT_MONTH,CURRENT_YEAR |
| | | device_sn: '', // 设备编号 |
| | | end_date: '', // 结束时间 |
| | | end_date: null, // 结束时间 |
| | | industry_type: '', // 行业key |
| | | key_word: '', // 模糊搜索关键词(匹配名称/昵称/设备sn) |
| | | start_date: '', // 开始时间 |
| | | start_date: null, // 开始时间 |
| | | status: '' // 作业状态 |
| | | }); |
| | | |
| | |
| | | const handleSearch = () => { |
| | | emit('search', { |
| | | ...searchForm, |
| | | start_date: dateRange.value.length ? `${dateRange.value[0]} 00:00:00` : '', |
| | | end_date: dateRange.value.length ? `${dateRange.value[1]} 23:59:59` : '' |
| | | start_date: dateRange.value.length ? `${dateRange.value[0]} 00:00:00` : null, |
| | | end_date: dateRange.value.length ? `${dateRange.value[1]} 23:59:59` : null |
| | | }); |
| | | }; |
| | | |