From 90dc4cefe57e667ff07ca5b767367a9805cc838d Mon Sep 17 00:00:00 2001
From: cpf <1105965053@qq.com>
Date: Thu, 11 Mar 2021 09:46:24 +0800
Subject: [PATCH 1/2] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E6=B6=88=E9=98=B2=E8=AE=BE=E6=96=BD=E4=B8=80=E9=94=AE=E6=98=BE?=
=?UTF-8?q?=E9=9A=90=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../collection-tools.component.html | 3 ++-
.../collection-tools.component.scss | 11 ++++++++-
.../collection-tools.component.ts | 24 +++++++++++++++----
.../collection-tools.component.ts | 5 ++--
.../collection-tools.component.html | 1 +
.../collection-tools.component.scss | 10 ++++++++
.../collection-tools.component.ts | 22 ++++++++++++++---
7 files changed, 63 insertions(+), 13 deletions(-)
diff --git a/src/app/ui/collection-tools-building/collection-tools.component.html b/src/app/ui/collection-tools-building/collection-tools.component.html
index b79704f..8b7ff63 100644
--- a/src/app/ui/collection-tools-building/collection-tools.component.html
+++ b/src/app/ui/collection-tools-building/collection-tools.component.html
@@ -431,8 +431,9 @@
+
visibility
-
+
diff --git a/src/app/ui/collection-tools-building/collection-tools.component.scss b/src/app/ui/collection-tools-building/collection-tools.component.scss
index 2c39cc0..25373a9 100644
--- a/src/app/ui/collection-tools-building/collection-tools.component.scss
+++ b/src/app/ui/collection-tools-building/collection-tools.component.scss
@@ -191,7 +191,6 @@
}
}
-
//右侧属性
.property{
display: flex;
@@ -314,6 +313,16 @@
}
}
+.hideAllTreeNode {
+ box-sizing: border-box;
+ margin: 3px 0;
+ padding: 0 6px 0 10px;
+ font-size: 14px;
+ height: 24px;
+ line-height: 24px;
+ display: flex;
+ label { display: inline-block; flex: 1; cursor: pointer; }
+}
//右侧消防要素
.firecategories{
background-color: #fff;
diff --git a/src/app/ui/collection-tools-building/collection-tools.component.ts b/src/app/ui/collection-tools-building/collection-tools.component.ts
index 8339bb4..17de288 100644
--- a/src/app/ui/collection-tools-building/collection-tools.component.ts
+++ b/src/app/ui/collection-tools-building/collection-tools.component.ts
@@ -1316,7 +1316,7 @@ export class CollectionToolsBuildingComponent implements OnInit {
//处理 tree 数据结构
handleTreeData (storeyData) {
-
+ this.hideAllTreenode = true
this.storeyData = storeyData
let data = this.allFireElements //所有消防要素模板
let treeData = [] //tree型 处理完成后的数据
@@ -1384,9 +1384,24 @@ export class CollectionToolsBuildingComponent implements OnInit {
this.canvas.setHighlight(iconHighLightArr)
}
+ hideAllTreenode:boolean = true; //全部显示/隐藏tree节点
+ toggoleAllTreenode () {
+ this.hideAllTreenode = !this.hideAllTreenode
+ let list = []
+ this.allFireElements.forEach(element=>{
+ if (element.isTemplate) { this.hideAllTreenode? element.isLook = false : element.isLook = true }
+ })
+ this.treeControl.dataNodes.forEach(item=>{
+ this.hideAllTreenode? item.isLook = false : item.isLook = true
+ item.level === 0 ? list.push(item) : null
+ })
+ list.forEach(item=>{
+ this.clickLookItem(item)
+ })
+ }
+
//点击数节点的显示隐藏icon
clickLookItem(node){
-
//修改真实素材islook属性
for(let key in this.storeyData.data){
if(key == node.id){
@@ -1397,9 +1412,8 @@ export class CollectionToolsBuildingComponent implements OnInit {
//所有消防要素模板变化islook值
if(node.isTemplate){
this.allFireElements.forEach(item=>{
- if(item.id == node.id || item.name == "其他"){
- item.isLook = !item.isLook
- }
+ if(item.id == node.id){ item.isLook = !item.isLook }
+ if (item.name == '其他' && node.name == '其他') { item.isLook = !item.isLook }
})
}
diff --git a/src/app/ui/collection-tools-plan/collection-tools.component.ts b/src/app/ui/collection-tools-plan/collection-tools.component.ts
index 79f35e0..c75df3a 100644
--- a/src/app/ui/collection-tools-plan/collection-tools.component.ts
+++ b/src/app/ui/collection-tools-plan/collection-tools.component.ts
@@ -1409,9 +1409,8 @@ export class CollectionToolsPlanComponent implements OnInit {
//所有消防要素模板变化islook值
if(node.isTemplate){
this.allFireElements.forEach(item=>{
- if(item.id == node.id || item.name == "其他"){
- item.isLook = !item.isLook
- }
+ if(item.id == node.id){ item.isLook = !item.isLook }
+ if (item.name == '其他' && node.name == '其他') { item.isLook = !item.isLook }
})
}
diff --git a/src/app/ui/collection-tools/collection-tools.component.html b/src/app/ui/collection-tools/collection-tools.component.html
index 21f7a4b..9d261ba 100644
--- a/src/app/ui/collection-tools/collection-tools.component.html
+++ b/src/app/ui/collection-tools/collection-tools.component.html
@@ -507,6 +507,7 @@
+
visibility
diff --git a/src/app/ui/collection-tools/collection-tools.component.scss b/src/app/ui/collection-tools/collection-tools.component.scss
index c7c80a4..8da000d 100644
--- a/src/app/ui/collection-tools/collection-tools.component.scss
+++ b/src/app/ui/collection-tools/collection-tools.component.scss
@@ -357,6 +357,16 @@
}
}
+.hideAllTreeNode {
+ box-sizing: border-box;
+ margin: 3px 0;
+ padding: 0 6px 0 10px;
+ font-size: 14px;
+ height: 24px;
+ line-height: 24px;
+ display: flex;
+ label { display: inline-block; flex: 1; cursor: pointer; }
+}
//右侧消防要素
.firecategories{
position: relative;
diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts
index 9502f08..328f1ae 100644
--- a/src/app/ui/collection-tools/collection-tools.component.ts
+++ b/src/app/ui/collection-tools/collection-tools.component.ts
@@ -1329,6 +1329,7 @@ export class CollectionToolsComponent implements OnInit {
selectPanelPoint //传过来的处置素材
//处理 tree 数据结构
handleTreeData (storeyData,selectPanelPoint) {
+ this.hideAllTreenode = true
this.storeyData = storeyData
this.selectPanelPoint = selectPanelPoint
let data = this.allFireElements //所有消防要素模板
@@ -1420,6 +1421,22 @@ export class CollectionToolsComponent implements OnInit {
this.canvas.setHighlight(iconHighLightArr)
}
+ hideAllTreenode:boolean = true; //全部显示/隐藏tree节点
+ toggoleAllTreenode () {
+ this.hideAllTreenode = !this.hideAllTreenode
+ let list = []
+ this.allFireElements.forEach(element=>{
+ if (element.isTemplate) { this.hideAllTreenode? element.isLook = false : element.isLook = true }
+ })
+ this.treeControl.dataNodes.forEach(item=>{
+ this.hideAllTreenode? item.isLook = false : item.isLook = true
+ item.level === 0 ? list.push(item) : null
+ })
+ list.forEach(item=>{
+ this.clickLookItem(item)
+ })
+ }
+
//点击数节点的显示隐藏icon
clickLookItem(node){
//修改真实素材islook属性
@@ -1439,9 +1456,8 @@ export class CollectionToolsComponent implements OnInit {
//所有消防要素模板变化islook值
if(node.isTemplate){
this.allFireElements.forEach(item=>{
- if(item.id == node.id || item.name == "其他"){
- item.isLook = !item.isLook
- }
+ if ( item.id == node.id ) { item.isLook = !item.isLook }
+ if (item.name == '其他' && node.name == '其他') { item.isLook = !item.isLook }
})
}
From 9a3f913e105638e6618fcd3f2bdcf98ac30ac8fd Mon Sep 17 00:00:00 2001
From: cpf <1105965053@qq.com>
Date: Thu, 11 Mar 2021 11:07:37 +0800
Subject: [PATCH 2/2] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E5=AE=8C=E6=95=B4?=
=?UTF-8?q?=E5=BA=A6=E5=BE=97=E5=88=86=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../edit-plan-info/edit-plan-info.component.html | 15 +++++++++++----
.../edit-plan-info/edit-plan-info.component.scss | 13 +++++++++++++
.../edit-plan-info/edit-plan-info.component.ts | 5 +++--
.../view-unit-details.component.html | 12 +++++++++++-
.../view-unit-details.component.scss | 13 +++++++++++++
.../view-unit-details.component.ts | 10 ++++------
6 files changed, 55 insertions(+), 13 deletions(-)
diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.html b/src/app/key-unit/edit-plan-info/edit-plan-info.component.html
index c9ae164..060d83c 100644
--- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.html
+++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.html
@@ -1,7 +1,14 @@
-
-
-
-
+
+
+ *单位毗邻模块标注完整可得满分
+ *消防设施,重点部位模块标注完整可得满分
+ *总平面图模块标注完整可得满分
+ *层平面图模块标注完整可得满分
+ *填写2条以上可得满分
+ *外观,室内,安全出口上传图片可得满分
+ *上传2张CAD图片可得满分
+
+
diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss b/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss
index 740a835..ac24283 100644
--- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss
+++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss
@@ -1,3 +1,16 @@
.mat-tab-body-wrapper{
height: 100%!important;
+}
+.fixedPrompt {
+ position: relative;
+ width: 100%;
+ height: 0px;
+ .scorePrompt {
+ width: 100%;
+ text-align: center;
+ position: absolute;
+ top: 35px;
+ font-size: 16px;
+ z-index: 111;
+ }
}
\ No newline at end of file
diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts b/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts
index 63466e0..554de7e 100644
--- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts
+++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { FormControl } from '@angular/forms';
@Component({
selector: 'app-edit-plan-info',
@@ -9,7 +10,7 @@ export class EditPlanInfoComponent implements OnInit {
constructor() { }
- ngOnInit(): void {
- }
+ ngOnInit(): void { }
+ selected = new FormControl(0);
}
diff --git a/src/app/key-unit/view-unit-details/view-unit-details.component.html b/src/app/key-unit/view-unit-details/view-unit-details.component.html
index d544d46..85803af 100644
--- a/src/app/key-unit/view-unit-details/view-unit-details.component.html
+++ b/src/app/key-unit/view-unit-details/view-unit-details.component.html
@@ -1,4 +1,14 @@
-
+
+ *单位信息,建筑信息填写完整可得满分
+ *单位毗邻模块标注完整可得满分
+ *消防设施,重点部位模块标注完整可得满分
+ *总平面图模块标注完整可得满分
+ *层平面图模块标注完整可得满分
+ *填写2条以上可得满分
+ *外观,室内,安全出口上传图片可得满分
+ *上传2张CAD图片可得满分
+
+
diff --git a/src/app/key-unit/view-unit-details/view-unit-details.component.scss b/src/app/key-unit/view-unit-details/view-unit-details.component.scss
index 740a835..ac24283 100644
--- a/src/app/key-unit/view-unit-details/view-unit-details.component.scss
+++ b/src/app/key-unit/view-unit-details/view-unit-details.component.scss
@@ -1,3 +1,16 @@
.mat-tab-body-wrapper{
height: 100%!important;
+}
+.fixedPrompt {
+ position: relative;
+ width: 100%;
+ height: 0px;
+ .scorePrompt {
+ width: 100%;
+ text-align: center;
+ position: absolute;
+ top: 35px;
+ font-size: 16px;
+ z-index: 111;
+ }
}
\ No newline at end of file
diff --git a/src/app/key-unit/view-unit-details/view-unit-details.component.ts b/src/app/key-unit/view-unit-details/view-unit-details.component.ts
index 1a874db..76804c3 100644
--- a/src/app/key-unit/view-unit-details/view-unit-details.component.ts
+++ b/src/app/key-unit/view-unit-details/view-unit-details.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { FormControl } from '@angular/forms';
@Component({
selector: 'app-view-unit-details',
@@ -9,10 +10,7 @@ export class ViewUnitDetailsComponent implements OnInit {
constructor() { }
- ngOnInit(): void {
- }
-
- selectedtab(e){
- sessionStorage.setItem("tabsindex",e.index)
- }
+ ngOnInit(): void { }
+ selected = new FormControl(0);
+
}