From 94bc63394cfff0a98efbca51ab50c1410f2b607c Mon Sep 17 00:00:00 2001 From: username <1105965053@qq.com> Date: Tue, 22 Sep 2020 15:26:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E5=80=92=E8=AE=A1?= =?UTF-8?q?=E6=97=B6=E5=8A=A8=E6=80=81=E6=A0=B7=E5=BC=8F=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan-assistance.component.html | 3 ++- .../plan-assistance.component.scss | 11 +++++++++++ .../plan-assistance/plan-assistance.component.ts | 16 ++++++++-------- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/app/ui/plan-assistance/plan-assistance.component.html b/src/app/ui/plan-assistance/plan-assistance.component.html index 8e9cf2c..bb72e02 100644 --- a/src/app/ui/plan-assistance/plan-assistance.component.html +++ b/src/app/ui/plan-assistance/plan-assistance.component.html @@ -1,4 +1,5 @@
+
到场力量
@@ -11,7 +12,7 @@
已到场
diff --git a/src/app/ui/plan-assistance/plan-assistance.component.scss b/src/app/ui/plan-assistance/plan-assistance.component.scss index 397937a..dcef206 100644 --- a/src/app/ui/plan-assistance/plan-assistance.component.scss +++ b/src/app/ui/plan-assistance/plan-assistance.component.scss @@ -12,6 +12,7 @@ width: 100%; height: 40px; min-height: 40px; + overflow: hidden; } .leftHeader { line-height: 40px; @@ -77,6 +78,16 @@ } } } +//打开关闭左侧 车辆 +.openLeft { + width: 300px; + transition: width 0.5s; +} +.closeLeft { + width: 0px; + min-width: 0px; + transition: width 0.5s; +} //选中状态 .selectIcon { diff --git a/src/app/ui/plan-assistance/plan-assistance.component.ts b/src/app/ui/plan-assistance/plan-assistance.component.ts index 58791b3..3a6ccd1 100644 --- a/src/app/ui/plan-assistance/plan-assistance.component.ts +++ b/src/app/ui/plan-assistance/plan-assistance.component.ts @@ -6866,7 +6866,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '水罐消防车', FireTeamName: '八塘消防救援站', // 所属消防队 - ReachTime: 240, // 到场剩余时间 + ReachTime: 237, // 到场剩余时间 WaterYield: '12t', // 载水量 Foam: '0t', // 载泡沫 PeopleNum: 6, // 载人数 @@ -6916,7 +6916,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '水罐泡沫消防车', FireTeamName: '八塘消防救援站', // 所属消防队 - ReachTime: 240, // 到场剩余时间 + ReachTime: 249, // 到场剩余时间 WaterYield: '6t', // 载水量 Foam: '2t', // 载泡沫 PeopleNum: 6, // 载人数 @@ -6966,7 +6966,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '水罐泡沫消防车', FireTeamName: '八塘消防救援站', // 所属消防队 - ReachTime: 240, // 到场剩余时间 + ReachTime: 277, // 到场剩余时间 WaterYield: '3t', // 载水量 Foam: '1t', // 载泡沫 PeopleNum: 8, // 载人数 @@ -7016,7 +7016,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '举高喷射消防车', FireTeamName: '八塘消防救援站', // 所属消防队 - ReachTime: 300, // 到场剩余时间 + ReachTime: 310, // 到场剩余时间 WaterYield: '16t', // 载水量 Foam: '2t', // 载泡沫 PeopleNum: 4, // 载人数 @@ -7066,7 +7066,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '水罐泡沫消防车', FireTeamName: '龚州消防救援站', // 所属消防队 - ReachTime: 660, // 到场剩余时间 + ReachTime: 666, // 到场剩余时间 WaterYield: '6t', // 载水量 Foam: '2t', // 载泡沫 PeopleNum: 6, // 载人数 @@ -7116,7 +7116,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '水罐泡沫消防车', FireTeamName: '龚州消防救援站', // 所属消防队 - ReachTime: 720, // 到场剩余时间 + ReachTime: 721, // 到场剩余时间 WaterYield: '5t', // 载水量 Foam: '1t', // 载泡沫 PeopleNum: 6, // 载人数 @@ -7166,7 +7166,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '水罐泡沫消防车', FireTeamName: '龚州消防救援站', // 所属消防队 - ReachTime: 960, // 到场剩余时间 + ReachTime: 978, // 到场剩余时间 WaterYield: '3t', // 载水量 Foam: '1t', // 载泡沫 PeopleNum: 6, // 载人数 @@ -7216,7 +7216,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }, Name: '举高喷射消防车', FireTeamName: '龚州消防救援站', // 所属消防队 - ReachTime: 960, // 到场剩余时间 + ReachTime: 999, // 到场剩余时间 WaterYield: '18t', // 载水量 Foam: '2t', // 载泡沫 PeopleNum: 4, // 载人数 From e48b8aa018bf199b9a2ac981e089b5205b7a7555 Mon Sep 17 00:00:00 2001 From: username <1105965053@qq.com> Date: Tue, 22 Sep 2020 16:30:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B0=B4=E6=BA=90.=E8=BD=A6=E8=BE=86=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan-assistance.component.html | 6 +++--- .../plan-assistance.component.scss | 12 ++++++++++-- .../plan-assistance/plan-assistance.component.ts | 16 ++++++++++------ 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/app/ui/plan-assistance/plan-assistance.component.html b/src/app/ui/plan-assistance/plan-assistance.component.html index bb72e02..9bdf0ac 100644 --- a/src/app/ui/plan-assistance/plan-assistance.component.html +++ b/src/app/ui/plan-assistance/plan-assistance.component.html @@ -1,7 +1,7 @@
-
到场力量
+
到场力量
@@ -69,8 +69,8 @@

