邵佳豪 4 years ago
parent
commit
dbafb8371f
  1. 3
      src/app/key-unit/key-unit-management/key-unit-management.component.html
  2. 23
      src/app/plan-audit/wait-examineer/wait-examineer.component.ts
  3. 6
      src/app/plan-management/entry-plan-look/entry-plan-look.component.html
  4. 25
      src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
  5. 5
      src/app/plan-management/meet-plan/meet-plan.component.html
  6. 10
      src/app/plan-management/meet-plan/meet-plan.component.ts
  7. 7
      src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html
  8. 12
      src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
  9. 3
      src/app/plan-management/pass-plan/pass-plan.component.html
  10. 5
      src/app/plan-management/type-plan/type-plan.component.html
  11. 12
      src/app/plan-management/type-plan/type-plan.component.ts
  12. 6
      src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.ts
  13. 7
      src/app/statistic-analysis/addUnit/add-unit-three-bar-details/add-unit-three-bar-details.component.ts
  14. 7
      src/app/statistic-analysis/addUnit/add-unit-three-line-details/add-unit-three-line-details.component.ts
  15. 7
      src/app/statistic-analysis/addUnit/add-unit-two-time/add-unit-two-time.component.ts
  16. 19
      src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts
  17. 39
      src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts
  18. 5
      src/app/statistic-analysis/all-plan/all-plan.component.ts
  19. 4
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
  20. 11
      src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts
  21. 3
      src/app/statistic-analysis/buildingType/building-type-two-forward/building-type-two-forward.component.ts
  22. 7
      src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts
  23. 5
      src/app/statistic-analysis/compang-info/compang-info.component.ts
  24. 6
      src/app/statistic-analysis/state/page-one/page-one.component.ts
  25. 8
      src/app/statistic-analysis/state/page-there/page-there.component.ts
  26. 7
      src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts
  27. 9
      src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts
  28. 12
      src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts
  29. 2
      src/app/working-area/model/axLegend.ts
  30. 6
      src/app/working-area/working-area.component.ts

3
src/app/key-unit/key-unit-management/key-unit-management.component.html

@ -81,7 +81,8 @@
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width">
<input type="number" oninput="if(value>100)value=100;if(value<0)value=0" matInput placeholder="请输入完整度最小值" name="integrityScoreMin" [(ngModel)]="integrityScoreMin" autocomplete="off"> <input type="number" oninput="if(value>100)value=100;if(value<0)value=0" matInput placeholder="请输入完整度最小值" name="integrityScoreMin" [(ngModel)]="integrityScoreMin" autocomplete="off">
</mat-form-field> </mat-form-field>
<mat-icon aria-hidden="false" style="position: relative;right: 125px;top: 5px;">arrow forward</mat-icon> 🠚
<!-- <mat-icon aria-hidden="false" style="width: 5px;padding: 0;margin:0">arrow forward</mat-icon> -->
<mat-form-field class="example-full-width" style="margin-left: 5px;"> <mat-form-field class="example-full-width" style="margin-left: 5px;">
<input type="number" oninput="if(value>100)value=100;if(value<0)value=0" matInput placeholder="请输入完整度最大值" name="integrityScoreMax" [(ngModel)]="integrityScoreMax" autocomplete="off"> <input type="number" oninput="if(value>100)value=100;if(value<0)value=0" matInput placeholder="请输入完整度最大值" name="integrityScoreMax" [(ngModel)]="integrityScoreMax" autocomplete="off">
</mat-form-field> </mat-form-field>

