作者 朱兆平

修复获取用户信息BUG

@@ -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 },
@@ -149,7 +149,12 @@ @@ -149,7 +149,12 @@
149 }, 149 },
150 /*原始舱单跳转*/ 150 /*原始舱单跳转*/
151 handleEdit(index, row) { 151 handleEdit(index, row) {
152 - 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)}}) 152 + this.$router.push(
  153 + {
  154 + path:'/enter',
  155 + query:row
  156 + }
  157 + )
153 }, 158 },
154 /*进港理货跳转*/ 159 /*进港理货跳转*/
155 handleDelete(index, row) { 160 handleDelete(index, row) {