import { BasicColumn, FormSchema } from '@/components/Table';
export const columns = [
  {
    title: '设备型号',
    dataIndex: 'model',
  },
  {
    title: '设备SN',
    dataIndex: 'sn',
  },
  {
    title: '设备名称',
    dataIndex: 'name',
  },
  {
    title: '固件版本',
    dataIndex: 'version',
  },
  {
    title: '固件升级',
    dataIndex: 'upgrade',
  },
  {
    title: '飞行安全数据库',
    dataIndex: 'database',
  },
  {
    title: '工作状态',
    dataIndex: 'status',
  },
  {
    title: '所属项目',
    dataIndex: 'project',
  },
  {
    title: '加入组织时间',
    dataIndex: 'join_time',
  },
  {
    title: '在线时间',
    dataIndex: 'online_time',
  },
];
export const dataSource = [
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
  { model: 111, sn:222, name: 333, version: 444, upgrade:'1.0.0', database:'test', status: 555, project: 666, join_time: 777, online_time: 888 },
]
export const searchFormSchema: FormSchema[] = [
  {
    field: 'upgrade_status',
    label: '升级状态',
    component: 'Select',
    componentProps: {
      options: [
        { label: '固件待升级', value: '固件待升级' },
        { label: '固件一致性升级', value: '固件一致性升级' },
        { label: '飞行安全数据库待升级', value: '飞行安全数据库待升级' },
      ],
    },
    colProps: { span: 4 },
  },
  {
    field: 'work_status',
    label: '工作状态',
    component: 'Select',
    componentProps: {
      options: [
        { label: '全部工作状态', value: '全部工作状态' },
        { label: '设备空闲中', value: '设备空闲中' },
        { label: '现场调试中', value: '现场调试中' },
        { label: '远程调试中', value: '远程调试中' },
        { label: '设备作业中', value: '设备作业中' },
        { label: '设备升级中', value: '设备升级中' },
        { label: '设备已离线', value: '设备已离线' },
        { label: '未标定', value: '未标定' },
      ],
    },
    colProps: { span: 4 },
  },
  {
    field: 'project',
    label: '项目',
    component: 'Select',
    componentProps: {
      options: [
      ],
    },
    colProps: { span: 4 },
  },
  {
    field: 'model',
    label: '设备型号',
    component: 'Select',
    componentProps: {
      options: [
      ],
    },
    colProps: { span: 4 },
  },
  {
    field: 'sn',
    label: '设备SN',
    component: 'Input',
    colProps: { span: 6 },
  },
];