23
src/app/plan-audit/wait-examineer/wait-examineer.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-12-25 16:13:50 * @Date: 2020-12-25 16:13:50
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-23 16:36:07 * @LastEditTime: 2021-03-25 08:45:05
*/ */
import { Component, Inject, OnInit } from '@angular/core'; import { Component, Inject, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms'; import { FormControl } from '@angular/forms';
@ -37,7 +37,7 @@ export class WaitExamineerComponent implements OnInit {
{name:"大队",value:"2"}, {name:"大队",value:"2"},
{name:"中队",value:"3"} {name:"中队",value:"3"}
] ]
this.PlanLevel=0 //this.PlanLevel=0
} }
if(level == "1"){//如果是支队 if(level == "1"){//如果是支队
this.preparelevels = [ this.preparelevels = [
@ -45,20 +45,20 @@ export class WaitExamineerComponent implements OnInit {
{name:"大队",value:"2"}, {name:"大队",value:"2"},
{name:"中队",value:"3"} {name:"中队",value:"3"}
] ]
this.PlanLevel=1 //this.PlanLevel=1
} }
if(level == "2"){//如果是大队 if(level == "2"){//如果是大队
this.preparelevels = [ this.preparelevels = [
{name:"大队",value:"2"}, {name:"大队",value:"2"},
{name:"中队",value:"3"} {name:"中队",value:"3"}
] ]
this.PlanLevel=2 //this.PlanLevel=2
} }
if(level == "3"){//如果是中队 if(level == "3"){//如果是中队
this.preparelevels = [ this.preparelevels = [
{name:"中队",value:"3"} {name:"中队",value:"3"}
] ]
this.PlanLevel=3 //this.PlanLevel=3
} }
var scrollflaga = true; var scrollflaga = true;
var win=document.getElementById('tbodydiv') var win=document.getElementById('tbodydiv')
@ -134,19 +134,8 @@ export class WaitExamineerComponent implements OnInit {
record(){ record(){
this.level='' this.level=''
this.projectlevel='' this.projectlevel=''
this.PlanLevel=''
let level = sessionStorage.getItem("level"); let level = sessionStorage.getItem("level");
if(level == "0"){//如果是总队
this.PlanLevel=0
}
if(level == "1"){//如果是支队
this.PlanLevel=1
}
if(level == "2"){//如果是大队
this.PlanLevel=2
}
if(level == "3"){//如果是中队
this.PlanLevel=3
}
this.getAlltabledate() this.getAlltabledate()
} }
//radio点击事件 //radio点击事件

6
src/app/plan-management/entry-plan-look/entry-plan-look.component.html

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-12-24 10:59:48 * @Date: 2020-12-24 10:59:48
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-24 13:36:02 * @LastEditTime: 2021-03-25 14:48:39
--> -->
<!-- <p>录入预案</p> --> <!-- <p>录入预案</p> -->
<div style="overflow: auto;height: 100%;"> <div style="overflow: auto;height: 100%;">
@ -76,12 +76,12 @@
<th mat-header-cell *matHeaderCellDef>操作</th> <th mat-header-cell *matHeaderCellDef>操作</th>
<td mat-cell *matCellDef="let element"> <td mat-cell *matCellDef="let element">
<span (click)="changeName(element)" *ngIf="element.auditStatus==8">改名</span> <span (click)="changeName(element)" *ngIf="element.auditStatus==8">改名</span>
<span (click)="editPlan(element)" [ngClass]="{'grey': element.planMode == '0' || element.planMode == '3' || element.auditStatus == '1' || element.auditStatus == '2'}">编辑</span> <span (click)="editPlan(element)" [ngClass]="{'grey': !(element.auditStatus!='16' && element.auditStatus != '1')}">编辑</span>
<span (click)="lookPlan(element)">查看</span> <span (click)="lookPlan(element)">查看</span>
<span (click)="readFile(element)" [ngClass]="{'grey': element.planMode == '1' || element.planMode == '2' || element.planMode == '3'}">下载</span> <span (click)="readFile(element)" [ngClass]="{'grey': element.planMode == '1' || element.planMode == '2' || element.planMode == '3'}">下载</span>
<span (click)="deletePlan(element)" *ngIf="element.auditStatus==8">删除</span> <span (click)="deletePlan(element)" *ngIf="element.auditStatus==8">删除</span>
<span (click)="auditResult(element)">审批结果</span> <span (click)="auditResult(element)">审批结果</span>
<span (click)="submitAudit(element)" *ngIf="element.auditStatus == 8 " >提交审核</span> <span (click)="submitAudit(element)" *ngIf="element.auditStatus!=1&&element.auditStatus!=16">提交审核</span>
<span (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span> <span (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span>
</td> </td>
</ng-container> </ng-container>

25
src/app/plan-management/entry-plan-look/entry-plan-look.component.ts

@ -136,8 +136,10 @@ export class EntryPlanLookComponent implements OnInit {
uid: identityJsonparse.sub, uid: identityJsonparse.sub,
nickName: identityJsonparse.name, nickName: identityJsonparse.name,
avatar: "", avatar: "",
privilege: [ privilege: e.auditStatus!='1'&&e.auditStatus!='16'?[
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT' 'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
]:[
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
], ],
}, },
} }
@ -275,15 +277,20 @@ export class EntryPlanLookComponent implements OnInit {
const config = new MatSnackBarConfig(); const config = new MatSnackBarConfig();
config.verticalPosition = 'top'; config.verticalPosition = 'top';
config.duration = 3000 config.duration = 3000
if(element.auditStatus == 4){ /* if(element.auditStatus == 4){
this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config); this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config);
}else{ } */
if(element.planType == 1){//如果提交审核的是二维预案 if(element.planType == 1){//如果提交审核的是二维预案
this.http.put(`/api/PlanComponents2D/${element.id}/Commit`,"").subscribe(data=>{ if(element.auditStatus ==8){
this.getAllPlanComponents() this.http.put(`/api/PlanComponents2D/${element.id}/Commit`,"").subscribe(data=>{
},err => { this.getAllPlanComponents()
this.snackBar.open(err,'确定',config); },err => {
}) this.snackBar.open(err,'确定',config);
})
}
else{
this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config);
}
}else{ }else{
this.http.put(`/api/PlanComponents/${element.id}/Commit`,"").subscribe(data=>{ this.http.put(`/api/PlanComponents/${element.id}/Commit`,"").subscribe(data=>{
this.getAllPlanComponents() this.getAllPlanComponents()
@ -291,7 +298,7 @@ export class EntryPlanLookComponent implements OnInit {
this.snackBar.open(err,'确定',config); this.snackBar.open(err,'确定',config);
}) })
} }
}
} }
//撤销审核 //撤销审核

5
src/app/plan-management/meet-plan/meet-plan.component.html

@ -33,7 +33,8 @@
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width">
<input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime"> <input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime">
</mat-form-field> </mat-form-field>
<mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> <!-- <mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> -->
<span style="margin-left: 15px;">🠊</span>
<mat-form-field class="example-full-width" style="margin-left: 10px;"> <mat-form-field class="example-full-width" style="margin-left: 10px;">
<input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime"> <input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime">
</mat-form-field> </mat-form-field>
@ -137,7 +138,7 @@
<th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th> <th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th>
<td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;"> <td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;">
<span style="color: blue;" (click)='openPlan(element)'>查看预案</span> <span style="color: blue;" (click)='openPlan(element)'>查看预案</span>
<span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" *ngIf="element.auditStatus == 8 || element.auditStatus == 4" >提交审核</span> <span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" *ngIf="element.auditStatus!=1&&element.auditStatus!=16">提交审核</span>
<span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span> <span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span>
<span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span> <span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span>
<span style="color: blue;margin-left: 4px;" (click)='readFile(element)'>下载</span> <span style="color: blue;margin-left: 4px;" (click)='readFile(element)'>下载</span>

10
src/app/plan-management/meet-plan/meet-plan.component.ts

