summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/app.component.ts
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-10 10:58:23 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-10 10:58:29 +0800
commit22ff11be9378a90a22152ab5d0901bd1d4e83fed (patch)
treeb55d7f9277ae15b7ce0767e768b0cc0d105f4b87 /usecaseui-portal/src/app/app.component.ts
parent5b346094ab12d2561471ec15122bdce2f840237c (diff)
Dashboard interface front-end development
Change-Id: I987e663bed2fd6ff584fe00fd6a29b133724e629 Issue-ID: USECASEUI-214 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/app.component.ts')
-rw-r--r--usecaseui-portal/src/app/app.component.ts50
1 files changed, 49 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/app.component.ts b/usecaseui-portal/src/app/app.component.ts
index 190f42e3..01206873 100644
--- a/usecaseui-portal/src/app/app.component.ts
+++ b/usecaseui-portal/src/app/app.component.ts
@@ -45,13 +45,61 @@ export class AppComponent {
console.log(data,"-------------getCurrentLanguage");
this.currentLanguage = data.languageAlias.toLowerCase();
this.translate.use(this.currentLanguage);
+ sessionStorage.setItem("DefaultLang",this.currentLanguage);
},
(err) => {
console.log(err);
}
)
}else {
- this.translate.setDefaultLang(this.currentLanguage);
+ this.translate.setDefaultLang(this.currentLanguage);
+ sessionStorage.setItem("DefaultLang",this.currentLanguage);
+ }
+ }
+ activeMenuBar =[true,false,false,false,false];
+ activeMenuList =[false,false];
+ thisActive(item){
+ if(this.activeMenuBar[item] == true){
+ this.activeMenuBar.map((its,index) => {
+ if(item != index){
+ this.activeMenuBar[index] = false;
+ }
+ })
+ }else {
+ this.activeMenuBar.map((its,index) => {
+ if(item == index){
+ this.activeMenuBar[item] = true;
+ }else {
+ this.activeMenuBar[index] = false;
+ }
+ })
+ this.activeMenuList.map((its,index) => {
+ this.activeMenuList[index] = false;
+ })
+ }
+ }
+ thisListActive(item){
+ if(this.activeMenuBar[3] = true){
+ if(this.activeMenuList[item] == true){
+ this.activeMenuList.map((its,index) => {
+ if(item != index){
+ this.activeMenuList[index] = false;
+ }
+ })
+ }else {
+ this.activeMenuList.map((its,index) => {
+ if(item == index){
+ this.activeMenuList[item] = true;
+ }else {
+ this.activeMenuList[index] = false;
+ }
+ })
+
+ }
+ }else {
+ this.activeMenuList.map((its,index) => {
+ this.activeMenuList[index] = false;
+ })
}
}
//