import React from 'react'
import { Table  } from 'antd';
import classNames from 'classnames';
import objectPath from 'object-path';

class DataDetails extends React.Component{
      render(){
         const props = this.props ? this.props.data : {};
         const seczoId = objectPath.get(props,'item.id') || '';
         const seczoName = objectPath.get(props,'item.name') || '';
         const seczoOfVnzname = objectPath.get(props,'item.vnz.name') || '';
         const seczoCreateTime = objectPath.get(props,'item.createTime') || '';
         const seczoModifyTime = objectPath.get(props,'item.createTime') || '';
         const seczoCreateUser = objectPath.get(props,'item.createUser') || '';
         const seczoModifyUser = objectPath.get(props,'item.createUser') || '';
         const seczoState = objectPath.get(props,'item.enabled') || '';
         return (
	             <table className="self-table" style={this.props.showTable}>
                     <tbody>
                        <tr>
                           <td className="title-td">安全区 ID：</td><td className="d-td">{seczoId}</td><td className="title-td">安全区名称 :</td> <td className="d-td">{seczoName}</td><td className="title-td">状态：</td><td className="d-td">{seczoState}</td>
                        </tr>
                        <tr>
                           <td className="title-td">所在的VNZ：</td><td className="d-td">{seczoOfVnzname}</td>
                        </tr>
                        <tr>
                           <td className="title-td">创建日期：</td><td className="d-td">{seczoCreateTime}</td><td className="title-td">创建人员：</td><td className="d-td">{seczoCreateUser}</td>
                        </tr>
                        <tr>
                           <td className="title-td">最后变更日期：</td><td className="d-td">{seczoModifyTime}</td><td className="title-td">最后变更人员：</td><td className="d-td">{seczoModifyUser}</td>
                        </tr>
                     </tbody>
	             </table>
			  )     
		}
	}
export default DataDetails;