forked from drone/command-center-dashboard

chenyao
2025-04-11 44c0a7f235aa6fcfb41985354c6546d76709e8bb
feat: 日期为空时是null ,事件概况详情显示缩略图
2 files modified
16 ■■■■■ changed files
src/views/Home/EventOverviewDetail/EventOverviewDetailRight.vue 8 ●●●● patch | view | raw | blame | history
src/views/TaskManage/SearchBox.vue 8 ●●●● patch | view | raw | blame | history
src/views/Home/EventOverviewDetail/EventOverviewDetailRight.vue
@@ -38,7 +38,13 @@
        <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>
src/views/TaskManage/SearchBox.vue
@@ -97,10 +97,10 @@
  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: '' // 作业状态
});
@@ -117,8 +117,8 @@
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
  });
};