@ -160,15 +160,15 @@ export class MeetPlanComponent implements OnInit {
const config = new MatSnackBarConfig(); const config = new MatSnackBarConfig();
config.verticalPosition = 'top'; config.verticalPosition = 'top';
config.duration = 3000 config.duration = 3000
if(element.auditStatus == 4){ /* if(element.auditStatus == 4){
this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config); this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config);
}else{ } */
this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{ this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{
this.getAlltabledate() this.getAlltabledate()
},err => { },err => {
this.snackBar.open(err,'确定',config); this.snackBar.open(err,'确定',config);
}) })
}
} }
//撤销审核 //撤销审核
@ -208,8 +208,10 @@ export class MeetPlanComponent implements OnInit {
uid: identityJsonparse.sub, uid: identityJsonparse.sub,
nickName: identityJsonparse.name, nickName: identityJsonparse.name,
avatar: "", avatar: "",
privilege: [ privilege:element.auditStatus!='1'&&element.auditStatus!='16'?[
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT' 'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
]:[
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
], ],
}, },
} }

7
src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-12-24 14:15:10 * @Date: 2020-12-24 14:15:10
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-23 14:24:41 * @LastEditTime: 2021-03-25 16:33:38
--> -->
<div style="height: 100%;overflow-y: auto;"> <div style="height: 100%;overflow-y: auto;">
<div class="header" > <div class="header" >
@ -30,7 +30,8 @@
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width">
<input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime"> <input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime">
</mat-form-field> </mat-form-field>
<mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> <!-- <mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> -->
<span style="margin-left: 15px;">🠊</span>
<mat-form-field class="example-full-width" style="margin-left: 10px;"> <mat-form-field class="example-full-width" style="margin-left: 10px;">
<input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime"> <input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime">
</mat-form-field> </mat-form-field>
@ -134,7 +135,7 @@
<th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th> <th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th>
<td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;"> <td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;">
<span style="color: blue;" (click)='openPlan(element)'>查看预案</span> <span style="color: blue;" (click)='openPlan(element)'>查看预案</span>
<span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" *ngIf="element.auditStatus == 8 " >提交审核</span> <span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" *ngIf="element.auditStatus!=1&&element.auditStatus!=16">提交审核</span>
<span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span> <span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span>
<span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span> <span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span>
<!-- <span style="color: blue;margin-left: 4px;" *ngIf="element.auditStatus == 2">审核通过</span> --> <!-- <span style="color: blue;margin-left: 4px;" *ngIf="element.auditStatus == 2">审核通过</span> -->

12
src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-12-24 14:15:10 * @Date: 2020-12-24 14:15:10
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-23 15:18:08 * @LastEditTime: 2021-03-25 15:16:17
*/ */
import { Component, OnInit, ViewChild, Inject } from '@angular/core'; import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http' import { HttpClient } from '@angular/common/http'
@ -186,18 +186,18 @@ export class OnetwoEntryPlanComponent implements OnInit {
const config = new MatSnackBarConfig(); const config = new MatSnackBarConfig();
config.verticalPosition = 'top'; config.verticalPosition = 'top';
config.duration = 3000 config.duration = 3000
if(element.auditStatus == 4){ /* if(element.auditStatus == 4){
const config = new MatSnackBarConfig(); const config = new MatSnackBarConfig();
config.verticalPosition = 'top'; config.verticalPosition = 'top';
config.duration = 3000 config.duration = 3000
this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config); this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config);
}else{ } */
this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{ this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{
this.getAlltabledate() this.getAlltabledate()
},err => { },err => {
this.snackBar.open(err,'确定',config); this.snackBar.open(err,'确定',config);
}) })
}
} }
//撤销审核 //撤销审核
@ -233,8 +233,10 @@ export class OnetwoEntryPlanComponent implements OnInit {
uid: identityJsonparse.sub, uid: identityJsonparse.sub,
nickName: identityJsonparse.name, nickName: identityJsonparse.name,
avatar: "", avatar: "",
privilege: [ privilege:element.auditStatus!='1'&&element.auditStatus!='16'?[
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT' 'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
]:[
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
], ],
}, },
} }

3
src/app/plan-management/pass-plan/pass-plan.component.html

@ -81,7 +81,8 @@
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width">
<input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime"> <input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime">
</mat-form-field> </mat-form-field>
<mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> <!-- <mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> -->
<span style="margin-left: 15px;">🠊</span>
<mat-form-field class="example-full-width" style="margin-left: 10px;"> <mat-form-field class="example-full-width" style="margin-left: 10px;">
<input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime"> <input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime">
</mat-form-field> </mat-form-field>

5
src/app/plan-management/type-plan/type-plan.component.html

@ -23,7 +23,8 @@
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width">
<input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime"> <input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime">
</mat-form-field> </mat-form-field>
<mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> <!-- <mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> -->
<span style="margin-left: 15px;">🠊</span>
<mat-form-field class="example-full-width" style="margin-left: 10px;"> <mat-form-field class="example-full-width" style="margin-left: 10px;">
<input type="date" matInput autocomplete="off" name="endtime" [(ngModel)]="endtime"> <input type="date" matInput autocomplete="off" name="endtime" [(ngModel)]="endtime">
</mat-form-field> </mat-form-field>
@ -114,7 +115,7 @@
<th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th> <th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th>
<td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;"> <td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;">
<span style="color: blue;" (click)='openPlan(element)'>查看预案</span> <span style="color: blue;" (click)='openPlan(element)'>查看预案</span>
<span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" *ngIf="element.auditStatus == 8 " >提交审核</span> <span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" *ngIf="element.auditStatus!=1&&element.auditStatus!=16">提交审核</span>
<span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span> <span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1">撤销审核</span>
<span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span> <span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span>
<span style="color: blue;margin-left: 4px;" (click)='readFile(element)'>下载</span> <span style="color: blue;margin-left: 4px;" (click)='readFile(element)'>下载</span>

