From acb358400832cbb6d8faea362b64f065b0d0484a Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Tue, 28 Dec 2021 11:50:09 +0800 Subject: [PATCH 01/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B7=9F=E6=96=B0=E5=A2=9E=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E4=BC=98=E5=8C=96ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../key-unit-management.component.scss | 11 +- .../entry-plan-look.component.scss | 10 +- .../entry-plan-look.component.ts | 147 +++++++++++++++++- .../entry-plan/entry-plan.component.scss | 10 +- .../meet-plan/meet-plan.component.scss | 10 +- .../onetwo-entry-plan.component.scss | 42 ++--- .../open-plan/open-plan.component.scss | 10 +- .../pass-plan/pass-plan.component.scss | 10 +- .../reinforce-plan.component.scss | 10 +- .../type-plan/type-plan.component.scss | 10 +- 10 files changed, 231 insertions(+), 39 deletions(-) diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.scss b/src/app/key-unit/key-unit-management/key-unit-management.component.scss index 5239b3a..933eb9d 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.scss +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.scss @@ -93,6 +93,8 @@ } .tablebox{ .add{ + cursor:auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -100,16 +102,19 @@ font-size: 12px; line-height: 20px; color: #FFFFFF; - margin-left: 50px; + margin-left: 60px; } .weihu{ - //display: block; + cursor:auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 50px; } table{ width: 100%; diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss b/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss index a50c639..8af8f8b 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss @@ -26,6 +26,8 @@ .tablebox{ overflow: auto; .add{ + cursor: auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -35,14 +37,18 @@ color: #FFFFFF; margin-left: 50px; } + .weihu{ - //display: block; + cursor: auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 40px; } table{ width: 100%; diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts index f2cc0e7..77c5fbb 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts @@ -174,7 +174,8 @@ export class EntryPlanLookComponent implements OnInit { const config = new MatSnackBarConfig(); config.verticalPosition = 'top'; config.duration = 3000 - let isTrue = confirm('您确定编辑吗,若是公开预案会变成未公开状态') + if(e.openRange!='未公开'||e.auditStatus!=8){ + let isTrue = confirm('您确定编辑吗,若是公开预案会变成未公开状态,审核状态也会改变') if(isTrue){ if (e.auditStatus == 8) { if (e.planType == 1) { //如果是在线编辑 @@ -244,8 +245,7 @@ export class EntryPlanLookComponent implements OnInit { this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); } } else { - let isTrue = confirm('编辑后审核状态会成为未审核状态,您确定要编辑吗') - if (isTrue) { + //let isTrue = confirm('编辑后审核状态会成为未审核状态,您确定要编辑吗') if (e.planType == 1) { //如果是在线编辑 let id = e.id sessionStorage.setItem("planId", id) @@ -309,9 +309,148 @@ export class EntryPlanLookComponent implements OnInit { this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); } - } + } } + }else{ + if (e.auditStatus == 8) { + if (e.planType == 1) { //如果是在线编辑 + let id = e.id + sessionStorage.setItem("planId", id) + sessionStorage.setItem("companyId", this.companyId) + sessionStorage.setItem("buildingTypeId", this.unittypeId) + sessionStorage.setItem("editable", "1") + sessionStorage.setItem("planName", e.name) + let companyId = sessionStorage.getItem("companyId") + window.open(`/keyUnit/editunitinfo?id=${companyId}&orName=${this.route.snapshot.queryParams.orName}&orId=${this.route.snapshot.queryParams.orId}`); + } + else if (e.planType == 16) { + if (e.attachmentUrls == null) { + if(e.planMode==4){ + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&haveNew=true`) + }else{ + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true`) + } + + } + else { + let body = {}; + let resetAudit = true + let headers = new HttpHeaders({ + 'Content-Type': 'text/json' + }); + let options = { + headers + }; + this.http.put(`/api/PlanComponents/${e.id}?resetAudit=${resetAudit}`, body, options).subscribe(data => { + this.getAllPlanComponents() + this.lookPlan(e) + }/* ,err => { + this.snackBar.open(err,'确定',config); + } */) + } + + } + else if (e.planType == 2) { //三维预案 + const dialogRef = this.dialog.open(ChangeUrl, { + //改网址 + data: { element: e } + }); + dialogRef.afterClosed().subscribe( + data => { + if (data) { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('修改成功!', '确定', config); + this.getAllPlanComponents() + } + } + ); + /* if (e.url.indexOf('app') == 0) { + window.location.href = e.url + } else { + sessionStorage.setItem("url", e.url) + if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案 + window.open(`${e.url}?unitId=${this.companyId}&unitName=${this.unitdata.unitname}&editMode=true`) + } else { + window.open(`/planManagement/webLook`) + } + } */ + } else { + this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); + } + } else { + let isTrue = confirm('编辑后审核状态会成为未审核状态,您确定要编辑吗') + if (isTrue) { + if (e.planType == 1) { //如果是在线编辑 + let id = e.id + sessionStorage.setItem("planId", id) + sessionStorage.setItem("companyId", this.companyId) + sessionStorage.setItem("buildingTypeId", this.unittypeId) + sessionStorage.setItem("editable", "1") + sessionStorage.setItem("planName", e.name) + let companyId = sessionStorage.getItem("companyId") + window.open(`/keyUnit/editunitinfo?id=${companyId}&orName=${this.route.snapshot.queryParams.orName}&orId=${this.route.snapshot.queryParams.orId}`); + } + else if (e.planType == 16) { + if (e.attachmentUrls == null) { + console.log(this.compantData) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}`) + } + else { + let body = {}; + let resetAudit = true + let headers = new HttpHeaders({ + 'Content-Type': 'text/json' + }); + let options = { + headers + }; + this.http.put(`/api/PlanComponents/${e.id}?resetAudit=${resetAudit}`, body, options).subscribe(data => { + this.getAllPlanComponents() + this.lookPlan(e) + }/* ,err => { + this.snackBar.open(err,'确定',config); + } */) + } + + } + else if (e.planType == 2) { //三维预案 + /* if (e.url.indexOf('app') == 0) { + window.location.href = e.url + } else { + sessionStorage.setItem("url", e.url) + if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案 + window.open(`${e.url}?unitId=${this.companyId}&unitName=${this.unitdata.unitname}&editMode=true`) + } else { + window.open(`/planManagement/webLook`) + } + } */ + const dialogRef = this.dialog.open(ChangeUrl, { + data: { element: e } + }); + dialogRef.afterClosed().subscribe( + data => { + if (data) { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('修改成功!', '确定', config); + this.getAllPlanComponents() + + } + } + ); + } else { + + this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); + } + } + } + + } + } allPlanComponents: any //所有预案组件 diff --git a/src/app/plan-management/entry-plan/entry-plan.component.scss b/src/app/plan-management/entry-plan/entry-plan.component.scss index 3ffae1d..83b7d0f 100644 --- a/src/app/plan-management/entry-plan/entry-plan.component.scss +++ b/src/app/plan-management/entry-plan/entry-plan.component.scss @@ -101,6 +101,8 @@ } .tablebox{ .add{ + cursor: auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -110,14 +112,18 @@ color: #FFFFFF; margin-left: 50px; } + .weihu{ - //display: block; + cursor: auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 40px; } table{ width: 100%; diff --git a/src/app/plan-management/meet-plan/meet-plan.component.scss b/src/app/plan-management/meet-plan/meet-plan.component.scss index 644ca36..4ec5923 100644 --- a/src/app/plan-management/meet-plan/meet-plan.component.scss +++ b/src/app/plan-management/meet-plan/meet-plan.component.scss @@ -112,6 +112,8 @@ } .tablebox{ .add{ + cursor: auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -121,14 +123,18 @@ color: #FFFFFF; margin-left: 50px; } + .weihu{ - //display: block; + cursor: auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 40px; } table{ width: 100%; diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss index c2a8398..5439277 100644 --- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss +++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss @@ -122,24 +122,30 @@ } .add{ - display: block; - width: 40px; - height: 20px; - background: #1AE2AC; - font-size: 12px; - line-height: 20px; - color: #FFFFFF; - margin-left: 50px; - } - .weihu{ - //display: block; - width: 64px; - height: 20px; - background: #2196F3; - font-size: 12px; - color: #FFFFFF; - line-height: 20px; - } + cursor: auto; + text-decoration: none; + display: block; + width: 40px; + height: 20px; + background: #1AE2AC; + font-size: 12px; + line-height: 20px; + color: #FFFFFF; + margin-left: 50px; + } + + .weihu{ + cursor: auto; + text-decoration: none; + display: block; + width: 64px; + height: 20px; + background: #FFC94B; + font-size: 12px; + color: #FFFFFF; + line-height: 20px; + margin-left: 40px; + } } mat-paginator{ width: 100%; diff --git a/src/app/plan-management/open-plan/open-plan.component.scss b/src/app/plan-management/open-plan/open-plan.component.scss index a67a989..7e9f7f9 100644 --- a/src/app/plan-management/open-plan/open-plan.component.scss +++ b/src/app/plan-management/open-plan/open-plan.component.scss @@ -90,6 +90,8 @@ } .tablebox{ .add{ + cursor: auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -99,14 +101,18 @@ color: #FFFFFF; margin-left: 50px; } + .weihu{ - //display: block; + cursor: auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 40px; } table{ width: 100%; diff --git a/src/app/plan-management/pass-plan/pass-plan.component.scss b/src/app/plan-management/pass-plan/pass-plan.component.scss index ae2da82..b012b72 100644 --- a/src/app/plan-management/pass-plan/pass-plan.component.scss +++ b/src/app/plan-management/pass-plan/pass-plan.component.scss @@ -96,6 +96,8 @@ } .tablebox{ .add{ + cursor: auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -105,14 +107,18 @@ color: #FFFFFF; margin-left: 50px; } + .weihu{ - //display: block; + cursor: auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 40px; } table{ width: 100%; diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss b/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss index 08c9400..3689b22 100644 --- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss +++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss @@ -91,6 +91,8 @@ } .tablebox{ .add{ + cursor: auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -100,14 +102,18 @@ color: #FFFFFF; margin-left: 50px; } + .weihu{ - //display: block; + cursor: auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 40px; } table{ width: 100%; diff --git a/src/app/plan-management/type-plan/type-plan.component.scss b/src/app/plan-management/type-plan/type-plan.component.scss index 9126325..ec93c51 100644 --- a/src/app/plan-management/type-plan/type-plan.component.scss +++ b/src/app/plan-management/type-plan/type-plan.component.scss @@ -112,6 +112,8 @@ } .tablebox{ .add{ + cursor: auto; + text-decoration: none; display: block; width: 40px; height: 20px; @@ -121,14 +123,18 @@ color: #FFFFFF; margin-left: 50px; } + .weihu{ - //display: block; + cursor: auto; + text-decoration: none; + display: block; width: 64px; height: 20px; - background: #2196F3; + background: #FFC94B; font-size: 12px; color: #FFFFFF; line-height: 20px; + margin-left: 40px; } table{ width: 100%; From d1fe6a44b232edd28a4c5a45fc56e8f22c7b3265 Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Tue, 28 Dec 2021 15:26:17 +0800 Subject: [PATCH 02/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E4=B8=89=E5=9B=9B?= =?UTF-8?q?=E7=BA=A7=E6=96=87=E6=9C=AC=E9=A2=84=E6=A1=88=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=9C=A8=E7=BA=BF=E7=BC=96=E5=88=B6=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/plan-management/entry-plan-look/AddPlanone.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/plan-management/entry-plan-look/AddPlanone.html b/src/app/plan-management/entry-plan-look/AddPlanone.html index 084ca02..03f186e 100644 --- a/src/app/plan-management/entry-plan-look/AddPlanone.html +++ b/src/app/plan-management/entry-plan-look/AddPlanone.html @@ -61,13 +61,13 @@ (已上传) -
+
模板在线编制
-
+ +
+
+ 新增分组 +
+ +
+
+ {{item.propertyName}} +
+
+
+
+ {{item.name}} +
+
+
+
+ {{item.name}} +
+
+
+ + +
+
\ No newline at end of file diff --git a/src/app/plan-management/create-plan-online-five/addgroup.scss b/src/app/plan-management/create-plan-online-five/addgroup.scss new file mode 100644 index 0000000..ecfba06 --- /dev/null +++ b/src/app/plan-management/create-plan-online-five/addgroup.scss @@ -0,0 +1,41 @@ +.box{ + height: 100%; + width: 100%; + display: flex; + flex-direction: column; + .top{ + width: 100%; + height: 40px; + text-align: center; + span{ + font-size: 18px; + } + } + .center{ + overflow: auto; + width: 100%; + height: 80%; + .group{ + height: 35px; + //margin-left: 20px; + .example-margin { + margin: 0 10px; + } + input{ + top: 2px; + } + span{ + margin-left: 8px; + } + } + } + .bottom{ + width: 100%; + margin-top: 20px; + button{ + width: 80px; + height: 36px; + font-size: 16px; + } + } +} \ No newline at end of file diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 4642e56..965a0d2 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -660,12 +660,7 @@
-->
- +
{{itemunit.name}} - +
{{element.surveyName}} + + -
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts index 90442c8..7a34fb3 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts @@ -59,7 +59,9 @@ export class CreatePlanOnlineFiveComponent implements OnInit { blockyl = true zaixianDr=false haveNew=false + //index ngOnInit(): void { + //this.index = this.getArrayIndex(this.planTemplateData,'单位概况') this.haveNew=this.route.snapshot.queryParams.haveNew console.log(this.route.snapshot.queryParams.wordChange) this.planLevel = this.route.snapshot.queryParams.planCategory @@ -446,6 +448,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { buildingsData = [] buildDataName buildZong + basicCategoryId //获得所有建筑信息 async getAllBuildingsInfo() { let index = this.getArrayIndex(this.planTemplateData,'单位概况') @@ -466,6 +469,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { }).subscribe((buildingsData: any) => { //console.log(buildingsData) this.buildingsData.push(buildingsData[0]) + //this.basicCategoryId=buildingsData[0].basicCategoryId resolve(this.buildingsData) }) } @@ -1908,6 +1912,28 @@ export class CreatePlanOnlineFiveComponent implements OnInit { }) } + //建筑信息和消防设施模板信息添加 + addBuildingmb(element){ + let index = this.getArrayIndex(this.planTemplateData,'单位概况') + console.log(element,this.buildingsData) + const dialogRef = this.dialog.open(adddwsurveys, {//调用open方法打开对话框并且携带参数过去 + width: '290px', + height:'460px', + disableClose:true, + data:{element:element,buildingID:this.buildingsData[0].basicCategoryId} + }); + dialogRef.afterClosed().subscribe(result => { + console.log(result) + if(result!=undefined){ + this.planTemplateData[index].building[this.clicki].body.forEach(item => { + if(item.surveyName==element.surveyName){ + element.attinf=result + } + }); + } + + }) + } } @@ -2121,4 +2147,162 @@ export class updataHl{ this.dialogRef.close(result); } } +//建筑跟消防设施添加模板数据 +@Component({ + selector: 'adddwsurveys', + templateUrl: './addattinf.html', + styleUrls: ['./addgroup.scss'] +}) +export class adddwsurveys{ + constructor(private http: HttpClient,public dialogRef: MatDialogRef,@Inject(MAT_DIALOG_DATA) public data,public snackBar: MatSnackBar) {} + addAttinfBuild=[] + buildnewDate=[] + addAttinfFile + filenewDate=[] + facilityItems + ngOnInit(): void{ + this.getinf() + console.log(this.data) + + } + + async getinf(){ + if(this.data.element.surveyName=='建筑信息'&&this.data.element.attinf==undefined){ + this.addAttinfBuild=[] + let paramsdata:any ={ + categoryId:this.data.buildingID + } + this.http.get("/api/BasicGroups",{params:paramsdata}).subscribe((data:any)=>{ + data.forEach(buildDate => { + this.addAttinfBuild.push(...buildDate.propertyInfos) + + }); + this.addAttinfBuild.forEach(element => { + element.completed=false + element.olddata=element.propertyValue + }); + console.log(this.addAttinfBuild) + }) + }else if(this.data.element.surveyName=='建筑信息'&&this.data.element.attinf!=undefined){ + this.buildnewDate=[] //接受接口返回的新数据 + this.addAttinfBuild=this.data.element.attinf //模板传过来的数据 + this.addAttinfBuild=JSON.parse(JSON.stringify(this.addAttinfBuild)) + let paramsdata:any ={ + categoryId:this.data.buildingId + } + /* 请求接口,做差异化对比 */ + let restlt=await new Promise((resolve) => { + this.http.get("/api/BasicGroups",{params:paramsdata}).subscribe((data:any)=>{ + data.forEach((buildDate,buildi,buildarr) => { + this.buildnewDate.push(...buildarr[buildi].propertyInfos) + resolve(data) + }); + this.buildnewDate.forEach(element => { + element.completed=false + element.olddata=element.propertyValue + }); + }) + }) + this.buildnewDate=JSON.parse(JSON.stringify(this.buildnewDate)) + //差异化比较 + let temp=0 + this.buildnewDate.forEach((buildval,buindi,buildarr)=>{ + temp=0 + this.addAttinfBuild.forEach((addval,addi,addarr)=>{ + if(buildval.propertyName==addval.propertyName){ + temp++ + } + }) + if(temp==0){ + //模板数据少于接口数据 + console.log(buildval) + this.addAttinfBuild.push(buildval) + } + }) + this.addAttinfBuild.forEach((addval,addi,addarr)=>{ + temp=0 + this.buildnewDate.forEach((buildval,buindi,buildarr)=>{ + if(buildarr[buindi].propertyName==addarr[addi].propertyName){ + temp++ + } + }) + if(temp==0){ + console.log(addarr[addi]) + //模板数据多了 + this.addAttinfBuild.splice(addi,1) + } + }) + console.log(this.buildnewDate) + console.log(this.addAttinfBuild) + + }else if(this.data.surveyName=='消防设施'&&this.data.attinf==undefined){ + let paramsdata:any ={ + categoryId:this.data.newleftTabledata[this.data.leftclicki].facilityCategoryId + } + this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ + console.log(data) + this.addAttinfFile=data + this.addAttinfFile.forEach(element => { + element.completed=false + element.value='' + }); + console.log(this.addAttinfFile) + }) + }else if(this.data.surveyName=='消防设施'&&this.data.attinf!=undefined){ + this.filenewDate=[] + this.addAttinfFile=this.data.attinf + this.addAttinfFile=JSON.parse(JSON.stringify(this.addAttinfFile)) + let paramsdata:any ={ + categoryId:this.data.newleftTabledata[this.data.leftclicki].facilityCategoryId + } + let restlt=await new Promise((resolve) => { + this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ + data.forEach((buildDate,buildi,buildarr) => { + this.filenewDate.push(buildDate) + resolve(data) + }); + this.filenewDate.forEach(element => { + element.completed=false + //element.olddata=element.propertyValue + }); + }) + }) + this.filenewDate=JSON.parse(JSON.stringify(this.filenewDate)) + let temp=0 + this.filenewDate.forEach((buildval,buindi,buildarr)=>{ + temp=0 + this.addAttinfFile.forEach((addval,addi,addarr)=>{ + if(buildval.name==addval.name){ + temp++ + } + }) + if(temp==0){ + console.log(buildval) + this.addAttinfFile.push(buildval) + } + }) + this.addAttinfFile.forEach((addval,addi,addarr)=>{ + temp=0 + this.filenewDate.forEach((buildval,buindi,buildarr)=>{ + if(buildarr[buindi].name==addarr[addi].name){ + temp++ + } + }) + if(temp==0){ + console.log(addarr[addi]) + this.addAttinfFile.splice(addi,1) + } + }) + } + + } + //取消按钮 +close(){ + this.dialogRef.close(undefined); +} +//确定按钮 +defineClick(){ + this.dialogRef.close(this.data.element.surveyName=='建筑信息'?this.addAttinfBuild:this.data.element.surveyName=='消防设施'?this.addAttinfFile:this.facilityItems) +} +} diff --git a/src/app/plan-management/entry-plan-look/AddPlanone.html b/src/app/plan-management/entry-plan-look/AddPlanone.html index 03f186e..53c8564 100644 --- a/src/app/plan-management/entry-plan-look/AddPlanone.html +++ b/src/app/plan-management/entry-plan-look/AddPlanone.html @@ -61,7 +61,7 @@ (已上传)
-
+
模板在线编制
diff --git a/src/app/plan-management/meet-plan/meet-plan.component.html b/src/app/plan-management/meet-plan/meet-plan.component.html index 3ef9c32..18f506d 100644 --- a/src/app/plan-management/meet-plan/meet-plan.component.html +++ b/src/app/plan-management/meet-plan/meet-plan.component.html @@ -6,7 +6,7 @@
- +
diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html index 9e99c67..60769df 100644 --- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html +++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html @@ -13,7 +13,7 @@
- +
diff --git a/src/app/plan-management/open-plan/open-plan.component.html b/src/app/plan-management/open-plan/open-plan.component.html index 24eae26..fd4b535 100644 --- a/src/app/plan-management/open-plan/open-plan.component.html +++ b/src/app/plan-management/open-plan/open-plan.component.html @@ -47,10 +47,22 @@
- - - - + + + + 新增 + 维护更新 + + +
+
+ + + + 新增 + 维护更新 + +
diff --git a/src/app/plan-management/open-plan/open-plan.component.ts b/src/app/plan-management/open-plan/open-plan.component.ts index cb2f62c..73c2ded 100644 --- a/src/app/plan-management/open-plan/open-plan.component.ts +++ b/src/app/plan-management/open-plan/open-plan.component.ts @@ -115,6 +115,7 @@ export class OpenPlanComponent implements OnInit { allPlanInfo: any //存储所有预案信息 //获得所有预案信息 + IsNewCompanyData=true getAllPlanInfo() { let paramsdata: any = { CompanyName: this.companyName || '', @@ -129,6 +130,7 @@ export class OpenPlanComponent implements OnInit { PageSize: this.pageSizeOptions[0], Sort: '', IsNewData:this.IsNewData, + IsNewCompanyData:this.IsNewCompanyData } this.http.get("/api/PublicPlans", { params: paramsdata }).subscribe((data: any) => { // console.log(111,data) @@ -291,6 +293,8 @@ export class OpenPlanComponent implements OnInit { this.pageEvent.pageIndex = 0 this.PageNumber = 1 this.getAllPlanInfo(); + this.IsNewCompanyData=true + this.IsNewData=true } } diff --git a/src/app/plan-management/pass-plan/pass-plan.component.html b/src/app/plan-management/pass-plan/pass-plan.component.html index 5a952fa..57bff10 100644 --- a/src/app/plan-management/pass-plan/pass-plan.component.html +++ b/src/app/plan-management/pass-plan/pass-plan.component.html @@ -110,10 +110,22 @@
- - - - + + + + 新增 + 维护更新 + + +
+
+ + + + 新增 + 维护更新 + +
diff --git a/src/app/plan-management/pass-plan/pass-plan.component.ts b/src/app/plan-management/pass-plan/pass-plan.component.ts index 0d767d5..e4de4a6 100644 --- a/src/app/plan-management/pass-plan/pass-plan.component.ts +++ b/src/app/plan-management/pass-plan/pass-plan.component.ts @@ -116,6 +116,7 @@ export class PassPlanComponent implements OnInit { } allPlanInfo: any //存储所有预案信息 + IsNewCompanyData=true //单位是新增还是维护更新 //获得所有预案信息 getAllPlanInfo() { let reservePlanType @@ -139,6 +140,7 @@ export class PassPlanComponent implements OnInit { Sort: '', PlanCategories: this.planCategory, IsNewData:this.IsNewData, + IsNewCompanyData:this.IsNewCompanyData } this.http.get("/api/ApprovedPlans", { params: paramsdata }).subscribe((data: any) => { this.length = data.totalCount @@ -451,6 +453,8 @@ export class PassPlanComponent implements OnInit { planCategory = []//预案级别 //重置 reset() { + this.IsNewData=true + this.IsNewCompanyData=true this.companyName = '' this.js = '' this.jsId = '' diff --git a/src/app/plan-management/plan-management.module.ts b/src/app/plan-management/plan-management.module.ts index 12a9909..b91230d 100644 --- a/src/app/plan-management/plan-management.module.ts +++ b/src/app/plan-management/plan-management.module.ts @@ -74,12 +74,13 @@ import { newTitle } from './create-plan-online-five/create-plan-online-five.comp import { disaster } from './create-plan-online-five/create-plan-online-five.component' import { updataHl } from './create-plan-online-five/create-plan-online-five.component' import {ChangeUrl} from './entry-plan-look/entry-plan-look.component' +import {adddwsurveys} from './create-plan-online-five/create-plan-online-five.component' @NgModule({ declarations: [EntryPlanComponent, PassPlanComponent, OpenPlanComponent, EntryPlanLookComponent, AddPlanone, PlanType, AuditSatus, PlanLevel, DownloadFile, AuditResult, ChangeName, WebLookComponent, OnetwoEntryPlanComponent, newunitComponent, MeetPlanComponent, newunitMeet, TypePlanComponent, newunitType, PsViewer, onetwoAuditResult, meetAuditResult, typeAuditResult, MaintainUpComponent, GkPsViewer, GkhtmlPsViewer, UnitInfo, ReinforcePlanComponent, state, ImgDetails, CreatePlanOnlineFiveComponent, CreatePlanOnlineThreeComponent, - OpenPlanToolDialog,yinYong,newTitle,disaster,updataHl,ChangeUrl], + OpenPlanToolDialog,yinYong,newTitle,disaster,updataHl,ChangeUrl,adddwsurveys], imports: [ CommonModule, PlanManagementRoutingModule, diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.html b/src/app/plan-management/reinforce-plan/reinforce-plan.component.html index e9df805..b19ed9a 100644 --- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.html +++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.html @@ -79,10 +79,22 @@
- - - - + + + + 新增 + 维护更新 + + +
+
+ + + + 新增 + 维护更新 + +
diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts b/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts index 75cb817..77b9af6 100644 --- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts +++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts @@ -114,6 +114,7 @@ export class ReinforcePlanComponent implements OnInit { allPlanInfo:any //存储所有预案信息 //获得所有预案信息 + IsNewCompanyData=true//单位维护更新或者新增 getAllPlanInfo(){ let paramsdata:any = { CompanyName: this.companyName || '', @@ -130,6 +131,7 @@ export class ReinforcePlanComponent implements OnInit { PageSize: this.pageSizeOptions[0], Sort: '', IsNewData:this.IsNewData, + IsNewCompanyData:this.IsNewCompanyData } this.http.get("/api/ApprovedPlans/GetReinforcementPlanComponents",{params:paramsdata}).subscribe((data:any)=>{ // console.log('增援预案列表',data) @@ -215,6 +217,8 @@ export class ReinforcePlanComponent implements OnInit { plcheck:boolean //编制级别勾选框 //重置 reset(){ + this.IsNewData=true + this.IsNewCompanyData=true this.companyName = '' this.js = '' this.jsId = '' diff --git a/src/app/plan-management/type-plan/type-plan.component.html b/src/app/plan-management/type-plan/type-plan.component.html index a7dffbb..23e9d31 100644 --- a/src/app/plan-management/type-plan/type-plan.component.html +++ b/src/app/plan-management/type-plan/type-plan.component.html @@ -6,7 +6,7 @@
- +
From 130f8c569c5369e53ed0ef6e4f2ad3b65cff72e8 Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Thu, 30 Dec 2021 11:02:35 +0800 Subject: [PATCH 04/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E5=86=85=E7=BD=91?= =?UTF-8?q?=E6=89=93=E5=8C=85=E5=9C=A8=E7=BA=BF=E7=BC=96=E5=88=B6=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=B1=8F=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-plan-online-five/addattinf.html | 4 +- .../create-plan-online-five.component.html | 11 +- .../create-plan-online-five.component.ts | 156 ++++++++++++++---- .../entry-plan-look/AddPlanone.html | 5 +- .../entry-plan-look.component.ts | 57 ++----- 5 files changed, 149 insertions(+), 84 deletions(-) diff --git a/src/app/plan-management/create-plan-online-five/addattinf.html b/src/app/plan-management/create-plan-online-five/addattinf.html index e188e4f..f25d104 100644 --- a/src/app/plan-management/create-plan-online-five/addattinf.html +++ b/src/app/plan-management/create-plan-online-five/addattinf.html @@ -11,12 +11,12 @@ 新增分组
-
+
{{item.propertyName}}
-
+
{{item.name}}
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 965a0d2..1a3f107 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -716,7 +716,7 @@ opacity: 1; height: 40px; line-height: 40px;">{{itemunit.name}} - +
{{element.surveyName}} - +
@@ -838,11 +838,12 @@ text-align: center;"> {{attack.name}} - + *ngIf="pattern == 'edit'" + (click)='unitadd(element.surveyName,uniti,attacki,0)'> +
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts index 7a34fb3..c22d857 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts @@ -59,10 +59,12 @@ export class CreatePlanOnlineFiveComponent implements OnInit { blockyl = true zaixianDr=false haveNew=false + planMode//预案类型 //index ngOnInit(): void { //this.index = this.getArrayIndex(this.planTemplateData,'单位概况') this.haveNew=this.route.snapshot.queryParams.haveNew + this.planMode=this.route.snapshot.queryParams.planMode console.log(this.route.snapshot.queryParams.wordChange) this.planLevel = this.route.snapshot.queryParams.planCategory if (this.route.snapshot.queryParams.pattern == 'false') { @@ -1920,10 +1922,9 @@ export class CreatePlanOnlineFiveComponent implements OnInit { width: '290px', height:'460px', disableClose:true, - data:{element:element,buildingID:this.buildingsData[0].basicCategoryId} + data:{element:element,buildingID:this.buildingsData[0].basicCategoryId,fid:this.route.snapshot.queryParams.unitTypeId} }); dialogRef.afterClosed().subscribe(result => { - console.log(result) if(result!=undefined){ this.planTemplateData[index].building[this.clicki].body.forEach(item => { if(item.surveyName==element.surveyName){ @@ -1934,6 +1935,26 @@ export class CreatePlanOnlineFiveComponent implements OnInit { }) } + //消防设施具体属性编辑 + fileAdd(facilityItems,filei,filename){ + let index = this.getArrayIndex(this.planTemplateData,'单位概况') + if(facilityItems.length!=0){ + const dialogRef = this.dialog.open(adddwsurveys, {//调用open方法打开对话框并且携带参数过去 + width: '240px', + height:'400px', + disableClose:true, + data:{facilityItems:facilityItems,filename,fid:this.route.snapshot.queryParams.unitTypeId} + }); + dialogRef.afterClosed().subscribe(result => { + console.log(result) + this.planTemplateData[index].building[this.clicki].body.forEach(element => { + if(element.surveyName=='消防设施'){ + element.attinf[filei].facilityItems=result + } + }); + }) + } + } } @@ -2160,6 +2181,7 @@ export class adddwsurveys{ addAttinfFile filenewDate=[] facilityItems + facilityCategoryId//消防设施内容id ngOnInit(): void{ this.getinf() console.log(this.data) @@ -2167,7 +2189,8 @@ export class adddwsurveys{ } async getinf(){ - if(this.data.element.surveyName=='建筑信息'&&this.data.element.attinf==undefined){ + if(this.data.facilityItems==undefined){ + if(this.data.element.surveyName=='建筑信息'&&this.data.element.attinf==undefined){ this.addAttinfBuild=[] let paramsdata:any ={ categoryId:this.data.buildingID @@ -2235,38 +2258,55 @@ export class adddwsurveys{ console.log(this.buildnewDate) console.log(this.addAttinfBuild) - }else if(this.data.surveyName=='消防设施'&&this.data.attinf==undefined){ - let paramsdata:any ={ - categoryId:this.data.newleftTabledata[this.data.leftclicki].facilityCategoryId - } - this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ - console.log(data) - this.addAttinfFile=data - this.addAttinfFile.forEach(element => { - element.completed=false - element.value='' + }else if(this.data.element.surveyName=='消防设施'&&this.data.element.attinf==undefined){ + this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{ + console.log(buildData) + buildData.forEach(element => { + if(element.id==this.data.fid){ + this.facilityCategoryId=element.facilityCategoryId + let paramsdata:any ={ + categoryId:this.facilityCategoryId + } + this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ + console.log(data) + this.addAttinfFile=data + this.addAttinfFile.forEach(element => { + element.completed=false + element.value='' + }); + console.log(this.addAttinfFile) + }) + } }); - console.log(this.addAttinfFile) }) + }else if(this.data.surveyName=='消防设施'&&this.data.attinf!=undefined){ this.filenewDate=[] this.addAttinfFile=this.data.attinf this.addAttinfFile=JSON.parse(JSON.stringify(this.addAttinfFile)) - let paramsdata:any ={ - categoryId:this.data.newleftTabledata[this.data.leftclicki].facilityCategoryId - } - let restlt=await new Promise((resolve) => { - this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ - data.forEach((buildDate,buildi,buildarr) => { - this.filenewDate.push(buildDate) - resolve(data) - }); - this.filenewDate.forEach(element => { - element.completed=false - //element.olddata=element.propertyValue - }); + this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{ + buildData.forEach(async element => { + if(element.id==this.data.fid){ + this.facilityCategoryId=element.facilityCategoryId + let paramsdata:any ={ + categoryId:this.data.newleftTabledata[this.data.leftclicki].facilityCategoryId + } + let restlt=await new Promise((resolve) => { + this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ + data.forEach((buildDate,buildi,buildarr) => { + this.filenewDate.push(buildDate) + resolve(data) + }); + this.filenewDate.forEach(element => { + element.completed=false + //element.olddata=element.propertyValue + }); + }) + }) + } }) - }) + }) + this.filenewDate=JSON.parse(JSON.stringify(this.filenewDate)) let temp=0 this.filenewDate.forEach((buildval,buindi,buildarr)=>{ @@ -2294,6 +2334,63 @@ export class adddwsurveys{ } }) } + }else{ + //消防设施最里层数据 + let apifile + this.facilityItems=JSON.parse(JSON.stringify(this.data.facilityItems)) + console.log(this.facilityItems) + //请求接口,看数据是否有变化 + this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{ + buildData.forEach(async element => { + if(element.id==this.data.fid){ + this.facilityCategoryId=element.facilityCategoryId + let paramsdata:any ={ + categoryId:this.facilityCategoryId + } + let fileResult=await new Promise((resolve) => { + this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ + resolve(data) + }) + }) + apifile=fileResult + let apifileData//消防设施最内层数据 + apifile.forEach(element => { + if(element.name==this.data.filename){ + apifileData=element.facilityItems + } + }); + console.log(apifileData) + let temp=0 + apifileData.forEach((buildval,buindi,buildarr)=>{ + temp=0 + this.facilityItems.forEach((addval,addi,addarr)=>{ + if(buildval.name==addval.name){ + temp++ + } + }) + if(temp==0){ + console.log(buildval) + this.facilityItems.push(buildval) + } + }) + this.facilityItems.forEach((addval,addi,addarr)=>{ + temp=0 + apifileData.forEach((buildval,buindi,buildarr)=>{ + if(buildarr[buindi].name==addarr[addi].name){ + temp++ + } + }) + if(temp==0){ + console.log(addarr[addi]) + this.facilityItems.splice(addi,1) + } + }) + } + }) + }) + + } + } //取消按钮 @@ -2302,7 +2399,8 @@ close(){ } //确定按钮 defineClick(){ - this.dialogRef.close(this.data.element.surveyName=='建筑信息'?this.addAttinfBuild:this.data.element.surveyName=='消防设施'?this.addAttinfFile:this.facilityItems) + this.dialogRef.close(this.data.element!=undefined&&this.data.element.surveyName=='建筑信息'? + this.addAttinfBuild:this.data.element!=undefined&&this.data.element.surveyName=='消防设施'?this.addAttinfFile:this.facilityItems) } } diff --git a/src/app/plan-management/entry-plan-look/AddPlanone.html b/src/app/plan-management/entry-plan-look/AddPlanone.html index 53c8564..f4ae373 100644 --- a/src/app/plan-management/entry-plan-look/AddPlanone.html +++ b/src/app/plan-management/entry-plan-look/AddPlanone.html @@ -61,11 +61,10 @@ (已上传)
-
+
- diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts index 77c5fbb..37a9eba 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts @@ -191,9 +191,9 @@ export class EntryPlanLookComponent implements OnInit { else if (e.planType == 16) { if (e.attachmentUrls == null) { if(e.planMode==4){ - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&haveNew=true`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&haveNew=true&planMode=${e.planMode}`) }else{ - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&planMode=${e.planMode}`) } } @@ -231,16 +231,7 @@ export class EntryPlanLookComponent implements OnInit { } } ); - /* if (e.url.indexOf('app') == 0) { - window.location.href = e.url - } else { - sessionStorage.setItem("url", e.url) - if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案 - window.open(`${e.url}?unitId=${this.companyId}&unitName=${this.unitdata.unitname}&editMode=true`) - } else { - window.open(`/planManagement/webLook`) - } - } */ + } else { this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); } @@ -259,7 +250,7 @@ export class EntryPlanLookComponent implements OnInit { else if (e.planType == 16) { if (e.attachmentUrls == null) { console.log(this.compantData) - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&planMode=${e.planMode}`) } else { let body = {}; @@ -280,16 +271,7 @@ export class EntryPlanLookComponent implements OnInit { } else if (e.planType == 2) { //三维预案 - /* if (e.url.indexOf('app') == 0) { - window.location.href = e.url - } else { - sessionStorage.setItem("url", e.url) - if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案 - window.open(`${e.url}?unitId=${this.companyId}&unitName=${this.unitdata.unitname}&editMode=true`) - } else { - window.open(`/planManagement/webLook`) - } - } */ + const dialogRef = this.dialog.open(ChangeUrl, { data: { element: e } }); @@ -313,7 +295,6 @@ export class EntryPlanLookComponent implements OnInit { } } }else{ - if (e.auditStatus == 8) { if (e.planType == 1) { //如果是在线编辑 let id = e.id sessionStorage.setItem("planId", id) @@ -327,9 +308,9 @@ export class EntryPlanLookComponent implements OnInit { else if (e.planType == 16) { if (e.attachmentUrls == null) { if(e.planMode==4){ - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&haveNew=true`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&haveNew=true&planMode=${e.planMode}`) }else{ - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&planMode=${e.planMode}`) } } @@ -380,9 +361,7 @@ export class EntryPlanLookComponent implements OnInit { } else { this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); } - } else { - let isTrue = confirm('编辑后审核状态会成为未审核状态,您确定要编辑吗') - if (isTrue) { + /* else { if (e.planType == 1) { //如果是在线编辑 let id = e.id sessionStorage.setItem("planId", id) @@ -410,23 +389,11 @@ export class EntryPlanLookComponent implements OnInit { this.http.put(`/api/PlanComponents/${e.id}?resetAudit=${resetAudit}`, body, options).subscribe(data => { this.getAllPlanComponents() this.lookPlan(e) - }/* ,err => { - this.snackBar.open(err,'确定',config); - } */) + }) } } else if (e.planType == 2) { //三维预案 - /* if (e.url.indexOf('app') == 0) { - window.location.href = e.url - } else { - sessionStorage.setItem("url", e.url) - if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案 - window.open(`${e.url}?unitId=${this.companyId}&unitName=${this.unitdata.unitname}&editMode=true`) - } else { - window.open(`/planManagement/webLook`) - } - } */ const dialogRef = this.dialog.open(ChangeUrl, { data: { element: e } }); @@ -446,8 +413,8 @@ export class EntryPlanLookComponent implements OnInit { this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); } - } - } + + } */ } @@ -1218,7 +1185,7 @@ export class AddPlanone { this.planData = plandata this.dialogRef.close(plandata); //console.log(plandata) - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.data.companyId}&planName=${this.planData.name}&unitName=${this.data.unitName}&planCategory=${this.selectedPLanLevel}&planId=${this.planData.id}&haveNew=${haveNew}`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.data.companyId}&planName=${this.planData.name}&unitName=${this.data.unitName}&planCategory=${this.selectedPLanLevel}&planId=${this.planData.id}&haveNew=${haveNew}&planMode=${this.defaultisshow}`) }) }else{ if (open.length > 0) { From de1092dc03cbdb2169c9d71361f46656f1246341 Mon Sep 17 00:00:00 2001 From: qq55341701 <55341701@qq.com> Date: Thu, 30 Dec 2021 11:11:24 +0800 Subject: [PATCH 05/14] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E5=AF=BC=E5=85=A5gis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/collection-tools-plan/addPlaneFigure.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/collection-tools-plan/addPlaneFigure.html b/src/app/ui/collection-tools-plan/addPlaneFigure.html index 80cbac6..344170b 100644 --- a/src/app/ui/collection-tools-plan/addPlaneFigure.html +++ b/src/app/ui/collection-tools-plan/addPlaneFigure.html @@ -12,9 +12,9 @@
-
+
From 3ffbf8ac4d01656a2bd01b17de826dffbf2f4a82 Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Tue, 4 Jan 2022 11:08:54 +0800 Subject: [PATCH 06/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=90=8C=E4=BA=8B=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E6=9B=B4=E6=96=B0=E5=92=8C=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../key-unit-management.component.ts | 45 +++++++++++- .../create-plan-online-five/addattinf.html | 4 +- .../create-plan-online-five.component.html | 2 + .../create-plan-online-five.component.ts | 68 ++++++++++++++----- .../entry-plan-look/AddPlanone.html | 4 +- .../entry-plan-look.component.html | 2 +- .../entry-plan/entry-plan.component.ts | 43 ++++++++++-- .../meet-plan/meet-plan.component.ts | 33 +++++++-- .../onetwo-entry-plan.component.ts | 29 +++++++- .../open-plan/open-plan.component.ts | 32 +++++++-- .../pass-plan/pass-plan.component.ts | 41 +++++++++-- .../reinforce-plan.component.ts | 32 +++++++-- .../type-plan/type-plan.component.ts | 22 +++++- 13 files changed, 298 insertions(+), 59 deletions(-) diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.ts b/src/app/key-unit/key-unit-management/key-unit-management.component.ts index 24a609a..faf2baa 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.ts +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.ts @@ -354,7 +354,7 @@ export class KeyUnitManagementComponent implements OnInit { ] allKeyUnitInfo:any //所有的重点单位 - IsNewData=true//是否是新增或者维护更新 + IsNewData:boolean//是否是新增或者维护更新 getAllKeyUnit(){ // console.log(Boolean(Number(this.follow))) let follow @@ -379,7 +379,7 @@ export class KeyUnitManagementComponent implements OnInit { PageSize: this.pageSizeOptions[0], Sort: this.integritySort ? 'integrityscore' : '', SortType: this.integritySort || '', - IsNewData:this.IsNewData, + //IsNewData:this.IsNewData, IntegrityScoreMin:this.integrityScoreMin/100||0, IntegrityScoreMax:this.integrityScoreMax/100||1 } @@ -652,6 +652,8 @@ export class KeyUnitManagementComponent implements OnInit { this.integritySort = '' this.integrityScoreMax=undefined this.integrityScoreMin=undefined + this.IsNewData=undefined + this.getAllKeyUnit(); } //编辑单位名称 @@ -687,7 +689,44 @@ export class KeyUnitManagementComponent implements OnInit { if(this.integrityScoreMax{ + this.length = data.totalCount + this.allKeyUnitInfo = data + // data.items.sort( (a,b) => { + // return a.usci - b.usci + // }) + data.items.forEach( (item,index) => { + item.integrity = this.wanzhengduArr[index] + }) + //console.log(789,data.items) + this.tabledataSource = new MatTableDataSource(data.items); + }) } } diff --git a/src/app/plan-management/create-plan-online-five/addattinf.html b/src/app/plan-management/create-plan-online-five/addattinf.html index f25d104..3e8d452 100644 --- a/src/app/plan-management/create-plan-online-five/addattinf.html +++ b/src/app/plan-management/create-plan-online-five/addattinf.html @@ -13,12 +13,12 @@
- {{item.propertyName}} + {{item.propertyName}}
- {{item.name}} + {{item.name}}
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 1a3f107..739b008 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -717,6 +717,7 @@ height: 40px; line-height: 40px;">{{itemunit.name}} + 自定义
+
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts index c22d857..600ec4a 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts @@ -21,6 +21,7 @@ import Viewer from 'viewerjs'; import { async } from 'rxjs/internal/scheduler/async'; import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop'; import { adddwsurvey, addGroup } from '@src/app/ui/plan-template/plan-template.component'; +import { zdyaddattinf } from '../../ui/plan-template/plan-template.component' declare var $: any @Component({ selector: 'app-create-plan-online-five', @@ -1947,14 +1948,34 @@ export class CreatePlanOnlineFiveComponent implements OnInit { }); dialogRef.afterClosed().subscribe(result => { console.log(result) - this.planTemplateData[index].building[this.clicki].body.forEach(element => { - if(element.surveyName=='消防设施'){ - element.attinf[filei].facilityItems=result - } - }); + if(result!=undefined){ + this.planTemplateData[index].building[this.clicki].body.forEach(element => { + if(element.surveyName=='消防设施'){ + element.attinf[filei].facilityItems=result + } + }); + } + }) } } + //单位概况自定义 + zdyDw(){ + let index = this.getArrayIndex(this.planTemplateData,'单位概况') + const dialogRef = this.dialog.open(zdyaddattinf, {//调用open方法打开对话框并且携带参数过去 + width: '340px', + height:'200px', + disableClose:true, + //data:this.planTemplateData + }); + dialogRef.afterClosed().subscribe(result => { + if(result!=undefined){ + this.planTemplateData[index].building[this.clicki].body.push({surveyName:result.groupName,completed: true,attinf:[],zdy:true}) + } + + }) + + } } @@ -2182,6 +2203,7 @@ export class adddwsurveys{ filenewDate=[] facilityItems facilityCategoryId//消防设施内容id + zdyData//模板传过来自定义的数据 ngOnInit(): void{ this.getinf() console.log(this.data) @@ -2208,10 +2230,15 @@ export class adddwsurveys{ }) }else if(this.data.element.surveyName=='建筑信息'&&this.data.element.attinf!=undefined){ this.buildnewDate=[] //接受接口返回的新数据 - this.addAttinfBuild=this.data.element.attinf //模板传过来的数据 + this.addAttinfBuild=this.data.element.attinf.filter(item=>{ + return item.zdy==undefined + }) //模板传过来的非自定义数据 + this.zdyData=this.data.element.attinf.filter(item=>{ + return item.zdy!=undefined + })//模板传过来自定义数据 this.addAttinfBuild=JSON.parse(JSON.stringify(this.addAttinfBuild)) let paramsdata:any ={ - categoryId:this.data.buildingId + categoryId:this.data.buildingID } /* 请求接口,做差异化对比 */ let restlt=await new Promise((resolve) => { @@ -2255,6 +2282,7 @@ export class adddwsurveys{ this.addAttinfBuild.splice(addi,1) } }) + this.addAttinfBuild.push(...this.zdyData) console.log(this.buildnewDate) console.log(this.addAttinfBuild) @@ -2280,16 +2308,22 @@ export class adddwsurveys{ }); }) - }else if(this.data.surveyName=='消防设施'&&this.data.attinf!=undefined){ + }else if(this.data.element.surveyName=='消防设施'&&this.data.element.attinf!=undefined){ this.filenewDate=[] - this.addAttinfFile=this.data.attinf + this.addAttinfFile=this.data.element.attinf.filter(element => { + return element.zdy==undefined + }); + this.zdyData=this.data.element.attinf.filter(element => { + return element.zdy!=undefined + }); this.addAttinfFile=JSON.parse(JSON.stringify(this.addAttinfFile)) + console.log(this.addAttinfFile) this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{ buildData.forEach(async element => { if(element.id==this.data.fid){ this.facilityCategoryId=element.facilityCategoryId let paramsdata:any ={ - categoryId:this.data.newleftTabledata[this.data.leftclicki].facilityCategoryId + categoryId:this.facilityCategoryId } let restlt=await new Promise((resolve) => { this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ @@ -2324,15 +2358,16 @@ export class adddwsurveys{ this.addAttinfFile.forEach((addval,addi,addarr)=>{ temp=0 this.filenewDate.forEach((buildval,buindi,buildarr)=>{ - if(buildarr[buindi].name==addarr[addi].name){ + if(buildarr[buindi].id==addarr[addi].id){ temp++ } + if(temp==0){ + this.addAttinfFile.splice(addi,1) + } }) - if(temp==0){ - console.log(addarr[addi]) - this.addAttinfFile.splice(addi,1) - } + }) + this.addAttinfFile.push(...this.zdyData) } }else{ //消防设施最里层数据 @@ -2379,11 +2414,12 @@ export class adddwsurveys{ if(buildarr[buindi].name==addarr[addi].name){ temp++ } - }) if(temp==0){ console.log(addarr[addi]) this.facilityItems.splice(addi,1) } + }) + }) } }) diff --git a/src/app/plan-management/entry-plan-look/AddPlanone.html b/src/app/plan-management/entry-plan-look/AddPlanone.html index f4ae373..45e896c 100644 --- a/src/app/plan-management/entry-plan-look/AddPlanone.html +++ b/src/app/plan-management/entry-plan-look/AddPlanone.html @@ -61,12 +61,12 @@ (已上传)
- +
+ + + + 维护审核 + + {{element.maintenanceVerifyState}} + + 操作 diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.ts b/src/app/key-unit/key-unit-management/key-unit-management.component.ts index 7a33700..5a90430 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.ts +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.ts @@ -67,7 +67,7 @@ export class KeyUnitManagementComponent implements OnInit { pageSizeOptions: number[] = [10] //设置每页条数 PageNumber:any //第几页 - displayedColumns: string[] = ['checked','Follow','state','unitname','integrity','jurisdictionsquadron', 'unittype','scc', 'time','operation']; + displayedColumns: string[] = ['checked','Follow','state','unitname','integrity','jurisdictionsquadron', 'unittype','scc', 'time','addstate','weihustate','operation']; tabledataSource:any allorganizations:any oldDataSource:any; //原始表格数据 @@ -384,6 +384,7 @@ export class KeyUnitManagementComponent implements OnInit { IntegrityScoreMax:this.integrityScoreMax/100||1 } this.http.get("/api/Companies",{params:paramsdata}).subscribe((data:any)=>{ + console.log(data) this.length = data.totalCount this.allKeyUnitInfo = data // data.items.sort( (a,b) => { @@ -393,7 +394,7 @@ export class KeyUnitManagementComponent implements OnInit { item.integrity = this.wanzhengduArr[index] }) //console.log(789,data.items) - this.tabledataSource = new MatTableDataSource(data.items); + this.tabledataSource = data.items }) } //得到当前单位信息 diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.html b/src/app/plan-management/entry-plan-look/entry-plan-look.component.html index 4fe374a..059ce23 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.html +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.html @@ -74,10 +74,16 @@ - 审核状态 + 新增审核 - {{element.auditStatus=='8'?'未提交审核':element.auditStatus=='1'?'审核中':element.auditStatus=='2'?'审核通过':element.auditStatus=='4'? - '审核退回':element.auditStatus=='16'?'初审通过':'初审驳回'}} + {{element.newVerifyState}} + + + + 维护审核 + + {{element.maintenanceVerifyState}} + 是否公开 diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts index 37a9eba..59def5c 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts @@ -40,7 +40,7 @@ export class EntryPlanLookComponent implements OnInit { myControl = new FormControl(); hasChild = (_: number, node: any) => node.expandable; IsNewData=true //维护更新活新增 - displayedColumns: string[] = ['state','planname', 'addpeople', 'addtime','planCategory', 'plantype', 'auditstate', 'isopen', 'preparethelevel', 'operation']; + displayedColumns: string[] = ['state','planname', 'addpeople', 'addtime','planCategory', 'plantype', 'auditstate', 'weihustate','isopen', 'preparethelevel', 'operation']; tabledataSource: any //分页 @ViewChild(MatPaginator, { static: true }) diff --git a/src/app/plan-management/meet-plan/meet-plan.component.html b/src/app/plan-management/meet-plan/meet-plan.component.html index 18f506d..a8cbea6 100644 --- a/src/app/plan-management/meet-plan/meet-plan.component.html +++ b/src/app/plan-management/meet-plan/meet-plan.component.html @@ -117,46 +117,53 @@
- + - + - + - + - + - + - - + + - + - + + + + +
预案状态预案状态 新增 维护更新 预案名称预案名称 {{element.name}} 预案级别预案级别 {{element.planCategory=='6'?'国家级':'市级'}} 添加人添加人 {{element.creatorName}} 添加时间添加时间 {{element.creationTime|date:'yyyy-MM-dd'}} 预案类型预案类型 {{element.disasterType}} 审核状态{{element.auditStatus=='8'?'未提交审核':element.auditStatus=='1'?'审核中':element.auditStatus=='2'?'审核通过':element.auditStatus=='4'? - '审核退回':element.auditStatus=='16'?'初审通过':'初审驳回'}}新增审核 + {{element.newVerifyState}} + + 是否公开是否公开 {{element.openRange}} 编制级别编制级别 {{element.planLevel=='1'?'总队':element.planLevel=='2'?'支队':element.planLevel=='4'?'大队':'中队'}} 维护审核{{element.maintenanceVerifyState}} 操作 diff --git a/src/app/plan-management/meet-plan/meet-plan.component.scss b/src/app/plan-management/meet-plan/meet-plan.component.scss index 4ec5923..2116c66 100644 --- a/src/app/plan-management/meet-plan/meet-plan.component.scss +++ b/src/app/plan-management/meet-plan/meet-plan.component.scss @@ -121,7 +121,7 @@ font-size: 12px; line-height: 20px; color: #FFFFFF; - margin-left: 50px; + margin-left: 35px; } .weihu{ @@ -134,7 +134,7 @@ font-size: 12px; color: #FFFFFF; line-height: 20px; - margin-left: 40px; + margin-left: 25px; } table{ width: 100%; diff --git a/src/app/plan-management/meet-plan/meet-plan.component.ts b/src/app/plan-management/meet-plan/meet-plan.component.ts index c47024a..943ee8d 100644 --- a/src/app/plan-management/meet-plan/meet-plan.component.ts +++ b/src/app/plan-management/meet-plan/meet-plan.component.ts @@ -84,7 +84,7 @@ export class MeetPlanComponent implements OnInit { preparelevels: any plcheck: boolean //编制级别勾选框 IsNewData='' //维护更新活新增 - displayedColumns: string[] = ['state','unitname', 'level', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation']; + displayedColumns: string[] = ['state','unitname', 'level', 'addname', 'addtime', 'plantype', 'isopen', 'projectlevel','passstate','weihustate', 'operation']; tabledataSource typePlan//新预案类型 unitname//预案名称 diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html index 60769df..c19b9b9 100644 --- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html +++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html @@ -108,44 +108,47 @@
- + - + - + - + - + - + - - + + + + + + - + - + diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss index 5439277..5905869 100644 --- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss +++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss @@ -131,7 +131,7 @@ font-size: 12px; line-height: 20px; color: #FFFFFF; - margin-left: 50px; + margin-left: 35px; } .weihu{ @@ -144,7 +144,7 @@ font-size: 12px; color: #FFFFFF; line-height: 20px; - margin-left: 40px; + margin-left: 25px; } } mat-paginator{ diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts index 4e3f867..3fa4bf5 100644 --- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts +++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts @@ -95,7 +95,7 @@ export class OnetwoEntryPlanComponent implements OnInit { url preparelevels: any plcheck: boolean //编制级别勾选框 - displayedColumns: string[] = ['state','unitname', 'level', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation']; + displayedColumns: string[] = ['state','unitname', 'level', 'addname', 'addtime', 'plantype', 'isopen', 'projectlevel', 'passstate','weihustate','operation']; tabledataSource unitname//预案名称 level//预案级别 diff --git a/src/app/plan-management/open-plan/open-plan.component.html b/src/app/plan-management/open-plan/open-plan.component.html index fd4b535..a1ddae2 100644 --- a/src/app/plan-management/open-plan/open-plan.component.html +++ b/src/app/plan-management/open-plan/open-plan.component.html @@ -105,8 +105,12 @@ - - + + + + + + diff --git a/src/app/plan-management/open-plan/open-plan.component.ts b/src/app/plan-management/open-plan/open-plan.component.ts index 715ef5f..facb3cb 100644 --- a/src/app/plan-management/open-plan/open-plan.component.ts +++ b/src/app/plan-management/open-plan/open-plan.component.ts @@ -45,7 +45,7 @@ export class OpenPlanComponent implements OnInit { PageNumber: any; //第几页 IsNewData='' //维护更新活新增 - displayedColumns: string[] = ['state','unitname', 'planname', 'addpeople', 'addtime', 'plantype', 'auditStatus', 'openRange', 'projectlevel', 'operation']; + displayedColumns: string[] = ['state','unitname', 'planname', 'addpeople', 'addtime', 'plantype', 'auditStatus', 'weihuStatus','openRange', 'projectlevel', 'operation']; allorganizations: any //所有组织机构 allunittype: any //所有单位类型 diff --git a/src/app/plan-management/pass-plan/pass-plan.component.html b/src/app/plan-management/pass-plan/pass-plan.component.html index 57bff10..38fadfd 100644 --- a/src/app/plan-management/pass-plan/pass-plan.component.html +++ b/src/app/plan-management/pass-plan/pass-plan.component.html @@ -167,8 +167,12 @@ - - + + + + + + diff --git a/src/app/plan-management/pass-plan/pass-plan.component.ts b/src/app/plan-management/pass-plan/pass-plan.component.ts index 1e7fdee..60cde6c 100644 --- a/src/app/plan-management/pass-plan/pass-plan.component.ts +++ b/src/app/plan-management/pass-plan/pass-plan.component.ts @@ -44,7 +44,7 @@ export class PassPlanComponent implements OnInit { pageSizeOptions: number[] = [10] //设置每页条数 PageNumber: any; //第几页 - displayedColumns: string[] = ['state','planname', 'addpeople', 'level', 'addtime', 'plantype', 'auditStatus', 'openRange', 'projectlevel', 'operation']; + displayedColumns: string[] = ['state','planname', 'addpeople', 'level', 'addtime', 'plantype', 'auditStatus','weihuState', 'openRange', 'projectlevel', 'operation']; allorganizations: any //所有组织机构 allunittype: any //所有单位类型 tabledataSource: any //表格数据 diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.html b/src/app/plan-management/reinforce-plan/reinforce-plan.component.html index b19ed9a..1cb4035 100644 --- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.html +++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.html @@ -143,8 +143,12 @@ - - + + + + + + diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts b/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts index 29cf097..52a8603 100644 --- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts +++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts @@ -44,7 +44,7 @@ export class ReinforcePlanComponent implements OnInit { pageSizeOptions: number[] = [10] //设置每页条数 PageNumber:any; //第几页 - displayedColumns: string[] = ['state','unitname','planname', 'addpeople','level','addtime','plantype','auditStatus','openRange','projectlevel','operation']; + displayedColumns: string[] = ['state','unitname','planname', 'addpeople','level','addtime','plantype','auditStatus','weihuStatus','openRange','projectlevel','operation']; allorganizations:any //所有组织机构 allunittype:any //所有单位类型 tabledataSource:any //表格数据 diff --git a/src/app/plan-management/type-plan/type-plan.component.html b/src/app/plan-management/type-plan/type-plan.component.html index 23e9d31..91cd9cc 100644 --- a/src/app/plan-management/type-plan/type-plan.component.html +++ b/src/app/plan-management/type-plan/type-plan.component.html @@ -120,9 +120,10 @@ - - + + @@ -132,6 +133,10 @@ + + + + @@ -106,7 +106,8 @@ 删除 审批结果 提交审核 + *ngIf="(element.isNewData && element.newVerifyState=='未提交审核')||(!element.isNewData&&(element.maintenanceVerifyState=='审核通过'||element.maintenanceVerifyState=='未提交审核'))"> + 提交审核 撤销审核 diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts index 59def5c..080d621 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts @@ -443,6 +443,7 @@ export class EntryPlanLookComponent implements OnInit { ); } //获得所有预案组件 + audit:boolean getAllPlanComponents() { let pagetype = this.route.snapshot.queryParams.pagetype let unitId = this.route.snapshot.queryParams.unitId @@ -478,6 +479,11 @@ export class EntryPlanLookComponent implements OnInit { this.length = data.totalCount this.allPlanComponents = data this.tabledataSource = data.items + /* if(this.tabledataSource.isNewData){ + this.tabledataSource.auditStatus==8?this.audit=true:false + }else{ + (this.tabledataSource.newVerifyState=='待终审'&&this.tabledataSource.newVerifyState=='审核中'&&this.tabledataSource.maintenanceVerifyState!='未提交审核')?this.audit=false:true + } */ }) } //删除预案 diff --git a/src/app/plan-management/meet-plan/meet-plan.component.html b/src/app/plan-management/meet-plan/meet-plan.component.html index a8cbea6..6592eef 100644 --- a/src/app/plan-management/meet-plan/meet-plan.component.html +++ b/src/app/plan-management/meet-plan/meet-plan.component.html @@ -168,7 +168,7 @@
预案状态预案状态 新增 维护更新 预案名称预案名称 {{element.name}} 预案级别预案级别 {{url=='2'?'Ⅱ级':'Ⅰ级'}} 添加人添加人 {{element.creatorName}} 添加时间添加时间 {{element.creationTime|date:'yyyy-MM-dd'}} 预案类型预案类型 {{element.disasterType}} 审核状态{{element.auditStatus=='8'?'未提交审核':element.auditStatus=='1'?'审核中':element.auditStatus=='2'?'审核通过':element.auditStatus=='4'? - '审核退回':element.auditStatus=='16'?'初审通过':'初审驳回'}}新增审核{{element.newVerifyState}} 维护审核{{element.maintenanceVerifyState}} 是否公开是否公开 {{element.openRange}} 编制级别编制级别 {{element.planLevel=='1'?'总队':element.planLevel=='2'?'支队':element.planLevel=='4'?'大队':'中队'}} {{element.planType | plantype}} 审核状态{{element.auditStatus | auditsatus}}新增审核{{element.newVerifyState}}维护审核{{element.maintenanceVerifyState}} {{element.planType | plantype}} 审核状态{{element.auditStatus | auditsatus}}新增审核{{element.newVerifyState}}维护审核{{element.maintenanceVerifyState}} 二维预案 审核状态{{element.auditStatus | auditsatus}}新增审核{{element.newVerifyState}}维护审核{{element.maintenanceVerifyState}} 是否公开类型预案 审核状态{{element.auditStatus=='8'?'未提交审核':element.auditStatus=='1'?'审核中':element.auditStatus=='2'?'审核通过':element.auditStatus=='4'? - '审核退回':element.auditStatus=='16'?'初审通过':'初审驳回'}}新增审核 + {{element.newVerifyState}} + 是否公开编制级别 {{element.planLevel=='1'?'总队':element.planLevel=='2'?'支队':element.planLevel=='4'?'大队':'中队'}} 维护审核{{element.maintenanceVerifyState}} 操作 diff --git a/src/app/plan-management/type-plan/type-plan.component.ts b/src/app/plan-management/type-plan/type-plan.component.ts index a7d23ec..6448a64 100644 --- a/src/app/plan-management/type-plan/type-plan.component.ts +++ b/src/app/plan-management/type-plan/type-plan.component.ts @@ -90,7 +90,7 @@ export class TypePlanComponent implements OnInit { preparelevels: any plcheck: boolean //编制级别勾选框 IsNewData='' //维护更新活新增 - displayedColumns: string[] = ['state','unitname', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation']; + displayedColumns: string[] = ['state','unitname', 'addname', 'addtime', 'plantype', 'isopen', 'projectlevel','passstate','weihustate', 'operation']; tabledataSource unitname//预案名称 level//预案级别 From ae335c64f6bfdd7f43a0c5eef81e7bd5ec38495d Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Thu, 6 Jan 2022 15:41:32 +0800 Subject: [PATCH 09/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=8C=89=E9=92=AE=E6=98=BE=E9=9A=90=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../key-unit-management/key-unit-management.component.html | 2 +- .../entry-plan-look/entry-plan-look.component.html | 7 ++++--- .../entry-plan-look/entry-plan-look.component.ts | 6 ++++++ src/app/plan-management/meet-plan/meet-plan.component.html | 2 +- .../onetwo-entry-plan/onetwo-entry-plan.component.html | 2 +- src/app/plan-management/type-plan/type-plan.component.html | 2 +- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.html b/src/app/key-unit/key-unit-management/key-unit-management.component.html index 9a171bd..18a0c45 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.html +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.html @@ -350,7 +350,7 @@ 查看详情 提交审核 新增审核 - {{element.newVerifyState}} + {{element.newVerifyState==null?'':element.newVerifyState}} 维护审核 - {{element.maintenanceVerifyState}} + {{element.maintenanceVerifyState==null?'':element.maintenanceVerifyState}} 操作 查看预案 - 提交审核 + 提交审核 撤销审核 审批结果 下载 diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html index c19b9b9..b7c44e5 100644 --- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html +++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html @@ -155,7 +155,7 @@ 操作 查看预案 - 提交审核 + 提交审核 撤销审核 审批结果 diff --git a/src/app/plan-management/type-plan/type-plan.component.html b/src/app/plan-management/type-plan/type-plan.component.html index 91cd9cc..d9d5c81 100644 --- a/src/app/plan-management/type-plan/type-plan.component.html +++ b/src/app/plan-management/type-plan/type-plan.component.html @@ -141,7 +141,7 @@ 操作 查看预案 - 提交审核 + 提交审核 撤销审核 审批结果 下载 From 7a33791569a7553a7454eb0ec7579ace4ea8521c Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Mon, 10 Jan 2022 09:53:22 +0800 Subject: [PATCH 10/14] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E7=BC=96=E5=88=B6=E9=A2=84=E6=A1=88=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-plan-online-five/addattinf.html | 2 +- .../create-plan-online-five.component.html | 4 ++-- .../create-plan-online-five.component.ts | 23 +++++++++++++------ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/app/plan-management/create-plan-online-five/addattinf.html b/src/app/plan-management/create-plan-online-five/addattinf.html index 3e8d452..a7fe071 100644 --- a/src/app/plan-management/create-plan-online-five/addattinf.html +++ b/src/app/plan-management/create-plan-online-five/addattinf.html @@ -23,7 +23,7 @@
- {{item.name}} + {{item.name}}
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 739b008..2b6ecd6 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -717,7 +717,7 @@ height: 40px; line-height: 40px;">{{itemunit.name}} - 自定义 + 自定义
- +
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts index 600ec4a..cc6bf19 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts @@ -588,7 +588,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { getTemplateData() { this.http.get(`/api/PlanComponents/${this.route.snapshot.queryParams.planId}/WebText`).subscribe((data: any) => { console.log('预案内容', data) - if(this.route.snapshot.queryParams.haveNew!=undefined&&data.webTextData==null){ + if(this.route.snapshot.queryParams.haveNew!=undefined&&this.route.snapshot.queryParams.planMode==4){ this.planTemplateData=[] let obj = { completed: true, @@ -1486,7 +1486,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { if(fileNum==0){ this.planTemplateData[index].building[attacki].body[bodyi].attinf[i].facilityItems.push({ name: '', value: '',completed:true,zdy:true}) }else{ - this.planTemplateData[index].building[attacki].body[bodyi].attinf.push({ propertyName: '', value: '',completed:true,zdy:true,facilityItems:[] }) + this.planTemplateData[index].building[attacki].body[bodyi].attinf.push({ name: '', value: '',completed:true,zdy:true,facilityItems:[] }) } } @@ -2199,9 +2199,9 @@ export class adddwsurveys{ constructor(private http: HttpClient,public dialogRef: MatDialogRef,@Inject(MAT_DIALOG_DATA) public data,public snackBar: MatSnackBar) {} addAttinfBuild=[] buildnewDate=[] - addAttinfFile + addAttinfFile//过滤消防设施外层数据 filenewDate=[] - facilityItems + facilityItems//过滤消防设施最内层数据 facilityCategoryId//消防设施内容id zdyData//模板传过来自定义的数据 ngOnInit(): void{ @@ -2372,10 +2372,19 @@ export class adddwsurveys{ }else{ //消防设施最里层数据 let apifile - this.facilityItems=JSON.parse(JSON.stringify(this.data.facilityItems)) + this.facilityItems=this.data.facilityItems.filter(element => { + return element.zdy==undefined + }); + this.zdyData=this.data.facilityItems.filter(element => { + return element.zdy!=undefined + }); + this.facilityItems=JSON.parse(JSON.stringify(this.facilityItems)) console.log(this.facilityItems) //请求接口,看数据是否有变化 - this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{ + let paramsdata:any ={ + categoryId:this.data.fid + } + this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((buildData:any)=>{ buildData.forEach(async element => { if(element.id==this.data.fid){ this.facilityCategoryId=element.facilityCategoryId @@ -2424,7 +2433,7 @@ export class adddwsurveys{ } }) }) - + this.facilityItems.push(...this.zdyData) } From 70ab48eceee7db29bde8140ae7b3b2b8cbae9d8b Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Wed, 12 Jan 2022 10:55:15 +0800 Subject: [PATCH 11/14] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?= =?UTF-8?q?=E9=A2=84=E6=A1=88=E5=AE=A1=E6=A0=B8=E6=A8=A1=E5=9D=97=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E7=8A=B6=E6=80=81=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../key-unit-management.component.ts | 2 +- .../plan-record/plan-record.component.html | 19 +++- .../plan-record/plan-record.component.scss | 11 ++- .../plan-record/plan-record.component.ts | 4 +- .../wait-examineer.component.html | 98 +++++++++++-------- .../wait-examineer.component.scss | 10 +- .../wait-examineer.component.ts | 4 +- .../create-plan-online-five.component.html | 70 +++++++------ .../create-plan-online-five.component.ts | 4 +- .../entry-plan-look.component.ts | 4 +- 10 files changed, 130 insertions(+), 96 deletions(-) diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.ts b/src/app/key-unit/key-unit-management/key-unit-management.component.ts index 5a90430..76c1fdc 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.ts +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.ts @@ -744,7 +744,7 @@ export class KeyUnitManagementComponent implements OnInit { console.log(element) let body:any = { title:element.name, - Operation:element.contentVerify==null? 0:1, + Operation:element.contentVerify==null&&element.isNewData? 0:1, itemId:element.id, verifyState:3, contentType:11 diff --git a/src/app/plan-audit/plan-record/plan-record.component.html b/src/app/plan-audit/plan-record/plan-record.component.html index 74cb863..3e17754 100644 --- a/src/app/plan-audit/plan-record/plan-record.component.html +++ b/src/app/plan-audit/plan-record/plan-record.component.html @@ -46,7 +46,14 @@ 联动力量 - 编制级别: + 状态: + + + 新增 + 维护更新 + + + 编制级别: {{item.name}} @@ -104,9 +111,10 @@
- + + - + @@ -117,14 +125,15 @@
类型状态类型 预案类型名称名称 操作 所属组织 审核状态
- + - +
+ {{item.itemMaintenanceState=='0'?'新增':'维护'}} {{item.contentType=='1'?'Ⅰ级预案':item.contentType=='2'?'Ⅱ级预案':item.contentType=='3'?'Ⅲ级预案':item.contentType=='4'?'Ⅳ级预案':item.contentType=='5'? 'Ⅴ级预案':item.contentType=='6'?'应急预案(国家级)':item.contentType=='7'?'应急预案(市级)':item.contentType=='8'?'类型预案':item.contentType=='11'?'重点单位':item.contentType=='12'?'水源':item.contentType=='13'?'消防力量':item.contentType=='14'?'联动力量':'未知'}} {{item.planType=='1'?'二维预案':item.planType=='2'?'三维预案':item.planType=='4'?'其它预案':item.planType=='16'?'文本预案':''}} {{item.title}}{{item.title}} {{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}} {{item.organizationName}} {{item.verifyState=='0'?'待初审':item.verifyState=='1'? diff --git a/src/app/plan-audit/plan-record/plan-record.component.scss b/src/app/plan-audit/plan-record/plan-record.component.scss index 17424ce..9d0a39d 100644 --- a/src/app/plan-audit/plan-record/plan-record.component.scss +++ b/src/app/plan-audit/plan-record/plan-record.component.scss @@ -118,6 +118,7 @@ } } .headthree{ + height: 45px; @media screen and (min-device-width:1400px){ margin-left: 30px; @@ -125,13 +126,13 @@ @media screen and (max-device-width:1200px){ font-size: 13px; mat-form-field{ - width: 120px; + width: 50px; } } @media screen and (max-device-width:1400px) and (min-device-width:1200px){ margin-left: 15px; mat-form-field{ - width: 120px; + width: 50px; } } } @@ -188,6 +189,7 @@ } } } + .tablediv{ width: 100%; height: 100%; @@ -326,4 +328,7 @@ th,td{ } ::-webkit-scrollbar-thumb{ background-color: #2196F3; - } \ No newline at end of file + } + .mat-form-field-infix{ + width: 100px; +} \ No newline at end of file diff --git a/src/app/plan-audit/plan-record/plan-record.component.ts b/src/app/plan-audit/plan-record/plan-record.component.ts index 546791b..f683be1 100644 --- a/src/app/plan-audit/plan-record/plan-record.component.ts +++ b/src/app/plan-audit/plan-record/plan-record.component.ts @@ -93,6 +93,7 @@ export class PlanRecordComponent implements OnInit { fetchUrl companyName plantypes + IsNewData=[true,false] //获取表格数据 getAlltabledate() { @@ -103,7 +104,8 @@ export class PlanRecordComponent implements OnInit { verifyState: this.verifyState || [1, 2, 4, 5], QueryStartTime: this.addtime || '', QueryEndTime: this.endtime || '', - PlanType:this.plantypes||[] + PlanType:this.plantypes||[], + IsNewData:this.IsNewData } this.http.get("/api/ContentVerifies", { params: paramsdata }).subscribe((data: any) => { //console.log(data) diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.html b/src/app/plan-audit/wait-examineer/wait-examineer.component.html index 873c99e..3e3d469 100644 --- a/src/app/plan-audit/wait-examineer/wait-examineer.component.html +++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.html @@ -39,7 +39,14 @@
- 预案类型: + 状态: + + + 新增 + 维护更新 + + + 预案类型: 二维预案 @@ -48,6 +55,7 @@ 文本预案 + @@ -56,52 +64,56 @@
-
- - - - - - - - - - - + + +
+
类型预案类型名称操作所属组织审核状态提交人提交时间
+ + + + + + + + + + + +
状态类型预案类型名称操作所属组织审核状态提交人提交时间
+
+ + + + + + + + + + + +
+ + + {{item.itemMaintenanceState=='0'?'新增':'维护'}} + + {{item.contentType=='1'?'Ⅰ级预案':item.contentType=='2'?'Ⅱ级预案':item.contentType=='3'?'Ⅲ级预案':item.contentType=='4'?'Ⅳ级预案':item.contentType=='5'? + 'Ⅴ级预案':item.contentType=='6'?'应急预案(国家级)':item.contentType=='7'?'应急预案(市级)':item.contentType=='8'?'类型预案':item.contentType=='11'?'重点单位':item.contentType=='12'?'水源':item.contentType=='13'?'消防力量':item.contentType=='14'?'联动力量':'未知'}} + + {{item.planType=='1'?'二维预案':item.planType=='2'?'三维预案':item.planType=='4'?'其它预案':item.planType=='16'?'文本预案':''}} + {{item.title}} + {{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}}{{item.organizationName}} + {{item.verifyState=='0'?'待初审':item.verifyState=='1'? + '初审通过':item.verifyState=='2'?'初审驳回':item.verifyState=='3'?'待终审':item.verifyState=='4'?'终审通过':'终审驳回'}} + {{item.creatorName}}{{item.createTime|date:'yyyy-MM-dd'}}
-
- - - - - - - - - - - -
- - - {{item.contentType=='1'?'Ⅰ级预案':item.contentType=='2'?'Ⅱ级预案':item.contentType=='3'?'Ⅲ级预案':item.contentType=='4'?'Ⅳ级预案':item.contentType=='5'? - 'Ⅴ级预案':item.contentType=='6'?'应急预案(国家级)':item.contentType=='7'?'应急预案(市级)':item.contentType=='8'?'类型预案':item.contentType=='11'?'重点单位':item.contentType=='12'?'水源':item.contentType=='13'?'消防力量':item.contentType=='14'?'联动力量':'未知'}} - - {{item.planType=='1'?'二维预案':item.planType=='2'?'三维预案':item.planType=='4'?'其它预案':item.planType=='16'?'文本预案':''}} - {{item.title}} - {{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}}{{item.organizationName}} - {{item.verifyState=='0'?'待初审':item.verifyState=='1'? - '初审通过':item.verifyState=='2'?'初审驳回':item.verifyState=='3'?'待终审':item.verifyState=='4'?'终审通过':'终审驳回'}} - {{item.creatorName}}{{item.createTime|date:'yyyy-MM-dd'}}
-
+
-
-
diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.scss b/src/app/plan-audit/wait-examineer/wait-examineer.component.scss index 4b9ebc4..89f01ff 100644 --- a/src/app/plan-audit/wait-examineer/wait-examineer.component.scss +++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.scss @@ -85,7 +85,7 @@ } .find{ @media screen and (min-device-width: 1400px){ - margin-left: 100px; + margin-left: 200px; } } @media screen and (min-device-width: 1400px) { @@ -132,13 +132,11 @@ } .tablediv { width: 100%; - height: 70%; + height: 62%; .tbodycss { - @media screen and (min-device-width: 1400px) { - overflow-y: auto; - } + overflow-y: auto; - height: 600px; + height: 100%; width: 100%; .selectedTr { background-color: #b3d3ee; diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts index 9440632..72dd752 100644 --- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts +++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts @@ -110,6 +110,7 @@ export class WaitExamineerComponent implements OnInit { fetchUrl companyName plantypes + IsNewData=[true,false] //获取表格数据 getAlltabledate() { @@ -118,7 +119,8 @@ export class WaitExamineerComponent implements OnInit { ContentType: Number(this.projectlevel) || [], Level: this.PlanLevel || [], verifyState: [0, 3], - PlanType:this.plantypes||[] + PlanType:this.plantypes||[], + IsNewData:this.IsNewData } this.http.get("/api/ContentVerifies", { params: paramsdata }).subscribe((data: any) => { this.tableDate = data.items diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 2b6ecd6..490a57a 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -520,24 +520,27 @@ - - - - - -
- {{itemthj.head}} - - {{itemthj.body}} -
+
+ + + + + + +
+ {{itemthj.head}} + {{itemthj.body}} +
@@ -1137,24 +1140,27 @@ - - - - - -
- {{itemthj.head}} - - {{itemthj.body}} -
+ + + + + + + +
+ {{itemthj.head}} + {{itemthj.body}} +
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts index cc6bf19..a6147b8 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts @@ -587,8 +587,8 @@ export class CreatePlanOnlineFiveComponent implements OnInit { } getTemplateData() { this.http.get(`/api/PlanComponents/${this.route.snapshot.queryParams.planId}/WebText`).subscribe((data: any) => { - console.log('预案内容', data) - if(this.route.snapshot.queryParams.haveNew!=undefined&&this.route.snapshot.queryParams.planMode==4){ + console.log('预案内容', data.webTextData) + if(this.route.snapshot.queryParams.planMode==4&&data.webTextData==null){ this.planTemplateData=[] let obj = { completed: true, diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts index 080d621..6c963a1 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts @@ -191,7 +191,7 @@ export class EntryPlanLookComponent implements OnInit { else if (e.planType == 16) { if (e.attachmentUrls == null) { if(e.planMode==4){ - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&haveNew=true&planMode=${e.planMode}`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&planMode=${e.planMode}`) }else{ window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&planMode=${e.planMode}`) } @@ -308,7 +308,7 @@ export class EntryPlanLookComponent implements OnInit { else if (e.planType == 16) { if (e.attachmentUrls == null) { if(e.planMode==4){ - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&haveNew=true&planMode=${e.planMode}`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&planMode=${e.planMode}`) }else{ window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=true&planMode=${e.planMode}`) } From 661d0224e4d9ccbc97a31248080302e1e461b08c Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Wed, 12 Jan 2022 16:47:24 +0800 Subject: [PATCH 12/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AE=E6=98=BE=E9=9A=90=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../key-unit-management/key-unit-management.component.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.html b/src/app/key-unit/key-unit-management/key-unit-management.component.html index 18a0c45..4b4b7b8 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.html +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.html @@ -350,7 +350,8 @@
查看详情 提交审核 Date: Fri, 14 Jan 2022 10:20:53 +0800 Subject: [PATCH 13/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E7=BC=96=E5=88=B6=E9=A2=84=E6=A1=88=E9=A2=84=E8=A7=88=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-plan-online-five.component.html | 268 +++++++----------- .../create-plan-online-five.component.ts | 61 ++-- 2 files changed, 139 insertions(+), 190 deletions(-) diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 490a57a..6c47d3f 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -455,8 +455,8 @@ line-height: 40px; color: #b99a00;">{{element.headName}} - - + + @@ -807,31 +807,32 @@
-
-
+
+
- - - - - -
{{info.propertyName}}{{info.propertyValue}}
+
+ + + + + +
{{info.propertyName}}{{info.propertyValue}}
@@ -852,26 +853,27 @@
-
+
- - - - - -
{{info.name}}{{info.value}}
+
+ + + + + +
{{info.name}}{{info.value}}
@@ -879,48 +881,56 @@
-
-
- - - - - - - - -
{{info.name}}{{info.value}}
+
+
+
+ + + +
+ +
+ + + + + +
{{info.name}}{{info.value}}
-
-
- - - - - - - - -
{{info.name}}{{info.value}}
+
+
+
+ + + + +
+ + + + + + +
{{info.name}}{{info.value}}
@@ -938,121 +948,57 @@ color: #b99a00;" *ngIf="pattern == 'look'">{{parts.heafName}}
-
+
- - - - - -
- {{parts.body[0].name}} - - - {{parts.body[0].value}} - -
+
- - - - - -
- {{parts.body[1].name}} - - - {{parts.body[1].value}} - -
+
- - - - - -
- {{parts.body[2].name}} - - - {{parts.body[2].value}} - -
+
- - - - - -
- {{parts.body[3].name}} - - - {{parts.body[3].value}} - -
+
- - - - - -
- {{parts.body[4].name}} - - - {{parts.body[4].value}} - -
+
+ + + + + +
+ {{partsbody.name}} + + + {{partsbody.value}} + +
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts index a6147b8..7378932 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts @@ -2237,6 +2237,7 @@ export class adddwsurveys{ return item.zdy!=undefined })//模板传过来自定义数据 this.addAttinfBuild=JSON.parse(JSON.stringify(this.addAttinfBuild)) + console.log(this.addAttinfBuild) let paramsdata:any ={ categoryId:this.data.buildingID } @@ -2265,7 +2266,7 @@ export class adddwsurveys{ }) if(temp==0){ //模板数据少于接口数据 - console.log(buildval) + // console.log(buildval) this.addAttinfBuild.push(buildval) } }) @@ -2311,37 +2312,39 @@ export class adddwsurveys{ }else if(this.data.element.surveyName=='消防设施'&&this.data.element.attinf!=undefined){ this.filenewDate=[] this.addAttinfFile=this.data.element.attinf.filter(element => { - return element.zdy==undefined + return element.zdy==false }); this.zdyData=this.data.element.attinf.filter(element => { return element.zdy!=undefined }); - this.addAttinfFile=JSON.parse(JSON.stringify(this.addAttinfFile)) - console.log(this.addAttinfFile) - this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{ - buildData.forEach(async element => { - if(element.id==this.data.fid){ - this.facilityCategoryId=element.facilityCategoryId - let paramsdata:any ={ - categoryId:this.facilityCategoryId + //this.addAttinfFile=JSON.parse(JSON.stringify(this.addAttinfFile)) + console.log(this.addAttinfFile,this.zdyData) + let restlt=await new Promise((resolve) => { + this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{ + buildData.forEach(async element => { + if(element.id==this.data.fid){ + this.facilityCategoryId=element.facilityCategoryId + let paramsdata:any ={ + categoryId:this.facilityCategoryId + } + this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ + data.forEach((buildDate,buildi,buildarr) => { + this.filenewDate.push(buildDate) + resolve(data) + }); + this.filenewDate.forEach(element => { + element.completed=false + //element.olddata=element.propertyValue + }); + }) } - let restlt=await new Promise((resolve) => { - this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{ - data.forEach((buildDate,buildi,buildarr) => { - this.filenewDate.push(buildDate) - resolve(data) - }); - this.filenewDate.forEach(element => { - element.completed=false - //element.olddata=element.propertyValue - }); - }) - }) - } + }) }) }) + this.filenewDate=JSON.parse(JSON.stringify(this.filenewDate)) + console.log(this.filenewDate) let temp=0 this.filenewDate.forEach((buildval,buindi,buildarr)=>{ temp=0 @@ -2351,21 +2354,21 @@ export class adddwsurveys{ } }) if(temp==0){ - console.log(buildval) + //console.log(buildval) this.addAttinfFile.push(buildval) } }) this.addAttinfFile.forEach((addval,addi,addarr)=>{ temp=0 this.filenewDate.forEach((buildval,buindi,buildarr)=>{ - if(buildarr[buindi].id==addarr[addi].id){ + if(buildval.name==addval.name){ temp++ } - if(temp==0){ - this.addAttinfFile.splice(addi,1) - } + }) - + if(temp==0){ + this.addAttinfFile.splice(addi,1) + } }) this.addAttinfFile.push(...this.zdyData) } From fe17cce6ec0cd7120ffec3bb2d949742dd7de8c9 Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Fri, 14 Jan 2022 16:10:19 +0800 Subject: [PATCH 14/14] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]gis=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E9=A2=84=E6=A1=88=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gis-labeling/gis-labeling.component.ts | 55 ++++++++++++++++++- .../gis-management/gis-labeling/lookPlan.html | 2 +- 2 files changed, 53 insertions(+), 4 deletions(-) diff --git a/src/app/gis-management/gis-labeling/gis-labeling.component.ts b/src/app/gis-management/gis-labeling/gis-labeling.component.ts index 44a1941..c0f837f 100644 --- a/src/app/gis-management/gis-labeling/gis-labeling.component.ts +++ b/src/app/gis-management/gis-labeling/gis-labeling.component.ts @@ -1577,7 +1577,7 @@ export class LookPlanDialog { ngOnInit() { - // console.log(this.data) + console.log(this.data) this.getAllPlans() } //关闭弹窗 @@ -1603,7 +1603,7 @@ export class LookPlanDialog { } //查看预案 lookPlan(e) { - if (e.planMode == 0) { + /* if (e.planMode == 0) { const config = new MatSnackBarConfig(); config.verticalPosition = 'top'; config.duration = 3000 @@ -1636,7 +1636,56 @@ export class LookPlanDialog { window.open(`/planManagement/webLook`) } } - } + } */ + let companyId = sessionStorage.getItem("companyId") + if (e.planType == 16 || e.planType == 4 || e.planType == 8) { + if (e.planType == 16&&e.attachmentUrls == null){ + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${companyId}&planName=${e.name}&unitName=${this.data.name}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.data.buildingTypes[0].id}&orName=${this.data.organizationName}&pattern=false`) + }else{ + var index = e.attachmentUrls[0].indexOf("\/") + let fetchUrl = e.attachmentUrls[0] + //console.log(fetchUrl) + if (fetchUrl) { + let suffix = fetchUrl.split('.')[fetchUrl.split('.').length - 1].toLowerCase() + if (suffix == 'docx' || suffix == 'doc') { + let arr = fetchUrl.split('.') + arr[arr.length - 1] = 'pdf' + window.open(`/api/Objects/PlanPlatform/` + arr.join('.')) + } else if (suffix == 'pdf') { + window.open(`/api/Objects/PlanPlatform/` + fetchUrl) + } else { + let config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('该文件类型暂不支持在线查看', '确定', config); + } + } + + } + + } + if (e.planType == 1) { //如果是在线编辑 + let id = e.id + sessionStorage.setItem("planId", id) + //sessionStorage.setItem("companyId", companyId) + sessionStorage.setItem("buildingTypeId", this.data.buildingTypes[0].id) + sessionStorage.setItem("editable", "0") + sessionStorage.setItem("planName", e.name) + let companyId = sessionStorage.getItem("companyId") + window.open(`/keyUnit/viewunitinfoplan?id=${companyId}`) + } + if (e.planType == 2) { //如果是跳转网页 + if (e.url.indexOf('app') == 0) { + window.location.href = e.url + } else { + sessionStorage.setItem("url", e.url) + if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案 + window.open(`${e.url}?unitId=${this.data.id}&unitName=${this.data.name}&editMode=false`) + } else { + window.open(`/planManagement/webLook`) + } + } + } } //点击下载 diff --git a/src/app/gis-management/gis-labeling/lookPlan.html b/src/app/gis-management/gis-labeling/lookPlan.html index c9c0ad9..97d3ede 100644 --- a/src/app/gis-management/gis-labeling/lookPlan.html +++ b/src/app/gis-management/gis-labeling/lookPlan.html @@ -37,7 +37,7 @@
{{item.planLevel | planlevel}} 查看 - 下载 + 下载