页面权限
This commit is contained in:
@@ -108,7 +108,7 @@ export default {
|
||||
beilv: 1,
|
||||
month:'',
|
||||
value: 100,
|
||||
factory:0,
|
||||
factory:null,
|
||||
dateData:{},
|
||||
index: '营业收入',
|
||||
monthData: undefined,
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
transformOrigin: "left top",
|
||||
// overflow: hidden;
|
||||
};
|
||||
},
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
clientWidth(val) {
|
||||
@@ -188,7 +188,13 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
if(this.$route.query.factory){
|
||||
this.factory =Number(this.$route.query.factory)
|
||||
}else if(this.$store.getters.levelList.length > 0 && this.$store.getters.levelList[0].id !== 1) {
|
||||
this.factory = this.$store.getters.levelList[0].id
|
||||
}else{
|
||||
this.factory = this.$store.getters.levelList[1].id
|
||||
}
|
||||
console.log('this.$route.query.dateData', this.$route.query.dateData);
|
||||
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user