diff --git a/src/app/home/basic-info/unit-details/unit-details.component.ts b/src/app/home/basic-info/unit-details/unit-details.component.ts
index abd7305..2cd09f4 100644
--- a/src/app/home/basic-info/unit-details/unit-details.component.ts
+++ b/src/app/home/basic-info/unit-details/unit-details.component.ts
@@ -326,20 +326,7 @@ export class UnitDetailsComponent implements OnInit {
}
-
- handleChange(info: NzUploadChangeParam): void { // 点击事件 - 附件上传回调
- console.log('[点击事件] - 附件上传');
- console.log(info);
- if (info.file.status !== 'uploading') {
- console.log(info.file, info.fileList);
- }
- if (info.file.status === 'done') {
- this.message.success(`${info.file.name} file uploaded successfully`);
- } else if (info.file.status === 'error') {
- this.message.error(`${info.file.name} file upload failed.`);
- }
-}
listOfData: any[] = [];
listOfData2: any[] = [];
diff --git a/src/app/home/task/task.component.html b/src/app/home/task/task.component.html
index 0d52a2d..6ef57e2 100644
--- a/src/app/home/task/task.component.html
+++ b/src/app/home/task/task.component.html
@@ -10,7 +10,7 @@
工作审批
-
+
-
月度任务总览
@@ -24,7 +24,7 @@
本级计划
-
+
-
任务执行
@@ -33,7 +33,7 @@
任务申请
- -
+
-
生成周计划
diff --git a/src/app/home/task/task.component.ts b/src/app/home/task/task.component.ts
index eaff0bd..e19ece4 100644
--- a/src/app/home/task/task.component.ts
+++ b/src/app/home/task/task.component.ts
@@ -8,20 +8,31 @@ import { Router } from '@angular/router';
})
export class TaskComponent implements OnInit {
level=""
+ user=false
constructor(private router: Router) { }
ngOnInit(): void {
+ console.log(JSON.parse(sessionStorage.getItem('userData')));
this.level=JSON.parse(sessionStorage.getItem('userData')).organizationLevel
+ let user=JSON.parse(sessionStorage.getItem('userData')).name
+ if(user.indexOf('检查') != -1){
+ this.user=true
+ console.log(1);
+
+ }
if(this.router.url=="/task"){
if(this.level=="brigade"){
this.router.navigate(['/task/indicators'])
- }else if(this.level=="battalion"){
+ }else if(this.level=="battalion" && !this.user){
this.router.navigate(['/task/monthlytaskoverview'])
- }else if(this.level=="squadron"){
+ }else if(this.level=="squadron" || this.user){
this.router.navigate(['/task/taskexecution'])
}
}
+
+
+
}
}