blob: 64b1973a46e18b329e8dbb97b2e6007ccca4478e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { Recorder } from '../../../shared/utils/recorder';
import { Util } from '../../../shared/utils/utils';
@Component({
selector: 'app-nlp-upload-dialog',
templateUrl: './nlp-upload-dialog.component.html',
styleUrls: ['./nlp-upload-dialog.component.less']
})
export class NlpUploadDialogComponent implements OnInit {
constructor(
private Util: Util,
private Recorder: Recorder,
private msg: NzMessageService
) { }
@Input() isShowFlag: boolean;
@Output() returnNlpType = new EventEmitter();
nlpType: String = "nlp";
ngOnInit() {}
ngOnChange() {}
handleCancel(): void {
this.isShowFlag = false;
this.returnNlpType.emit({ "cancel": true });
}
handleOk(): void {
this.isShowFlag = false;
this.returnNlpType.emit({ "cancel": false, nlpType: this.nlpType });
}
}
|