"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = TodayRun;
var _react = _interopRequireDefault(require("react"));
var _vmTable = _interopRequireDefault(require("../../../vm-table"));
var _outTime = _interopRequireDefault(require("../../imgs/outTime.png"));
var _runTime = _interopRequireDefault(require("../../imgs/runTime.png"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
 * 今日运行-通用
 */

function TodayRun(props) {
  window.console.log(props);
  var columns = [{
    title: '报警类型',
    dataIndex: 'type',
    key: 'type',
    width: 100,
    ellipsis: true
  }, {
    title: '报警时间',
    dataIndex: 'time',
    key: 'time',
    width: 120,
    ellipsis: true
  }, {
    title: '报警内容',
    dataIndex: 'alarmContent',
    key: 'alarmContent',
    ellipsis: true
  }];
  var tableProps = {
    height: 220,
    paganitation: false,
    dataSource: [{
      type: '超速',
      time: '213'
    }, {
      type: '超速2',
      time: '213'
    }, {
      type: '超速2',
      time: '213'
    }]
  };
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-head"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-head-item"
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: _outTime["default"]
  }), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-head-item--name"
  }, "\u51FA\u8F66\u65F6\u95F4"), /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-head-item--value"
  }, "08:00:00"))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-head-item"
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: _runTime["default"]
  }), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-head-item--name"
  }, "\u8FD0\u884C\u65F6\u957F"), /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-head-item--value"
  }, "1h20min08s")))), /*#__PURE__*/_react["default"].createElement(_vmTable["default"], Object.assign({
    columns: columns,
    isIndex: false,
    rowKey: "index"
  }, tableProps)));
}
//# sourceMappingURL=TodayRun.js.map