-

{{canvasData.selectCar.LinkCar}}

-

{{canvasData.selectCar.WaterOccupy}}

+

{{canvasData.selectCar.LinkCar}}

+

{{canvasData.selectCar.WaterOccupy}}

diff --git a/src/app/ui/plan-assistance/plan-assistance.component.scss b/src/app/ui/plan-assistance/plan-assistance.component.scss index dcef206..78e6f57 100644 --- a/src/app/ui/plan-assistance/plan-assistance.component.scss +++ b/src/app/ui/plan-assistance/plan-assistance.component.scss @@ -12,7 +12,6 @@ width: 100%; height: 40px; min-height: 40px; - overflow: hidden; } .leftHeader { line-height: 40px; @@ -135,7 +134,16 @@ display: flex; align-items: center; justify-content: center; - p { flex: 1; text-align: center; line-height: 35px; } + p { + color: #fff; + flex: 1; + text-align: center; + line-height: 35px; + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; + cursor: pointer; + } } .taskInput { width: 100px; diff --git a/src/app/ui/plan-assistance/plan-assistance.component.ts b/src/app/ui/plan-assistance/plan-assistance.component.ts index 5494f4b..07b884c 100644 --- a/src/app/ui/plan-assistance/plan-assistance.component.ts +++ b/src/app/ui/plan-assistance/plan-assistance.component.ts @@ -7364,11 +7364,6 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { } ]; - bottomIsShow = false; // 底部车辆信息是否展示 - rightIsShow = true; // 右侧楼层是否展示 - rightSayIsShow = false; // 右侧语音是否展示 - selectCarID = ''; // 选中车辆 样式 - ngOnInit(): void { const that = this; window.setTimeout(() => { @@ -7387,8 +7382,12 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { this.workingArea.on('select', obj => { // 选中素材属性注入函数 if (obj && obj.assetData && obj.assetData.ReachTime != undefined) { + this.selectCarID = JSON.parse(JSON.stringify( obj.assetData.Id || '' )); //选中样式 赋值ID + let linkCar = this.canvasData.getLinkCarName(obj) //连接车辆 + let waterOccupy = this.canvasData.getWaterOccupyName(obj) //水源占用 + obj.assetData.LinkCar = linkCar //连接车辆 + obj.assetData.WaterOccupy = waterOccupy //水源占用 this.canvasData.selectCar = obj.assetData; - this.selectCarID = JSON.parse(JSON.stringify( obj.assetData.Id || '' )); this.bottomIsShow = true; } }); @@ -7399,6 +7398,11 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit { }); } + bottomIsShow:boolean = false; // 底部车辆信息是否展示 + rightIsShow:boolean = true; // 右侧楼层是否展示 + rightSayIsShow:boolean = false; // 右侧语音是否展示 + selectCarID:string = ''; // 选中车辆ID 选中效果css + // 开始绘制 plot(e) { e == 0 ? this.workingArea.beginPaintingArrows() : this.workingArea.beginPaintPipeline(); From 6b8c02e691850f1bc44ad87c5ca198edf248b4da Mon Sep 17 00:00:00 2001 From: Shaojihao <55341701@qq.com> Date: Tue, 22 Sep 2020 16:33:41 +0800 Subject: [PATCH 3/3] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E7=B1=BB=E4=BC=BC?= =?UTF-8?q?=E9=A2=84=E6=A1=88=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collection-tools.component.html | 103 ++++++++++------- .../collection-tools.component.scss | 109 ++++++++++++++++++ .../collection-tools.component.ts | 25 +++- src/app/ui/dangerous/dangerous.component.html | 27 ++++- src/app/ui/dangerous/dangerous.component.scss | 71 +++++++++++- src/app/ui/dangerous/dangerous.component.ts | 10 +- .../ui/plan/collection-tools.component.html | 2 + .../similar-plans.component.html | 22 ++++ .../similar-plans.component.scss | 74 +++++++++++- .../similar-plans/similar-plans.component.ts | 6 +- 10 files changed, 397 insertions(+), 52 deletions(-) diff --git a/src/app/ui/collection-tools/collection-tools.component.html b/src/app/ui/collection-tools/collection-tools.component.html index f2f933b..8069051 100644 --- a/src/app/ui/collection-tools/collection-tools.component.html +++ b/src/app/ui/collection-tools/collection-tools.component.html @@ -112,36 +112,36 @@
- -
-
- 总平面图 -
-
- {{item.name}} -
- +
+
+ 总平面图 +
+
+ {{item.name}} +
+ -
+
--> +
@@ -287,8 +287,39 @@
-
+
+ + +
+
+ + +
+
+
+
+
+ + + + +
keyboard_arrow_up
+
+
+
+ 节点详情 +
+
+ 注意事项 +
+
expand_more
+
+
+
{{canvasData.selectPanelPointBaseData.description}}
+
{{canvasData.selectPanelPointBaseData.notes}}
+
+
@@ -492,21 +523,7 @@
- +
diff --git a/src/app/ui/collection-tools/collection-tools.component.scss b/src/app/ui/collection-tools/collection-tools.component.scss index b7d3ef5..0681dde 100644 --- a/src/app/ui/collection-tools/collection-tools.component.scss +++ b/src/app/ui/collection-tools/collection-tools.component.scss @@ -230,6 +230,115 @@ } .canvas{ flex: 5; + .closebottombtn{ + width: 30px; + vertical-align: sub; + } + .openbottombtn{ + width: 30px; + color: white; + text-align: center; + height: 30px; + line-height: 30px; + vertical-align: sub; + position: absolute; + left: 5px; + bottom: 5px; + background-color:rgba(2, 44, 73, 0.9); + } + //打开时 + .openBottom{ + margin-bottom: 0; + transition: margin-bottom 1s; + } + //关闭 + .closeBottom{ + margin-bottom: -300px!important; + transition: margin-bottom 1s; + } + //右侧 楼层UI + .rightStorey { + width: 100px; + height: 250px; + position: absolute; + left: 0; + top: 50%; + margin-top: -200px; + z-index: 9999; + display: flex; + flex-direction: column; + background-color:rgba(2, 44, 73, 0.9); + color: #fff; + font-weight: 300; + >div {text-align: center; line-height: 25px;} + } + .showRightStorey { + position: absolute; + right: 0; + top: 50%; + margin-top: -13px; + z-index: 9999; + width: 26px; + height: 26px; + line-height: 26px; + text-align: center; + background-color:rgba(2, 44, 73, 0.9); + color: #fff; + } + //打开关闭右侧 楼层 + .openRight { + margin-right: 0px; + transition: margin-right 0.5s; + } + .closeRight { + margin-right: -300px; + transition: margin-right 0.5s; + } + .canvasbottomCss{ + margin-bottom: 0; + transition: margin-bottom 0.5s; + position: absolute; + bottom: 0; + width: 100%; + height: 200px; + display: flex; + flex-direction: column; + .title{ + border-bottom: 1px solid #30bbec; + flex: 1; + div{ + cursor: pointer; + background-color: rgba(2, 44, 73, 0.9); + width: 120px; + height: 30px; + line-height: 35px; + text-align: center; + margin-right: 10px; + color: white; + font-style: italic; + font-size:18px; + + } + .closebottombtn{ + width: 30px; + vertical-align: sub; + } + .detailsAndattentBtn{ + background-color: #ed863b; + } + } + .body{ + flex: 10; + background-color:rgba(2, 44, 73, 0.9); + div{ + color: #d0e0f4; + font-size: 16px; + letter-spacing:5px; + margin: 5px 0 0 8px; + } + } + + } } .functionalDomainRight { color: white; diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index 0ab1dfe..6821e07 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -69,6 +69,18 @@ export class CollectionToolsComponent implements OnInit { mySwiper:any //轮播图实例 gallery//viewerJs实例 + + rightIsShow = true; // 右侧楼层是否展示 + // 打开 右侧楼层 + openRight() { + this.rightIsShow = true; + } + + // 关闭 右侧楼层 + closeRight() { + console.log(123) + this.rightIsShow = false; + } //设置属性框 setAssetsProperty(obj){ //初始化viewerJs实例 @@ -174,12 +186,23 @@ export class CollectionToolsComponent implements OnInit { //节点详情 details(){ this.detailsAndattentBtn = true + console.log(this.canvasData.selectPanelPointBaseData) + } //注意事项 attent(){ this.detailsAndattentBtn = false + console.log(this.canvasData.selectPanelPointBaseData) + } + bottomIsShow = true//底部隐藏按钮 + //关闭底部 + closedbottom(){ + this.bottomIsShow = false + } + //打开底部 + openedbottom(){ + this.bottomIsShow = true } - //消防要素div边框高度调节 firecategoriesDivMouseDown(e){ document.onmousemove = (ev) => { diff --git a/src/app/ui/dangerous/dangerous.component.html b/src/app/ui/dangerous/dangerous.component.html index 3a49d5b..829b567 100644 --- a/src/app/ui/dangerous/dangerous.component.html +++ b/src/app/ui/dangerous/dangerous.component.html @@ -1,7 +1,28 @@
-
-
危化品类型
-
危化品分布
+
+
危化品类型
+
危化品分布
+
+ volume_up +
+
+
泵房
+
控制室
+ +
+
+
+ settings_voice +
+
+ 按住说话 +
+
+ search +
+
+
+
diff --git a/src/app/ui/dangerous/dangerous.component.scss b/src/app/ui/dangerous/dangerous.component.scss index 150b9c7..35e823d 100644 --- a/src/app/ui/dangerous/dangerous.component.scss +++ b/src/app/ui/dangerous/dangerous.component.scss @@ -9,7 +9,7 @@ width: 100%; padding-top: 10px; font-size: 20px; - div{ + .divtype{ display: inline-block; width: 126px; height: 35px; @@ -22,6 +22,73 @@ .selectedBtn{ background-color: #e88108; } + .bigTalkBox{ + user-select: none; + .titleIcon{ + font-size: 33px; + vertical-align: sub; + color: white; + cursor: pointer; + } + .talkBox{ + width: 309px; + height: 326px; + border: 1px solid #30bbec; + background-color: #013a64; + opacity: .9 ; + position: absolute; + top: 32px; + right:4px; + z-index: 2000; + .btndiv{ + div{ + border-radius: 18px; + width: 70px; + height: 30px; + text-align: center; + line-height: 30px; + display: inline-block; + font-size: 13px; + color: white; + cursor: pointer; + + } + div:nth-child(1){ + background-color: #fe9400; + margin: 10px; + } + div:nth-child(2){ + background-color: #f95e5a; + } + } + .bottomDiv{ + position: absolute; + bottom:6px; + width: 100%; + height: 32px; + line-height: 32px; + display: flex; + color: white; + text-align: center; + mat-icon{ + vertical-align: sub; + } + div:nth-child(1){ + flex: 1; + } + div:nth-child(2){ + flex: 6; + color: #409eff; + background: url('../../../assets/images/输入框.png'); + background-size: 100% 100%; + } + div:nth-child(3){ + flex: 1; + + } + } + } + } } .body{ width: 99.9%; @@ -190,3 +257,5 @@ top: 0; } + + diff --git a/src/app/ui/dangerous/dangerous.component.ts b/src/app/ui/dangerous/dangerous.component.ts index 3fe0e24..3cf7dbc 100644 --- a/src/app/ui/dangerous/dangerous.component.ts +++ b/src/app/ui/dangerous/dangerous.component.ts @@ -11,6 +11,11 @@ export class DangerousComponent implements OnInit { map:any //地图 ngOnInit(): void { + } + //打开说话框 + isOpenTalk = false + openTalkDiv(){ + this.isOpenTalk = !this.isOpenTalk } selectedIndex = 0 typedata = [ @@ -157,7 +162,10 @@ export class DangerousComponent implements OnInit { detailNode = null openDetails(item){ this.detailNode = item - this.isOpen = true + if(item.content){ + this.isOpen = true + } + this.num = 0 } diff --git a/src/app/ui/plan/collection-tools.component.html b/src/app/ui/plan/collection-tools.component.html index 2fcbec8..83a7929 100644 --- a/src/app/ui/plan/collection-tools.component.html +++ b/src/app/ui/plan/collection-tools.component.html @@ -8,6 +8,7 @@
{{item.name}}
+
volume_up
@@ -29,6 +30,7 @@
+
diff --git a/src/app/ui/similar-plans/similar-plans.component.html b/src/app/ui/similar-plans/similar-plans.component.html index c396c6d..5483b3c 100644 --- a/src/app/ui/similar-plans/similar-plans.component.html +++ b/src/app/ui/similar-plans/similar-plans.component.html @@ -2,6 +2,28 @@
返回
+
+ volume_up +
+
+
泵房
+
控制室
+ +
+
+
+ settings_voice +
+
+ 按住说话 +
+
+ search +
+
+
+
+
diff --git a/src/app/ui/similar-plans/similar-plans.component.scss b/src/app/ui/similar-plans/similar-plans.component.scss index f829534..1586d5b 100644 --- a/src/app/ui/similar-plans/similar-plans.component.scss +++ b/src/app/ui/similar-plans/similar-plans.component.scss @@ -35,7 +35,7 @@ } .backBtn{ position: absolute; - right: 30px; + right: 60px; top: 8px; width: 80px; height: 30px; @@ -49,4 +49,74 @@ } .backBtn:hover{ background-color: #0c4c69; -} \ No newline at end of file +} +.bigTalkBox{ + user-select: none; + .titleIcon{ + font-size: 33px; + vertical-align: sub; + color: white; + cursor: pointer; + } + .talkBox{ + width: 309px; + height: 326px; + border: 1px solid #30bbec; + background-color: #013a64; + opacity: .9 ; + position: absolute; + top: 32px; + right:4px; + z-index: 2000; + .btndiv{ + div{ + border-radius: 18px; + width: 70px; + height: 30px; + text-align: center; + line-height: 30px; + display: inline-block; + font-size: 13px; + color: white; + cursor: pointer; + + } + div:nth-child(1){ + background-color: #fe9400; + margin: 10px; + } + div:nth-child(2){ + background-color: #f95e5a; + } + } + .bottomDiv{ + position: absolute; + bottom:6px; + width: 100%; + height: 32px; + line-height: 32px; + display: flex; + color: white; + text-align: center; + mat-icon{ + vertical-align: sub; + } + div:nth-child(1){ + flex: 1; + } + div:nth-child(2){ + flex: 6; + color: #409eff; + background: url('../../../assets/images/输入框.png'); + background-size: 100% 100%; + } + div:nth-child(3){ + flex: 1; + + } + } + } + } + .cssClass{ + top: -42px!important; + } \ No newline at end of file diff --git a/src/app/ui/similar-plans/similar-plans.component.ts b/src/app/ui/similar-plans/similar-plans.component.ts index 493e915..328c7aa 100644 --- a/src/app/ui/similar-plans/similar-plans.component.ts +++ b/src/app/ui/similar-plans/similar-plans.component.ts @@ -13,7 +13,11 @@ export class SimilarPlansComponent implements OnInit { ngOnInit(): void { } - + //打开说话框 + isOpenTalk = false + openTalkDiv(){ + this.isOpenTalk = !this.isOpenTalk + } leisiYuan=[ {danweiName:"广西钦州志诚化工有限公司",year:"XXXX年",zhoahuo:"XXX",weizhi:"2#储罐",xiangjin:parseFloat("80%")},