|
|
"use strict";
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95335],{
|
|
|
|
|
|
/***/ 99438:
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./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/antd/es/modal/style/index.js + 1 modules
|
|
|
var style = __webpack_require__(35611);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
|
|
|
var modal = __webpack_require__(85402);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/style/index.js + 1 modules
|
|
|
var skeleton_style = __webpack_require__(61099);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 11 modules
|
|
|
var skeleton = __webpack_require__(73481);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
|
|
|
var input_style = __webpack_require__(69463);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
|
|
|
var input = __webpack_require__(75008);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
|
|
|
var row_style = __webpack_require__(13062);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
|
|
|
var row = __webpack_require__(71230);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/col/style/index.js
|
|
|
var col_style = __webpack_require__(89032);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
|
|
|
var col = __webpack_require__(15746);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/spin/style/index.js + 1 modules
|
|
|
var spin_style = __webpack_require__(22536);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js
|
|
|
var spin = __webpack_require__(11382);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/empty/style/index.js + 1 modules
|
|
|
var empty_style = __webpack_require__(81151);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/empty/index.js + 2 modules
|
|
|
var empty = __webpack_require__(62986);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/table/style/index.js + 1 modules
|
|
|
var table_style = __webpack_require__(71854);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/table/index.js + 58 modules
|
|
|
var table = __webpack_require__(67250);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/radio/style/index.js + 1 modules
|
|
|
var radio_style = __webpack_require__(83822);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/radio/index.js + 4 modules
|
|
|
var es_radio = __webpack_require__(29924);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
|
|
|
var button_style = __webpack_require__(29913);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
|
|
var es_button = __webpack_require__(71577);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/select/style/index.js + 1 modules
|
|
|
var select_style = __webpack_require__(95985);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/select/index.js
|
|
|
var es_select = __webpack_require__(34041);
|
|
|
// 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/antd/es/input-number/style/index.js + 1 modules
|
|
|
var input_number_style = __webpack_require__(25359);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/input-number/index.js + 9 modules
|
|
|
var input_number = __webpack_require__(87799);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
|
|
|
var tooltip_style = __webpack_require__(38390);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
|
|
var tooltip = __webpack_require__(84908);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
|
|
|
var message_style = __webpack_require__(14934);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
|
|
|
var message = __webpack_require__(12461);
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
|
|
|
var regeneratorRuntime = __webpack_require__(17061);
|
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
|
|
var asyncToGenerator = __webpack_require__(17156);
|
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
|
var slicedToArray = __webpack_require__(27424);
|
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
|
var react = __webpack_require__(67294);
|
|
|
;// 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","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 + 8 modules
|
|
|
var _umi_production_exports = __webpack_require__(89214);
|
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
|
var fetch = __webpack_require__(84519);
|
|
|
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
|
var lodash = __webpack_require__(96486);
|
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
|
var util = __webpack_require__(29427);
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
var env = __webpack_require__(59758);
|
|
|
// EXTERNAL MODULE: ./src/pages/Engineering/util.tsx
|
|
|
var Engineering_util = __webpack_require__(69555);
|
|
|
// EXTERNAL MODULE: ./src/pages/Engineering/components/Evaluate/index.ts + 4 modules
|
|
|
var Evaluate = __webpack_require__(32337);
|
|
|
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(85893);
|
|
|
;// 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.useState)([]),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
majorData = _useState2[0],
|
|
|
setMajorData = _useState2[1];
|
|
|
var _useState3 = (0,react.useState)([]),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
yearData = _useState4[0],
|
|
|
setYearData = _useState4[1];
|
|
|
var _useState5 = (0,react.useState)({}),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
tableData = _useState6[0],
|
|
|
setTableData = _useState6[1];
|
|
|
var _useState7 = (0,react.useState)(0),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
tableWidth = _useState8[0],
|
|
|
setTableWidth = _useState8[1];
|
|
|
var _useState9 = (0,react.useState)([]),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
column = _useState10[0],
|
|
|
setColumn = _useState10[1];
|
|
|
var _useState11 = (0,react.useState)(true),
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
loading = _useState12[0],
|
|
|
setLoading = _useState12[1];
|
|
|
var _useState13 = (0,react.useState)(false),
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
disabled = _useState14[0],
|
|
|
setDisabled = _useState14[1];
|
|
|
var _useState15 = (0,react.useState)(false),
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
modalLoading = _useState16[0],
|
|
|
setModalLoading = _useState16[1];
|
|
|
var _useState17 = (0,react.useState)(false),
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
visible = _useState18[0],
|
|
|
setVisible = _useState18[1];
|
|
|
var _useState19 = (0,react.useState)(true),
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
noAllowEdit = _useState20[0],
|
|
|
setNoAllowEdit = _useState20[1];
|
|
|
var _useState21 = (0,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.useState)(initParams),
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
params = _useState24[0],
|
|
|
setParams = _useState24[1];
|
|
|
var _useState25 = (0,react.useState)(null),
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
editId = _useState26[0],
|
|
|
setEditId = _useState26[1];
|
|
|
var editIdValue = (0,react.useRef)(''); //表格输入框值
|
|
|
var tableCellTotalWidth = (0,react.useRef)(0); //表格滚动的宽度
|
|
|
var editInputValueRef = (0,react.useRef)({
|
|
|
mid_to_high_number: null,
|
|
|
low_to_mid_number: null
|
|
|
}); //关联度范围设置点击取消后回填数据
|
|
|
var paramsRef = (0,react.useRef)(initParams); //表格里面做判定的动态params
|
|
|
var editIdRef = (0,react.useRef)(null); //确认点击的是哪个单元格
|
|
|
var tableInitRef = (0,react.useRef)([]); //表格原始数据
|
|
|
|
|
|
(0,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 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.school_id]);
|
|
|
(0,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.setItem */.U.setItem(user === null || user === void 0 ? 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 ? 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 ? 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.success */.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.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 ? 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 ? 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 ? 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.API_SERVER */.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, _res1$data$, _user$userInfo5, _urlParams$query, _res1$data2, _res1$data2$, _urlParams$query2, _res2$data, _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 ? 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.getItem */.U.getItem(user === null || user === void 0 ? 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 ? 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 ? void 0 : (_res1$data2 = res1.data) === null || _res1$data2 === void 0 ? 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 ? 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 ? void 0 : (_res2$data = res2.data) === null || _res2$data === void 0 ? 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, _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 ? void 0 : (_res2$data2 = res2.data) === null || _res2$data2 === void 0 ? 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.warn */.ZP.warn('输入框不能为空');
|
|
|
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.warn */.ZP.warn('必须输入大于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.success */.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 */.Z, {
|
|
|
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 */.Z.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 */.Z, {
|
|
|
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 */.Z.Option, {
|
|
|
value: e.ec_year_id,
|
|
|
children: e.year
|
|
|
}, i);
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
|
|
|
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 */.Z, {
|
|
|
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.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));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 32337:
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./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/index.js
|
|
|
var react = __webpack_require__(67294);
|
|
|
;// 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/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(85893);
|
|
|
;// 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
|
|
|
// 面板标题
|
|
|
|
|
|
// 选择包装器
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 73481:
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/antd/es/skeleton/index.js + 11 modules ***!
|
|
|
\*************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
"Z": function() { return /* binding */ skeleton; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
|
var defineProperty = __webpack_require__(4942);
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
|
var esm_extends = __webpack_require__(87462);
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
|
var esm_typeof = __webpack_require__(71002);
|
|
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
|
var classnames = __webpack_require__(94184);
|
|
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
|
var react = __webpack_require__(67294);
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
|
|
var context = __webpack_require__(53124);
|
|
|
// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js
|
|
|
var omit = __webpack_require__(98423);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Element.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Element = function Element(props) {
|
|
|
var _classNames, _classNames2;
|
|
|
var prefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
size = props.size,
|
|
|
shape = props.shape;
|
|
|
var sizeCls = classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _classNames));
|
|
|
var shapeCls = classnames_default()((_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-circle"), shape === 'circle'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-square"), shape === 'square'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-round"), shape === 'round'), _classNames2));
|
|
|
var sizeStyle = react.useMemo(function () {
|
|
|
return typeof size === 'number' ? {
|
|
|
width: size,
|
|
|
height: size,
|
|
|
lineHeight: "".concat(size, "px")
|
|
|
} : {};
|
|
|
}, [size]);
|
|
|
return /*#__PURE__*/react.createElement("span", {
|
|
|
className: classnames_default()(prefixCls, sizeCls, shapeCls, className),
|
|
|
style: (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, sizeStyle), style)
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var skeleton_Element = (Element);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Avatar.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SkeletonAvatar = function SkeletonAvatar(props) {
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
active = props.active,
|
|
|
_props$shape = props.shape,
|
|
|
shape = _props$shape === void 0 ? 'circle' : _props$shape,
|
|
|
_props$size = props.size,
|
|
|
size = _props$size === void 0 ? 'default' : _props$size;
|
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
|
var otherProps = (0,omit/* default */.Z)(props, ['prefixCls', 'className']);
|
|
|
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-active"), active), className);
|
|
|
return /*#__PURE__*/react.createElement("div", {
|
|
|
className: cls
|
|
|
}, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({
|
|
|
prefixCls: "".concat(prefixCls, "-avatar"),
|
|
|
shape: shape,
|
|
|
size: size
|
|
|
}, otherProps)));
|
|
|
};
|
|
|
/* harmony default export */ var Avatar = (SkeletonAvatar);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Button.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SkeletonButton = function SkeletonButton(props) {
|
|
|
var _classNames;
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
active = props.active,
|
|
|
_props$block = props.block,
|
|
|
block = _props$block === void 0 ? false : _props$block,
|
|
|
_props$size = props.size,
|
|
|
size = _props$size === void 0 ? 'default' : _props$size;
|
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
|
var otherProps = (0,omit/* default */.Z)(props, ['prefixCls']);
|
|
|
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-active"), active), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-block"), block), _classNames), className);
|
|
|
return /*#__PURE__*/react.createElement("div", {
|
|
|
className: cls
|
|
|
}, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({
|
|
|
prefixCls: "".concat(prefixCls, "-button"),
|
|
|
size: size
|
|
|
}, otherProps)));
|
|
|
};
|
|
|
/* harmony default export */ var Button = (SkeletonButton);
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
|
var objectSpread2 = __webpack_require__(1413);
|
|
|
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DotChartOutlined.js
|
|
|
// This icon file is generated automatically.
|
|
|
var DotChartOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "dot-chart", "theme": "outlined" };
|
|
|
/* harmony default export */ var asn_DotChartOutlined = (DotChartOutlined);
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
var AntdIcon = __webpack_require__(93771);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/DotChartOutlined.js
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
var DotChartOutlined_DotChartOutlined = function DotChartOutlined(props, ref) {
|
|
|
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
|
|
|
ref: ref,
|
|
|
icon: asn_DotChartOutlined
|
|
|
}));
|
|
|
};
|
|
|
DotChartOutlined_DotChartOutlined.displayName = 'DotChartOutlined';
|
|
|
/* harmony default export */ var icons_DotChartOutlined = (/*#__PURE__*/react.forwardRef(DotChartOutlined_DotChartOutlined));
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Node.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SkeletonNode = function SkeletonNode(props) {
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
active = props.active,
|
|
|
children = props.children;
|
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
|
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-active"), active), className);
|
|
|
var content = children !== null && children !== void 0 ? children : /*#__PURE__*/react.createElement(icons_DotChartOutlined, null);
|
|
|
return /*#__PURE__*/react.createElement("div", {
|
|
|
className: cls
|
|
|
}, /*#__PURE__*/react.createElement("div", {
|
|
|
className: classnames_default()("".concat(prefixCls, "-image"), className),
|
|
|
style: style
|
|
|
}, content));
|
|
|
};
|
|
|
/* harmony default export */ var Node = (SkeletonNode);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Image.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var path = 'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z';
|
|
|
var SkeletonImage = function SkeletonImage(props) {
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
active = props.active;
|
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
|
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-active"), active), className);
|
|
|
return /*#__PURE__*/react.createElement("div", {
|
|
|
className: cls
|
|
|
}, /*#__PURE__*/react.createElement("div", {
|
|
|
className: classnames_default()("".concat(prefixCls, "-image"), className),
|
|
|
style: style
|
|
|
}, /*#__PURE__*/react.createElement("svg", {
|
|
|
viewBox: "0 0 1098 1024",
|
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
|
className: "".concat(prefixCls, "-image-svg")
|
|
|
}, /*#__PURE__*/react.createElement("path", {
|
|
|
d: path,
|
|
|
className: "".concat(prefixCls, "-image-path")
|
|
|
}))));
|
|
|
};
|
|
|
/* harmony default export */ var Image = (SkeletonImage);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Input.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SkeletonInput = function SkeletonInput(props) {
|
|
|
var _classNames;
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
active = props.active,
|
|
|
block = props.block,
|
|
|
_props$size = props.size,
|
|
|
size = _props$size === void 0 ? 'default' : _props$size;
|
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
|
var otherProps = (0,omit/* default */.Z)(props, ['prefixCls']);
|
|
|
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-active"), active), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-block"), block), _classNames), className);
|
|
|
return /*#__PURE__*/react.createElement("div", {
|
|
|
className: cls
|
|
|
}, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({
|
|
|
prefixCls: "".concat(prefixCls, "-input"),
|
|
|
size: size
|
|
|
}, otherProps)));
|
|
|
};
|
|
|
/* harmony default export */ var Input = (SkeletonInput);
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
|
|
var toConsumableArray = __webpack_require__(74902);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Paragraph.js
|
|
|
|
|
|
|
|
|
|
|
|
var Paragraph = function Paragraph(props) {
|
|
|
var getWidth = function getWidth(index) {
|
|
|
var width = props.width,
|
|
|
_props$rows = props.rows,
|
|
|
rows = _props$rows === void 0 ? 2 : _props$rows;
|
|
|
if (Array.isArray(width)) {
|
|
|
return width[index];
|
|
|
}
|
|
|
// last paragraph
|
|
|
if (rows - 1 === index) {
|
|
|
return width;
|
|
|
}
|
|
|
return undefined;
|
|
|
};
|
|
|
var prefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
rows = props.rows;
|
|
|
var rowList = (0,toConsumableArray/* default */.Z)(Array(rows)).map(function (_, index) {
|
|
|
return (
|
|
|
/*#__PURE__*/
|
|
|
// eslint-disable-next-line react/no-array-index-key
|
|
|
react.createElement("li", {
|
|
|
key: index,
|
|
|
style: {
|
|
|
width: getWidth(index)
|
|
|
}
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
return /*#__PURE__*/react.createElement("ul", {
|
|
|
className: classnames_default()(prefixCls, className),
|
|
|
style: style
|
|
|
}, rowList);
|
|
|
};
|
|
|
/* harmony default export */ var skeleton_Paragraph = (Paragraph);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Title.js
|
|
|
|
|
|
/* eslint-disable jsx-a11y/heading-has-content */
|
|
|
|
|
|
|
|
|
var Title = function Title(_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
className = _ref.className,
|
|
|
width = _ref.width,
|
|
|
style = _ref.style;
|
|
|
return /*#__PURE__*/react.createElement("h3", {
|
|
|
className: classnames_default()(prefixCls, className),
|
|
|
style: (0,esm_extends/* default */.Z)({
|
|
|
width: width
|
|
|
}, style)
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var skeleton_Title = (Title);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Skeleton.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getComponentProps(prop) {
|
|
|
if (prop && (0,esm_typeof/* default */.Z)(prop) === 'object') {
|
|
|
return prop;
|
|
|
}
|
|
|
return {};
|
|
|
}
|
|
|
function getAvatarBasicProps(hasTitle, hasParagraph) {
|
|
|
if (hasTitle && !hasParagraph) {
|
|
|
// Square avatar
|
|
|
return {
|
|
|
size: 'large',
|
|
|
shape: 'square'
|
|
|
};
|
|
|
}
|
|
|
return {
|
|
|
size: 'large',
|
|
|
shape: 'circle'
|
|
|
};
|
|
|
}
|
|
|
function getTitleBasicProps(hasAvatar, hasParagraph) {
|
|
|
if (!hasAvatar && hasParagraph) {
|
|
|
return {
|
|
|
width: '38%'
|
|
|
};
|
|
|
}
|
|
|
if (hasAvatar && hasParagraph) {
|
|
|
return {
|
|
|
width: '50%'
|
|
|
};
|
|
|
}
|
|
|
return {};
|
|
|
}
|
|
|
function getParagraphBasicProps(hasAvatar, hasTitle) {
|
|
|
var basicProps = {};
|
|
|
// Width
|
|
|
if (!hasAvatar || !hasTitle) {
|
|
|
basicProps.width = '61%';
|
|
|
}
|
|
|
// Rows
|
|
|
if (!hasAvatar && hasTitle) {
|
|
|
basicProps.rows = 3;
|
|
|
} else {
|
|
|
basicProps.rows = 2;
|
|
|
}
|
|
|
return basicProps;
|
|
|
}
|
|
|
var Skeleton = function Skeleton(props) {
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
loading = props.loading,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
children = props.children,
|
|
|
_props$avatar = props.avatar,
|
|
|
avatar = _props$avatar === void 0 ? false : _props$avatar,
|
|
|
_props$title = props.title,
|
|
|
title = _props$title === void 0 ? true : _props$title,
|
|
|
_props$paragraph = props.paragraph,
|
|
|
paragraph = _props$paragraph === void 0 ? true : _props$paragraph,
|
|
|
active = props.active,
|
|
|
round = props.round;
|
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
|
if (loading || !('loading' in props)) {
|
|
|
var _classNames;
|
|
|
var hasAvatar = !!avatar;
|
|
|
var hasTitle = !!title;
|
|
|
var hasParagraph = !!paragraph;
|
|
|
// Avatar
|
|
|
var avatarNode;
|
|
|
if (hasAvatar) {
|
|
|
var avatarProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
|
|
|
prefixCls: "".concat(prefixCls, "-avatar")
|
|
|
}, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar));
|
|
|
// We direct use SkeletonElement as avatar in skeleton internal.
|
|
|
avatarNode = /*#__PURE__*/react.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-header")
|
|
|
}, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({}, avatarProps)));
|
|
|
}
|
|
|
var contentNode;
|
|
|
if (hasTitle || hasParagraph) {
|
|
|
// Title
|
|
|
var $title;
|
|
|
if (hasTitle) {
|
|
|
var titleProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
|
|
|
prefixCls: "".concat(prefixCls, "-title")
|
|
|
}, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title));
|
|
|
$title = /*#__PURE__*/react.createElement(skeleton_Title, (0,esm_extends/* default */.Z)({}, titleProps));
|
|
|
}
|
|
|
// Paragraph
|
|
|
var paragraphNode;
|
|
|
if (hasParagraph) {
|
|
|
var paragraphProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
|
|
|
prefixCls: "".concat(prefixCls, "-paragraph")
|
|
|
}, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph));
|
|
|
paragraphNode = /*#__PURE__*/react.createElement(skeleton_Paragraph, (0,esm_extends/* default */.Z)({}, paragraphProps));
|
|
|
}
|
|
|
contentNode = /*#__PURE__*/react.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-content")
|
|
|
}, $title, paragraphNode);
|
|
|
}
|
|
|
var cls = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-with-avatar"), hasAvatar), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-active"), active), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-round"), round), _classNames), className);
|
|
|
return /*#__PURE__*/react.createElement("div", {
|
|
|
className: cls,
|
|
|
style: style
|
|
|
}, avatarNode, contentNode);
|
|
|
}
|
|
|
return typeof children !== 'undefined' ? children : null;
|
|
|
};
|
|
|
Skeleton.Button = Button;
|
|
|
Skeleton.Avatar = Avatar;
|
|
|
Skeleton.Input = Input;
|
|
|
Skeleton.Image = Image;
|
|
|
Skeleton.Node = Node;
|
|
|
/* harmony default export */ var skeleton_Skeleton = (Skeleton);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/index.js
|
|
|
|
|
|
/* harmony default export */ var skeleton = (skeleton_Skeleton);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 61099:
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/antd/es/skeleton/style/index.js + 1 modules ***!
|
|
|
\******************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
|
|
|
var style_default = __webpack_require__(43146);
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/style/index.less
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/style/index.js
|
|
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |