import runIcon from '@/assets/statusIcon/run.png'
import runIconH from '@/assets/statusIcon/run_h.png'
import approveIconH from '@/assets/statusIcon/approve_h.png'
import waitIcon from '@/assets/statusIcon/waiting.png'
import waitIconH from '@/assets/statusIcon/waiting_h.png'
import flyIcon from '@/assets/statusIcon/flying.png'
import flyIconH from '@/assets/statusIcon/flying_h.png'
import arrivedIcon from '@/assets/statusIcon/arrived.png'
import arrivedIconH from '@/assets/statusIcon/arrived_h.png'
export const statusList = [
  {
    status: [1],
    iconList: [
      {
        src: approveIconH,
        text: '待审核',
        class: 'already'
      },
      {
        src: runIcon,
        text: ''
      },
      {
        src: waitIcon,
        text: '待起飞',
        class: 'not'
      },
      {
        src: runIcon,
        text: ''
      },
      {
        src: flyIcon,
        text: '飞行中',
        class: 'not'
      },
      {
        src: runIcon,
        text: ''
      },
      {
        src: arrivedIcon,
        text: '已完成',
        class: 'not'
      }
    ]
  },
  {
    status: [5, 12],
    iconList: [
      {
        src: approveIconH,
        text: '待审核',
        class: 'already'
      },
      {
        src: runIconH,
        text: ''
      },
      {
        src: waitIconH,
        text: '待起飞',
        class: 'already'
      },
      {
        src: runIcon,
        text: ''
      },
      {
        src: flyIconH,
        text: '飞行中',
        class: 'not'
      },
      {
        src: runIcon,
        text: ''
      },
      {
        src: arrivedIcon,
        text: '已完成',
        class: 'not'
      }
    ]
  },
  {
    status: [10],
    iconList: [
      {
        src: approveIconH,
        text: '待审核',
        class: 'already'
      },
      {
        src: runIconH,
        text: ''
      },
      {
        src: waitIconH,
        text: '待起飞',
        class: 'already'
      },
      {
        src: runIconH,
        text: ''
      },
      {
        src: flyIconH,
        text: '飞行中',
        class: 'already'
      },
      {
        src: runIcon,
        text: ''
      },
      {
        src: arrivedIcon,
        text: '已完成'
      }
    ]
  },
  {
    status: [15, 25, 30, 35, 40, 45],
    iconList: [
      {
        src: approveIconH,
        text: '待审核',
        class: 'already'
      },
      {
        src: runIconH,
        text: ''
      },
      {
        src: waitIconH,
        text: '待起飞',
        class: 'already'
      },
      {
        src: runIconH,
        text: ''
      },
      {
        src: flyIconH,
        text: '飞行中',
        class: 'already'
      },
      {
        src: runIconH,
        text: ''
      },
      {
        src: arrivedIconH,
        text: '已完成',
        class: 'already'
      }
    ]
  }
]

// 任务信息
export const taskMessage = [
  { name: '任务编号：', value: ['code'] },
  { name: '期望巡检时间：', value: ['inspectionTime'] },
  { name: '任务名称：', value: ['name'] },
  { name: '巡检河道：', value: ['streamName'] },
  { name: '河道区域：', value: ['province', 'city', 'district', 'street', 'village'] },
  { name: '起止位置：', value: ['location'] },
  { name: '河道长度：', value: ['streamLength'] },
  { name: '巡检起点经纬度：', value: ['startLongitude', ',', 'startLatitude'] },
  { name: '是否直播：', value: ['isLive'] },
  { name: '巡检终点经纬度：', value: ['endLongitude', ',', 'endLatitude'] },
  { name: '云盒名称：', value: ['boxName'] },
  { name: '巡检机场：', value: ['airportName'] },
  { name: '巡检路线：', value: ['inspectionLineName'] },
  { name: '备注：', value: ['note'] }
]
// 审核信息
export const approveMessage = [
  { name: '申请人：', value: ['createUserName'] },
  { name: '申请日期：', value: ['createTime'] },
  { name: '审核人：', value: ['checkUserName'] },
  { name: '审核日期：', value: ['checkTime'] },
  { name: '任务状态：', value: ['taskStatus'] },
  { name: '审核结果：', value: ['result'] }
]
// 审核结果
export const resultsList = [
  { label: '审核通过', value: 1 },
  { label: '审核不通过', value: 2 }
]

// 河流信息
export const streamColumns = [
  {
    title: '责任单位',
    dataIndex: 'streamArea',
    width: 100
  },
  {
    title: '河道名称',
    dataIndex: 'streamName',
    width: 200
  },
  {
    title: '河段长（公里）',
    dataIndex: 'streamLength',
    width: 120
  },
  {
    title: '巡检里程（公里）',
    dataIndex: 'streamLength',
    width: 120
  },
  {
    title: '起讫位置',
    dataIndex: 'streamLocation',
    width: 300
  }
]
// 巡检信息
export const inspectionColumns = [
  {
    title: '天气情况',
    dataIndex: 'weather'
  },
  {
    title: '巡查人数',
    dataIndex: 'inspectionPeopleCount'
  },
  {
    title: '巡查人员',
    dataIndex: 'flightHandName'
  },
  {
    title: '巡查方式',
    dataIndex: 'inspectionWay'
  },
  {
    title: '巡查设备',
    dataIndex: 'inspectionDevice'
  },
  {
    title: '巡查日期',
    dataIndex: 'inspectionTime'
  },
  {
    title: '飞行高度',
    dataIndex: 'flightHeight'
  },
  {
    title: '巡查类型',
    dataIndex: 'inspectionType'
  },
  {
    title: '问题点数量',
    dataIndex: 'questionCount'
  }
],