页面权限

This commit is contained in:
2026-03-09 15:02:09 +08:00
parent ef230b3836
commit 418c29095b
55 changed files with 391 additions and 150 deletions

View File

@@ -102,7 +102,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -183,7 +183,13 @@ export default {
})();
};
console.log(this.$route.query.name, 'name');
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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -103,7 +103,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -183,7 +183,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -102,7 +102,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -182,7 +182,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -103,7 +103,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -183,7 +183,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -88,7 +88,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -166,7 +166,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -103,7 +103,7 @@ export default {
beilv: 1,
month:'',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -184,7 +184,13 @@ export default {
})();
};
console.log('this.$route.query.factory', this.$route.query.factory);
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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -90,7 +90,7 @@ export default {
beilv: 1,
month:'',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -168,6 +168,13 @@ export default {
this.beilv = _this.clientWidth / 1920;
})();
};
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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -102,7 +102,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -182,6 +182,13 @@ export default {
this.beilv = _this.clientWidth / 1920;
})();
};
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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -104,7 +104,7 @@ export default {
timer: null,
beilv: 1,
month: '',
factory: 5,
factory: null,
value: 100,
dateData: {},
trendName: '加工燃料成本',
@@ -184,7 +184,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -103,7 +103,7 @@ export default {
beilv: 1,
month:'',
value: 100,
factory: 5,
factory: null,
dateData: {},
trendName: '加工制造费用成本',
monData: {},
@@ -176,7 +176,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -90,7 +90,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -168,7 +168,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -103,7 +103,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -185,7 +185,13 @@ export default {
};
console.log('this.$route.query.factory', this.$route.query.factory);
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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -103,7 +103,7 @@ export default {
beilv: 1,
month:'',
value: 100,
factory: 5,
factory: null,
dateData: {},
trendName: '加工燃料成本',
monData: {},
@@ -176,7 +176,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -90,7 +90,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -168,7 +168,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -105,7 +105,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -179,7 +179,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -102,7 +102,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -182,7 +182,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -102,7 +102,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -182,7 +182,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -88,7 +88,7 @@ export default {
beilv: 1,
month:'',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -160,7 +160,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {

View File

@@ -102,7 +102,7 @@ export default {
beilv: 1,
month: '',
value: 100,
factory: 5,
factory: null,
dateData: {},
monData: {},
totalData: {},
@@ -182,7 +182,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
}
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {