import {Component, OnInit} from '@angular/core';
import {CommonService} from '../../common.service';
import {Router} from "@angular/router";

@Component({
  selector: 'app-broker-qry',
  templateUrl: './broker-qry.component.html',
  styleUrls: ['./broker-qry.component.css']
})
export class BrokerQryComponent implements OnInit {
  brokerLists: Array<any>;

  constructor(private router: Router) {
  }

  ngOnInit() {
    //  假数据
    this.brokerLists = [
      {

        id: '1',
        name: '张三',
        practitionerRegNo: '12345678912345',
        effectiveEndDate: '2001-02-02',
        area: '上海',
        mobileNo: '13000000000'
      }, {
        id: '2',
        name: '张三',
        practitionerRegNo: '12345678912345',
        effectiveEndDate: '2001-02-02',
        area: '上海',
        mobileNo: '4009209291'
      }, {
        id: '3',
        name: '张三',
        practitionerRegNo: '12345678912345',
        effectiveEndDate: '2001-02-02',
        area: '上海',
        mobileNo: '0216602026'
      }, {
        id: '4',
        name: '张三',
        practitionerRegNo: '12345678912345',
        effectiveEndDate: '2001-02-02',
        area: '上海',
        mobileNo: '13000000000'
      }, {
        id: '5',
        name: '张三',
        practitionerRegNo: '12345678912345',
        effectiveEndDate: '2001-02-02',
        area: '上海',
        mobileNo: '13000000000'
      },
    ];
  }

  // 经纪人详情信息查询
  viewDetail(id) {
    this.router.navigate(['brokerDetail', id]);
  }
}
