| | |
| | | popper-class="custom-date-picker" |
| | | v-model="dateRange" |
| | | type="daterange" |
| | | :clearable="false" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | |
| | | 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 =()=>{ |