|
@@ -84,7 +84,8 @@ export default {
|
|
|
return{
|
|
|
user: JSON.parse(localStorage.userInfo),
|
|
|
leaveFil: false,
|
|
|
-
|
|
|
+ reportsCompany: false,
|
|
|
+ reportsDept: false,
|
|
|
|
|
|
monthSelectShow: false,
|
|
|
monthDatetime: new Date(),
|
|
@@ -169,7 +170,7 @@ export default {
|
|
|
let parameter = {
|
|
|
date: this.nowLookDate
|
|
|
}
|
|
|
- if (this.user.manageDeptId != 0 && !this.permissions.reportsCompany && !this.permissions.reportsDept) {
|
|
|
+ if (this.user.manageDeptId != 0 && !this.reportsCompany && !this.reportsDept) {
|
|
|
parameter.manageDeptId = this.user.manageDeptId;
|
|
|
}
|
|
|
this.$axios.post('/report/getMembList', parameter)
|
|
@@ -242,6 +243,12 @@ export default {
|
|
|
if(this.user.functionList[i].name == '请假填报'){
|
|
|
this.leaveFil = true
|
|
|
}
|
|
|
+ if(this.user.functionList[i].name == '查看全公司工时'){
|
|
|
+ this.reportsCompany = true
|
|
|
+ }
|
|
|
+ if(this.user.functionList[i].name == '查看本部门工时'){
|
|
|
+ this.reportsDept = true
|
|
|
+ }
|
|
|
}
|
|
|
console.log('请假填报',this.leaveFil);
|
|
|
}
|