|
|
|
@ -19,17 +19,13 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created(){
|
|
|
|
|
// //部门权限
|
|
|
|
|
// this.depAdmin = OfficeMenuConfig.menuIsExist(["daliyOffice","attendanceManagementNew","attStatistical", "depart"]);
|
|
|
|
|
// console.log("created:考勤统计:",this.depAdmin )
|
|
|
|
|
// if (this.depAdmin) {
|
|
|
|
|
// this.tabArr.push(
|
|
|
|
|
// {title: "团队考勤",type:"team"}
|
|
|
|
|
// )
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
this.$bus.on("systemDataChange",this.changeCrmData)
|
|
|
|
|
//部门权限
|
|
|
|
|
this.depAdmin = OfficeMenuConfig.menuIsExist(["daliyOffice","attendanceManagementNew","attStatistical", "depart"]);
|
|
|
|
|
if (this.depAdmin) {
|
|
|
|
|
this.tabArr.push(
|
|
|
|
|
{title: "团队考勤",type:"team"}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
tabChange:function (param) {
|
|
|
|
@ -37,15 +33,6 @@
|
|
|
|
|
this.pageType = param.cbName;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
changeCrmData:function () {
|
|
|
|
|
//部门权限
|
|
|
|
|
this.depAdmin = OfficeMenuConfig.menuIsExist(["daliyOffice","attendanceManagementNew","attStatistical", "depart"]);
|
|
|
|
|
if (this.depAdmin) {
|
|
|
|
|
this.tabArr.push(
|
|
|
|
|
{title: "团队考勤",type:"team"}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components:{
|
|
|
|
|
TabComp,
|
|
|
|
|