|
|
"use strict";
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95335],{
|
|
|
|
|
|
/***/ 95944:
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./src/pages/Engineering/Lists/CourseMatrix/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 */ CourseMatrix; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
|
var slicedToArray = __webpack_require__(79800);
|
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CourseMatrix/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var CourseMatrixmodules = ({"flex_box_center":"flex_box_center___xNPWD","flex_space_between":"flex_space_between___BPBCq","flex_box_vertical_center":"flex_box_vertical_center___JYI1q","flex_box_center_end":"flex_box_center_end___ngQW8","flex_box_column":"flex_box_column___coHpn","flex-col":"flex-col___LGiQt","flex-row":"flex-row___uku7L","justify-start":"justify-start___LsVJ5","justify-center":"justify-center___VgWnL","justify-end":"justify-end___FSmDC","justify-evenly":"justify-evenly___pEVIE","justify-around":"justify-around___up1Yd","justify-between":"justify-between___CV5Xx","align-start":"align-start___QcDR5","align-center":"align-center___C8lQe","align-end":"align-end___RT9WY","wrap":"wrap___c9DPc","title":"title___FITot","textWrap":"textWrap___zFb5b","textTitle":"textTitle___bsHIA","row":"row___TZQOl","control":"control___TM9z1","label":"label___OFgDw","table":"table___SmEox","tbl":"tbl___mp943","line":"line___Q7IUE","head":"head___iyaG3","list":"list___wUJPB","omit":"omit___pRLmp","headOmit":"headOmit___FUpZW","customModal":"customModal___AOmSA"});
|
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
|
var _umi_production_exports = __webpack_require__(5841);
|
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
|
var fetch = __webpack_require__(43391);
|
|
|
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
|
var lodash = __webpack_require__(89392);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
var message = __webpack_require__(8591);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
|
var tooltip = __webpack_require__(6848);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
|
|
|
var input_number = __webpack_require__(5871);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
|
var es_select = __webpack_require__(57809);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
|
var es_button = __webpack_require__(3113);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js
|
|
|
var es_radio = __webpack_require__(69140);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
|
var spin = __webpack_require__(71418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
|
|
var table = __webpack_require__(1710);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/empty/index.js + 3 modules
|
|
|
var empty = __webpack_require__(64165);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
var modal = __webpack_require__(43418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
|
|
var skeleton = __webpack_require__(61621);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
|
var row = __webpack_require__(95237);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
|
var col = __webpack_require__(43604);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
|
var input = __webpack_require__(92832);
|
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
|
var util = __webpack_require__(11919);
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
var env = __webpack_require__(43873);
|
|
|
// EXTERNAL MODULE: ./src/pages/Engineering/util.tsx
|
|
|
var Engineering_util = __webpack_require__(55432);
|
|
|
// EXTERNAL MODULE: ./src/pages/Engineering/components/Evaluate/index.ts + 4 modules
|
|
|
var Evaluate = __webpack_require__(9672);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CourseMatrix/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var data = [{
|
|
|
key: 1,
|
|
|
name: '编程原理',
|
|
|
age1: 'M',
|
|
|
age2: "H",
|
|
|
companyName1: 'X',
|
|
|
companyName2: 'X',
|
|
|
companyName3: 'X',
|
|
|
gender1: 'X',
|
|
|
gender2: 'X',
|
|
|
gender3: 'X'
|
|
|
}, {
|
|
|
key: 2,
|
|
|
name: '高等数学',
|
|
|
age1: 'M',
|
|
|
age2: "H",
|
|
|
companyName1: 'X',
|
|
|
companyName2: 'C',
|
|
|
companyName3: 'C',
|
|
|
gender1: 'X',
|
|
|
gender2: 'C',
|
|
|
gender3: 'X'
|
|
|
}];
|
|
|
var Page = function Page(_ref) {
|
|
|
var _user$userInfo2;
|
|
|
var user = _ref.user,
|
|
|
dispatch = _ref.dispatch;
|
|
|
var urlParams = (0,_umi_production_exports.useLocation)();
|
|
|
var initParams = {
|
|
|
tab: '1',
|
|
|
ec_major_school_id: null,
|
|
|
ec_year_id: null
|
|
|
};
|
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
majorData = _useState2[0],
|
|
|
setMajorData = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
yearData = _useState4[0],
|
|
|
setYearData = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)({}),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
tableData = _useState6[0],
|
|
|
setTableData = _useState6[1];
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(0),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
tableWidth = _useState8[0],
|
|
|
setTableWidth = _useState8[1];
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
column = _useState10[0],
|
|
|
setColumn = _useState10[1];
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(true),
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
loading = _useState12[0],
|
|
|
setLoading = _useState12[1];
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
disabled = _useState14[0],
|
|
|
setDisabled = _useState14[1];
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
modalLoading = _useState16[0],
|
|
|
setModalLoading = _useState16[1];
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
visible = _useState18[0],
|
|
|
setVisible = _useState18[1];
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(true),
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
noAllowEdit = _useState20[0],
|
|
|
setNoAllowEdit = _useState20[1];
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)({
|
|
|
mid_to_high_number: null,
|
|
|
low_to_mid_number: null
|
|
|
}),
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
editInputValue = _useState22[0],
|
|
|
setEditInputValue = _useState22[1];
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(initParams),
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
params = _useState24[0],
|
|
|
setParams = _useState24[1];
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)(null),
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
editId = _useState26[0],
|
|
|
setEditId = _useState26[1];
|
|
|
var editIdValue = (0,_react_17_0_2_react.useRef)(''); //表格输入框值
|
|
|
var tableCellTotalWidth = (0,_react_17_0_2_react.useRef)(0); //表格滚动的宽度
|
|
|
var editInputValueRef = (0,_react_17_0_2_react.useRef)({
|
|
|
mid_to_high_number: null,
|
|
|
low_to_mid_number: null
|
|
|
}); //关联度范围设置点击取消后回填数据
|
|
|
var paramsRef = (0,_react_17_0_2_react.useRef)(initParams); //表格里面做判定的动态params
|
|
|
var editIdRef = (0,_react_17_0_2_react.useRef)(null); //确认点击的是哪个单元格
|
|
|
var tableInitRef = (0,_react_17_0_2_react.useRef)([]); //表格原始数据
|
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
var _user$userInfo;
|
|
|
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.school_id) {
|
|
|
getMajorData();
|
|
|
}
|
|
|
}, [user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.school_id]);
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
paramsRef.current = params;
|
|
|
}, [params]);
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record, bool) {
|
|
|
var _user$userInfo3;
|
|
|
var sendData, res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
sendData = (0,lodash.cloneDeep)(record);
|
|
|
Engineering_util/* localSelect */.U.setItem(user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login, [sendData === null || sendData === void 0 ? void 0 : sendData.ec_major_school_id, sendData === null || sendData === void 0 ? void 0 : sendData.ec_year_id]);
|
|
|
delete sendData.tab;
|
|
|
if (!bool) {
|
|
|
setLoading(true);
|
|
|
}
|
|
|
_context.next = 6;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(params === null || params === void 0 ? void 0 : params.ec_year_id, "/graduation_course_supports.json"), {
|
|
|
method: "get",
|
|
|
params: sendData
|
|
|
});
|
|
|
case 6:
|
|
|
res = _context.sent;
|
|
|
if (res !== null && res !== void 0 && res.graduation_subitems) {
|
|
|
setTableData((res === null || res === void 0 ? void 0 : res.ec_courses) || []);
|
|
|
dealData((res === null || res === void 0 ? void 0 : res.graduation_subitems) || []);
|
|
|
tableInitRef.current = res === null || res === void 0 ? void 0 : res.graduation_subitems;
|
|
|
}
|
|
|
setLoading(false);
|
|
|
case 9:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return function getData(_x, _x2) {
|
|
|
return _ref2.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var handleBlur = /*#__PURE__*/function () {
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
var _rel$split, _rel$split2;
|
|
|
var rel, res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
setEditId(null);
|
|
|
rel = editIdRef.current;
|
|
|
editIdRef.current = null;
|
|
|
_context2.next = 5;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/1/graduation_course_supports/create_one.json", {
|
|
|
method: "post",
|
|
|
body: {
|
|
|
ec_course_id: rel === null || rel === void 0 || (_rel$split = rel.split('-')) === null || _rel$split === void 0 ? void 0 : _rel$split[1],
|
|
|
ec_graduation_subitem_id: rel === null || rel === void 0 || (_rel$split2 = rel.split('-')) === null || _rel$split2 === void 0 ? void 0 : _rel$split2[0],
|
|
|
weights: editIdValue.current
|
|
|
}
|
|
|
});
|
|
|
case 5:
|
|
|
res = _context2.sent;
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success('保存成功');
|
|
|
getData(params, true);
|
|
|
} else {
|
|
|
dealData((0,lodash.cloneDeep)(tableInitRef.current));
|
|
|
}
|
|
|
case 7:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}, _callee2);
|
|
|
}));
|
|
|
return function handleBlur() {
|
|
|
return _ref3.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var handleClickNum = function handleClickNum(id) {
|
|
|
setEditId(id);
|
|
|
editIdRef.current = id;
|
|
|
dealData((0,lodash.cloneDeep)(tableInitRef.current));
|
|
|
};
|
|
|
var dealData = function dealData(d) {
|
|
|
if (!(d !== null && d !== void 0 && d.length)) {
|
|
|
return;
|
|
|
}
|
|
|
tableCellTotalWidth.current = 0;
|
|
|
var cloneData = (0,lodash.cloneDeep)(d);
|
|
|
cloneData[0].title = /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CourseMatrixmodules.line,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: "\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: "\u8BFE\u7A0B\u540D\u79F0"
|
|
|
})]
|
|
|
});
|
|
|
cloneData[0].width = '207px';
|
|
|
cloneData[0].render = function (v, r) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CourseMatrixmodules.omit,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
title: v,
|
|
|
children: v
|
|
|
}), r.warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '该课程权重之和不等于1,可能导致计算结果不准确!',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#FF9D18'
|
|
|
},
|
|
|
className: "iconfont icon-hongsejingshi ml5"
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
var _render = function render(k, g, id) {
|
|
|
var _paramsRef$current, _paramsRef$current2;
|
|
|
var realV1 = '';
|
|
|
var realV2 = '';
|
|
|
if (k) {
|
|
|
realV1 = k.split('-')[0];
|
|
|
realV2 = k.split('-')[1];
|
|
|
}
|
|
|
var realV = ((_paramsRef$current = paramsRef.current) === null || _paramsRef$current === void 0 ? void 0 : _paramsRef$current.tab) === '1' ? realV1 : realV2;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: editIdRef.current === "".concat(id, "-").concat(g.ec_course_id) ? /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
autoFocus: true,
|
|
|
onFocus: function onFocus() {
|
|
|
editIdValue.current = realV2;
|
|
|
},
|
|
|
defaultValue: realV2,
|
|
|
parser: parser,
|
|
|
onBlur: handleBlur,
|
|
|
step: 0.1,
|
|
|
onChange: function onChange(e) {
|
|
|
return editIdValue.current = e;
|
|
|
},
|
|
|
style: {
|
|
|
width: 'auto'
|
|
|
}
|
|
|
}, "".concat(id, "-").concat(g.ec_course_id)) : /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
|
|
|
children: [realV === 'X' && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '该课程与毕业要求指标点没有对应关系,不能输入权重。',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#B1BACD',
|
|
|
transform: 'scale(0.6)',
|
|
|
display: 'inline-block'
|
|
|
},
|
|
|
className: "iconfont icon-wu"
|
|
|
})
|
|
|
})
|
|
|
}), realV !== 'X' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: CourseMatrixmodules.tbl,
|
|
|
onClick: function onClick() {
|
|
|
return handleClickNum("".concat(id, "-").concat(g.ec_course_id));
|
|
|
},
|
|
|
style: {
|
|
|
color: realV === 'H' ? "#0152D9" : realV === "M" ? '#07C160' : realV === "L" ? '#FF9D18' : '#0152D9'
|
|
|
},
|
|
|
children: realV ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: ((_paramsRef$current2 = paramsRef.current) === null || _paramsRef$current2 === void 0 ? void 0 : _paramsRef$current2.tab) === '1' ? "\u6743\u91CD:".concat(realV2) : "\u5173\u8054\u5EA6:".concat(realV1),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: realV
|
|
|
})
|
|
|
}) : '输入数字'
|
|
|
})]
|
|
|
}, "".concat(id, "-").concat(g.ec_course_id))
|
|
|
});
|
|
|
};
|
|
|
cloneData = cloneData.map(function (e, ei) {
|
|
|
var _e$children, _e$children2, _e$children3;
|
|
|
if (!ei) {
|
|
|
return e;
|
|
|
}
|
|
|
tableCellTotalWidth.current = tableCellTotalWidth.current + 120 * ((e === null || e === void 0 || (_e$children = e.children) === null || _e$children === void 0 ? void 0 : _e$children.length) || 1);
|
|
|
return objectSpread2_default()(objectSpread2_default()({}, e), {}, {
|
|
|
ellipsis: true,
|
|
|
width: 120 * ((e === null || e === void 0 || (_e$children2 = e.children) === null || _e$children2 === void 0 ? void 0 : _e$children2.length) || 1),
|
|
|
// title: <span style={{ padding: '0 6px' }}>{e.title}</span>,
|
|
|
// title: <span title={e.title} style={{ width: 120 * (e?.children?.length || 1) }} className={styles.headOmit}>{e.title}</span>,
|
|
|
children: e === null || e === void 0 || (_e$children3 = e.children) === null || _e$children3 === void 0 ? void 0 : _e$children3.map(function (r, ri) {
|
|
|
return objectSpread2_default()(objectSpread2_default()({}, r), {}, {
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: r.content,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: r.title
|
|
|
})
|
|
|
}), r.warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '该指标点权重之和不等于1 ,可能导致计算结果不准确!',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#FF9D18'
|
|
|
},
|
|
|
className: "iconfont icon-hongsejingshi ml5"
|
|
|
})
|
|
|
})]
|
|
|
}, Math.random()),
|
|
|
render: function render(k, g) {
|
|
|
return _render(k, g, r.id);
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
setColumn(cloneData || []);
|
|
|
};
|
|
|
var exportExcel = function exportExcel() {
|
|
|
var sendData = (0,lodash.cloneDeep)(params);
|
|
|
delete sendData.tab;
|
|
|
(0,util/* downLoadFile */.FH)('', (0,util/* setUrlQuery */.NY)({
|
|
|
url: env/* default */.Z.API_SERVER + "/api/ec_years/".concat(params.ec_year_id, "/graduation_course_supports.xlsx"),
|
|
|
query: sendData
|
|
|
}));
|
|
|
};
|
|
|
var getMajorData = /*#__PURE__*/function () {
|
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
var _user$userInfo4, _res1$data, _user$userInfo5, _urlParams$query, _res1$data2, _urlParams$query2, _res2$data;
|
|
|
var res1, item, ec_major_school_id, res2;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
case 0:
|
|
|
_context3.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/schools/".concat(user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.school_id, "/ec_majors/get_major_list.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 2:
|
|
|
res1 = _context3.sent;
|
|
|
if (res1 !== null && res1 !== void 0 && (_res1$data = res1.data) !== null && _res1$data !== void 0 && (_res1$data = _res1$data[0]) !== null && _res1$data !== void 0 && _res1$data.ec_major_school_id) {
|
|
|
_context3.next = 7;
|
|
|
break;
|
|
|
}
|
|
|
setLoading(false);
|
|
|
setDisabled(true);
|
|
|
return _context3.abrupt("return");
|
|
|
case 7:
|
|
|
item = Engineering_util/* localSelect */.U.getItem(user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login);
|
|
|
ec_major_school_id = Number(urlParams === null || urlParams === void 0 || (_urlParams$query = urlParams.query) === null || _urlParams$query === void 0 ? void 0 : _urlParams$query.ec_major_school_id) || item[0] || (res1 === null || res1 === void 0 || (_res1$data2 = res1.data) === null || _res1$data2 === void 0 || (_res1$data2 = _res1$data2[0]) === null || _res1$data2 === void 0 ? void 0 : _res1$data2.ec_major_school_id);
|
|
|
_context3.next = 11;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_major_schools/".concat(ec_major_school_id, "/ec_years/get_year_list.json"), {
|
|
|
method: "get"
|
|
|
});
|
|
|
case 11:
|
|
|
res2 = _context3.sent;
|
|
|
params.ec_major_school_id = ec_major_school_id;
|
|
|
params.ec_year_id = Number(urlParams === null || urlParams === void 0 || (_urlParams$query2 = urlParams.query) === null || _urlParams$query2 === void 0 ? void 0 : _urlParams$query2.ec_year_id) || item[1] || (res2 === null || res2 === void 0 || (_res2$data = res2.data) === null || _res2$data === void 0 || (_res2$data = _res2$data[0]) === null || _res2$data === void 0 ? void 0 : _res2$data.ec_year_id);
|
|
|
setMajorData((res1 === null || res1 === void 0 ? void 0 : res1.data) || []);
|
|
|
setYearData((res2 === null || res2 === void 0 ? void 0 : res2.data) || []);
|
|
|
setParams(params);
|
|
|
getData(params);
|
|
|
case 18:
|
|
|
case "end":
|
|
|
return _context3.stop();
|
|
|
}
|
|
|
}, _callee3);
|
|
|
}));
|
|
|
return function getMajorData() {
|
|
|
return _ref4.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getYearData = /*#__PURE__*/function () {
|
|
|
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(id) {
|
|
|
var _res2$data2;
|
|
|
var res2;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
case 0:
|
|
|
_context4.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_major_schools/".concat(id, "/ec_years/get_year_list.json"), {
|
|
|
method: "get"
|
|
|
});
|
|
|
case 2:
|
|
|
res2 = _context4.sent;
|
|
|
params.ec_major_school_id = id;
|
|
|
params.ec_year_id = res2 === null || res2 === void 0 || (_res2$data2 = res2.data) === null || _res2$data2 === void 0 || (_res2$data2 = _res2$data2[0]) === null || _res2$data2 === void 0 ? void 0 : _res2$data2.ec_year_id;
|
|
|
setYearData((res2 === null || res2 === void 0 ? void 0 : res2.data) || []);
|
|
|
setParams(params);
|
|
|
getData(params);
|
|
|
case 8:
|
|
|
case "end":
|
|
|
return _context4.stop();
|
|
|
}
|
|
|
}, _callee4);
|
|
|
}));
|
|
|
return function getYearData(_x3) {
|
|
|
return _ref5.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var handleSelect = function handleSelect(v, type) {
|
|
|
params[type] = v;
|
|
|
if (type === 'ec_major_school_id') {
|
|
|
getYearData(v);
|
|
|
return;
|
|
|
}
|
|
|
if (type === 'ec_year_id') {
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
getData(params);
|
|
|
}
|
|
|
};
|
|
|
var handleValue = function handleValue(v, type) {
|
|
|
var mid_to_high_number = editInputValue.mid_to_high_number,
|
|
|
low_to_mid_number = editInputValue.low_to_mid_number;
|
|
|
var num = v.target.value;
|
|
|
num = isNaN(num) ? '' : num;
|
|
|
if (Number(num) !== 0) {
|
|
|
var n = Number(num);
|
|
|
if (type === 'mid_to_high_number' && !(n > (low_to_mid_number || 0) && n < 1)) {
|
|
|
num = '';
|
|
|
}
|
|
|
if (type === 'low_to_mid_number' && !(n > 0 && n < (mid_to_high_number || 1))) {
|
|
|
num = '';
|
|
|
}
|
|
|
}
|
|
|
if (num[0] === '.') {
|
|
|
num = '';
|
|
|
}
|
|
|
editInputValue[type] = num;
|
|
|
setEditInputValue(objectSpread2_default()({}, editInputValue));
|
|
|
};
|
|
|
var handleTypeChange = function handleTypeChange(e, activeKey) {
|
|
|
params.tab = activeKey;
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
dealData((0,lodash.cloneDeep)(tableInitRef.current));
|
|
|
// getData(params)
|
|
|
};
|
|
|
var columns = [{
|
|
|
title: '课程名称',
|
|
|
dataIndex: 'name',
|
|
|
fixed: 'left'
|
|
|
}, {
|
|
|
title: '1.问题分析',
|
|
|
align: 'center',
|
|
|
children: [{
|
|
|
align: 'center',
|
|
|
title: '指标点1-1',
|
|
|
dataIndex: 'age1'
|
|
|
}, {
|
|
|
align: 'center',
|
|
|
title: '指标点1-2',
|
|
|
dataIndex: 'age2'
|
|
|
}]
|
|
|
}, {
|
|
|
align: 'center',
|
|
|
title: '2.设计/开发解决方案',
|
|
|
children: [{
|
|
|
title: '指标点2-1',
|
|
|
align: 'center',
|
|
|
dataIndex: 'companyName1'
|
|
|
}, {
|
|
|
title: '指标点2-2',
|
|
|
align: 'center',
|
|
|
dataIndex: 'companyName2'
|
|
|
}, {
|
|
|
title: '指标点2-3',
|
|
|
align: 'center',
|
|
|
dataIndex: 'companyName3'
|
|
|
}]
|
|
|
}, {
|
|
|
title: '3.语言解决',
|
|
|
align: 'center',
|
|
|
children: [{
|
|
|
title: '指标点3-1',
|
|
|
align: 'center',
|
|
|
dataIndex: 'gender1'
|
|
|
}, {
|
|
|
title: '指标点3-2',
|
|
|
align: 'center',
|
|
|
dataIndex: 'gender2'
|
|
|
}, {
|
|
|
title: '指标点3-3',
|
|
|
align: 'center',
|
|
|
dataIndex: 'gender3'
|
|
|
}]
|
|
|
}];
|
|
|
var parser = function parser(v) {
|
|
|
var num = v;
|
|
|
num = isNaN(num) ? '' : num;
|
|
|
if (num[0] === '.') {
|
|
|
num = '';
|
|
|
}
|
|
|
return num;
|
|
|
};
|
|
|
var handlerRelevance = /*#__PURE__*/function () {
|
|
|
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
case 0:
|
|
|
setModalLoading(true);
|
|
|
setVisible(true);
|
|
|
_context5.next = 4;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(params.ec_year_id, "/ec_course_support_relations.json"), {
|
|
|
method: "get"
|
|
|
});
|
|
|
case 4:
|
|
|
res = _context5.sent;
|
|
|
if (res) {
|
|
|
setModalLoading(false);
|
|
|
setEditInputValue(objectSpread2_default()({}, res));
|
|
|
editInputValueRef.current = objectSpread2_default()({}, res);
|
|
|
}
|
|
|
case 6:
|
|
|
case "end":
|
|
|
return _context5.stop();
|
|
|
}
|
|
|
}, _callee5);
|
|
|
}));
|
|
|
return function handlerRelevance() {
|
|
|
return _ref6.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var handlerRelevanceAffirm = /*#__PURE__*/function () {
|
|
|
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
|
|
|
var mid_to_high_number, low_to_mid_number, res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
case 0:
|
|
|
mid_to_high_number = editInputValue.mid_to_high_number, low_to_mid_number = editInputValue.low_to_mid_number;
|
|
|
if (!(!mid_to_high_number || !low_to_mid_number)) {
|
|
|
_context6.next = 4;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.warning('输入框不能为空');
|
|
|
return _context6.abrupt("return");
|
|
|
case 4:
|
|
|
if (!(Number(mid_to_high_number) === 0 || Number(low_to_mid_number) === 0)) {
|
|
|
_context6.next = 7;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.warning('必须输入大于0且小于1的数字');
|
|
|
return _context6.abrupt("return");
|
|
|
case 7:
|
|
|
_context6.next = 9;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(params.ec_year_id, "/ec_course_support_relations.json"), {
|
|
|
method: "put",
|
|
|
body: editInputValue
|
|
|
});
|
|
|
case 9:
|
|
|
res = _context6.sent;
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success('保存成功');
|
|
|
setNoAllowEdit(true);
|
|
|
}
|
|
|
case 11:
|
|
|
case "end":
|
|
|
return _context6.stop();
|
|
|
}
|
|
|
}, _callee6);
|
|
|
}));
|
|
|
return function handlerRelevanceAffirm() {
|
|
|
return _ref7.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var scroll = tableData.length > 11 ? {
|
|
|
x: tableCellTotalWidth.current,
|
|
|
y: 452
|
|
|
} : {
|
|
|
x: tableCellTotalWidth.current
|
|
|
};
|
|
|
var isDisabled = loading || disabled;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CourseMatrixmodules.wrap,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Evaluate/* PanelTitle */.p, {
|
|
|
title: "\u8BFE\u7A0B\u77E9\u9635",
|
|
|
style: {
|
|
|
padding: '12px 0 10px 20px'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CourseMatrixmodules.control,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CourseMatrixmodules.label,
|
|
|
children: "\u8BA4\u8BC1\u4E13\u4E1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
disabled: isDisabled,
|
|
|
style: {
|
|
|
width: 240
|
|
|
},
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",
|
|
|
value: params === null || params === void 0 ? void 0 : params.ec_major_school_id,
|
|
|
onChange: function onChange(v) {
|
|
|
return handleSelect(v, 'ec_major_school_id');
|
|
|
},
|
|
|
children: majorData === null || majorData === void 0 ? void 0 : majorData.map(function (e, i) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: e.ec_major_school_id,
|
|
|
children: e.name
|
|
|
}, i);
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CourseMatrixmodules.label,
|
|
|
children: "\u8BA4\u8BC1\u5C4A\u522B"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
disabled: isDisabled,
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u5C4A\u522B",
|
|
|
value: params === null || params === void 0 ? void 0 : params.ec_year_id,
|
|
|
onChange: function onChange(v) {
|
|
|
return handleSelect(v, 'ec_year_id');
|
|
|
},
|
|
|
children: yearData === null || yearData === void 0 ? void 0 : yearData.map(function (e, i) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: e.ec_year_id,
|
|
|
children: e.year
|
|
|
}, i);
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isDisabled,
|
|
|
style: {
|
|
|
marginLeft: 'auto',
|
|
|
transition: '0s',
|
|
|
height: 30
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
return handlerRelevance();
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-daochubeifen font14 mr5"
|
|
|
}), "\u5173\u8054\u5EA6\u8303\u56F4\u8BBE\u7F6E"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isDisabled || !tableData.length,
|
|
|
style: {
|
|
|
transition: '0s',
|
|
|
height: 30
|
|
|
},
|
|
|
className: "ml10",
|
|
|
onClick: function onClick() {
|
|
|
return exportExcel();
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-daochubeifen font14 mr5"
|
|
|
}), "\u5BFC\u51FA"]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CourseMatrixmodules.textWrap,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CourseMatrixmodules.textTitle,
|
|
|
children: "\u8BFE\u7A0B\u4E0E\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5173\u7CFB\u77E9\u9635"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CourseMatrixmodules.row,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#0152D9"
|
|
|
},
|
|
|
children: "H"
|
|
|
}), "\u8868\u793A\u5173\u8054\u5EA6\u9AD8\uFF0C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#07C160"
|
|
|
},
|
|
|
children: "M"
|
|
|
}), "\u8868\u793A\u5173\u8054\u5EA6\u4E2D\uFF0C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#FF9D18"
|
|
|
},
|
|
|
children: "L"
|
|
|
}), "\u8868\u793A\u5173\u8054\u5EA6\u4F4E"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "mr20 font14",
|
|
|
children: "\u5C55\u793A\u65B9\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
|
disabled: isDisabled,
|
|
|
checked: params.tab === '1',
|
|
|
onChange: function onChange(e) {
|
|
|
return handleTypeChange(e, '1');
|
|
|
},
|
|
|
children: "\u5B57\u6BCD"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
|
disabled: isDisabled,
|
|
|
checked: params.tab === '2',
|
|
|
onChange: function onChange(e) {
|
|
|
return handleTypeChange(e, '2');
|
|
|
},
|
|
|
children: "\u6570\u5B57"
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
|
spinning: loading,
|
|
|
children: !!(tableData !== null && tableData !== void 0 && tableData.length) ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CourseMatrixmodules.table,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
rowKey: 'ec_course_id',
|
|
|
columns: column,
|
|
|
dataSource: tableData,
|
|
|
bordered: true,
|
|
|
size: "middle",
|
|
|
scroll: scroll,
|
|
|
pagination: false
|
|
|
})
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(empty/* default */.Z, {
|
|
|
style: {
|
|
|
padding: '70px 0'
|
|
|
}
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
title: '关联度范围设置',
|
|
|
open: visible,
|
|
|
centered: true,
|
|
|
onCancel: function onCancel() {
|
|
|
setVisible(false);
|
|
|
getData(params);
|
|
|
},
|
|
|
width: "680px",
|
|
|
className: CourseMatrixmodules.customModal,
|
|
|
footer: null,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
|
|
|
loading: modalLoading,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
|
className: "mb20 ml40",
|
|
|
style: {
|
|
|
color: '#464F66'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: "\u8BF4\u660E\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: "1.\u8303\u56F4\u89C4\u5219\u8F93\u5165\u6846\u5FC5\u987B\u8F93\u5165\u5927\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u6570\u5B57\uFF1B"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: "mb10",
|
|
|
children: "2.\u8303\u56F4\u89C4\u5219\u7684\u524D\u4E00\u4E2A\u6570\u5B57\u5FC5\u987B\u5C0F\u4E8E\u540E\u4E00\u4E2A\u6570\u5B57\u3002"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
className: CourseMatrixmodules.head,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 126
|
|
|
},
|
|
|
children: "\u5173\u8054\u5EA6"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120
|
|
|
},
|
|
|
children: "\u5173\u8054\u5EA6\u7B26\u53F7"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
flex: 1,
|
|
|
children: "\u8303\u56F4\u89C4\u5219"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120
|
|
|
},
|
|
|
children: "\u64CD\u4F5C"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
className: CourseMatrixmodules.list,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 126
|
|
|
},
|
|
|
children: "\u9AD8"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120
|
|
|
},
|
|
|
children: "H"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
flex: 1,
|
|
|
children: ["(", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
disabled: noAllowEdit,
|
|
|
onChange: function onChange(e) {
|
|
|
return handleValue(e, 'mid_to_high_number');
|
|
|
},
|
|
|
value: editInputValue.mid_to_high_number,
|
|
|
step: 1
|
|
|
}), ",", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
value: 1,
|
|
|
disabled: true
|
|
|
}), "]"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120,
|
|
|
borderLeft: "1px solid #EEF2F8",
|
|
|
borderBottom: 0
|
|
|
}
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
className: CourseMatrixmodules.list,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 126
|
|
|
},
|
|
|
children: "\u4E2D"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120
|
|
|
},
|
|
|
children: "M"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
flex: 1,
|
|
|
children: ["(", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
disabled: noAllowEdit,
|
|
|
onChange: function onChange(e) {
|
|
|
return handleValue(e, 'low_to_mid_number');
|
|
|
},
|
|
|
value: editInputValue.low_to_mid_number,
|
|
|
step: 1
|
|
|
}), ",", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
disabled: noAllowEdit,
|
|
|
onChange: function onChange(e) {
|
|
|
return handleValue(e, 'mid_to_high_number');
|
|
|
},
|
|
|
value: editInputValue.mid_to_high_number,
|
|
|
step: 1
|
|
|
}), "]"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120,
|
|
|
borderLeft: "1px solid #EEF2F8",
|
|
|
borderBottom: 0,
|
|
|
display: 'flex',
|
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
children: noAllowEdit ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: "\u7F16\u8F91",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: function onClick() {
|
|
|
return setNoAllowEdit(false);
|
|
|
},
|
|
|
className: "iconfont icon-bianji7 current c-gcrz-primary"
|
|
|
})
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: "\u4FDD\u5B58",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: handlerRelevanceAffirm,
|
|
|
className: "iconfont icon-baocun1 mr20 current c-gcrz-primary"
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: "\u53D6\u6D88",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: function onClick() {
|
|
|
setNoAllowEdit(true);
|
|
|
setEditInputValue(objectSpread2_default()({}, editInputValueRef.current));
|
|
|
},
|
|
|
className: "iconfont icon-quxiao current c-gcrz-primary"
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
style: {
|
|
|
marginBottom: 20
|
|
|
},
|
|
|
className: CourseMatrixmodules.list,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 126
|
|
|
},
|
|
|
children: "\u4F4E"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120
|
|
|
},
|
|
|
children: "L"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
flex: 1,
|
|
|
children: ["(", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
disabled: true,
|
|
|
value: 0
|
|
|
}), ",", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
onChange: function onChange(e) {
|
|
|
return handleValue(e, 'low_to_mid_number');
|
|
|
},
|
|
|
value: editInputValue.low_to_mid_number,
|
|
|
disabled: noAllowEdit,
|
|
|
step: 1
|
|
|
}), "]"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
width: 120,
|
|
|
borderLeft: "1px solid #EEF2F8"
|
|
|
}
|
|
|
})]
|
|
|
})]
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var CourseMatrix = ((0,_umi_production_exports.connect)(function (_ref8) {
|
|
|
var user = _ref8.user;
|
|
|
return {
|
|
|
user: user
|
|
|
};
|
|
|
})(Page));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 9672:
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./src/pages/Engineering/components/Evaluate/index.ts + 4 modules ***!
|
|
|
\************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
p: function() { return /* reexport */ Evaluate_PanelTitle; },
|
|
|
v: function() { return /* reexport */ Evaluate_SelectWrap; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/PanelTitle/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var PanelTitlemodules = ({"panelTitleContainer":"panelTitleContainer___Ypuh_"});
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/PanelTitle/index.tsx
|
|
|
/*
|
|
|
* @Author: dengcheng
|
|
|
* @Date: 2022-03-29 21:51:10
|
|
|
* @Last Modified by: dengcheng
|
|
|
* @Last Modified time: 2022-03-30 15:20:33
|
|
|
* @description:面板标题
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
var PanelTitle = function PanelTitle(_ref) {
|
|
|
var title = _ref.title,
|
|
|
_ref$style = _ref.style,
|
|
|
style = _ref$style === void 0 ? {} : _ref$style;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: PanelTitlemodules.panelTitleContainer,
|
|
|
style: style,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: title
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var Evaluate_PanelTitle = (PanelTitle);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/SelectWrap/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var SelectWrapmodules = ({"selectWrapContainer":"selectWrapContainer___qocIH"});
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/SelectWrap/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SelectWrap = function SelectWrap(_ref) {
|
|
|
var title = _ref.title,
|
|
|
children = _ref.children;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: SelectWrapmodules.selectWrapContainer,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: title
|
|
|
}), children]
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var Evaluate_SelectWrap = (SelectWrap);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/index.ts
|
|
|
// 面板标题
|
|
|
|
|
|
// 选择包装器
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |