...
|
...
|
@@ -87,6 +87,7 @@ |
|
|
|
|
|
<script>
|
|
|
import { selectAirport } from '../../api/mt1201'
|
|
|
import jsutil from "@/common/js/util";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
...
|
...
|
@@ -159,12 +160,17 @@ |
|
|
},
|
|
|
/*加载默认参数*/
|
|
|
getDefaultData(){
|
|
|
if(this.$route.query!=null){
|
|
|
console.log(this.$route.query)
|
|
|
this.ruleForm.flightno=this.$route.query.flightno;
|
|
|
this.ruleForm.flightdate=this.$route.query.flightdate;
|
|
|
this.ruleForm.originstation=this.$route.query.originstation;
|
|
|
this.ruleForm.destinationstation=this.$route.query.destinationstation;
|
|
|
if(
|
|
|
jsutil.checkNull(this.$route.query)
|
|
|
&& jsutil.checkNull(this.$route.query.flightno)
|
|
|
&& jsutil.checkNull(this.$route.query.flightdate)
|
|
|
&& jsutil.checkNull(this.$route.query.originstation)
|
|
|
&& jsutil.checkNull(this.$route.query.destinationstation)
|
|
|
){
|
|
|
this.ruleForm.flightno=(this.$route.query.flightno);
|
|
|
this.ruleForm.flightdate=(this.$route.query.flightdate);
|
|
|
this.ruleForm.originstation=(this.$route.query.originstation);
|
|
|
this.ruleForm.destinationstation=(this.$route.query.destinationstation);
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
|