12
src/app/plan-management/type-plan/type-plan.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2021-01-06 09:47:43 * @Date: 2021-01-06 09:47:43
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-23 14:22:18 * @LastEditTime: 2021-03-25 15:16:56
*/ */
import { Component, OnInit, ViewChild, Inject } from '@angular/core'; import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http' import { HttpClient } from '@angular/common/http'
@ -170,15 +170,15 @@ export class TypePlanComponent implements OnInit {
const config = new MatSnackBarConfig(); const config = new MatSnackBarConfig();
config.verticalPosition = 'top'; config.verticalPosition = 'top';
config.duration = 3000 config.duration = 3000
if(element.auditStatus == 4){ /* if(element.auditStatus == 4){
this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config); this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config);
}else{ } */
this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{ this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{
this.getAlltabledate() this.getAlltabledate()
},err => { },err => {
this.snackBar.open(err,'确定',config); this.snackBar.open(err,'确定',config);
}) })
}
} }
//撤销审核 //撤销审核
@ -214,8 +214,10 @@ export class TypePlanComponent implements OnInit {
uid: identityJsonparse.sub, uid: identityJsonparse.sub,
nickName: identityJsonparse.name, nickName: identityJsonparse.name,
avatar: "", avatar: "",
privilege: [ privilege: element.auditStatus!='1'&&element.auditStatus!='16'?[
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT' 'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
]:[
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
], ],
}, },
} }

6
src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.ts

@ -15,6 +15,10 @@ export class AddUnitOneComponent implements OnInit {
tabledata tabledata
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
/* this.buildData.push(this.echartsData.getData(null,`/api/StatisticsAnalysis/BuildingTypes`)) /* this.buildData.push(this.echartsData.getData(null,`/api/StatisticsAnalysis/BuildingTypes`))
this.orData=this.echartsData.getData(null,`/api/StatisticsAnalysis/Companies`) */ this.orData=this.echartsData.getData(null,`/api/StatisticsAnalysis/Companies`) */
this.echartsData.getData(null,`/api/StatisticsAnalysis/Companies`) this.echartsData.getData(null,`/api/StatisticsAnalysis/Companies`)
@ -134,7 +138,7 @@ export class AddUnitOneComponent implements OnInit {
tid=="pieone"?this.echartsData.zuzhiorBuilding="zhi":this.echartsData.zuzhiorBuilding="building" tid=="pieone"?this.echartsData.zuzhiorBuilding="zhi":this.echartsData.zuzhiorBuilding="building"
if((this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2')&&this.tishiData.length>0){ if((this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2')&&this.tishiData.length>0){
//总队,支队,大队跳转 //总队,支队,大队跳转
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type'],{queryParams:{'level':params.name,'id':params.data.id}}); this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type'],{queryParams:{'level':params.name,'id':params.data.id,'type':tid=="pieone"?'zhi':'build'}});
}else{ }else{
//中队跳转 //中队跳转
this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1,'buildid':tid!="pieone"?params.data.id:'','jsid':tid=="pieone"?params.data.id:''}}); this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1,'buildid':tid!="pieone"?params.data.id:'','jsid':tid=="pieone"?params.data.id:''}});

7
src/app/statistic-analysis/addUnit/add-unit-three-bar-details/add-unit-three-bar-details.component.ts

