fix bug
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-06 17:57:07
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-13 10:17:44
|
||||
* @LastEditTime : 2022-04-13 14:30:10
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\map\\map.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<g2-custom div style="height: 680px; " delay="200" (render)="render($event)" ></g2-custom>
|
||||
<g2-custom #map div style="height: 680px; " delay="200" (render)="render($event)" ></g2-custom>
|
||||
@ -10,6 +10,8 @@ import { DataService } from 'src/app/routes/datatable/services/data.service';
|
||||
export class DatatableCustomindexMapComponent implements OnInit, OnChanges, AfterViewInit {
|
||||
el: any;
|
||||
@Input() chartData: any;
|
||||
@ViewChild('auditModal', { static: false }) auditModal!: any;
|
||||
@ViewChild('map',{static: false}) map!: any;
|
||||
chart: any;
|
||||
mapData: any;
|
||||
ds!: DataSet ;
|
||||
@ -19,8 +21,8 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges, Afte
|
||||
userData: any = [];
|
||||
constructor(private service: DataService, private ngZone: NgZone) {}
|
||||
ngAfterViewInit(): void {
|
||||
throw new Error('Method not implemented.');
|
||||
|
||||
this.map.el.nativeElement.style.height = this.map.el.nativeElement.clientWidth + 'px'
|
||||
this.chart.render();
|
||||
}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
|
||||
Reference in New Issue
Block a user