export interface IlistQuery {
  deptId: string
  effectiveCompany: string
  director: string
  offset: number
  limit: number
  formId: string
  createEndTime: string
  createStartTime: string
  ids: []
  trainEndTime: string
  trainStartTime: string
}

export interface IlistType {
  createTime: string
  deptName: string
  director: string
  effectiveCompany: string
  planName: string
  planNo: string
  remark: string
  trainAddress: string
  trainContent: string
  trainHour: string
  trainNumber: number
  trainPerson: string
  trainTime: string
}

export interface lPlanistQuery {
  createEndTime: string // 创建结束时间
  createStartTime: string // 创建开始时间
  deptId: string // 部门id
  director: string // 负责人
  effectiveCompany: string // 实施单位
  ids: string[] // 导出数组
  trainEndTime: string // 培训结束时间
  formId: string // 表单id
  trainStartTime: string // 培训开始时间
  offset: number // 当前页
  limit: number // 每页多少条
}

// 培训审批查询条件
export interface IApprovallistQuery {
  approvalStatus: string
  formId: string
  createTime: string
  deptId: string
  director: string
  effectiveCompany: string
  trainTime: string
  offset: number
  limit: number
  ids?: []
}
// 培训计划列表数据
export interface IPlanList {
  deptId: string
  createTime: string
  deptName: string
  director: string
  effectiveCompany: string
  id: string
  planName: string
  planNo: string
  remark: string
  trainAddress: string
  trainContent: string
  trainHour: string
  trainNumber: number
  trainPerson: string
  processId: string
  trainStaffList: [
    {
      company: string
      examResult: string
      id: number
      name: string
      remark: string
      signTime: string
      staffId: number
      technologyJob: string
    },
  ]
  taskId?: string
  trainTime: string
}

export interface IOptions {
  id: string
  name: string
  planName: string
}

export interface IlistApprovalQuery {
  approvalStatus: string
  formId: string
  createTime: string
  deptId: string
  director: string
  effectiveCompany: string
  trainTime: string
  offset: number
  limit: number
}

export interface IlistTypes {
  createTime: string
  deptName: string
  director: string
  logNo: string
  planName: string
  trainName: string
  remark: string
  trainAddress: string
  trainContent: string
  trainHour: string
  trainNumber: number
  trainPerson: string
  trainTime: string
}

export interface IButton {
  name: string
  type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
  permission?: string
}
