切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
朱兆平
3 years ago
提交
d591bf213fc0624a3fbf766dff792f5f8d1902d3
1 个父辈
57644a6b
优化页面传参,切换页面参数丢失后,对象为空的校验
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
14 行增加
和
5 行删除
src/views/nmms_import/OrigMaster.vue
src/views/nmms_import/OrigMaster.vue
查看文件 @
d591bf2
...
...
@@ -889,6 +889,7 @@
import loginUserInfo from '@/api/base.js'
import {mapActions, mapGetters} from 'vuex'
import {loginedUserInfo} from "../../api/user";
import jsutil from "@/common/js/util";
export default {
name:'Origmaster',
data() {
...
...
@@ -1397,11 +1398,19 @@
},
/*获取默认值*/
getDefaultData(){
this.defaultQuery.flightno = JSON.parse(this.$route.query.flightno);
this.defaultQuery.flightdate = JSON.parse(this.$route.query.flightdate);
this.defaultQuery.originstation = JSON.parse(this.$route.query.originstation);
this.defaultQuery.destinationstation = JSON.parse(this.$route.query.destinationstation);
this.defaultQuery.awba=JSON.parse(this.$route.query.awba);
if(
jsutil.checkNull(this.$route.query)
&& jsutil.checkNull(this.$route.query.flightno)
&& jsutil.checkNull(this.$route.query.flightdate)
&& jsutil.checkNull(this.$route.query.originstation)
&& jsutil.checkNull(this.$route.query.destinationstation)
) {
this.defaultQuery.flightno = JSON.parse(this.$route.query.flightno);
this.defaultQuery.flightdate = JSON.parse(this.$route.query.flightdate);
this.defaultQuery.originstation = JSON.parse(this.$route.query.originstation);
this.defaultQuery.destinationstation = JSON.parse(this.$route.query.destinationstation);
this.defaultQuery.awba = JSON.parse(this.$route.query.awba);
}
},
/*获取默认数据列表*/
...
...
请
注册
或
登录
后发表评论