@@ -10,17 +10,17 @@ import { Echarts } from '@utils/echarts';
1010import { format } from 'date-fns'
1111
1212// 引入柱状图
13- require ( 'echarts/lib/chart/bar' ) ;
14- require ( 'echarts/lib/chart/line' ) ;
15- require ( 'echarts/lib/chart/pie' ) ;
13+ // require('echarts/lib/chart/bar');
14+ // require('echarts/lib/chart/line');
15+ // require('echarts/lib/chart/pie');
1616// 引入提示框和标题组件
17- require ( 'echarts/lib/component/title' ) ;
18- require ( 'echarts/lib/component/tooltip' ) ;
19- require ( 'echarts/lib/component/toolbox' ) ;
20- require ( 'echarts/lib/component/legend' ) ;
21- require ( 'echarts/lib/component/legend/ScrollableLegendModel' ) ;
22- require ( 'echarts/lib/component/legend/ScrollableLegendAction' ) ;
23- require ( 'echarts/lib/component/legend/ScrollableLegendView' ) ;
17+ // require('echarts/lib/component/title');
18+ // require('echarts/lib/component/tooltip');
19+ // require('echarts/lib/component/toolbox');
20+ // require('echarts/lib/component/legend');
21+ // require('echarts/lib/component/legend/ScrollableLegendModel');
22+ // require('echarts/lib/component/legend/ScrollableLegendAction');
23+ // require('echarts/lib/component/legend/ScrollableLegendView');
2424
2525@Component ( {
2626 selector : 'app-charts' ,
@@ -75,7 +75,7 @@ export class ChartComponent {
7575 // 日期选择
7676 public changedDate ( ) {
7777 this . disable = true ;
78- this . chartService . getSystemLogDate ( format ( this . date , 'YYYY -MM-DD ' ) )
78+ this . chartService . getSystemLogDate ( format ( this . date , 'yyyy -MM-dd ' ) )
7979 . pipe ( finalize ( ( ) => this . disable = false ) )
8080 . subscribe ( ( res : any ) => {
8181 this . initSystemLogDateChart ( res . data ) ;
0 commit comments