|
|
@ -33,7 +33,7 @@ export class NavigationComponent implements OnInit { |
|
|
|
this.routeName = this.storage.get(ROUTENAME) == null ? 'index' : this.storage.get(ROUTENAME); |
|
|
|
this.routeName = this.storage.get(ROUTENAME) == null ? 'index' : this.storage.get(ROUTENAME); |
|
|
|
this.userInfo = this.storage.getList(ADMIN_INFO_OBJECT); |
|
|
|
this.userInfo = this.storage.getList(ADMIN_INFO_OBJECT); |
|
|
|
this.commonsService.mappingSysNameOl('RECHARGE', data => { |
|
|
|
this.commonsService.mappingSysNameOl('RECHARGE', data => { |
|
|
|
this.switchValue = data['return_data'][0]['codeValue'] === '1'; |
|
|
|
this.switchValue = data['return_data']['codeValue'] === '1'; |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.menuList = this.storage.getList(ADMIN_INFO_OBJECT)['menuList']; // 定义菜单数据
|
|
|
|
this.menuList = this.storage.getList(ADMIN_INFO_OBJECT)['menuList']; // 定义菜单数据
|
|
|
|
} |
|
|
|
} |
|
|
@ -70,7 +70,13 @@ export class NavigationComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
clickSwitch(): void { |
|
|
|
clickSwitch(): void { |
|
|
|
this.switchValue = !this.switchValue; |
|
|
|
this.switchValue = !this.switchValue; |
|
|
|
console.log(this.switchValue); |
|
|
|
this.commonsService.updateDictionary('RECHARGE' , this.switchValue === true ? '1' : '0' , data => { |
|
|
|
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
|
|
|
this.message.success(data['return_data']); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.message.error(data['return_msg']); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|