diff --git a/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/attendanceStatistics/attendanceStatistics.vue b/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/attendanceStatistics/attendanceStatistics.vue index 1268882..3f4dc09 100644 --- a/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/attendanceStatistics/attendanceStatistics.vue +++ b/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/attendanceStatistics/attendanceStatistics.vue @@ -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,