Elements-SY

UI

......@@ -282,6 +282,14 @@ export default {
if (this.$store.state.tagsView.cachedViews.length == 0) {
this.select();
}
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.form.$el.offsetHeight - 60;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
this.tableSelection = []
......@@ -303,7 +311,6 @@ export default {
this.shiftKey = false;
}
});
this.tableHeight = window.innerHeight - this.$refs.form.$el.offsetHeight - 60;
},
methods: {
//查询条件
......
......@@ -104,9 +104,17 @@ export default {
if (this.$store.state.tagsView.cachedViews.length == 0) {
this.getList();
}
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.flightAllocForm.$el.offsetHeight - 200;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.flightAllocForm.$el.offsetHeight - 200;
},
activated() {
this.getList()
......
......@@ -247,9 +247,16 @@ export default {
if (this.$store.state.tagsView.cachedViews.length == 0) {
this.findSourceFlightRules();
}
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 200;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 200;
},
activated() {
this.findSourceFlightRules();
......
......@@ -106,6 +106,14 @@ export default {
},
created() {
this.preQuery(1)
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.preReviewOptions.offsetHeight - 300;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
if (this.flightData.length > 0) {
......@@ -113,7 +121,6 @@ export default {
}
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.preReviewOptions.offsetHeight - 300;
},
methods: {
//搜索
......
......@@ -482,6 +482,14 @@ export default {
this.findFltConditionData();
this.findAllFltData();
}
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 120;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
this.ids = []
......@@ -502,7 +510,6 @@ export default {
this.shiftKey = false;
}
});
this.tableHeight = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 120;
},
methods: {
//输入航班号后
......
......@@ -89,10 +89,16 @@ export default {
}
},
created() {
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200;
this.selection(1)
},
watch: {
......
......@@ -89,10 +89,16 @@ export default {
}
},
created() {
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200;
this.selection(1)
},
watch: {
......
......@@ -71,9 +71,16 @@ export default {
}
},
created() {
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.goodsStationFlight.$el.offsetHeight - 200;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.goodsStationFlight.$el.offsetHeight - 200;
this.selection(1)
},
watch: {
......
......@@ -368,6 +368,14 @@ export default {
this.tableHeader = this.tableHeaders['cargo']
}
this.select(0,'create')
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.cargoForm.$el.offsetHeight - 50;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
......@@ -441,7 +449,6 @@ export default {
this.shiftKey = false;
}
});
this.tableHeight = window.innerHeight - this.$refs.cargoForm.$el.offsetHeight - 50
},
watch: {
$route: {
......
......@@ -104,12 +104,19 @@ export default {
created() {
this.selectData.fltDate = this.nowDate();
this.getFltKindId()
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.card1.$el.offsetHeight - this.$refs.indexForm.$el.offsetHeight - 350;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
// activated() {
// this.getFlight()
// },
mounted() {
this.tableHeight = window.innerHeight - this.$refs.card1.$el.offsetHeight - this.$refs.indexForm.$el.offsetHeight - 350
this.getFlight()
},
methods: {
......
......@@ -98,9 +98,16 @@ export default {
};
},
created() {
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170;
this.selection(1)
},
activated() {
......
......@@ -137,9 +137,16 @@ export default {
},
created() {
this.selectOptionData()
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.preMdeSelectForm.$el.offsetHeight - 150;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.preMdeSelectForm.$el.offsetHeight - 150;
this.select(0)
},
watch: {
......
......@@ -107,12 +107,19 @@ export default {
this.formData.pickUpDate = this.nowDate()
this.getOption()
this.select()
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.reportForm.$el.offsetHeight - 240;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
this.select()
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.reportForm.$el.offsetHeight - 240
},
methods: {
getOption() {
......
......@@ -99,9 +99,16 @@ export default {
};
},
created() {
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170;
this.selection(1)
},
activated() {
......
......@@ -213,6 +213,14 @@ export default {
},
created() {
this.dictNameSelect()
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.dictForm.$el.offsetHeight - 270;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
// if (this.$store.state.tagsView.cachedViews.length > 0) {
......@@ -220,7 +228,7 @@ export default {
// }
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.dictForm.$el.offsetHeight - 270
},
filters: {
// 是否为ET86航线
......
......@@ -84,9 +84,16 @@ export default {
if (this.$store.state.tagsView.cachedViews.length == 0) {
this.selectRoleList();
}
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.selectionRoleForm.$el.offsetHeight - 250;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.selectionRoleForm.$el.offsetHeight - 250
},
activated() {
this.selectRoleList();
......
......@@ -78,9 +78,16 @@ export default {
}
},
created() {
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.supserAllocation.$el.offsetHeight - 250;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.supserAllocation.$el.offsetHeight - 250
this.selection(1)
},
methods: {
......
......@@ -111,9 +111,16 @@ export default {
if (this.$store.state.tagsView.cachedViews.length == 0) {
this.selectUser();
}
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.selectionUserForm.$el.offsetHeight - 250;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.selectionUserForm.$el.offsetHeight - 250;
},
activated() {
this.selectUser();
......
......@@ -61,10 +61,17 @@ export default {
}
},
created() {
this.selectLog()
this.selectLog()
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.archiveDataForm.$el.offsetHeight - 200;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.archiveDataForm.$el.offsetHeight - 200
},
methods: {
selectLog(val) {
......
......@@ -122,6 +122,14 @@ export default {
},
created() {
this.selectForm.createTime = this.nowDate();
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.dmLogForm.$el.offsetHeight - 130;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
this.selectDMData();
......@@ -130,7 +138,6 @@ export default {
this.data = [];
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.dmLogForm.$el.offsetHeight - 130;
},
methods: {
//数据查询
......
......@@ -104,12 +104,19 @@ export default {
created() {
this.getModule()
this.selectLog(1)
this.$nextTick(()=>{
let height = window.innerHeight - this.$refs.operationLogForm.$el.offsetHeight - 240;
if(height < 300){
this.tableHeight = 300;
}else{
this.tableHeight = height;
}
})
},
activated() {
this.selectLog();
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.operationLogForm.$el.offsetHeight - 240
},
methods: {
getModule() {
......