fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-04-07 17:57:23
|
* @Date : 2022-04-07 17:57:23
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-07 19:28:24
|
* @LastEditTime : 2022-04-13 10:22:35
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\curve\\curve.component.ts
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\curve\\curve.component.ts
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -75,7 +75,7 @@ export class DatatableCustomindexCurveMinComponent implements OnInit,OnChanges {
|
|||||||
this.chart = new Chart({
|
this.chart = new Chart({
|
||||||
container: el,
|
container: el,
|
||||||
autoFit: true,
|
autoFit: true,
|
||||||
height: 200,
|
height: 320,
|
||||||
});
|
});
|
||||||
let value: any = []
|
let value: any = []
|
||||||
this.service.request(this.service.$api_getTradingTrend).subscribe((res: any) => {
|
this.service.request(this.service.$api_getTradingTrend).subscribe((res: any) => {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-04-06 10:57:56
|
* @Date : 2022-04-06 10:57:56
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-07 19:51:32
|
* @LastEditTime : 2022-04-13 10:23:18
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\datascreen.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\datascreen.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
@ -86,10 +86,10 @@
|
|||||||
</nz-col>
|
</nz-col>
|
||||||
</nz-row>
|
</nz-row>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
<app-datatable-customindex-map style="max-height: 600px" #map [chartData]="chartData"></app-datatable-customindex-map>
|
<app-datatable-customindex-map style="max-height: 680px" #map [chartData]="chartData"></app-datatable-customindex-map>
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<nz-row [nzGutter]="24">
|
<nz-row [nzGutter]="24">
|
||||||
<g2-bar #bar height="200" [delay]='500' repaint='true' [title]="'本月发货量排名'" [data]="salesData2" (ready)='genData()'></g2-bar>
|
<g2-bar #bar height="310" [delay]='500' repaint='true' [title]="'本月发货量排名'" [data]="salesData2" (ready)='genData()'></g2-bar>
|
||||||
</nz-row>
|
</nz-row>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -4,8 +4,8 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-04-06 17:57:07
|
* @Date : 2022-04-06 17:57:07
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-07 19:44:32
|
* @LastEditTime : 2022-04-13 10:17:44
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\map\\map.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\map\\map.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
<g2-custom delay="200" (render)="render($event)" ></g2-custom>
|
<g2-custom div style="height: 680px; " delay="200" (render)="render($event)" ></g2-custom>
|
||||||
@ -49,7 +49,6 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges {
|
|||||||
this.chart = new Chart({
|
this.chart = new Chart({
|
||||||
container: el,
|
container: el,
|
||||||
autoFit: true,
|
autoFit: true,
|
||||||
height: 680,
|
|
||||||
padding: [0, 0]
|
padding: [0, 0]
|
||||||
});
|
});
|
||||||
this.chart.tooltip({
|
this.chart.tooltip({
|
||||||
@ -108,6 +107,10 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges {
|
|||||||
});
|
});
|
||||||
console.log(value);
|
console.log(value);
|
||||||
this.userData = value
|
this.userData = value
|
||||||
|
|
||||||
|
if (!(this.userData instanceof Array) || this.userData.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.userDv = this.ds.createView().source(this.userData).transform({
|
this.userDv = this.ds.createView().source(this.userData).transform({
|
||||||
geoDataView: this.worldMap,
|
geoDataView: this.worldMap,
|
||||||
field: 'name',
|
field: 'name',
|
||||||
|
|||||||
Reference in New Issue
Block a user