Browse Source

首页页面显示BUG

seimin 3 years ago
parent
commit
156eed189f
2 changed files with 7 additions and 2 deletions
  1. 2 2
      src/app/views/home/home.component.html
  2. 5 0
      src/app/views/home/home.component.ts

+ 2 - 2
src/app/views/home/home.component.html

@@ -160,7 +160,7 @@
160
             </div>
160
             </div>
161
             <div class="tableBox">
161
             <div class="tableBox">
162
               <div class="errorTabl">
162
               <div class="errorTabl">
163
-                <div class="box">
163
+                <overlay-scrollbars #osComponentRef3  class="box">
164
                   <nz-table class="errorTable" [nzData]="abOrders" nzSize="small" [nzShowPagination]="false"
164
                   <nz-table class="errorTable" [nzData]="abOrders" nzSize="small" [nzShowPagination]="false"
165
                     [nzLoading]="loading2">
165
                     [nzLoading]="loading2">
166
                     <thead>
166
                     <thead>
@@ -182,7 +182,7 @@
182
                       </tr>
182
                       </tr>
183
                     </tbody>
183
                     </tbody>
184
                   </nz-table>
184
                   </nz-table>
185
-                </div>
185
+                </overlay-scrollbars>
186
               </div>
186
               </div>
187
             </div>
187
             </div>
188
           </div>
188
           </div>

+ 5 - 0
src/app/views/home/home.component.ts

@@ -25,6 +25,11 @@ export class HomeComponent implements OnInit {
25
     static: false,
25
     static: false,
26
   })
26
   })
27
   osComponentRef2: OverlayScrollbarsComponent;
27
   osComponentRef2: OverlayScrollbarsComponent;
28
+  @ViewChild("osComponentRef3", {
29
+    read: OverlayScrollbarsComponent,
30
+    static: false,
31
+  })
32
+  osComponentRef3: OverlayScrollbarsComponent;
28
   constructor(
33
   constructor(
29
     private fb: FormBuilder,
34
     private fb: FormBuilder,
30
     private router: Router,
35
     private router: Router,