From 59e3b8cbcf6fb7554ca7fe9e3af1d306c132d7f9 Mon Sep 17 00:00:00 2001 From: 13562321995 <13562321995@163.com> Date: Thu, 7 Apr 2022 16:42:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=BB=9A=E8=BD=AE=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E7=A9=BF=E9=80=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/collection-tools-examinee/examinationQuestions.ts | 7 +++++++ src/app/ui/collection-tools-read/examinationQuestions.ts | 7 +++++++ src/app/ui/collection-tools/examinationQuestions.ts | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/src/app/ui/collection-tools-examinee/examinationQuestions.ts b/src/app/ui/collection-tools-examinee/examinationQuestions.ts index cf1b05b..724df6b 100644 --- a/src/app/ui/collection-tools-examinee/examinationQuestions.ts +++ b/src/app/ui/collection-tools-examinee/examinationQuestions.ts @@ -29,6 +29,13 @@ export class examinationQuestionsExaminee { item.children = this.processingData(allFireElements,realData) }) :null this.renderData = data + + //阻止 滚轮滚动事件穿透 + window.setTimeout(()=>{ + (document.getElementById('nodeTree') as any).onmousewheel = (e)=>{ + e.stopPropagation(); + } + }, 0) } //处理数据 将消防要素模板与真实素材结合 processingData(allFireElements,realData){ diff --git a/src/app/ui/collection-tools-read/examinationQuestions.ts b/src/app/ui/collection-tools-read/examinationQuestions.ts index 087c8c2..5fc068d 100644 --- a/src/app/ui/collection-tools-read/examinationQuestions.ts +++ b/src/app/ui/collection-tools-read/examinationQuestions.ts @@ -29,6 +29,13 @@ export class examinationQuestionsRead { item.children = this.processingData(allFireElements,realData) }) :null this.renderData = data + + //阻止 滚轮滚动事件穿透 + window.setTimeout(()=>{ + (document.getElementById('nodeTree') as any).onmousewheel = (e)=>{ + e.stopPropagation(); + } + }, 0) } //处理数据 将消防要素模板与真实素材结合 processingData(allFireElements,realData){ diff --git a/src/app/ui/collection-tools/examinationQuestions.ts b/src/app/ui/collection-tools/examinationQuestions.ts index 4d8f45b..3ccf9fb 100644 --- a/src/app/ui/collection-tools/examinationQuestions.ts +++ b/src/app/ui/collection-tools/examinationQuestions.ts @@ -55,6 +55,13 @@ export class examinationQuestions { }) } }) + + //阻止 滚轮滚动事件穿透 + window.setTimeout(()=>{ + (document.getElementById('nodeTree') as any).onmousewheel = (e)=>{ + e.stopPropagation(); + } + }, 0) }