Browse Source

[完善] 上传限制提示

master
陈鹏飞 4 years ago
parent
commit
b2de4c827a
  1. 9
      src/app/ui/collection-tools/collection-tools.component.ts

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

Loading…
Cancel
Save