showDrawer(id): void {
const title = 'Order Details Info';
const width = '';
const dataInfo = id;
this.selectedId = id;
const drawerTemplate = OrderDetailDrawerVComponent;
const drawerRef = this.utilService.openDrawerService(title, width, dataInfo, drawerTemplate);
this.subscriptions.push(drawerRef.afterOpen.subscribe(() => {
this.utilService.drawerData(dataInfo);
}));
this.subscriptions.push(drawerRef.afterClose.subscribe(() => {
//********先声明drawerContent的type **************
// let drawerContent: any = {}
const drawerContent = drawerRef.getContentComponent();
console.log('Drawer close', drawerContent);
console.log(drawerContent.refreshAll);
// refresh Due to the actions 加个判断字段, 做单条刷新, 还是全局刷新
if(drawerContent.refreshAll){
this.refresh();
}
}));
}
let drawerContent: any = {} // 首先声明type
drawerContent = drawerRef.getContentComponent();