

export const iconsOption = (obj) =>{
  return {
    span:2,
    data: [
      {
        click: function (item) {obj.select(100004)},
        title: '智能烟感',
        count: 0,
        icon: 'el-icon-smoking',
        // icon: 'yc-grid-zhinengyangan',
      },
      {
        click: function (item) {obj.select(100020)},
        title: '燃气监控',
        count: 0,
        icon: 'el-icon-help',
        // icon: 'yc-grid-ranqijianceqi',
      },
      {
        click: function (item) {obj.select(3)},
        title: '井盖监控',
        count: 0,
        icon: 'el-icon-circle-plus-outline',
        // icon: 'yc-grid-manhole-cover',
      },
      {
        click: function (item) {obj.select(4)},
        title: '一键告警',
        count: 0,
        icon: 'el-icon-thumb',
        // icon: 'yc-grid-peizhitubiaosvg-1',
      },
      {
        click: function (item) {obj.select(5)},
        title: '智慧路灯',
        count: 0,
        icon: 'el-icon-wind-power',
        // icon: 'yc-grid-ludeng',
      },
      {
        click: function (item) {obj.select(960417)},
        title: '智慧消防',
        count: 0,
        icon: 'el-icon-loading',
        // icon: 'yc-grid-xiaofanghuopao',
      },
      {
        click: function (item) {obj.select(7)},
        title: '智能垃圾桶',
        count: 0,
        icon: 'el-icon-delete',
        // icon: 'iconfont iconicon_delete',
      },
      {
        click: function (item) {obj.select(8)},
        title: '智能地磁',
        count: 0,
        icon: 'el-icon-s-help',
        // icon: 'yc-grid-dici',
      },
      {
        click: function (item) {obj.select(9)},
        title: '智能门磁',
        count: 0,
        icon: 'el-icon-attract',
        // icon: 'yc-grid-menci',
      }]
  }
}

export const dataDisplay = (obj,parent) =>{
  return {
    span: 4,
    data: [
      {
        click: function (item) {
          parent.select(this.deviceType,this.deviceStatus)
        },
        count: obj.normalCount,
        title: '正常',
        deviceType: obj.deviceType,
        deviceStatus: 1,
      },
      {
        click: function (item) {
          parent.select(this.deviceType,this.deviceStatus)
        },
        count: obj.alertCount,
        title: '告警',
        deviceType: obj.deviceType,
        deviceStatus: 2,
      },
      {
        click: function (item) {
          parent.select(this.deviceType,this.deviceStatus)
        },
        count: obj.outlineCount,
        title: '失联',
        deviceType: obj.deviceType,
        deviceStatus: 3,
      },
      {
        click: function (item) {
          parent.select(this.deviceType,this.deviceStatus)
        },
        count: obj.pauseCount,
        title: '停用',
        deviceType: obj.deviceType,
        deviceStatus: 4,
      },
      {
        click: function (item) {
          parent.select(this.deviceType,this.deviceStatus)
        },
        count: obj.armedCount,
        title: '待布防',
        deviceType: obj.deviceType,
        deviceStatus: 5,
      }
    ]
  }
}
