| | |
| | | <div class="search-box"> |
| | | <!-- 关键字 --> |
| | | <el-input v-model="query.keyword" class="command-input" placeholder="请输入数据名称" clearable |
| | | @keyup.enter="onSearch"> |
| | | @keyup.enter="onSearch" @clear="onSearch"> |
| | | </el-input> |
| | | |
| | | <!-- 日期范围 --> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { dateRangeFormat } from '@ztzf/utils' |
| | | import { ref, computed, onMounted } from 'vue' |
| | | import HistoryTemplate from './templateComponents/HistoryTemplate.vue' |
| | | import { alarmLogApi } from '@/api/dataCockpit' |
| | |
| | | } |
| | | |
| | | const fetchHistoryWarning = async () => { |
| | | |
| | | const startAt = Date.now() |
| | | loading.value = true |
| | | try { |
| | | const [startTime, endTime] = query.value.dateRange || [] |
| | | const [startTime, endTime] = dateRangeFormat(query.value.dateRange) || [] |
| | | const keyword = (query.value.keyword || '').trim() |
| | | const params = { |
| | | current: 1, |