|
|
@ -74,6 +74,16 @@ export class EhartsStatisticsComponent implements OnInit { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询全部详情
|
|
|
|
|
|
|
|
queryAll () { |
|
|
|
|
|
|
|
this.router.navigate(['/home/learningrecorddetails'],{queryParams:{'Catalog': '','id':this.idCard}}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//返回上一页
|
|
|
|
|
|
|
|
goBack () { |
|
|
|
|
|
|
|
history.go(-1) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//处理时间 传入 new Date()格式
|
|
|
|
//处理时间 传入 new Date()格式
|
|
|
|
getTime(date){ |
|
|
|
getTime(date){ |
|
|
|
let year = date.getFullYear(); //年
|
|
|
|
let year = date.getFullYear(); //年
|
|
|
@ -199,7 +209,7 @@ export class EhartsStatisticsComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
//柱状图点击事件
|
|
|
|
//柱状图点击事件
|
|
|
|
chartHynyxf.on('click', function(e) { |
|
|
|
chartHynyxf.on('click', function(e) { |
|
|
|
that.router.navigate(['/home/learningrecorddetails'],{queryParams:{'Catalog':catalogs[e.dataIndex],'id':that.idCard}}); |
|
|
|
that.router.navigate(['/home/learningrecorddetails'],{queryParams:{'Catalog':catalogs[e.dataIndex],'id':that.idCard,'PostName':e.name}}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|