|
|
@ -118,7 +118,7 @@ |
|
|
|
:minDate="dateType=='endTime'&&searchVal.startTime?new Date(searchVal.startTime).getTime():new Date().set('y',-15).getTime()" |
|
|
|
:maxDate="dateType=='startTime'&&searchVal.endTime?new Date(searchVal.endTime).getTime():new Date().set('y',15).getTime()" |
|
|
|
:value="searchVal[dateType] || new Date().format('yyyy-MM-dd')" |
|
|
|
@confirm="searchVal[dateType]=new Date($event.value).format('yyyy-MM-dd');clean();search();show=false"/> |
|
|
|
@confirm="searchVal[dateType]=new Date($event.value).format('yyyy-MM-dd');show=false"/> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script> |
|
|
@ -149,6 +149,19 @@ export default { |
|
|
|
dateType:"startTime", |
|
|
|
} |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
date(){ |
|
|
|
return [this.searchVal.startTime, this.searchVal.endTime] |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
date(n){ |
|
|
|
if(n[0] && n[1]){ |
|
|
|
this.clean() |
|
|
|
this.search() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
this.search() |
|
|
|
}, |
|
|
|