Skip to content
handle-detail.component.ts 1.15 KiB
Newer Older
wangqinghua's avatar
wangqinghua committed
import {Component, OnInit} from '@angular/core';
wangqinghua's avatar
wangqinghua committed
import {WorkService} from '../../work.service';
import {NzMessageService} from 'ng-zorro-antd';
import {ActivatedRoute} from '@angular/router';

@Component({
wangqinghua's avatar
wangqinghua committed
    selector: 'smart-handle-detail',
    templateUrl: './handle-detail.component.html',
    styles: [
            `
            :host ::ng-deep .ant-row {
                margin: 20px 0;
            }

            :host ::ng-deep .ant-col-4 {
                text-align: right;
            }

            h2 {
                font-weight: 400;
            }
        `
    ]
wangqinghua's avatar
wangqinghua committed
})
export class HandleDetailComponent implements OnInit {

wangqinghua's avatar
wangqinghua committed
    eventId;
    event;
    transforsList;

    constructor(private workSer: WorkService, private message: NzMessageService,
                private routrInfo: ActivatedRoute) {
        this.routrInfo.queryParams.subscribe(
            (res) => {
                this.eventId = res.eventId;
            }
        );
    }
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
    ngOnInit() {
        this.getDetail();
    }
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
    getDetail() {
        this.workSer.findByNo(this.eventId).subscribe(
            (res) => {
                this.event = res.data;
            }
        );
    }
wangqinghua's avatar
wangqinghua committed
}