summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/shared/components/performance-details/performance-details.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/shared/components/performance-details/performance-details.component.ts')
-rw-r--r--usecaseui-portal/src/app/shared/components/performance-details/performance-details.component.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/usecaseui-portal/src/app/shared/components/performance-details/performance-details.component.ts b/usecaseui-portal/src/app/shared/components/performance-details/performance-details.component.ts
index 9a601485..2f482e96 100644
--- a/usecaseui-portal/src/app/shared/components/performance-details/performance-details.component.ts
+++ b/usecaseui-portal/src/app/shared/components/performance-details/performance-details.component.ts
@@ -14,33 +14,33 @@
limitations under the License.
*/
import { Component, OnInit, Input } from '@angular/core';
-import { slideUpDown } from '../../../animates';
+import { slideUpDown } from '../../utils/animates';
import { HomesService } from '../../../core/services/homes.service';
@Component({
selector: 'app-performance-details',
templateUrl: './performance-details.component.html',
styleUrls: ['./performance-details.component.less'],
- animations: [ slideUpDown ]
+ animations: [slideUpDown]
})
export class PerformanceDetailsComponent implements OnInit {
-
- constructor(private myhttp:HomesService) { }
+
+ constructor(private myhttp: HomesService) { }
ngOnInit() {
-
+
}
- ngOnChanges(changes){
+ ngOnChanges(changes) {
console.log(this.detailId)
this.getPerformanceHeaderDetail(this.detailId);
}
datailheaderdata: any = {};
dataillistdata: any = [];
- getPerformanceHeaderDetail(id){
- if(id){
- this.myhttp.getPerformanceHeaderDetail(id).subscribe((data)=>{
+ getPerformanceHeaderDetail(id) {
+ if (id) {
+ this.myhttp.getPerformanceHeaderDetail(id).subscribe((data) => {
console.log(data)
this.datailheaderdata = data.performanceHeader;
this.dataillistdata = data.list;
@@ -50,7 +50,7 @@ export class PerformanceDetailsComponent implements OnInit {
moredetailShow = false;
@Input() detailId;
state = 'up'
- slideUpDown(){
+ slideUpDown() {
this.moredetailShow = !this.moredetailShow;
this.state = this.state === 'up' ? 'down' : 'up';
}