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); } }