作者 小范

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/views/airtransport/queryFlightplan.vue
@@ -208,7 +208,7 @@ @@ -208,7 +208,7 @@
208 if(response.code=='200'){ 208 if(response.code=='200'){
209 this.centerDialogVisible=true; 209 this.centerDialogVisible=true;
210 this.msg=response.msg; 210 this.msg=response.msg;
211 - this.$router.push({path:'/queryFlightplan',query:{flightNo:JSON.stringify(this.flight.flightNo)}}); 211 + this.$router.push({path:'/queryFlightplan',query:{flightNo:this.flight.flightNo,flightDate:this.flight.flightDate,aircraftNo:this.flight.aircraftNo}});
212 }else{ 212 }else{
213 this.msg=response.msg; 213 this.msg=response.msg;
214 } 214 }
@@ -223,8 +223,8 @@ @@ -223,8 +223,8 @@
223 defaultData(){ 223 defaultData(){
224 if(this.$route.query.uuid!=null){ 224 if(this.$route.query.uuid!=null){
225 let ob=Object.assign(this.flight, this.$route.query); 225 let ob=Object.assign(this.flight, this.$route.query);
226 - this.flight.currentLandingTime=fecha.parse(ob.currentLandingTime,'yyyyMMddHHmm');  
227 - this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm'); 226 + /*this.flight.currentLandingTime=fecha.parse(ob.currentLandingTime,'yyyyMMddHHmm');
  227 + this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/
228 } 228 }
229 }, 229 },
230 }, 230 },
@@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
27 v-model="queryFlightplan.flightDate" 27 v-model="queryFlightplan.flightDate"
28 type="date" 28 type="date"
29 format="yyyyMMdd" 29 format="yyyyMMdd"
  30 + value-format="yyyyMMdd"
30 style="width:190px" 31 style="width:190px"
31 placeholder="选择日期"> 32 placeholder="选择日期">
32 </el-date-picker> 33 </el-date-picker>
@@ -227,16 +228,13 @@ @@ -227,16 +228,13 @@
227 }, 228 },
228 //获取默认值 229 //获取默认值
229 defaultData() { 230 defaultData() {
230 - if(this.$route.query.flightNo!=null){  
231 - this.queryFlightplan.flightNo = JSON.parse(this.$route.query.flightNo);  
232 - this.queryFlightplan.flightDate = JSON.parse(this.$route.query.flightDate);  
233 - this.queryFlightplan.aircraftNo = JSON.parse(this.$route.query.aircraftNo);  
234 - } 231 + Object.assign(this.queryFlightplan, this.$route.query);
235 }, 232 },
236 //编辑当日飞行计划 233 //编辑当日飞行计划
237 handleEdit(index,row){ 234 handleEdit(index,row){
238 this.$router.push({path:'/flightplan',query: row}) 235 this.$router.push({path:'/flightplan',query: row})
239 }, 236 },
  237 +
240 }, 238 },
241 //渲染方法 239 //渲染方法
242 mounted(){ 240 mounted(){