From b2de4c827a52da17d881e8208e37e7fa08695478 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Tue, 22 Dec 2020 09:51:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E9=99=90=E5=88=B6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/collection-tools/collection-tools.component.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index ab742b6..30c1264 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -1095,9 +1095,14 @@ export class CollectionToolsComponent implements OnInit { openUploadQuestions () { let treeData = JSON.parse( JSON.stringify(this.dataSource.data) ) let nodes = JSON.parse( JSON.stringify( JSON.parse(sessionStorage.getItem('examNodeList')) ) ) - if (treeData && nodes) { + if (nodes) { let data = { treeData: treeData, question: JSON.parse( JSON.stringify(this.examMsg) ), node: nodes } let dialogRef = this.dialog.open(uploadQuestions,{data}); + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('未选择考核处置节点','确定',config); } } @@ -1846,7 +1851,7 @@ export class CollectionToolsComponent implements OnInit { const config = new MatSnackBarConfig(); config.verticalPosition = 'top'; config.duration = 3000 - this.snackBar.open('暂无数据节点','确定',config); + this.snackBar.open('暂无处置节点','确定',config); } }