import { Component, OnInit, ViewChild } from '@angular/core';
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
import { SystemService } from '../../services/system.service';

@Component({
  selector: 'app-basic-setting',
  templateUrl: './basic-setting.component.html',
  styleUrls: ['./basic-setting.component.less']
})
export class BasicSettingComponent implements OnInit {
  formDate: any = {
    isAudit: false,
    isEveryDay: false,
    isEveryWeek: false
  };
  tabs = [
    {
      name: '货主提现设置'
    },
    {
      name: '司机提现设置'
    },
    {
      name: '路桥发票设置'
    },
    {
      name: '风险单监控'
    }
  ];
  selectedTab = 0;

  checkOptionsOne = [
    { label: '周一', value: '周一', checked: true },
    { label: '周二', value: '周二' },
    { label: '周三', value: '周三' },
    { label: '周四', value: '周四' },
    { label: '周五', value: '周五' },
    { label: '周六', value: '周六' },
    { label: '周日', value: '周日' }
  ];

  constructor(private service: SystemService) {}

  ngOnInit() {}

  changeType(type: number): void {
    this.selectedTab = type;
    console.log(type);
    
  }
}
