fengxiang
2018-03-27 e33b554c3ca53017912a90612158f49ad6b8fbae
修复msg 弹窗不出现的问题
2 files modified
21 ■■■■ changed files
src/app/app.component.ts 21 ●●●● patch | view | raw | blame | history
src/app/routes/reports/query/query.component.ts patch | view | raw | blame | history
src/app/app.component.ts
@@ -31,10 +31,18 @@
          filter(evt => evt instanceof NavigationStart)
      )
      .subscribe(() => {
        // 关闭静态蒙版弹窗
        if ($('.ant-modal-close').length > 0) {
          $('.ant-modal-close').click();
        }
        // 下拉按钮模拟点击
        if ($('.ant-select-open').length > 0) {
          $('.ant-select-open').click();
        }
          // 删除多余透明蒙版中元素
          const cdkOverlayContainer = $('.cdk-overlay-container');
          if (cdkOverlayContainer != null && cdkOverlayContainer.children().length > 1) {
            cdkOverlayContainer.children('div:first-child').nextAll().each(
        if (cdkOverlayContainer != null && cdkOverlayContainer.children().length > 2) {
          cdkOverlayContainer.children('div:first-child').next().nextAll().each(
               function(index, el) {
                    if ($(el).hasClass('cdk-overlay-backdrop-showing')) {
                      $(el).remove();
@@ -44,14 +52,7 @@
               }
            );
          }
          // 关闭静态蒙版弹窗
          if ($('.ant-modal-close').length > 0) {
              $('.ant-modal-close').click();
          }
          // 下拉按钮模拟点击
          if ($('.ant-select-open').length > 0) {
          $('.ant-select-open').click();
          }
      });
  }
}
src/app/routes/reports/query/query.component.ts