作者 xudada

当日飞行计划

@@ -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,12 +228,7 @@ @@ -227,12 +228,7 @@
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 - }  
235 - 231 + Object.assign(this.queryFlightplan, this.$route.query);
236 }, 232 },
237 //编辑当日飞行计划 233 //编辑当日飞行计划
238 handleEdit(index,row){ 234 handleEdit(index,row){