作者 朱兆平

修复获取用户信息BUG

... ... @@ -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);
}
}
},
... ...
... ... @@ -149,7 +149,12 @@
},
/*原始舱单跳转*/
handleEdit(index, row) {
this.$router.push({path:'/enter',query:{flightno:JSON.stringify(row.flightno),flightdate:JSON.stringify(row.flightdate),originstation:JSON.stringify(row.originstation),destinationstation:JSON.stringify(row.destinationstation)}})
this.$router.push(
{
path:'/enter',
query:row
}
)
},
/*进港理货跳转*/
handleDelete(index, row) {
... ...