正在显示
3 个修改的文件
包含
16 行增加
和
53 行删除
@@ -411,7 +411,7 @@ | @@ -411,7 +411,7 @@ | ||
411 | if(response.code=='200'){ | 411 | if(response.code=='200'){ |
412 | this.centerDialogVisible=true; | 412 | this.centerDialogVisible=true; |
413 | this.msg=response.msg; | 413 | this.msg=response.msg; |
414 | - this.$router.push({path:'/queryFlight',query:{flightNo:JSON.stringify(this.flight.flightNo),aircraftNo:JSON.stringify(this.flight.aircraftNo)}}); | 414 | + this.$router.push({path:'/queryFlights',query:{flightNo:this.flight.flightNo,aircraftNo:this.flight.aircraftNo}}); |
415 | this.centerDialogVisible=false; | 415 | this.centerDialogVisible=false; |
416 | }else{ | 416 | }else{ |
417 | this.centerDialogVisible=true; | 417 | this.centerDialogVisible=true; |
@@ -446,37 +446,14 @@ | @@ -446,37 +446,14 @@ | ||
446 | }, | 446 | }, |
447 | //加载默认值 | 447 | //加载默认值 |
448 | defaultData(){ | 448 | defaultData(){ |
449 | - if(this.$route.query!=null){ | ||
450 | - this.flight.uuid=JSON.parse(this.$route.query.uuid); | ||
451 | - this.flight.airwayCode=JSON.parse(this.$route.query.airwayCode); | ||
452 | - this.flight.airwayNameEn=JSON.parse(this.$route.query.airwayNameEn); | ||
453 | - this.flight.airwayNameCn=JSON.parse(this.$route.query.airwayNameCn); | ||
454 | - this.flight.transportAgentCode=JSON.parse(this.$route.query.transportAgentCode); | ||
455 | - this.flight.groundAgentCode=JSON.parse(this.$route.query.groundAgentCode); | ||
456 | - this.flight.flightNo=JSON.parse(this.$route.query.flightNo); | ||
457 | - this.flight.shareFlightNo=JSON.parse(this.$route.query.shareFlightNo); | ||
458 | - this.flight.linesType=JSON.parse(this.$route.query.linesType); | ||
459 | - this.flight.std=fecha.parse(JSON.parse(this.$route.query.std),'HHmmss'); | ||
460 | - this.flight.sta=fecha.parse(JSON.parse(this.$route.query.sta),'HHmmss'); | ||
461 | - this.flight.effStartdate=JSON.parse(this.$route.query.effStartdate); | ||
462 | - this.flight.effEnddate=JSON.parse(this.$route.query.effEnddate); | ||
463 | - this.flight.flightType=JSON.parse(this.$route.query.flightType); | ||
464 | - this.flight.cancelFlag=JSON.parse(this.$route.query.cancelFlag); | ||
465 | - this.flight.departurePort=JSON.parse(this.$route.query.departurePort); | ||
466 | - this.flight.arrivalPort=JSON.parse(this.$route.query.arrivalPort); | ||
467 | - this.flight.departureCustomNo=JSON.parse(this.$route.query.departureCustomNo); | ||
468 | - this.flight.arrivalCustomNo=JSON.parse(this.$route.query.arrivalCustomNo); | ||
469 | - this.flight.plan=JSON.parse(this.$route.query.plan); | ||
470 | - this.flight.remark=JSON.parse(this.$route.query.remark); | ||
471 | - this.flight.createTime=JSON.parse(this.$route.query.createTime); | ||
472 | - this.flight.createBy=JSON.parse(this.$route.query.createBy); | ||
473 | - this.flight.updateTime=JSON.parse(this.$route.query.updateTime); | ||
474 | - this.flight.updateBy=JSON.parse(this.$route.query.updateBy); | ||
475 | - this.flight.isDelete=JSON.parse(this.$route.query.isDelete); | ||
476 | - this.flight.serialno=JSON.parse(this.$route.query.serialno); | ||
477 | - this.flight.status=JSON.parse(this.$route.query.status); | ||
478 | - this.flight.statusMsg=JSON.parse(this.$route.query.statusMsg); | ||
479 | - this.flight.messageid=JSON.parse(this.$route.query.messageid); | 449 | + if(this.$route.query.uuid!=null){ |
450 | + let ob=Object.assign(this.flight,this.$route.query); | ||
451 | + if(ob.std!=null && ob.std!=undefined && ob.std!=""){ | ||
452 | + this.flight.std=fecha.parse(ob.std,'HHmmss'); | ||
453 | + } | ||
454 | + if(ob.sta!=null && ob.sta!=undefined &&ob.sta!=""){ | ||
455 | + this.flight.sta=fecha.parse(ob.sta,'HHmmss'); | ||
456 | + } | ||
480 | } | 457 | } |
481 | 458 | ||
482 | }, | 459 | }, |
@@ -11,13 +11,13 @@ | @@ -11,13 +11,13 @@ | ||
11 | <el-form :label-position="labelPosition" :model="queryFlight" :rules="rules" ref="queryFlight" | 11 | <el-form :label-position="labelPosition" :model="queryFlight" :rules="rules" ref="queryFlight" |
12 | label-width="130px" class="demo-ruleForm"> | 12 | label-width="130px" class="demo-ruleForm"> |
13 | <el-col :span="8"> | 13 | <el-col :span="8"> |
14 | - <el-form-item label="航空公司代码:" prop="flightNo" label-width="110px"> | ||
15 | - <el-input v-model="queryFlight.flightNo" style="width:190px"></el-input> | 14 | + <el-form-item label="航空公司代码:" prop="aircraftNo" label-width="110px"> |
15 | + <el-input v-model="queryFlight.aircraftNo" style="width:190px"></el-input> | ||
16 | </el-form-item> | 16 | </el-form-item> |
17 | </el-col> | 17 | </el-col> |
18 | <el-col :span="8" > | 18 | <el-col :span="8" > |
19 | - <el-form-item label="航班号:" prop="aircraftNo" label-width="80px"> | ||
20 | - <el-input v-model="queryFlight.aircraftNo" style="width:190px"></el-input> | 19 | + <el-form-item label="航班号:" prop="flightNo" label-width="80px"> |
20 | + <el-input v-model="queryFlight.flightNo" style="width:190px"></el-input> | ||
21 | </el-form-item> | 21 | </el-form-item> |
22 | </el-col> | 22 | </el-col> |
23 | <el-col :span="6" > | 23 | <el-col :span="6" > |
@@ -184,24 +184,11 @@ | @@ -184,24 +184,11 @@ | ||
184 | }, | 184 | }, |
185 | //编辑航班查询功能 | 185 | //编辑航班查询功能 |
186 | handleEdit(index,row){ | 186 | handleEdit(index,row){ |
187 | - this.$router.push({path:'/flights',query:{uuid:JSON.stringify(row.uuid),airwayCode:JSON.stringify(row.airwayCode) | ||
188 | - ,airwayNameEn:JSON.stringify(row.airwayNameEn), airwayNameCn:JSON.stringify(row.airwayNameCn), | ||
189 | - transportAgentCode:JSON.stringify(row.transportAgentCode),groundAgentCode:JSON.stringify(row.groundAgentCode), | ||
190 | - flightNo:JSON.stringify(row.flightNo),shareFlightNo:JSON.stringify(row.shareFlightNo),linesType:JSON.stringify(row.linesType), | ||
191 | - std:JSON.stringify(row.std), sta:JSON.stringify(row.sta),effStartdate:JSON.stringify(row.effStartdate), | ||
192 | - effEnddate:JSON.stringify(row.effEnddate),plan:JSON.stringify(row.plan), remark:JSON.stringify(row.remark), | ||
193 | - createTime:JSON.stringify(row.createTime),createBy:JSON.stringify(row.createBy),updateTime:JSON.stringify(row.updateTime), | ||
194 | - updateBy:JSON.stringify(row.updateBy),isDelete:JSON.stringify(row.isDelete),flightType:JSON.stringify(row.flightType), cancelFlag:JSON.stringify(row.cancelFlag), | ||
195 | - departurePort:JSON.stringify(row.departurePort),arrivalPort:JSON.stringify(row.arrivalPort),departureCustomNo:JSON.stringify(row.departureCustomNo), | ||
196 | - arrivalCustomNo:JSON.stringify(row.arrivalCustomNo),serialno:JSON.stringify(row.serialno),status:JSON.stringify(row.status), | ||
197 | - statusMsg:JSON.stringify(row.statusMsg),messageid:JSON.stringify(row.messageid) | ||
198 | - }}) | 187 | + this.$router.push({path:'/flights',query:row}) |
199 | }, | 188 | }, |
200 | //获取默认值 | 189 | //获取默认值 |
201 | defaultData(){ | 190 | defaultData(){ |
202 | - this.flightNo=JSON.parse(this.$route.query.flightNo); | ||
203 | - this.aircraftNo=JSON.parse(this.$route.query.aircraftNo); | ||
204 | - | 191 | + Object.assign(this.queryFlight, this.$route.query); |
205 | }, | 192 | }, |
206 | //列表删除功能 | 193 | //列表删除功能 |
207 | handleDel(index,row){ | 194 | handleDel(index,row){ |
@@ -181,8 +181,7 @@ | @@ -181,8 +181,7 @@ | ||
181 | }, | 181 | }, |
182 | //获取默认值 | 182 | //获取默认值 |
183 | defaultData(){ | 183 | defaultData(){ |
184 | - let ob=Object.assign(this.queryRoute, this.$route.query); | ||
185 | - | 184 | + Object.assign(this.queryRoute, this.$route.query); |
186 | }, | 185 | }, |
187 | //列表删除功能 | 186 | //列表删除功能 |
188 | handleDelete(index,row){ | 187 | handleDelete(index,row){ |
-
请 注册 或 登录 后发表评论