|
@@ -87,6 +87,7 @@ |
|
@@ -87,6 +87,7 @@ |
87
|
|
87
|
|
88
|
<script>
|
88
|
<script>
|
89
|
import { selectAirport } from '../../api/mt1201'
|
89
|
import { selectAirport } from '../../api/mt1201'
|
|
|
90
|
+ import jsutil from "@/common/js/util";
|
90
|
export default {
|
91
|
export default {
|
91
|
data() {
|
92
|
data() {
|
92
|
return {
|
93
|
return {
|
|
@@ -159,12 +160,17 @@ |
|
@@ -159,12 +160,17 @@ |
159
|
},
|
160
|
},
|
160
|
/*加载默认参数*/
|
161
|
/*加载默认参数*/
|
161
|
getDefaultData(){
|
162
|
getDefaultData(){
|
162
|
- if(this.$route.query!=null){
|
|
|
163
|
- console.log(this.$route.query)
|
|
|
164
|
- this.ruleForm.flightno=this.$route.query.flightno;
|
|
|
165
|
- this.ruleForm.flightdate=this.$route.query.flightdate;
|
|
|
166
|
- this.ruleForm.originstation=this.$route.query.originstation;
|
|
|
167
|
- this.ruleForm.destinationstation=this.$route.query.destinationstation;
|
163
|
+ if(
|
|
|
164
|
+ jsutil.checkNull(this.$route.query)
|
|
|
165
|
+ && jsutil.checkNull(this.$route.query.flightno)
|
|
|
166
|
+ && jsutil.checkNull(this.$route.query.flightdate)
|
|
|
167
|
+ && jsutil.checkNull(this.$route.query.originstation)
|
|
|
168
|
+ && jsutil.checkNull(this.$route.query.destinationstation)
|
|
|
169
|
+ ){
|
|
|
170
|
+ this.ruleForm.flightno=(this.$route.query.flightno);
|
|
|
171
|
+ this.ruleForm.flightdate=(this.$route.query.flightdate);
|
|
|
172
|
+ this.ruleForm.originstation=(this.$route.query.originstation);
|
|
|
173
|
+ this.ruleForm.destinationstation=(this.$route.query.destinationstation);
|
168
|
}
|
174
|
}
|
169
|
}
|
175
|
}
|
170
|
},
|
176
|
},
|