import search from "@/page/index/search.vue";

export default {
  height:'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 4,
  border: true,
  index: false,
  viewBtn: true,
  selection: true,
  menuWidth: 100,
  dialogClickModal: false,
  searchSpan: 4,
  editBtn: false,
  viewBtn:false,
  delBtn:false,
  gridBtn: false,
  columnBtn: false,
  searchShowBtn: false,
  refreshBtn:false,
  addBtn:false,
  column: [
    {
      label: "资方",
      prop: "capitalName",
      // searchOrder: 90,
      search: true,
      width: 210,
      slot: true
    },
    {
      label: "业主姓名",
      prop: "ownerName",
      // searchOrder: 90,
      search: true,
      width: 90,
      slot: true
    },
    {
      label: "电站编码",
      prop: "stationCode",
      searchOrder: 90,
      search: true,
      width: 150,
      slot: true
    },
    {
      label: '告警类型',
      prop: "type",
      dicUrl: '/blade-system/dict/dictionary?code=alarm_type',
      // search: true,
      // type: "radio",
      props: {
        label: 'dictValue',
        value: 'dictKey',
      }
    },
    // {
    //   label: "故障码",
    //   prop: "malfunctionCode",
    //   search: true,
    //   searchOrder: 80,
    //   type: "input",
    // },
    // {
    //   label: "故障来源",
    //   prop: "source",
    //   type: "input",
    // },
    {
      label: "告警名称",
      prop: "alarmName",
      search: true,
      searchOrder: 90,
      type: "input",
    },
    {
      label: "设备信息",
      prop: "deviceName",
      type: "input",
      slot: true
    },
    {
      label: "设备SN",
      prop: "sn",
      search: true,
      searchOrder: 70,
      type: "input"
    },
    {
      label: '设备品牌',
      prop: "source",
      width: 90,
      dicUrl: '/blade-system/dict/dictionary?code=device_brand',
      search: true,
      dataType: "number",
      type: "select",
      props: {
        label: 'dictValue',
        value: 'dictKey',
      }
    },
    {
      label: '状态',
      prop: "status",
      dicUrl: '/blade-system/dict/dictionary?code=alarm_info_status',
      // search: true,
      dataType: "number",
      // type: "radio",
      props: {
        label: 'dictValue',
        value: 'dictKey',
      }
    },
    {
      label: "告警时间",
      prop: "startTime",
      search: true,
      type: 'date',
      searchSpan: 6,
      searchRange: true,
      searchOrder: 100,
      format: 'YYYY-MM-DD HH:mm:ss',
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
      width: 180,
    },
    {
      label: '关闭状态',
      prop: "closeStatus",
      dicUrl: '/blade-system/dict/dictionary?code=alarm_close_status',
      // search: true,
      dataType: "number",
      type: 'select',
      props: {
        label: 'dictValue',
        value: 'dictKey',
      }
    },
    {
      label: "运维单号",
      prop: "orderNo",
      width: 150,
      search: true,
      type: "input"
    },
    {
      label: "运维商",
      prop: "omProviderName",
      // searchOrder: 90,
      search: true,
      width: 90,
      slot: true
    },
    
  ]
}
