Signed-off-by: liuwh7 <liuwh7@asiainfo.com>
Change-Id: If91ca0dcfa314ff4657458b353eae6b2d96fcdec
Issue-ID: USECASEUI-605
this.smartCloudLeasedLineShowFlag = true;
}
// smart dialog close
- smartCloudLeasedLineClose(data): void {
+ smartCloudLeasedLineClose(param): void {
this.smartCloudLeasedLineShowFlag = false;
- if (data.cancel) {
+ if (param.cancel) {
return;
}
- this.resolveResult = {
- name: 'test',
- instanceId: '123456',
- accessPointOne: {
- name: 'aaa',
- bandwidth: '20'
- },
- cloudPointName: 'aaa',
- };
-
+ this.resolveResult = param.data;
this.cloudLeasedLineShowFlag = true;
}
// to monitor page
ngOnChange() {}
- handleCancel(flag): void {
+ handleCancel(flag, data=null): void {
this.samrtCloudLeasedLineShowFlag = false;
this.communicationMessage = "";
- this.resolveEmitter.emit({ "cancel": flag });
+ this.resolveEmitter.emit({ cancel: flag, data: data});
}
handleOk(): void {
};
this.myhttp.intentInstancePredict(params).subscribe(
(response) => {
- console.log(response);
- this.handleCancel(false);
+ this.handleCancel(false, response);
},
(err) => {
console.log(err);