Commit for target and total difficulty load options

This commit is contained in:
shunmugam 2020-01-07 11:45:52 +05:30
parent f0eb187819
commit 2495f4250f
2 changed files with 18 additions and 3 deletions

View File

@ -532,6 +532,15 @@
Difficultyreq('total', '', '', '3 months',''); selectedTarget = 5; TdifficultyRange = '3 months'
" id="5" #itemtarget5 [ngClass]="{ active: selectedTarget == itemtarget5.id, day3m_txt: true }">3
{{'home.MONTHS' | translate}}</a>
<a href="JavaScript:void(0);" (click)="
Difficultyreq('total', '', '', 'all',''); selectedTarget = 7; TdifficultyRange = ''
" id="7" #itemtarget7 [ngClass]="{ active: selectedTarget == itemtarget7.id, dayall_txt: true }">{{'home.All' | translate}}</a>
</div>
<div class="explore_all text-right">

View File

@ -157,7 +157,7 @@ export class GraphListComponent implements OnInit {
) {
return new Promise((resolve, reject) => {
let params = new HttpParams();
if(interval == "all") {
// this.Type=""
fromDate = "2019-09-29 06:00:00"
@ -425,10 +425,16 @@ export class GraphListComponent implements OnInit {
) {
this.Type = type != '' ? type : this.Type == '' ? 'all' : this.Type;
// loader enable while change tab
if(difftype == "total")
this.linearTotalGraphData = []
else if(difftype == "target")
this.linearGraphData = []
if(interval == "all") {
// this.Type=""
fromDate = "2019-09-29 00:00:00"
ToDate = "2019-11-20 23:29:59"
fromDate = "2019-09-03 00:00:00"
ToDate = moment(new Date()).format("YYYY-MM-DD 23:29:59")
}
return new Promise((resolve, reject) => {