"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _vmNodata = _interopRequireDefault(require("../vm-nodata"));
var _react = _interopRequireDefault(require("react"));
var _vmSubTitle = _interopRequireDefault(require("../vm-sub-title"));
var _ = _interopRequireDefault(require("./imgs/1.png"));
var _2 = _interopRequireDefault(require("./imgs/2.png"));
var _3 = _interopRequireDefault(require("./imgs/3.png"));
var _4 = _interopRequireDefault(require("./imgs/4.png"));
var _5 = _interopRequireDefault(require("./imgs/5.png"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
 * 考核信息汇总
 */

var AppraisalTop5 = function AppraisalTop5(props) {
  var deductPoint = props.deductPoint;
  var imgs = function imgs(index) {
    var src = '';
    switch (index) {
      case 1:
        src = _["default"];
        break;
      case 2:
        src = _2["default"];
        break;
      case 3:
        src = _3["default"];
        break;
      case 4:
        src = _4["default"];
        break;
      case 5:
        src = _5["default"];
        break;
      default:
        break;
    }
    return src;
  };
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "appraisal-content-kh-top"
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u6263\u5206\u56E0\u5B50\u5206\u6790TOP5"
  }), (deductPoint === null || deductPoint === void 0 ? void 0 : deductPoint.length) > 0 ? deductPoint.map(function (ele, index) {
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: "appraisal-content-kh-topItem",
      key: index
    }, /*#__PURE__*/_react["default"].createElement("div", {
      className: "appraisal-content-kh-topItem-content"
    }, /*#__PURE__*/_react["default"].createElement("img", {
      src: imgs(index + 1)
    }), ele.standardName), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", null, ele.standardNum), "\u6B21"), /*#__PURE__*/_react["default"].createElement("div", {
      className: "appraisal-content-kh-topItem-score"
    }, /*#__PURE__*/_react["default"].createElement("span", null, ele.deductPoints), "\u5206"));
  }) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], {
    style: {
      height: '100%',
      width: '100%'
    }
  })));
};
var _default = exports["default"] = AppraisalTop5;
//# sourceMappingURL=AppraisalTop5.js.map
