You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
219 lines
9.1 KiB
219 lines
9.1 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[62548],{
|
|
|
|
/***/ 79222:
|
|
/*!*****************************************************************!*\
|
|
!*** ./src/pages/Engineering/Norm/Detail/index.tsx + 1 modules ***!
|
|
\*****************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"default": function() { return /* binding */ Detail; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(42122);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
|
|
var _umi_production_exports = __webpack_require__(89214);
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/Norm/Detail/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___m0mr1","flex_space_between":"flex_space_between___VnOBt","flex_box_vertical_center":"flex_box_vertical_center___k2muQ","flex_box_center_end":"flex_box_center_end___mk_G9","flex_box_column":"flex_box_column___pAN7m","normDetailContainer":"normDetailContainer___jU9qX","col120":"col120___PP676","col132":"col132___maQTk","breadcrumd":"breadcrumd___wTc7P","info":"info___IcDC3","tableWrap":"tableWrap___glHsJ","noTop":"noTop___He6BF","red":"red___MKy0v","green":"green___lz_B4","name":"name___gxP6L","calcTips":"calcTips___DQ1vb","thead":"thead___smkYs","colSpan":"colSpan___UlYpi","content":"content___FZ6G7","listItemWrap":"listItemWrap___Vyvgz","listItem":"listItem___iwssp","course":"course___Cuzmz"});
|
|
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(85893);
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/Norm/Detail/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var NormDetail = function NormDetail(_ref) {
|
|
var dataSource = _ref.dataSource,
|
|
dispatch = _ref.dispatch;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
(0,react.useEffect)(function () {
|
|
if (params.ec_year_id && params.id) {
|
|
dispatch({
|
|
type: 'engineeringNormDetail/getGraduationResultDetail',
|
|
payload: params
|
|
});
|
|
}
|
|
}, []);
|
|
var columns = [{
|
|
title: '课程',
|
|
style: {
|
|
justifyContent: 'start'
|
|
}
|
|
}, {
|
|
title: '课程所占权重',
|
|
className: Detailmodules.col120
|
|
}, {
|
|
title: '用于评价的课程目标',
|
|
style: {
|
|
flex: 2,
|
|
justifyContent: 'start'
|
|
}
|
|
}, {
|
|
title: '课程达成阈值',
|
|
className: Detailmodules.col120
|
|
}, {
|
|
title: '课程达成实际值',
|
|
className: Detailmodules.col120
|
|
}, {
|
|
title: '评价结果',
|
|
className: Detailmodules.col120
|
|
}, {
|
|
title: '指标点达成阈值',
|
|
className: Detailmodules.col120
|
|
}, {
|
|
title: '指标点达成实际值',
|
|
className: Detailmodules.col132
|
|
}, {
|
|
title: '评价结果',
|
|
style: {
|
|
width: 80,
|
|
flex: 'unset'
|
|
}
|
|
}];
|
|
|
|
/**
|
|
* renderActualValue
|
|
*/
|
|
var renderActualValue = function renderActualValue(data) {
|
|
var str = '';
|
|
data.courses.forEach(function (item, index) {
|
|
str += "".concat(item.actual_value).concat(index + 1 === data.courses.length ? '' : '+');
|
|
});
|
|
return str;
|
|
};
|
|
var goBack = function goBack() {
|
|
_umi_production_exports.history.push("/engineering/evaluate/norm");
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules.normDetailContainer,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules.breadcrumd,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
return goBack();
|
|
},
|
|
children: "\u6307\u6807\u8BC4\u4EF7"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: '>>'
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: "\u8BC4\u4EF7\u8BE6\u60C5"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules.info,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: dataSource.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: ["\u8FBE\u6210\u5EA6\u5B9E\u9645\u503C=", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: dataSource.actual_value
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: dataSource.subitems.map(function (list, index) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(Detailmodules.tableWrap, " ").concat(index === 0 ? Detailmodules.noTop : ''),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules.name,
|
|
children: list.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules.thead,
|
|
children: columns.map(function (list, index) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: list.style || {},
|
|
className: list.className,
|
|
children: [0, 2].includes(index) ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
paddingLeft: index ? 10 : 12
|
|
},
|
|
children: [' ', list.title]
|
|
}) : list.title
|
|
}, index);
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules.content,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules.listItemWrap,
|
|
children: list.courses.map(function (item, i) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules.listItem,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
justifyContent: 'start'
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
paddingLeft: 10
|
|
},
|
|
children: item.name
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules.col120,
|
|
children: item.weight
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Detailmodules.course),
|
|
children: item.ec_course_targets.map(function (_) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: _
|
|
}, _);
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules.col120,
|
|
children: item.goal_value
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules.col120,
|
|
children: item.actual_value
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(['达成', '已达成'].includes(item.result) ? Detailmodules.green : Detailmodules.red, " ").concat(Detailmodules.col120),
|
|
children: item.result
|
|
})]
|
|
}, i);
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Detailmodules.colSpan, " ").concat(Detailmodules.col120),
|
|
children: list.goal_value
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Detailmodules.colSpan, " ").concat(Detailmodules.col132),
|
|
children: list.actual_value
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
width: 80
|
|
},
|
|
className: "".concat(Detailmodules.colSpan, " ").concat(['达成', '已达成'].includes(list.result) ? Detailmodules.green : Detailmodules.red),
|
|
children: list.result
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules.calcTips,
|
|
children: [list.index && "\u6307\u6807\u70B9".concat(list.index), "\u2003\u8FBE\u6210\u5B9E\u9645\u503C=", renderActualValue(list), list.courses.length > 1 && "=".concat(list.actual_value)]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
background: '#fafafa',
|
|
width: '100%',
|
|
height: '20px'
|
|
}
|
|
})]
|
|
}, index);
|
|
})
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Detail = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var engineeringNormDetail = _ref2.engineeringNormDetail;
|
|
return objectSpread2_default()({}, engineeringNormDetail);
|
|
})(NormDetail));
|
|
|
|
/***/ })
|
|
|
|
}]); |