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.
345 lines
15 KiB
345 lines
15 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[13006],{
|
|
|
|
/***/ 12490:
|
|
/*!*****************************************************!*\
|
|
!*** ./src/pages/Engineering/index.tsx + 2 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 */ pages_Engineering; }
|
|
});
|
|
|
|
// 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/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Engineeringmodules = ({"flex_box_center":"flex_box_center___usTTt","flex_space_between":"flex_space_between___pQ1uH","flex_box_vertical_center":"flex_box_vertical_center___jvY_p","flex_box_center_end":"flex_box_center_end___mLLAC","flex_box_column":"flex_box_column___B1SWi","wrap":"wrap___Ga64a","left":"left___MLf1O","menu":"menu___FpsmH","home":"home___iI7sm","info":"info___P474B","right":"right___Ttby6"});
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
|
|
var menu = __webpack_require__(20834);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(80184);
|
|
// EXTERNAL MODULE: ./src/pages/Engineering/util.tsx
|
|
var util = __webpack_require__(65644);
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
var fetch = __webpack_require__(35325);
|
|
;// CONCATENATED MODULE: ./src/assets/images/navigation.png
|
|
var navigation_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABQCAYAAACpv3NFAAAAAXNSR0IArs4c6QAABmRJREFUeF7tXHtQVHUU/s7dBw9lAUGBJR18QE7YmJWZaYpZo9Vio0jamFpj4jhaVpaNr4Zeko42aY2OmI7o+BpDA8WGGpOmfDXjKx1TVNQUFFQUebN772nuMiqLwMBy7zJLv/vXAuecPeebc77vt3sPl1DnYmYyJpybrBDGg/EECJ3BLNW18brXRAoYN0A4LjG2OtKj04iI79VB916Yx53vY7crqQAP9LoiW5QwHTQZDNNqtvc8qbo5ATAmnhsqy5wNsE+LYnmtMVUbDDTCsT36dwpOvBB4R5ZzAe7itfW4lTgVBRkMMSSNzV3ICn/uVgwvdyKJPiVKyD0K5n5eXot76RMdI0o4WwpGR/cieLkXoYxozNn7kuDl5biVvgBAdIAYAcEBggTdos924iRUQKiAUAGhAkIF2gmhu1WGUAGhAkIFhAoIFXCLPtuJU5uqwBdvhCCogwGz1hVBUdoG0TYBwNdMSHs3HInPBTirzjpShvHfXEN5leen0eMAhAcZkDE3Ev17+aKkXIZdBkItBhzLq4JtUT6u3ZY92goeBaBvlA92zbPikRAT8q7XwLaoADUOxp4FkYixmnH1lh2vfpWPk5drPAaCxwCIf7oDNn8QgQ6+Ev44XYExSwpwq7R28IM7Stg5x4ohsf4orVTw+tICZB+v8AgIHgFg9qhgLJ4YCkkibMgpwdRVhbA7XOszGYF1M8IxYYgFssyY+UMRVv9SojsIugJgNACrksIw5cVAMDPmb76Fr3cUN1nUZ+NDsDAxxGmzNKMYczbc1BUE3QBQ2/rHj6wY9rg/KqoVTFpxHTsOlbkUM6yPn/PnfacqXX4/Kc6CNdPDYDIS0g+WYuKK66iq0UchdAEgOsKE3fMiEW01o6DYgVEp+TiaV+1SZNJLgfh+au0d+ZlripD6q2u7x/Xxw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crrMQzO7uj6TUVIlkCjXauYxjG5toUhVMBRNyPTCgHKFsCZ/qbA7JKt1j1XdtuJQD13X3GXYixO1QS5XgwD1YfmfagNiqRgOlyesyW+/soycksffn3haEM7kGgvKhIPnD+u2jXDWeNk/RUuKC3LgaVlspxzHJPkuhi146mPZfWd3duYf4HFXjVlDenBVgAAAAASUVORK5CYII=";
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var SubMenu = menu/* default */.Z.SubMenu;
|
|
|
|
|
|
|
|
|
|
|
|
var Engineering = function Engineering(_ref) {
|
|
var user = _ref.user,
|
|
globalSetting = _ref.globalSetting,
|
|
engineering = _ref.engineering;
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
var _React$useState = _react_17_0_2_react.useState(['1', '2', '3', '4']),
|
|
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
openKeys = _React$useState2[0],
|
|
setOpenKeys = _React$useState2[1];
|
|
var _React$useState3 = _react_17_0_2_react.useState([]),
|
|
_React$useState4 = slicedToArray_default()(_React$useState3, 2),
|
|
selectedKeys = _React$useState4[0],
|
|
setSelectedKeys = _React$useState4[1];
|
|
var showMenu = engineering.showMenu,
|
|
matrixVerify = engineering.matrixVerify;
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
//重定向页面
|
|
if ((location === null || location === void 0 ? void 0 : location.pathname) === '/engineering') {
|
|
_umi_production_exports.history.replace('/engineering/navigation');
|
|
}
|
|
document.title = '工程认证';
|
|
}, [location === null || location === void 0 ? void 0 : location.pathname]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
document.title = '工程认证';
|
|
});
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _filterKey = filterKey(),
|
|
filterOpenKeys = _filterKey.filterOpenKeys,
|
|
filterSelectedKeys = _filterKey.filterSelectedKeys;
|
|
console.log(filterKey());
|
|
// setOpenKeys(filterOpenKeys);
|
|
setSelectedKeys(filterSelectedKeys);
|
|
}, [location === null || location === void 0 ? void 0 : location.pathname]);
|
|
|
|
//登录判断
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
(0,fetch/* default */.ZP)("/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__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-zhuanyeshezhi"
|
|
}),
|
|
children: [{
|
|
title: '培养方案',
|
|
key: '/engineering/training/program',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-peiyangfangan font14"
|
|
})
|
|
}, {
|
|
title: '培养目标',
|
|
key: '/engineering/training/objectives',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-peiyangmubiao font14"
|
|
})
|
|
}, {
|
|
title: '教师信息',
|
|
key: '/engineering/teacherList',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-jiaoshiliebiao font14"
|
|
})
|
|
}, {
|
|
title: '学生信息',
|
|
key: '/engineering/studentList',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xueshengliebiao font14"
|
|
})
|
|
}]
|
|
}, {
|
|
title: '毕业要求',
|
|
key: '2',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-biyeyaoqiu"
|
|
}),
|
|
children: [{
|
|
title: '毕业指标',
|
|
key: '/engineering/graduated/index',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-biyezhibiao font14"
|
|
})
|
|
}, {
|
|
title: '毕业矩阵',
|
|
key: '/engineering/graduated/matrix',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-biyejuzhen font14"
|
|
})
|
|
}]
|
|
}, {
|
|
title: '课程体系',
|
|
key: '3',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-kechengtixi"
|
|
}),
|
|
children: [{
|
|
title: '课程列表',
|
|
key: '/engineering/course/list',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-kechengliebiao font14"
|
|
})
|
|
}, {
|
|
title: '课程设置',
|
|
key: '/engineering/course/setting',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-kechengshezhi font14"
|
|
})
|
|
}, {
|
|
title: '课程矩阵',
|
|
key: '/engineering/course/matrix',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-kechengjuzhen font14"
|
|
})
|
|
}]
|
|
}, {
|
|
title: '达成评价',
|
|
key: '4',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-dachengpinggu"
|
|
}),
|
|
children: [{
|
|
title: '课程评价',
|
|
key: '/engineering/evaluate/course',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-kechengpingjia font14"
|
|
})
|
|
}, {
|
|
title: '指标评价',
|
|
key: '/engineering/evaluate/norm',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-zhibiaopingjia font14"
|
|
})
|
|
}, {
|
|
title: '文档生成',
|
|
key: '/engineering/evaluate/document',
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-wendangshengcheng font14"
|
|
})
|
|
}]
|
|
}];
|
|
var filterKey = function filterKey() {
|
|
var pathname = location === null || location === void 0 ? void 0 : location.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_production_exports.history.push(url);
|
|
};
|
|
if (matrixVerify !== null && matrixVerify !== void 0 && matrixVerify.key) {
|
|
var _matrixVerify$params;
|
|
(0,util/* verifyModal */.t)(put, "\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5B58\u5728\u6CA1\u6709\u5173\u8054".concat((matrixVerify === null || matrixVerify === 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__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Engineeringmodules.wrap,
|
|
children: [showMenu && (location === null || location === void 0 ? void 0 : location.pathname) !== '/exam' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Engineeringmodules.left,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
onClick: function onClick() {
|
|
return go('/engineering/navigation');
|
|
},
|
|
className: Engineeringmodules.home,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mr15",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
width: 32,
|
|
src: navigation_namespaceObject
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Engineeringmodules.info,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u8BA4\u8BC1\u5BFC\u822A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "CERTIFICATION"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
|
|
mode: "inline",
|
|
selectedKeys: selectedKeys,
|
|
openKeys: openKeys,
|
|
onOpenChange: onOpenChange,
|
|
inlineIndent: 15,
|
|
className: Engineeringmodules.menu,
|
|
expandIcon: function expandIcon(b) {
|
|
return b.isOpen ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
visibility: 'hidden'
|
|
},
|
|
className: "icon-xiala3 custom-icon"
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
visibility: 'hidden'
|
|
},
|
|
className: "icon-xiala2 custom-icon"
|
|
});
|
|
},
|
|
children: 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__*/(0,jsx_runtime.jsx)(SubMenu, {
|
|
icon: item.icon,
|
|
title: item.title,
|
|
children: item.children && ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.map(function (e) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
onClick: function onClick() {
|
|
return go(e.key);
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "mr15",
|
|
children: e === null || e === void 0 ? void 0 : e.icon
|
|
}), e.title]
|
|
})
|
|
}, e.key);
|
|
}))
|
|
}, item.key);
|
|
}
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Engineeringmodules.right,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var pages_Engineering = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var globalSetting = _ref2.globalSetting,
|
|
user = _ref2.user,
|
|
engineering = _ref2.engineering;
|
|
return {
|
|
user: user,
|
|
globalSetting: globalSetting,
|
|
engineering: engineering
|
|
};
|
|
})(Engineering));
|
|
|
|
/***/ })
|
|
|
|
}]); |