| | |
| | | popper-class="custom-date-picker" |
| | | v-model="dateRange" |
| | | type="daterange" |
| | | :clearable="false" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | |
| | | </div> |
| | | <div class="search-first"> |
| | | <el-form-item label="文件名称:"> |
| | | <el-input v-model="searchForm.nickName" placeholder="请输入" clearable /> |
| | | <el-input v-model="searchForm.name" placeholder="请输入" clearable /> |
| | | </el-form-item> |
| | | <div class="search-btn"> |
| | | <el-button type="primary" icon="el-icon-search" @click="handleSearch">搜索</el-button> |
| | |
| | | children: 'childrens', |
| | | }; |
| | | const fileFormatOption = [ |
| | | { |
| | | value: '', |
| | | label: '全部', |
| | | }, |
| | | { |
| | | value: '0', |
| | | label: '照片', |
| | |
| | | label: 'AI识别', |
| | | }, |
| | | { |
| | | value: '3', |
| | | value: '5', |
| | | label: '全景', |
| | | }, |
| | | { |
| | |
| | | const timeFormat = 'YYYY-MM-DD HH:mm:ss'; |
| | | const searchForm = reactive({ |
| | | jobName: '', //任务名称 |
| | | nickName: '', //文件名称 |
| | | name: '', //文件名称 |
| | | areaCode: userAreaCode.value, // 区域code |
| | | endTime: endTime.format(timeFormat), // 结束时间 |
| | | startTime: startTime.format(timeFormat), // 开始时间 |
| | |
| | | searchForm.startTime = start.format(timeFormat); |
| | | searchForm.endTime = end.format(timeFormat); |
| | | } |
| | | handleSearch(); |
| | | //handleSearch(); |
| | | }; |
| | | // 部门下得机巢 |
| | | const requestDockInfo = () => { |
| | |
| | | ? dayjs(dateRange?.value[1]).endOf('day').format(timeFormat) |
| | | : null, |
| | | }; |
| | | console.log('searchForm', params); |
| | | // 调用父组件方法 |
| | | emit('search', params); |
| | | }; |
| | | // 清空 |
| | | const handleReset = () => { |
| | | dateRange.value = []; |
| | | Object.keys(searchForm).forEach(key => { |
| | | searchForm[key] = ''; |
| | | }); |
| | | dateRange.value = timeRange; |
| | | searchForm.jobName = '' |
| | | searchForm.name = '' |
| | | searchForm.areaCode = userAreaCode.value |
| | | searchForm.endTime = endTime.format(timeFormat) |
| | | searchForm.startTime = startTime.format(timeFormat) |
| | | searchForm.deviceSn = '' |
| | | searchForm.resultType = '' |
| | | searchForm.photoType = '' |
| | | handleNodeClick({ id: userAreaCode.value }); |
| | | handleSearch(); |
| | | |
| | | }; |
| | | // 下载 |
| | | const downloadFun =()=>{ |