正在显示
3 个修改的文件
包含
14 行增加
和
8 行删除
| @@ -221,12 +221,10 @@ | @@ -221,12 +221,10 @@ | ||
| 221 | }, | 221 | }, |
| 222 | //加载默认值 | 222 | //加载默认值 |
| 223 | defaultData(){ | 223 | defaultData(){ |
| 224 | - if(this.$route.query!=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 | - /*有时分秒时用fecha | ||
| 227 | - this.flight.flightDate=ob.flightDate; | ||
| 228 | this.flight.currentLandingTime=fecha.parse(ob.currentLandingTime,'yyyyMMddHHmm'); | 226 | this.flight.currentLandingTime=fecha.parse(ob.currentLandingTime,'yyyyMMddHHmm'); |
| 229 | - this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/ | 227 | + this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm'); |
| 230 | } | 228 | } |
| 231 | }, | 229 | }, |
| 232 | }, | 230 | }, |
| @@ -227,19 +227,23 @@ | @@ -227,19 +227,23 @@ | ||
| 227 | }, | 227 | }, |
| 228 | //获取默认值 | 228 | //获取默认值 |
| 229 | defaultData() { | 229 | defaultData() { |
| 230 | - this.flightNo = JSON.parse(this.$route.query.flightNo); | ||
| 231 | - this.flightDate = JSON.parse(this.$route.query.flightDate); | ||
| 232 | - this.aircraftNo = JSON.parse(this.$route.query.aircraftNo); | 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 | + | ||
| 233 | }, | 236 | }, |
| 234 | //编辑当日飞行计划 | 237 | //编辑当日飞行计划 |
| 235 | handleEdit(index,row){ | 238 | handleEdit(index,row){ |
| 236 | this.$router.push({path:'/flightplan',query: row}) | 239 | this.$router.push({path:'/flightplan',query: row}) |
| 237 | }, | 240 | }, |
| 241 | + | ||
| 242 | + }, | ||
| 238 | //渲染方法 | 243 | //渲染方法 |
| 239 | mounted(){ | 244 | mounted(){ |
| 240 | this.defaultData(); | 245 | this.defaultData(); |
| 241 | this.submitForm(); | 246 | this.submitForm(); |
| 242 | } | 247 | } |
| 243 | } | 248 | } |
| 244 | - } | ||
| 245 | </script> | 249 | </script> |
| @@ -164,6 +164,10 @@ | @@ -164,6 +164,10 @@ | ||
| 164 | this.currentPage=val; | 164 | this.currentPage=val; |
| 165 | this.submitForm(); | 165 | this.submitForm(); |
| 166 | }, | 166 | }, |
| 167 | + //查看明细 | ||
| 168 | + handleDetail(index,row){ | ||
| 169 | + console.log(row) | ||
| 170 | + }, | ||
| 167 | //获取航线列表 | 171 | //获取航线列表 |
| 168 | submitForm(){ | 172 | submitForm(){ |
| 169 | let params={currentPage:this.currentPage,pageSize:this.pageSize,serialNo:this.queryRoute.serialNo}; | 173 | let params={currentPage:this.currentPage,pageSize:this.pageSize,serialNo:this.queryRoute.serialNo}; |
-
请 注册 或 登录 后发表评论