@ -24,6 +24,10 @@ export class AddUnitThreeBarDetailsComponent implements OnInit {
organizationId=[] organizationId=[]
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.dateInit () this.dateInit ()
this.route.queryParams.subscribe(params => { this.route.queryParams.subscribe(params => {
this.time = params['time']; this.time = params['time'];
@ -225,7 +229,8 @@ export class AddUnitThreeBarDetailsComponent implements OnInit {
}else{ }else{
} */ } */
window.history.go(-1) //sessionStorage.setItem('refresh', 'true');
history.go(-1);
} }
tableTooltip(params:any){ tableTooltip(params:any){

7
src/app/statistic-analysis/addUnit/add-unit-three-line-details/add-unit-three-line-details.component.ts

@ -20,6 +20,10 @@ export class AddUnitThreeLineDetailsComponent implements OnInit {
qopao qopao
lastId lastId
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.serviceData.selectType=0 this.serviceData.selectType=0
this.dateInit () this.dateInit ()
this.route.queryParams.subscribe(params => { this.route.queryParams.subscribe(params => {
@ -211,7 +215,8 @@ export class AddUnitThreeLineDetailsComponent implements OnInit {
} }
//返回按钮 //返回按钮
backBtn(){ backBtn(){
window.history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
} }
tableTooltip(params:any){ tableTooltip(params:any){

7
src/app/statistic-analysis/addUnit/add-unit-two-time/add-unit-two-time.component.ts

@ -18,12 +18,13 @@ export class AddUnitTwoTimeComponent implements OnInit {
lastId lastId
tabledata tabledata
zongcount=0 zongcount=0
zhiorbuild
ngOnInit(): void { ngOnInit(): void {
this.serviceData.selectType=0 this.serviceData.selectType=0
this.dateInit () this.dateInit ()
this.route.queryParams.subscribe(param=>{ this.route.queryParams.subscribe(param=>{
this.headname=param.level this.headname=param.level
//this.type=param.type this.zhiorbuild=param.type
this.lastId=param.id this.lastId=param.id
}); });
this.getdata() this.getdata()
@ -68,10 +69,10 @@ export class AddUnitTwoTimeComponent implements OnInit {
}, 1000); }, 1000);
} }
forward(){ forward(){
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type'],{queryParams:{'level':this.headname,'id':this.lastId}}) this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type'],{queryParams:{'level':this.headname,'id':this.lastId,'type':this.zhiorbuild=='zhi'?'zhi':'build'}})
} }
reverse(){ reverse(){
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time'],{queryParams:{'level':this.headname,'id':this.lastId}}) this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time'],{queryParams:{'level':this.headname,'id':this.lastId,'type':this.zhiorbuild=='zhi'?'zhi':'build'}})
} }
selectType:string = 'month'; //选择当前的 查询类型 按月/年 selectType:string = 'month'; //选择当前的 查询类型 按月/年

19
src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts

@ -21,7 +21,8 @@ export class AddUnitTwoTypeDetailsComponent implements OnInit {
} }
//返回 //返回
goBack () { goBack () {
history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
this.echartsData.statefulInspectionToggle = true this.echartsData.statefulInspectionToggle = true
} }
@ -32,18 +33,24 @@ export class AddUnitTwoTypeDetailsComponent implements OnInit {
canshuId canshuId
tabledata tabledata
thisorId=[] thisorId=[]
zhiorbuild
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.route.queryParams.subscribe(params => { this.route.queryParams.subscribe(params => {
this.organizationName = params['organizationName']; this.organizationName = params['organizationName'];
this.buildingTypeName = params['buildingTypeName']; this.buildingTypeName = params['buildingTypeName'];
this.lastId=params['id'] this.lastId=params['id']
this.canshuId=params['zhuId'] this.canshuId=params['zhuId']
this.zhiorbuild=params['type']
}); });
let paramsdata:any = { let paramsdata:any = {
//id:this.echartsData.zuzhiorBuilding=='zhi'? this.canshuId:this.lastId, //id:this.zhiorbuild=='zhi'? this.canshuId:this.lastId,
organizationId:this.echartsData.zuzhiorBuilding=='zhi'?this.lastId:this.canshuId organizationId:this.zhiorbuild=='zhi'?this.lastId:this.canshuId
} }
this.echartsData.getData(paramsdata,`/api/StatisticsAnalysis/Companies/BuildingTypes/${this.echartsData.zuzhiorBuilding=='zhi'?this.canshuId:this.lastId}`) this.echartsData.getData(paramsdata,`/api/StatisticsAnalysis/Companies/BuildingTypes/${this.zhiorbuild=='zhi'?this.canshuId:this.lastId}`)
this.setTimeoutObj = window.setTimeout(()=>{ this.setTimeoutObj = window.setTimeout(()=>{
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
//console.log(this.tabledata) //console.log(this.tabledata)
@ -157,9 +164,9 @@ export class AddUnitTwoTypeDetailsComponent implements OnInit {
if((this.echartsData.level=='0'||this.echartsData.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){ if((this.echartsData.level=='0'||this.echartsData.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){
//总队和支队跳转 //总队和支队跳转
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time/three_barDetails'],{queryParams:{'time':'','buildingTpye':option.xAxis.data[xIndex]+this.organizationName,'zhuid':option.xAxis.id[xIndex],'id':this.echartsData.zuzhiorBuilding=='zhi'?this.canshuId:this.lastId}}); this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time/three_barDetails'],{queryParams:{'time':'','buildingTpye':option.xAxis.data[xIndex]+this.organizationName,'zhuid':option.xAxis.id[xIndex],'id':this.zhiorbuild=='zhi'?this.canshuId:this.lastId,'type':this.zhiorbuild=='zhi'?'zhi':'build'}});
}else{ }else{
this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.echartsData.zuzhiorBuilding=='zhi'?this.canshuId:this.lastId}}); this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.zhiorbuild=='zhi'?this.canshuId:this.lastId}});
} }
} }

39
src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts

@ -12,10 +12,10 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
constructor(private router: Router,public data:EchartsDataService,private route:ActivatedRoute) { } constructor(private router: Router,public data:EchartsDataService,private route:ActivatedRoute) { }
forward(){ forward(){
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type'],{queryParams:{'level':this.headname,'id':this.lastId}}) this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type'],{queryParams:{'level':this.headname,'id':this.lastId,'type':this.zhiorbuild=='zhi'?'zhi':'build'}})
} }
reverse(){ reverse(){
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time'],{queryParams:{'level':this.headname,'id':this.lastId}}) this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time'],{queryParams:{'level':this.headname,'id':this.lastId,'type':this.zhiorbuild=='zhi'?'zhi':'build'}})
} }
url = "/statisticanalysis/addUnit_one/addUnit_two_type" //当前路由地址 url = "/statisticanalysis/addUnit_one/addUnit_two_type" //当前路由地址
setTimeoutObj//延时器需要清除 setTimeoutObj//延时器需要清除
@ -23,21 +23,26 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
lastId lastId
organizationId=[] organizationId=[]
buildingTypeId=[] buildingTypeId=[]
zhiorbuild
ngOnInit(): void { ngOnInit(): void {
//this.data.zuzhiorBuilding=="zhi" if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.route.queryParams.subscribe(param=>{ this.route.queryParams.subscribe(param=>{
this.headname=param.level this.headname=param.level
this.lastId=param.id this.lastId=param.id
this.zhiorbuild=param.type
}); });
let paramsdata:any = { let paramsdata:any = {
id:this.lastId, id:this.lastId,
//organizationId:'1' //organizationId:'1'
} }
this.data.getData(this.data.zuzhiorBuilding=="zhi"?paramsdata:null,this.data.zuzhiorBuilding=="zhi"?`/api/StatisticsAnalysis/Companies/Organizations/${this.lastId}`:`/api/StatisticsAnalysis/Companies/BuildingTypes/${this.lastId}`) this.data.getData(this.zhiorbuild=="zhi"?paramsdata:null,this.zhiorbuild=="zhi"?`/api/StatisticsAnalysis/Companies/Organizations/${this.lastId}`:`/api/StatisticsAnalysis/Companies/BuildingTypes/${this.lastId}`)
this.setTimeoutObj = window.setTimeout(()=>{ this.setTimeoutObj = window.setTimeout(()=>{
this.tabledata=JSON.parse(JSON.stringify(this.data.allDate)) this.tabledata=JSON.parse(JSON.stringify(this.data.allDate))
//console.log(this.tabledata) //console.log(this.tabledata)
if(this.data.zuzhiorBuilding=="zhi"){ if(this.zhiorbuild=="zhi"){
for(var i=0;i<this.tabledata[0].buildingTypes.length;i++){ for(var i=0;i<this.tabledata[0].buildingTypes.length;i++){
this.buildingData.push(this.tabledata[0].buildingTypes[i].buildingTypeName) this.buildingData.push(this.tabledata[0].buildingTypes[i].buildingTypeName)
this.buildnumData.push(this.tabledata[0].buildingTypes[i].count) this.buildnumData.push(this.tabledata[0].buildingTypes[i].count)
@ -51,7 +56,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
} }
} }
this.tiaoshiPao=this.data.qipao(this.tiaoshiPao,this.data.zuzhiorBuilding=="zhi"?this.buildnumData:this.zhiNumData,this.data.zuzhiorBuilding=="zhi"?this.buildingData:this.zhiNameData) this.tiaoshiPao=this.data.qipao(this.tiaoshiPao,this.zhiorbuild=="zhi"?this.buildnumData:this.zhiNumData,this.zhiorbuild=="zhi"?this.buildingData:this.zhiNameData)
//this.initCharts() //this.initCharts()
this.barEcharts() this.barEcharts()
},1000) },1000)
@ -144,7 +149,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
//气泡提示数据获取 //气泡提示数据获取
bianli(){ bianli(){
var arrshuzu='['; var arrshuzu='[';
if(this.data.zuzhiorBuilding=="zhi"){ if(this.zhiorbuild=="zhi"){
for(var i=0;i<this.buildnumData.length;i++){ for(var i=0;i<this.buildnumData.length;i++){
arrshuzu+='{"value":'+this.buildnumData[i]+',"coord":['+i+','+this.buildnumData[i]+'],"name":'+'"'+this.buildingData[i]+'"'+'},' arrshuzu+='{"value":'+this.buildnumData[i]+',"coord":['+i+','+this.buildnumData[i]+'],"name":'+'"'+this.buildingData[i]+'"'+'},'
} }
@ -207,7 +212,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: (params)=>{ formatter: (params)=>{
return this.data.tableTooltip(this.data.zuzhiorBuilding=="zhi"?this.data.buildingType:this.data.tableDataZhi,params.name) return this.data.tableTooltip(this.zhiorbuild=="zhi"?this.data.buildingType:this.data.tableDataZhi,params.name)
}, },
position: this.data.tableTooltipNoShow2 position: this.data.tableTooltipNoShow2
}, },
@ -219,7 +224,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
fontSize:18, fontSize:18,
color:"#000000" color:"#000000"
}, },
data:this.data.zuzhiorBuilding=="zhi"? this.zhiNameData:this.buildingData data:this.zhiorbuild=="zhi"? this.zhiNameData:this.buildingData
}, },
series: [ series: [
{ {
@ -238,7 +243,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
} }
}, },
}, },
data:this.data.zuzhiorBuilding=="zhi"? [ data:this.zhiorbuild=="zhi"? [
{value: 500, name: this.zhiNameData[0]}, {value: 500, name: this.zhiNameData[0]},
{value: 800, name: this.zhiNameData[1]}, {value: 800, name: this.zhiNameData[1]},
{value: 900, name: this.zhiNameData[2]}, {value: 900, name: this.zhiNameData[2]},
@ -308,9 +313,9 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
bottom: 30 bottom: 30
}, },
xAxis: { xAxis: {
id:this.data.zuzhiorBuilding=="zhi"?this.buildingTypeId:this.organizationId, id:this.zhiorbuild=="zhi"?this.buildingTypeId:this.organizationId,
type: 'category', type: 'category',
data:this.data.zuzhiorBuilding=="zhi"?this.buildingData: this.zhiNameData, data:this.zhiorbuild=="zhi"?this.buildingData: this.zhiNameData,
axisLabel:{ axisLabel:{
//this.axisLabel, //this.axisLabel,
interval: 0, interval: 0,
@ -335,12 +340,12 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: (params)=>{ formatter: (params)=>{
return this.data.zuzhiorBuilding=="zhi"?this.data.biaogeTishiZhi(params): this.data.biaogeTishida(params) return this.zhiorbuild=="zhi"?this.data.biaogeTishiZhi(params): this.data.biaogeTishida(params)
}, },
position: this.data.tableTooltipNoShow2 position: this.data.tableTooltipNoShow2
}, },
series: [{ series: [{
data: this.data.zuzhiorBuilding=="zhi"?this.buildnumData: this.zhiNumData, data: this.zhiorbuild=="zhi"?this.buildnumData: this.zhiNumData,
type: 'bar', type: 'bar',
markPoint: { markPoint: {
data: this.tiaoshiPao data: this.tiaoshiPao
@ -357,10 +362,10 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
const pointInPixel= [params.offsetX, params.offsetY]; const pointInPixel= [params.offsetX, params.offsetY];
if (item.echart.containPixel('grid',pointInPixel)){ if (item.echart.containPixel('grid',pointInPixel)){
let xIndex=item.echart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; let xIndex=item.echart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
if(this.data.zuzhiorBuilding=='zhi'){ if(this.zhiorbuild=='zhi'){
if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].buildingTypes[xIndex].organizations.length>=1){ if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].buildingTypes[xIndex].organizations.length>=1){
//总队,支队跳转 //总队,支队跳转
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_typeDetails'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'id':this.lastId,'zhuId':option.xAxis.id[xIndex]}}) this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_typeDetails'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'id':this.lastId,'zhuId':option.xAxis.id[xIndex],'type':this.zhiorbuild=='zhi'?'zhi':'build'}})
} }
else{ else{
this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':this.lastId,'buildid':option.xAxis.id[xIndex]}}); this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':this.lastId,'buildid':option.xAxis.id[xIndex]}});
@ -368,7 +373,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
}else{ }else{
if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){ if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){
//总队,支队跳转 //总队,支队跳转
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_typeDetails'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'id':this.lastId,'zhuId':option.xAxis.id[xIndex]}}) this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_typeDetails'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'id':this.lastId,'zhuId':option.xAxis.id[xIndex],'type':this.zhiorbuild=='zhi'?'zhi':'build'}})
} }
else{ else{
this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.lastId}}); this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.lastId}});

