|
@@ -182,6 +182,7 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
var list = this.user.moduleList
|
|
var list = this.user.moduleList
|
|
|
|
+ let jurisdictionNameList = this.user.functionList.map(item => item.name)
|
|
for (var i in list) {
|
|
for (var i in list) {
|
|
if(list[i].name == '工时报告') {
|
|
if(list[i].name == '工时报告') {
|
|
this.routers.push({name: '查看日报',url: '/calendar',icon: 'description'})
|
|
this.routers.push({name: '查看日报',url: '/calendar',icon: 'description'})
|
|
@@ -191,6 +192,9 @@
|
|
if (this.user.companyId != 3092) {
|
|
if (this.user.companyId != 3092) {
|
|
this.routers.push({name: '按周填报',url: '/weekEdit',icon: 'records'})
|
|
this.routers.push({name: '按周填报',url: '/weekEdit',icon: 'records'})
|
|
}
|
|
}
|
|
|
|
+ if(jurisdictionNameList.some(item => item == '代填日报')) {
|
|
|
|
+ this.routers.push({name: '代填日报',url: '/edit?substitute=true',icon: 'completed'})
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if(list[i].name == '待办任务') {
|
|
if(list[i].name == '待办任务') {
|
|
this.routers.push({
|
|
this.routers.push({
|