import { Component, Input, OnInit } from '@angular/core';
import { STColumn, STRequestOptions } from '@delon/abc/st';

@Component({
  selector: 'app-rate-change',
  templateUrl: './rate-change.component.html'
})
export class RateChangeComponent implements OnInit {
  url = '/api/mdc/pbc/sysConfigItemExtendLog/list/page';
  columns: STColumn[] = [
    { title: '修改内容', index: 'content' },
    { title: '修改时间', index: 'modifyTime', className: 'text-center' },
    { title: '修改电话', index: 'modifyUserMobile' },
    { title: '修改人', index: 'modifyUserName' }
  ];
  @Input()
  businessId!: string;
  @Input()
  configFullKey!: string;
  constructor() {}

  ngOnInit(): void {}

  beforeReq = (requestOptions: STRequestOptions) => {
    Object.assign(requestOptions.body, {
      businessId: this.businessId,
      configFullKey: this.configFullKey,
      extendType: 2
    });
    return requestOptions;
  };
}
