import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { STColumn } from '@delon/abc/st';
import { PartnerListService } from '../../services/partner-list.service';

@Component({
  selector: 'app-channel-log-modal',
  templateUrl: './channel-log-modal.component.html'
})
export class ChannelLogModalComponent implements OnInit {
  columns: { changeColumn: STColumn[]; beChangeColumn: STColumn[] } = this.initST();
  id = '';
  constructor(public service: PartnerListService, public route: ActivatedRoute) {}

  ngOnInit(): void {}

  private initST(): { changeColumn: STColumn[]; beChangeColumn: STColumn[] } {
    return {
      changeColumn: [
        { title: '客户名称', index: 'payCode', width: 180 },
        { title: '合伙人', index: 'ltdName', width: 160 },
        { title: '渠道销售', index: 'payDate', className: 'text-center', width: 130 },
        { title: 'CRM审核状态', index: 'payDate', width: 150 },
        { title: '生效时间', index: 'payDate', className: 'text-center', width: 130 }
      ],
      beChangeColumn: [
        { title: '客户名称', index: 'payCode', width: 180 },
        { title: '合伙人', index: 'ltdName', width: 160 },
        { title: '渠道销售', index: 'payDate', className: 'text-center', width: 130 },
        { title: '生效时间', index: 'payDate', className: 'text-center', width: 130 }
      ]
    };
  }
}
