You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Engineering.1ff0b99b.asy...

360 lines
19 KiB

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[126],{
/***/ "/pmA":
/*!**************************************************!*\
!*** ./src/pages/Engineering/index.less?modules ***!
\**************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
module.exports = {"flex_box_center":"flex_box_center___1qwbF","flex_space_between":"flex_space_between___2yQBP","flex_box_vertical_center":"flex_box_vertical_center___gq2zt","flex_box_center_end":"flex_box_center_end___3FWfK","flex_box_column":"flex_box_column___2P8-8","wrap":"wrap___3fbFV","left":"left___2RiqZ","menu":"menu___1A3m0","home":"home___1cOx0","info":"info___jSF2Y","right":"right___29ZR5"};
/***/ }),
/***/ "as6h":
/*!*****************************************!*\
!*** ./src/pages/Engineering/index.tsx ***!
\*****************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/.umi-production/core/routes.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Users_dingyongkang_Documents_workspace_zhiqing_educoder_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */ "tJVT");
/* harmony import */ var _Users_dingyongkang_Documents_workspace_zhiqing_educoder_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties */ "PpiC");
/* harmony import */ var antd_es_menu_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/menu/style */ "lUTK");
/* harmony import */ var antd_es_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/menu */ "BvKs");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "cDcd");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index.less?modules */ "/pmA");
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! umi */ "9kvl");
/* harmony import */ var _pages_Engineering_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/pages/Engineering/util */ "g+eg");
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/fetch */ "ErOA");
/* harmony import */ var _assets_images_navigation_png__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/assets/images/navigation.png */ "ig6Y");
/* harmony import */ var _assets_images_navigation_png__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_assets_images_navigation_png__WEBPACK_IMPORTED_MODULE_9__);
var SubMenu = antd_es_menu__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].SubMenu;
var Engineering = function Engineering(_ref) {
var _props$location2, _props$location3, _props$location5;
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering,
props = Object(_Users_dingyongkang_Documents_workspace_zhiqing_educoder_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["user", "globalSetting", "engineering"]);
var _React$useState = react__WEBPACK_IMPORTED_MODULE_4___default.a.useState(['1', '2', '3', '4']),
_React$useState2 = Object(_Users_dingyongkang_Documents_workspace_zhiqing_educoder_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_React$useState, 2),
openKeys = _React$useState2[0],
setOpenKeys = _React$useState2[1];
var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_4___default.a.useState([]),
_React$useState4 = Object(_Users_dingyongkang_Documents_workspace_zhiqing_educoder_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_React$useState3, 2),
selectedKeys = _React$useState4[0],
setSelectedKeys = _React$useState4[1];
var showMenu = engineering.showMenu,
matrixVerify = engineering.matrixVerify;
Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () {
var _props$location;
//重定向页面
if ((props === null || props === void 0 ? void 0 : (_props$location = props.location) === null || _props$location === void 0 ? void 0 : _props$location.pathname) === '/engineering') {
umi__WEBPACK_IMPORTED_MODULE_6__[/* history */ "d"].replace('/engineering/navigation');
}
document.title = '工程认证';
}, [props === null || props === void 0 ? void 0 : (_props$location2 = props.location) === null || _props$location2 === void 0 ? void 0 : _props$location2.pathname]);
Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () {
document.title = '工程认证';
});
Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () {
var _filterKey = filterKey(),
filterOpenKeys = _filterKey.filterOpenKeys,
filterSelectedKeys = _filterKey.filterSelectedKeys;
console.log(filterKey()); // setOpenKeys(filterOpenKeys);
setSelectedKeys(filterSelectedKeys);
}, [props === null || props === void 0 ? void 0 : (_props$location3 = props.location) === null || _props$location3 === void 0 ? void 0 : _props$location3.pathname]); //登录判断
Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () {
Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])("/api/ec_major_schools/1/ec_years/has_logged.json", {
method: "get"
});
}, []);
var items = [// {
// title: '认证导航',
// key: '/engineering/navigation',
// icon: <i className="iconfont icon-tongji4"></i>,
// isMenu: true,
// },
{
title: '专业设置',
key: '1',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-zhuanyeshezhi"
}),
children: [{
title: '培养方案',
key: '/engineering/trainingProgram',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-peiyangfangan font14"
})
}, {
title: '培养目标',
key: '/engineering/trainingObjectives',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-peiyangmubiao font14"
})
}, {
title: '教师信息',
key: '/engineering/teacherList',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-jiaoshiliebiao font14"
})
}, {
title: '学生信息',
key: '/engineering/studentList',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-xueshengliebiao font14"
})
}]
}, {
title: '毕业要求',
key: '2',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-biyeyaoqiu"
}),
children: [{
title: '毕业指标',
key: '/engineering/graduationindex',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-biyezhibiao font14"
})
}, {
title: '毕业矩阵',
key: '/engineering/graduatedMatrix',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-biyejuzhen font14"
})
}]
}, {
title: '课程体系',
key: '3',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-kechengtixi"
}),
children: [{
title: '课程列表',
key: '/engineering/courseList',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-kechengliebiao font14"
})
}, {
title: '课程设置',
key: '/engineering/cursesetting',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-kechengshezhi font14"
})
}, {
title: '课程矩阵',
key: '/engineering/courseMatrix',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-kechengjuzhen font14"
})
}]
}, {
title: '达成评价',
key: '4',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-dachengpinggu"
}),
children: [{
title: '课程评价',
key: '/engineering/evaluate/course',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-kechengpingjia font14"
})
}, {
title: '指标评价',
key: '/engineering/evaluate/norm',
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("i", {
className: "iconfont icon-zhibiaopingjia font14"
})
}]
}];
var filterKey = function filterKey() {
var _props$location4;
var pathname = props === null || props === void 0 ? void 0 : (_props$location4 = props.location) === null || _props$location4 === void 0 ? void 0 : _props$location4.pathname;
var filterOpenKeys = [];
var filterSelectedKeys = [];
for (var i = 0; i < items.length; i++) {
var _items$i$children;
if ((_items$i$children = items[i].children) !== null && _items$i$children !== void 0 && _items$i$children.length) {
for (var j = 0; j < items[i].children.length; j++) {
if (pathname.includes(items[i].children[j].key)) {
filterOpenKeys = [items[i].key];
filterSelectedKeys = [items[i].children[j].key];
return {
filterOpenKeys: filterOpenKeys,
filterSelectedKeys: filterSelectedKeys
};
}
}
}
}
return {
filterOpenKeys: filterOpenKeys,
filterSelectedKeys: filterSelectedKeys
};
};
var onOpenChange = function onOpenChange(keys) {
console.log(openKeys, keys, 44); // if (openKeys[0] === keys[0]) {
// if (keys.length === 2) {
// setOpenKeys([keys[1]]);
// return;
// }
// setOpenKeys([]);
// return;
// }
setOpenKeys(keys);
};
var go = function go(url) {
var put = function put() {
umi__WEBPACK_IMPORTED_MODULE_6__[/* history */ "d"].push(url);
};
if (matrixVerify !== null && matrixVerify !== void 0 && matrixVerify.key) {
var _matrixVerify$params;
Object(_pages_Engineering_util__WEBPACK_IMPORTED_MODULE_7__[/* verifyModal */ "b"])(put, "\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5B58\u5728\u6CA1\u6709\u5173\u8054".concat((matrixVerify === null || matrixVerify === void 0 ? void 0 : (_matrixVerify$params = matrixVerify.params) === null || _matrixVerify$params === void 0 ? void 0 : _matrixVerify$params.tab) === '1' ? '培养目标' : '通用标准', "\uFF0C\u786E\u5B9A\u662F\u5426\u79BB\u5F00\u5F53\u524D\u9875\u9762\uFF1F"));
} else {
put();
}
};
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_5___default.a.wrap
}, showMenu && (props === null || props === void 0 ? void 0 : (_props$location5 = props.location) === null || _props$location5 === void 0 ? void 0 : _props$location5.pathname) !== '/exam' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_5___default.a.left
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("aside", {
onClick: function onClick() {
return go('/engineering/navigation');
},
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_5___default.a.home
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
className: "mr15"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("img", {
width: 32,
src: _assets_images_navigation_png__WEBPACK_IMPORTED_MODULE_9___default.a
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_5___default.a.info
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", null, "\u8BA4\u8BC1\u5BFC\u822A"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", null, "CERTIFICATION"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], {
mode: "inline",
selectedKeys: selectedKeys,
openKeys: openKeys,
onOpenChange: onOpenChange,
inlineIndent: 15,
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_5___default.a.menu,
expandIcon: function expandIcon(b) {
return b.isOpen ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
style: {
visibility: 'hidden'
},
className: "icon-xiala3 custom-icon"
}) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
style: {
visibility: 'hidden'
},
className: "icon-xiala2 custom-icon"
});
}
}, items.map(function (item) {
if (item.isMenu) {// return (
// <Menu.Item key={item.key}>
// <aside onClick={() => go(item.key)} className={styles.home}>
// <div className="mr15">
// <img src={NavImg} />
// </div>
// <div>
// <div>{item.title}</div>
// <div>CERTIFICATION</div>
// </div>
// </aside>
// </Menu.Item>
// );
} else {
var _item$children;
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(SubMenu, {
key: item.key,
icon: item.icon,
title: item.title
}, item.children && ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.map(function (e) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].Item, {
key: e.key
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("aside", {
onClick: function onClick() {
return go(e.key);
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
className: "mr15"
}, e === null || e === void 0 ? void 0 : e.icon), e.title));
})));
}
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_5___default.a.right
}, props.children));
};
/* harmony default export */ __webpack_exports__["default"] = (Object(umi__WEBPACK_IMPORTED_MODULE_6__[/* connect */ "a"])(function (_ref2) {
var globalSetting = _ref2.globalSetting,
user = _ref2.user,
engineering = _ref2.engineering;
return {
user: user,
globalSetting: globalSetting,
engineering: engineering
};
})(Engineering));
/***/ }),
/***/ "ig6Y":
/*!******************************************!*\
!*** ./src/assets/images/navigation.png ***!
\******************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABQCAYAAACpv3NFAAAAAXNSR0IArs4c6QAABmRJREFUeF7tXHtQVHUU/s7dBw9lAUGBJR18QE7YmJWZaYpZo9Vio0jamFpj4jhaVpaNr4Zeko42aY2OmI7o+BpDA8WGGpOmfDXjKx1TVNQUFFQUebN772nuMiqLwMBy7zJLv/vXAuecPeebc77vt3sPl1DnYmYyJpybrBDGg/EECJ3BLNW18brXRAoYN0A4LjG2OtKj04iI79VB916Yx53vY7crqQAP9LoiW5QwHTQZDNNqtvc8qbo5ATAmnhsqy5wNsE+LYnmtMVUbDDTCsT36dwpOvBB4R5ZzAe7itfW4lTgVBRkMMSSNzV3ICn/uVgwvdyKJPiVKyD0K5n5eXot76RMdI0o4WwpGR/cieLkXoYxozNn7kuDl5biVvgBAdIAYAcEBggTdos924iRUQKiAUAGhAkIF2gmhu1WGUAGhAkIFhAoIFXCLPtuJU5uqwBdvhCCogwGz1hVBUdoG0TYBwNdMSHs3HInPBTirzjpShvHfXEN5leen0eMAhAcZkDE3Ev17+aKkXIZdBkItBhzLq4Jt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