|
@@ -3,7 +3,7 @@
|
|
|
<div class="advance__head flex">
|
|
|
<div class="flex-wrap interfaceLog_head_time">
|
|
|
<div class="manageTitle">高级查询</div>
|
|
|
- <div class="interfaceLog_head_time_start mr10">
|
|
|
+ <!-- <div class="interfaceLog_head_time_start mr10">
|
|
|
<el-date-picker
|
|
|
v-model="FlightDate[0]"
|
|
|
class="input-shadow"
|
|
@@ -24,7 +24,16 @@
|
|
|
placeholder="选择结束日期时间"
|
|
|
@change="endDateChangeHandler"
|
|
|
/>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
+ <el-date-picker
|
|
|
+ v-model="FlightDate"
|
|
|
+ size="small"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ :picker-options="dateRangePickerOptions"
|
|
|
+ />
|
|
|
</div>
|
|
|
<Search
|
|
|
ref="search"
|
|
@@ -711,10 +720,10 @@ export default {
|
|
|
// console.dir(document.activeElement)
|
|
|
// })
|
|
|
this.baggageTypeQuery()
|
|
|
- document.querySelector('.interfaceLog_head_time_start .el-input__prefix i').remove()
|
|
|
- document.querySelector('.interfaceLog_head_time_start .el-input__prefix').innerHTML = '开始:'
|
|
|
- document.querySelector('.interfaceLog_head_time_end .el-input__prefix i').remove()
|
|
|
- document.querySelector('.interfaceLog_head_time_end .el-input__prefix').innerHTML = '结束:'
|
|
|
+ // document.querySelector('.interfaceLog_head_time_start .el-input__prefix i').remove()
|
|
|
+ // document.querySelector('.interfaceLog_head_time_start .el-input__prefix').innerHTML = '开始:'
|
|
|
+ // document.querySelector('.interfaceLog_head_time_end .el-input__prefix i').remove()
|
|
|
+ // document.querySelector('.interfaceLog_head_time_end .el-input__prefix').innerHTML = '结束:'
|
|
|
|
|
|
let flag = false
|
|
|
const query = this.$route.query
|
|
@@ -764,36 +773,36 @@ export default {
|
|
|
dialogFocus() {
|
|
|
this.$refs['dialog'].focus()
|
|
|
},
|
|
|
- startDateChangeHandler(val) {
|
|
|
- this.FlightDate[0] = val ?? ''
|
|
|
- if (!val || !this.FlightDate[1]) {
|
|
|
- return
|
|
|
- }
|
|
|
- const startDate = new Date(val)
|
|
|
- const endDate = new Date(this.FlightDate[1])
|
|
|
- if (startDate > endDate) {
|
|
|
- this.FlightDate.splice(1, 1, '')
|
|
|
- this.$message.info('结束时间不能早于开始时间,请重新选择')
|
|
|
- } else if (endDate - startDate > 2 * 24 * 60 * 60 * 1000) {
|
|
|
- this.FlightDate.splice(1, 1, '')
|
|
|
- this.$message.info('时间跨度不能超过三天,请重新选择')
|
|
|
- }
|
|
|
- },
|
|
|
- endDateChangeHandler(val) {
|
|
|
- this.FlightDate[1] = val ?? ''
|
|
|
- if (!val || !this.FlightDate[0]) {
|
|
|
- return
|
|
|
- }
|
|
|
- const startDate = new Date(this.FlightDate[0])
|
|
|
- const endDate = new Date(val)
|
|
|
- if (startDate > endDate) {
|
|
|
- this.FlightDate.splice(0, 1, '')
|
|
|
- this.$message.info('开始时间不能晚于结束时间,请重新选择')
|
|
|
- } else if (endDate - startDate > 2 * 24 * 60 * 60 * 1000) {
|
|
|
- this.FlightDate.splice(0, 1, '')
|
|
|
- this.$message.info('时间跨度不能超过三天,请重新选择')
|
|
|
- }
|
|
|
- },
|
|
|
+ // startDateChangeHandler(val) {
|
|
|
+ // this.FlightDate[0] = val ?? ''
|
|
|
+ // if (!val || !this.FlightDate[1]) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // const startDate = new Date(val)
|
|
|
+ // const endDate = new Date(this.FlightDate[1])
|
|
|
+ // if (startDate > endDate) {
|
|
|
+ // this.FlightDate.splice(1, 1, '')
|
|
|
+ // this.$message.info('结束时间不能早于开始时间,请重新选择')
|
|
|
+ // } else if (endDate - startDate > 2 * 24 * 60 * 60 * 1000) {
|
|
|
+ // this.FlightDate.splice(1, 1, '')
|
|
|
+ // this.$message.info('时间跨度不能超过三天,请重新选择')
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // endDateChangeHandler(val) {
|
|
|
+ // this.FlightDate[1] = val ?? ''
|
|
|
+ // if (!val || !this.FlightDate[0]) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // const startDate = new Date(this.FlightDate[0])
|
|
|
+ // const endDate = new Date(val)
|
|
|
+ // if (startDate > endDate) {
|
|
|
+ // this.FlightDate.splice(0, 1, '')
|
|
|
+ // this.$message.info('开始时间不能晚于结束时间,请重新选择')
|
|
|
+ // } else if (endDate - startDate > 2 * 24 * 60 * 60 * 1000) {
|
|
|
+ // this.FlightDate.splice(0, 1, '')
|
|
|
+ // this.$message.info('时间跨度不能超过三天,请重新选择')
|
|
|
+ // }
|
|
|
+ // },
|
|
|
dateRangePickHandler({ maxDate, minDate }) {
|
|
|
if (!maxDate) {
|
|
|
this.pickedDate = minDate
|