import React from 'react';
import { Tooltip } from 'antd';
import { getDetailsSData } from '../../actions';

export default function(context) {
	return [
          { title: '序号',
            field: 'order',
            valign: 'middle',
            render: (text, record, index)  => {
              return index+1;},
            width: '8%',
         },
         // {
         //  title: 'image_id',
         //  dataIndex: 'id',
         //  key: 'id',
         //  width: '8%',
         //  sorter:true,
         //  render: (text, record, index) => {
         //    return (
         //      <Tooltip placement="right" title="点击查看详情">
         //        <a href="javascript:void(0)" style={{'text-decoration':'underline'}}>{text}</a>
         //      </Tooltip>
         //    )
         //   },
         //  onCellClick:(record, event)=> {
         //    let props = context.props;
         //    event.preventDefault()
         //    props.dispatch(getDetailsSData(props.params.type,{record}.record.id))
         //  }
         //  }, 
          {
          title: 'image',
          dataIndex: 'name',
          key: 'name',
          width: '10%',
          sorter:true
        }, {
          title: 'os',
          dataIndex: 'osName',
          key: 'osName',
          width: '10%',
          sorter:'true'
        },
        {
          title: 'os类型',
          dataIndex: 'osType',
          key: 'osType',
          width: '10%',
          sorter:'true'
        },
        {
          title: 'os版本',
          dataIndex: 'osVer',
          key: 'osVer',
          width: '10%',
          sorter:'true'
        },
        {
          title: '附加信息',
          dataIndex: 'remark',
          key: 'remark',
          width: '12%',
          sorter:'true',
        }, 
        {
          title: '专业系统image_id',
          dataIndex: 'osImgId',
          key: 'osImgId',
          width: '15%',
          sorter:'true'
        },
        {
          title: 'Fabric_id',
          dataIndex: 'Fabricid',
          key: 'Fabricid',
          width: '10%',
          sorter:'true'
        },
        {
          title: 'Fabric',
          dataIndex: 'Fabric',
          key: 'Fabric',
          width: '10%',
          sorter:'true',
        }];
}
