diff --git a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts b/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts index 557341f..a07ce50 100644 --- a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts +++ b/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts @@ -520,7 +520,7 @@ export class FireFightingDeviceComponent implements OnInit { }else if(item.name == '其它设施'){ putBody = returnBody(this.otherFacilities,'其它设施') }else if(item.name == '自动消防设施'){ - putBody = returnBody(this.otherFacilities,'自动消防设施') + putBody = returnBody(this.automaticFireProtectionFacility,'自动消防设施') } if(putBody.length != 0){ this.http.put('/api/BuildingFacilities/FacilityStatUpdate',putBody,{ 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 aa1c378..6009892 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 @@ -1,11 +1,11 @@
-
+
1.封面
+ [ngClass]="{'selectedItem': selectedItem == item.groupName}" [title]="item.groupName"> {{key + 2}}.{{item.groupName}}
@@ -38,7 +38,7 @@
-
@@ -63,7 +63,7 @@
-
@@ -141,6 +141,35 @@
+
+
+ 预案附件 +
+
+
+ + + + + 二维预案列表 + + +
+
+
+ +
+

{{TwoDPlan.name}}

+
+
+
+
+
+
+
建筑列表 @@ -256,9 +285,8 @@
-
+ *ngIf="item.groupName!='单位概况'&&item.groupName!='交通水源'&&item.groupName!='重点图示'&&item.groupName!='预案附件'&&item.groupName!='特别警示'&&item.groupName!='处置要点'">
{{item.groupName}}
@@ -313,7 +341,7 @@
-
+
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss index 17fb3f2..1306561 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss @@ -42,6 +42,9 @@ box-sizing: border-box; padding: 0 10px; font-size: 14px; + overflow: hidden; /*超出部分隐藏*/ + white-space: nowrap; /*不换行*/ + text-overflow: ellipsis; /*超出部分文字以...显示*/ } .item:hover { background: #e8f4fe; 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 f666237..697d2a7 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 @@ -78,11 +78,32 @@ export class CreatePlanOnlineFiveComponent implements OnInit { this.getAllBuildings() this.getSitePlan() this.getRealPicture() - }else if(this.selectedItem == '单位概况'){ + } else if (this.selectedItem == '单位概况') { //this.getAllBuildings() + } else if (this.selectedItem == '预案附件') { + this.getTwoDPlanList() } } + //获取当前单位的二维预案 + TwoDPlanList: any + getTwoDPlanList() { + let paramsData = { + companyId: this.route.snapshot.queryParams.companyId, + pageSize: "999" + } + this.http.get("/api/PlanComponents", { params: paramsData }).subscribe((data: any) => { + this.TwoDPlanList = data.items.filter((item) => { + return item.planType == 1 + }) + console.log(this.TwoDPlanList) + }) + } + + + + + //获取实景图 allRealPicture getRealPicture() { @@ -125,10 +146,11 @@ export class CreatePlanOnlineFiveComponent implements OnInit { planTemplateData: any //获得模板信息 getTemplateData() { - this.http.get('/api/PlanTemplate').subscribe(data => { - this.planTemplateData = JSON.parse(data[2].data).filter(item => - item.completed == true - ) + this.http.get(`/api/PlanComponents/${this.route.snapshot.queryParams.planId}/WebText`).subscribe(data => { + console.log('预案内容',data) + // this.planTemplateData = JSON.parse(data.webdata).filter(item => + // item.completed == true + // ) console.log(this.planTemplateData) this.planTemplateData.forEach(element => { if (element.groupName == '重点图示') { @@ -141,6 +163,11 @@ export class CreatePlanOnlineFiveComponent implements OnInit { element.attribute = [{ name: '', imgArr: [] }] } } + if (element.groupName == '预案附件') { + if (!element.attribute) { + element.attribute = [{ name: '', imgArr: [] }] + } + } if (element.groupName == '处置要点') { if (!element.attribute) { element.attribute = [{ name: '', content: '' }] @@ -153,6 +180,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { } }); }) + } @@ -166,7 +194,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { } //通过左侧查看实景图 gallery - lookkeyImgItemLeft(key1, key2,i) { + lookkeyImgItemLeft(key1, key2, i) { let dom = document.getElementById(`viewerjs`) let pObjs = dom.childNodes; let node = document.createElement("img") @@ -243,12 +271,12 @@ export class CreatePlanOnlineFiveComponent implements OnInit { }) }) this.allBuildings = data - this.planTemplateData[0].building=[] - for(var i=0;i -
- -
- - -
- -
-
\ No newline at end of file +
+ +
+
+ +
+
+ +
\ No newline at end of file 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 9eb53dc..e90a214 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 @@ -94,7 +94,7 @@ export class EntryPlanLookComponent implements OnInit { ngOnInit(): void { this.tabledataSource = [ ] - // this.getCompanyData() + this.getCompanyData() this.isoperation = this.route.snapshot.queryParams.operation this.unitdata.unitname = this.route.snapshot.queryParams.unitName this.unitdata.organizationName = this.route.snapshot.queryParams.orName @@ -207,7 +207,8 @@ export class EntryPlanLookComponent implements OnInit { } else if (e.planType == 16) { if (e.attachmentUrls == null) { - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}`) + 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 = {}; diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index 7771edd..5cd37cb 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -662,8 +662,8 @@ export class CollectionToolsComponent implements OnInit { }//多个素材共同属性 multipleAssetData: any//当前多选的素材 firstMultipleAssetData: any//当前多选的第一个素材 - organizationName: any = this.route.snapshot.queryParams.orName//当前预案单位所属机构名称 - organizationId: any = this.route.snapshot.queryParams.orId//当前预案单位所属机构名称 + organizationName: any = this.route.snapshot.queryParams.orName || sessionStorage.getItem('orName')//当前预案单位所属机构名称 + organizationId: any = this.route.snapshot.queryParams.orId || sessionStorage.getItem('orId')//当前预案单位所属机构名称 ngOnInit(): void { this.canvasData.isInheritSky = { weather: '', airTemperature: '', windDirection: '', windScale: '', }; //缓存 节点 天气 AxMessageSystem.addListener('selectionChanged', () => { diff --git a/src/assets/images/2Dplan.png b/src/assets/images/2Dplan.png new file mode 100644 index 0000000..d3ff80e Binary files /dev/null and b/src/assets/images/2Dplan.png differ