"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = TodayWork;
var _react = _interopRequireDefault(require("react"));
var _vmNodata = _interopRequireDefault(require("../../../vm-nodata"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
 * 今日作业
 */

function TodayWork(_ref) {
  var todayWorkRes = _ref.todayWorkRes;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-work"
  }, (todayWorkRes === null || todayWorkRes === void 0 ? void 0 : todayWorkRes.length) > 0 ? todayWorkRes.map(function (ele, index) {
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: "today-work-item",
      key: index
    }, /*#__PURE__*/_react["default"].createElement("div", {
      className: "today-work-item--name"
    }, "".concat(ele === null || ele === void 0 ? void 0 : ele.shiftName, " (").concat(ele === null || ele === void 0 ? void 0 : ele.shiftStartTime, "-").concat(ele === null || ele === void 0 ? void 0 : ele.shiftEndTime, ")")), /*#__PURE__*/_react["default"].createElement("div", {
      className: "today-work-item--content"
    }, "\u6392\u73ED\u533A\u57DF\uFF1A", (ele === null || ele === void 0 ? void 0 : ele.shiftWorkElementNames) || '--'), /*#__PURE__*/_react["default"].createElement("div", {
      className: "today-work-item--content"
    }, "\u8003\u52E4\u65F6\u95F4\uFF1A", "".concat((ele === null || ele === void 0 ? void 0 : ele.clockInTime) || '', "-").concat((ele === null || ele === void 0 ? void 0 : ele.clockOutTime) || '')), /*#__PURE__*/_react["default"].createElement("div", {
      className: "today-work-item--content"
    }, "\u5B8C\u6210\u5EA6\uFF1A", /*#__PURE__*/_react["default"].createElement("span", {
      className: "today-work-item--value"
    }, (ele === null || ele === void 0 ? void 0 : ele.completionRate) || 0, "%"), " (".concat((ele === null || ele === void 0 ? void 0 : ele.clockDurationStr) || 0, "/").concat((ele === null || ele === void 0 ? void 0 : ele.shiftDurationStr) || 0, ")")));
  }) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], {
    style: {
      width: '100%',
      height: '80%'
    }
  })));
}
//# sourceMappingURL=TodayWork.js.map
