Commit 190f668b authored by Jie Yuan's avatar Jie Yuan

currently set the eosc site from sitesource = gocdb

parent 08d2f65d
......@@ -59,9 +59,13 @@ export class FulltableComponent implements OnInit , DoCheck, AfterViewInit{
this.currentServiceSource = 'dpmt';
sessionStorage.setItem('currentServiceSource',this.currentServiceSource);
sessionStorage.setItem('currentSourceInfo','dpmt');
} else {
} else if (source === 'dpmt'){
this.currentServiceSource = source;
sessionStorage.setItem('currentSourceInfo',source);
} else
{
this.currentServiceSource = source;
sessionStorage.setItem('currentSourceInfo','gocdb');
}
const stmp = 'JsonSiteList' + this.currentServiceSource.toUpperCase();
......@@ -264,8 +268,10 @@ export class FulltableComponent implements OnInit , DoCheck, AfterViewInit{
sessionStorage.setItem('preSitePage', 'Service')
sessionStorage.setItem('currentServiceSource',source);
if (source === 'dpmt' || source === 'gocdb') {
if (source === 'dpmt' ) {
sessionStorage.setItem('currentSourceInfo',source);
} else {
sessionStorage.setItem('currentSourceInfo','gocdb');
}
//sessionStorage.setItem('currentSiteShortSource', 'dpmt');
......@@ -278,8 +284,10 @@ export class FulltableComponent implements OnInit , DoCheck, AfterViewInit{
sessionStorage.setItem('preSitePage', 'Site')
sessionStorage.setItem('currentSiteShortSource',source);
if (source === 'dpmt' || source === 'gocdb') {
if (source === 'dpmt' ) {
sessionStorage.setItem('currentSourceInfo',source);
} else {
sessionStorage.setItem('currentSourceInfo','gocdb');
}
//sessionStorage.setItem('currentSiteShortSource', 'dpmt');
this.router.navigate(['/dashboard'], { relativeTo: this.route });
......
......@@ -61,9 +61,12 @@ export class TableComponent implements OnInit, DoCheck,AfterViewInit {
this.currentSiteSource = 'dpmt';
sessionStorage.setItem('currentSiteShortSource',this.currentSiteSource);
sessionStorage.setItem('currentSourceInfo','dpmt');
} else {
} else if (stmp === 'dpmt'){
this.currentSiteSource = stmp;
sessionStorage.setItem('currentSourceInfo',stmp);
} else {
this.currentSiteSource = stmp;
sessionStorage.setItem('currentSourceInfo','gocdb');
}
const tmp = 'JsonSiteShortList' + this.currentSiteSource.toUpperCase();
......@@ -251,9 +254,11 @@ public onClickSite(source: string) {
sessionStorage.setItem('preSitePage', 'Site')
sessionStorage.setItem('currentSiteShortSource',source);
if(source === 'dpmt' || source === 'gocdb') {
if(source === 'dpmt' ) {
sessionStorage.setItem('currentSourceInfo',source);
}
}else {
sessionStorage.setItem('currentSourceInfo','gocdb');
}
//sessionStorage.setItem('currentSiteShortSource', 'dpmt');
// this.router.navigate(['/dashboard'], { relativeTo: this.route });
......@@ -266,9 +271,11 @@ public onClickService(source: string) {
sessionStorage.setItem('preSitePage', 'Service')
sessionStorage.setItem('currentServiceSource',source);
if (source === 'dpmt' || 'gocdb') {
if (source === 'dpmt' ) {
sessionStorage.setItem('currentSourceInfo',source);
}
} else {
sessionStorage.setItem('currentSourceInfo','gocdb');
}
//sessionStorage.setItem('currentSiteShortSource', 'dpmt');
this.router.navigate(['/dashboard/fullTableComponent'], { relativeTo: this.route });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment