From 85c619a4160e35f6db680d612d3391ce47788b06 Mon Sep 17 00:00:00 2001
From: cpf <1105965053@qq.com>
Date: Fri, 24 Dec 2021 15:18:53 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2UI=20=E5=8F=AF=E5=B1=95?=
=?UTF-8?q?=E5=BC=80=E9=9D=A2=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../left-domain/left-domain.component.html | 38 ++++++++++---------
.../left-domain/left-domain.component.scss | 8 +---
.../left-domain/left-domain.component.ts | 12 +++++-
src/styles.scss | 16 ++++++++
4 files changed, 48 insertions(+), 26 deletions(-)
diff --git a/src/app/pages/left-domain/left-domain.component.html b/src/app/pages/left-domain/left-domain.component.html
index 7c94950..ee0bfd5 100644
--- a/src/app/pages/left-domain/left-domain.component.html
+++ b/src/app/pages/left-domain/left-domain.component.html
@@ -182,23 +182,27 @@
-
-
+
diff --git a/src/app/pages/left-domain/left-domain.component.scss b/src/app/pages/left-domain/left-domain.component.scss
index d40925d..125cabd 100644
--- a/src/app/pages/left-domain/left-domain.component.scss
+++ b/src/app/pages/left-domain/left-domain.component.scss
@@ -87,24 +87,18 @@
.treeRow{ width: 100%; display: flex; height: 30px; line-height: 30px; p:first-child{ flex: 1; }; p{ margin: 0; padding: 0; .anticon{ margin-right: 5px; font-size: 16px; } } }
}
.disposalPlan{ //处置预案
- .interval{ margin-top: 10px; } //分隔div
- font-size: 15px;
ul,li { width: 100%; }
li:before{ content: ""; width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: #23D9FF; margin-top: 15px; }
.publicDisposal{
height: 35px;
line-height: 35px;
color: #23D9FF;
- padding-left: 20px;
+ padding-left: 15px;
display: flex;
label{ display: block; .anticon{ margin-right: 10px; font-size: 18px; cursor: pointer; } }
span{ display: block; cursor: pointer; flex: 1; padding: 0 5px; overflow: hidden; text-overflow:ellipsis; white-space: nowrap; }
}
.disposalContent { color: #fff; .anticon{ color: #23D9FF; } }
- .disposalHeader {
- background: rgba(35, 153, 255, 0.41);
- border: 1px solid rgba(35, 217, 255, 0.4);
- }
.selectNode{ color: red; } //选中节点样式
}
//弹窗
diff --git a/src/app/pages/left-domain/left-domain.component.ts b/src/app/pages/left-domain/left-domain.component.ts
index b503fc1..e2c8fe0 100644
--- a/src/app/pages/left-domain/left-domain.component.ts
+++ b/src/app/pages/left-domain/left-domain.component.ts
@@ -258,8 +258,15 @@ export class LeftDomainComponent implements OnInit {
editSelectDisposal: MarkPlanData = null; //编辑预案名称 选中预案
editDisposalName: string = null; //显示/隐藏 编辑预案名称 弹窗
+ //打开 创建预案弹窗
+ openAddDisposal(event, id: number) {
+ event.stopPropagation()
+ this.addNodePop = id
+ }
+
//打开 编辑预案名称弹窗
- openEditDisposal(item: MarkPlanData) {
+ openEditDisposal(event, item: MarkPlanData) {
+ event.stopPropagation()
this.editSelectDisposal = item;
this.editDisposalName = JSON.parse(JSON.stringify(item.name))
}
@@ -271,7 +278,8 @@ export class LeftDomainComponent implements OnInit {
}
//删除预案/节点
- deleteDisposal(item: MarkPlanData, e?: MarkNodeData) {
+ deleteDisposal(event, item: MarkPlanData, e?: MarkNodeData) {
+ event.stopPropagation()
let isTrue = confirm('您确定要删除吗')
if (isTrue) {
if (!e) {
diff --git a/src/styles.scss b/src/styles.scss
index 877a497..44dae28 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -137,6 +137,22 @@ h1 {
canvas{ width: 100%; height: 100%; border: none; outline: none; }
}
#threeDimensional {
+ //可展开面板
+ #disposalPlan{
+ font-size: 15px;
+ .ant-collapse-header{
+ width: 100%;
+ height: 35px;
+ line-height: 35px;
+ color: #23D9FF;
+ padding: 0px;
+ background: rgba(35, 153, 255, 0.41);
+ border: 1px solid rgba(35, 217, 255, 0.4);
+ }
+ .ant-collapse { background-color: transparent; }
+ .ant-collapse-content { background-color: transparent; width: 100% }
+ }
+
.ant-tree{ color: #C4E2FC; } //tree
.ant-tree,.ant-tree-node-content-wrapper:hover,.ant-tree-node-content-wrapper.ant-tree-node-selected { background-color: transparent; } //tree
.ant-tree-node-content-wrapper { width: 100%; } //tree