5
src/app/statistic-analysis/all-plan/all-plan.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2021-03-15 11:32:30 * @Date: 2021-03-15 11:32:30
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-22 10:44:47 * @LastEditTime: 2021-03-25 10:41:45
*/ */
import { Component, OnInit, ViewChild, Inject } from '@angular/core'; import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http' import { HttpClient } from '@angular/common/http'
@ -58,7 +58,8 @@ export class AllPlanComponent implements OnInit {
} }
//返回 //返回
goBack () { goBack () {
history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
//this.echartsData.statefulInspectionToggle = true //this.echartsData.statefulInspectionToggle = true
} }
//获得所有预案 //获得所有预案

4
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts

@ -31,6 +31,10 @@ export class BuildingTypeOneComponent implements OnInit {
indexData=[]//所有数据 indexData=[]//所有数据
tabledata tabledata
initCharts(){ initCharts(){
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
//console.log(this.tabledata) //console.log(this.tabledata)
for(var i=0;i<this.tabledata[0].buildingTypes.length;i++){ for(var i=0;i<this.tabledata[0].buildingTypes.length;i++){

11
src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts

@ -1,6 +1,7 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { ActivatedRoute } from '@angular/router'; import { ActivatedRoute } from '@angular/router';
import { Local } from 'protractor/built/driverProviders';
import {EchartsDataService} from '../../echarts-data.service'; import {EchartsDataService} from '../../echarts-data.service';
declare var echarts: any; declare var echarts: any;
@Component({ @Component({
@ -19,7 +20,8 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
} }
//返回 //返回
goBack () { goBack () {
history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
this.echartsData.statefulInspectionToggle = true this.echartsData.statefulInspectionToggle = true
} }
@ -30,6 +32,10 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
organizationId=[]//本层id organizationId=[]//本层id
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.route.queryParams.subscribe(params => { this.route.queryParams.subscribe(params => {
this.organizationName = params['organizationName']; this.organizationName = params['organizationName'];
this.buildingTypeName = params['buildingTypeName']; this.buildingTypeName = params['buildingTypeName'];
@ -51,8 +57,11 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
} }
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.zhongNumData,this.zhongNameData) this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.zhongNumData,this.zhongNameData)
this.detailEcharts() this.detailEcharts()
},1000) },1000)
} }
ngOnDestroy(): void { ngOnDestroy(): void {
this.detailPlanEchart.clear() this.detailPlanEchart.clear()
this.detailPlanEchart.dispose() this.detailPlanEchart.dispose()

3
src/app/statistic-analysis/buildingType/building-type-two-forward/building-type-two-forward.component.ts

@ -33,7 +33,8 @@ export class BuildingTypeTwoForwardComponent implements OnInit {
} }
//返回 //返回
goBack () { goBack () {
history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
this.data.statefulInspectionToggle = true this.data.statefulInspectionToggle = true
} }
axisLabel = { axisLabel = {

7
src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts

@ -21,6 +21,10 @@ export class BuildingTypeTwoReverseComponent implements OnInit {
headname//标题 headname//标题
buildId//建筑id buildId//建筑id
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.route.queryParams.subscribe(param=>{ this.route.queryParams.subscribe(param=>{
this.headname=param.level this.headname=param.level
this.buildId=param.id this.buildId=param.id
@ -161,7 +165,8 @@ export class BuildingTypeTwoReverseComponent implements OnInit {
//返回 //返回
goback(){ goback(){
window.history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
} }
/* 顶部饼状图 */ /* 顶部饼状图 */
indexBzt indexBzt

5
src/app/statistic-analysis/compang-info/compang-info.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2021-03-05 15:57:08 * @Date: 2021-03-05 15:57:08
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-15 14:40:56 * @LastEditTime: 2021-03-25 10:34:49
*/ */
import { Component, OnInit, ViewChild, Inject } from '@angular/core'; import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http' import { HttpClient } from '@angular/common/http'
@ -59,7 +59,8 @@ export class CompangInfoComponent implements OnInit{
} }
//返回 //返回
goBack () { goBack () {
history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
//this.echartsData.statefulInspectionToggle = true //this.echartsData.statefulInspectionToggle = true
} }

6
src/app/statistic-analysis/state/page-one/page-one.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-01 15:24:39 * @Date: 2020-09-01 15:24:39
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-19 14:06:41 * @LastEditTime: 2021-03-25 11:17:04
*/ */
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
@ -23,6 +23,10 @@ export class PageOneComponent implements OnInit {
constructor(private router: Router,public echartsData:EchartsDataService) { } constructor(private router: Router,public echartsData:EchartsDataService) { }
ngOnInit() { ngOnInit() {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.echartsData.getData(null,`/api/StatisticsAnalysis/Plans`) this.echartsData.getData(null,`/api/StatisticsAnalysis/Plans`)
window.setTimeout(()=>{ window.setTimeout(()=>{
this.initCharts() this.initCharts()

8
src/app/statistic-analysis/state/page-there/page-there.component.ts

@ -114,6 +114,8 @@ export class PageThereComponent implements OnInit {
dateNum = [270, 253, 244, 199, 189, 173, 160, 198,200] dateNum = [270, 253, 244, 199, 189, 173, 160, 198,200]
//返回 //返回
goBack () { goBack () {
//this.zhutu.clear()
this.zhutu.dispose()
history.go(-1) history.go(-1)
this.echartsData.statefulInspectionToggle = true this.echartsData.statefulInspectionToggle = true
} }
@ -183,9 +185,9 @@ export class PageThereComponent implements OnInit {
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
/* formatter: (params)=>{ formatter: (params)=>{
return this.echartsData.biaogeTishi(params.name) return this.echartsData.biaogeTishida(params)
}, */ },
position: this.echartsData.tableTooltipNoShowq position: this.echartsData.tableTooltipNoShowq
/* backgroundColor:'rgba(255,255,255,1)', /* backgroundColor:'rgba(255,255,255,1)',
borderWidth:'1', borderWidth:'1',

7
src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts

@ -15,6 +15,10 @@ export class PageTwoNameComponent implements OnInit {
@ViewChild('zhongDuiChild') zhongDuiChild:PageZhongDuiDetailsComponent; //父组件中获得子组件的引用 @ViewChild('zhongDuiChild') zhongDuiChild:PageZhongDuiDetailsComponent; //父组件中获得子组件的引用
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.route.queryParams.subscribe(param=>{ this.route.queryParams.subscribe(param=>{
this.headname=param.level this.headname=param.level
this.type=param.type this.type=param.type
@ -142,8 +146,7 @@ export class PageTwoNameComponent implements OnInit {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: (params)=>{ formatter: (params)=>{
/* this.data.biaogeTishiyuan(params) return this.data.biaogeTishida(params)
return this.data.res */
}, },
position: this.data.tableTooltipNoShow2 position: this.data.tableTooltipNoShow2
}, },

9
src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts

@ -51,8 +51,11 @@ export class PageTwoTimeComponent implements OnInit {
//返回 //返回
goBack () { goBack () {
//this.echartsComponent.twoExample.clear()
//this.echartsComponent.dispose()
this.echartsData.statefulInspectionToggle = true this.echartsData.statefulInspectionToggle = true
window.history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
} }
selectType:string = 'month'; //选择当前的 查询类型 按月/年 selectType:string = 'month'; //选择当前的 查询类型 按月/年
@ -165,6 +168,10 @@ export class echartsComponent implements OnInit {
this.tiaoshiPao=JSON.parse(arrshuzu) this.tiaoshiPao=JSON.parse(arrshuzu)
} }
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
this.activatedRoute.queryParams.subscribe(param=>{ this.activatedRoute.queryParams.subscribe(param=>{
this.headtext=param.level this.headtext=param.level
this.type=param.type this.type=param.type

12
src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-05 13:50:45 * @Date: 2020-09-05 13:50:45
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-03-16 09:12:53 * @LastEditTime: 2021-03-25 10:56:10
*/ */
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
@ -29,6 +29,10 @@ export class PageZhongDuiDetailsComponent implements OnInit {
tabledata tabledata
organizationId=[] organizationId=[]
ngOnInit(): void { ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
location.reload();
}
let level:string; let level:string;
this.route.queryParams.subscribe(param=>{ this.route.queryParams.subscribe(param=>{
//this.headtext=param.headtext //this.headtext=param.headtext
@ -60,7 +64,9 @@ export class PageZhongDuiDetailsComponent implements OnInit {
} }
//返回 //返回
goBack () { goBack () {
history.go(-1) sessionStorage.setItem('refresh', 'true');
history.go(-1);
//this.echartsData.statefulInspectionToggle = true //this.echartsData.statefulInspectionToggle = true
} }
detailPlanEchart detailPlanEchart
@ -105,7 +111,7 @@ export class PageZhongDuiDetailsComponent implements OnInit {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: (params)=>{ formatter: (params)=>{
return this.tableTooltip(params) return this.data.biaogeTishida(params)
} }
}, },
series: [{ series: [{

2
src/app/working-area/model/axLegend.ts

@ -61,7 +61,7 @@ export class AxLegend extends AxShape {
this.removeChildren(); this.removeChildren();
let index = 1; let index = 1;
const offset = 25; const offset = 25;
let number = this.assetData.PropertyInfos[0].PropertyValue; let number = Number(this.assetData.PropertyInfos[0].PropertyValue);
const width = 300; const width = 300;
const height = 50; const height = 50;
for (let i = 0; i < number; i++) { for (let i = 0; i < number; i++) {

6
src/app/working-area/working-area.component.ts

@ -166,7 +166,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
* - * -
* - * -
*/ */
public VERSION = '1.4.1.20210303_rc'; public VERSION = '1.4.2.20210325_rc';
/** /**
* *
*/ */
@ -1180,7 +1180,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
TemplateId: null, TemplateId: null,
FloorId: this.canvasData.selectStorey.id, FloorId: this.canvasData.selectStorey.id,
Angle: 0, Angle: 0,
Enabled: null, Enabled: true,
FillMode: null, FillMode: null,
FireElementId: null, FireElementId: null,
FixedSize: null, FixedSize: null,
@ -1207,7 +1207,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
PhysicalUnit: '', PhysicalUnit: '',
PropertyName: '列', PropertyName: '列',
PropertyType: 2, PropertyType: 2,
PropertyValue: 2, PropertyValue: '2',
}, },
], ],
Scale: 1, Scale: 1,

Loading…
Cancel
Save