parent
fce3e81b6c
commit
81a7919556
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53396,62531,15963,23997,94598,58838,31556,96004,23003,6572,32405],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53396,62531,98150,15963,23997,94598,58838,31556,96004,23003,6572,32405],{
|
||||
|
||||
/***/ 87169:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67138,53396,62531,31594,28943,24064,72469,32810,17714,94797,52141,31701,17244,95318,51253,15963,23997,90935,69909,94598,15141,28244,58838,31556,96004,23003,6572,32405,93600,26314],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67138,53396,62531,31594,28943,98150,24064,72469,32810,17714,94797,52141,31701,17244,95318,51253,15963,23997,90935,69909,94598,15141,28244,58838,31556,96004,23003,6572,32405,93600,26314],{
|
||||
|
||||
/***/ 87169:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[72469,53396,62531,31594,28943,24064,67138,32810,17714,94797,52141,31701,17244,95318,51253,15963,23997,90935,69909,94598,15141,28244,58838,31556,96004,23003,6572,32405,93600,26314],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[72469,53396,62531,31594,28943,98150,24064,67138,32810,17714,94797,52141,31701,17244,95318,51253,15963,23997,90935,69909,94598,15141,28244,58838,31556,96004,23003,6572,32405,93600,26314],{
|
||||
|
||||
/***/ 87169:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 76 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,330 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35380],{
|
||||
|
||||
/***/ 96126:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./src/pages/Laboratory/Index/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 */ Index; }
|
||||
});
|
||||
|
||||
// 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/Laboratory/Index/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___lrHxi","flex_space_between":"flex_space_between___jBQWM","flex_box_vertical_center":"flex_box_vertical_center___r27qS","flex_box_center_end":"flex_box_center_end___P4YAj","flex_box_column":"flex_box_column___Ejmkk","flex-col":"flex-col___bvmF7","flex-row":"flex-row___m7iv1","justify-start":"justify-start___wdBZW","justify-center":"justify-center___a93Fq","justify-end":"justify-end___cJ6H_","justify-evenly":"justify-evenly___bVYPK","justify-around":"justify-around___IFWgT","justify-between":"justify-between___mhcs5","align-start":"align-start___WE2TQ","align-center":"align-center___cahB7","align-end":"align-end___yjEqK","all_box":"all_box___JhY33","wrap":"wrap___nc2Lp","left":"left___IiZZt","home":"home___cTaaj","info":"info___SduOB","right":"right___App8I","search-bar":"search-bar___hMRJq"});
|
||||
;// CONCATENATED MODULE: ./src/pages/Laboratory/Index/index2.less
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
// 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__(88271);
|
||||
// EXTERNAL MODULE: ./src/components/HeaderNav/index.tsx + 4 modules
|
||||
var HeaderNav = __webpack_require__(59827);
|
||||
// EXTERNAL MODULE: ./src/assets/images/statistics/logo.png
|
||||
var logo = __webpack_require__(97629);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Laboratory/Index/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var SubMenu = menu/* default */.Z.SubMenu;
|
||||
// import XazyHeader from '@/components/XazyHeader';
|
||||
|
||||
|
||||
|
||||
|
||||
var Engineering = function Engineering(_ref) {
|
||||
var _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _user$userInfo13, _user$userInfo14;
|
||||
var user = _ref.user,
|
||||
globalSetting = _ref.globalSetting,
|
||||
engineering = _ref.engineering,
|
||||
dispatch = _ref.dispatch;
|
||||
var location = (0,_umi_production_exports.useLocation)();
|
||||
var _useState = (0,_react_17_0_2_react.useState)(1),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
menuKey = _useState2[0],
|
||||
setMenuKey = _useState2[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
if (location.pathname == '/laboratory') {
|
||||
_umi_production_exports.history.replace('/laboratory/reservations');
|
||||
}
|
||||
setMenuKey(function (e) {
|
||||
return e + 1;
|
||||
});
|
||||
}, [location.pathname]);
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: false
|
||||
});
|
||||
return function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: true
|
||||
});
|
||||
};
|
||||
}, []);
|
||||
function getItem(label, key, icon, children, type) {
|
||||
return {
|
||||
key: key,
|
||||
icon: icon,
|
||||
children: children,
|
||||
label: label,
|
||||
type: type
|
||||
};
|
||||
}
|
||||
var items = [getItem('实验室预约', '/laboratory/reservations', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-shiyanshiyuyue"
|
||||
})), getItem('实验开放预约', '/laboratory/openReservation', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-shiyanshiyuyue"
|
||||
})), getItem('我的预约', '/laboratory/myreservation', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-wodeyuyue"
|
||||
})), (user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.classroom_center_auth) && getItem('工作台', 'workbench', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-wodegongzuotai"
|
||||
}), [(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.classroom_center_auth) && getItem('实验室中心管理', '/laboratory/laboratoryCenter'),
|
||||
// (user?.userInfo?.classroom_center_auth || user?.userInfo?.classroom_auth) && getItem('智慧大屏', '/wisdom'),
|
||||
((user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.classroom_auth)) && getItem('实验室管理', '/laboratory/myLaboratory'), ((user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.classroom_auth)) && getItem('实验室分室管理', '/laboratory/laboratoryRoom'), ((user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.classroom_auth)) && getItem('预约规则管理', '/laboratory/ruleManage'),
|
||||
// (user?.userInfo?.classroom_center_auth || user?.userInfo?.classroom_auth) && getItem('实验室分类', '/laboratory/laboratoryType'),
|
||||
((user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.classroom_auth)) && (user === null || user === void 0 || (_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.admin_and_review) && getItem('预约管理', '/laboratory/reservationmanage')])];
|
||||
|
||||
// 获取所有二级菜单项的key
|
||||
var allSubMenuKeys = items.filter(function (item) {
|
||||
return item === null || item === void 0 ? void 0 : item.children;
|
||||
}).map(function (item) {
|
||||
return item.key;
|
||||
});
|
||||
return (
|
||||
/*#__PURE__*/
|
||||
// <div className={styles.all_box}>
|
||||
// <div className={styles.wrap}>
|
||||
// <div className={styles.left}>
|
||||
// <aside
|
||||
// className={styles.home}
|
||||
// >
|
||||
// <div className="mr15">
|
||||
// <img width={22} src={NavImg} style={{ marginTop: "3px" }} />
|
||||
// </div>
|
||||
// <div className={styles.info}>
|
||||
// <div>实验室管理</div>
|
||||
// </div>
|
||||
// </aside>
|
||||
// <Menu
|
||||
// key={menuKey}
|
||||
// defaultSelectedKeys={[location?.pathname]}
|
||||
// defaultOpenKeys={allSubMenuKeys}
|
||||
// mode="inline"
|
||||
// theme="light"
|
||||
// items={items}
|
||||
// onClick={(item: any) => {
|
||||
// history.push(item?.key)
|
||||
// }}
|
||||
// />
|
||||
// </div>
|
||||
// <div className={styles.right}><Outlet /></div>
|
||||
// </div>
|
||||
// </div>
|
||||
(0,jsx_runtime.jsxs)("div", {
|
||||
className: "".concat(Indexmodules.all_box, " materials-wrp"),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(HeaderNav/* default */.Z, {
|
||||
title: "\u5B9E\u9A8C\u5BA4\u7BA1\u7406",
|
||||
goBackUrl: '/laboratoryOverview',
|
||||
imgUrl: logo
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.wrap,
|
||||
style: {
|
||||
marginTop: 40
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.left,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
paddingBottom: 20
|
||||
},
|
||||
className: "block_1 flex-col",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
margin: '10px 10px 0px 10px',
|
||||
color: '#93ACFF'
|
||||
},
|
||||
children: "\u65E5\u5E38\u5DE5\u4F5C\u53F0"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/reservations" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/reservations",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-shiyanshiyuyue"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u5B9E\u9A8C\u5BA4\u9884\u7EA6"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/openReservation" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/openReservation",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-kaifangshiyanyuyue"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u5B9E\u9A8C\u5F00\u653E\u9884\u7EA6"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
marginBottom: 0
|
||||
},
|
||||
className: "".concat(location.pathname === "/laboratory/myreservation" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/myreservation",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-wodeyuyue"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u6211\u7684\u9884\u7EA6"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
marginBottom: 40
|
||||
},
|
||||
className: "".concat(location.pathname === "/laboratory/regulations" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/regulations",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-guizhangzhidu"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u89C4\u7AE0\u5236\u5EA6"
|
||||
})]
|
||||
})
|
||||
}), (user === null || user === void 0 || (_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.classroom_center_auth) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
margin: '10px 10px 0px 10px',
|
||||
color: '#93ACFF'
|
||||
},
|
||||
children: "\u7BA1\u7406\u5DE5\u4F5C\u53F0"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/laboratoryCenter" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/laboratoryCenter",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-shiyanshizhongxinguanli"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u5B9E\u9A8C\u5BA4\u4E2D\u5FC3\u7BA1\u7406"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/myLaboratory" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/myLaboratory",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "image-text_19 flex-row justify-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-shiyanshiguanli"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text-group_1 text_5",
|
||||
children: "\u5B9E\u9A8C\u5BA4\u7BA1\u7406"
|
||||
})]
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/laboratoryRoom" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/laboratoryRoom",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "image-text_20 flex-row justify-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-shiyanshifenshiguanli"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text-group_2 text_5",
|
||||
children: "\u5B9E\u9A8C\u5BA4\u5206\u5BA4\u7BA1\u7406"
|
||||
})]
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/ruleManage" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/ruleManage",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "image-text_21 flex-row justify-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-yuyueguizeguanli"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text-group_3 text_5",
|
||||
children: "\u9884\u7EA6\u89C4\u5219\u7BA1\u7406"
|
||||
})]
|
||||
})
|
||||
})
|
||||
}), (user === null || user === void 0 || (_user$userInfo13 = user.userInfo) === null || _user$userInfo13 === void 0 ? void 0 : _user$userInfo13.admin_and_review) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/reservationmanage" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/reservationmanage",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "image-text_22 flex-row justify-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-yuyueguanli"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text-group_4 text_5",
|
||||
children: "\u9884\u7EA6\u7BA1\u7406"
|
||||
})]
|
||||
})
|
||||
})
|
||||
}), (user === null || user === void 0 || (_user$userInfo14 = user.userInfo) === null || _user$userInfo14 === void 0 ? void 0 : _user$userInfo14.admin_and_review) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(location.pathname === "/laboratory/regulationsadmins" ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
||||
to: "/laboratory/regulationsadmins",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "image-text_22 flex-row justify-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-guizhangzhiduguanli"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text-group_4 text_5",
|
||||
children: "\u89C4\u7AE0\u5236\u5EA6\u7BA1\u7406"
|
||||
})]
|
||||
})
|
||||
})
|
||||
})]
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.right,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
||||
})]
|
||||
})]
|
||||
})
|
||||
);
|
||||
};
|
||||
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var globalSetting = _ref2.globalSetting,
|
||||
user = _ref2.user,
|
||||
engineering = _ref2.engineering,
|
||||
dispatch = _ref2.dispatch;
|
||||
return {
|
||||
user: user,
|
||||
globalSetting: globalSetting,
|
||||
engineering: engineering,
|
||||
dispatch: dispatch
|
||||
};
|
||||
})(Engineering));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,262 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[33772],{
|
||||
|
||||
/***/ 93003:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./src/pages/Magazinejor/Home/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 */ Home; }
|
||||
});
|
||||
|
||||
// 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/Magazinejor/Home/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Homemodules = ({"flex_box_center":"flex_box_center___pedm3","flex_space_between":"flex_space_between___wb307","flex_box_vertical_center":"flex_box_vertical_center___xy_Ey","flex_box_center_end":"flex_box_center_end___Vbpu6","flex_box_column":"flex_box_column___I3iO5","flex-col":"flex-col___shyw6","flex-row":"flex-row___gIUS6","justify-start":"justify-start___RP27e","justify-center":"justify-center___jH5Tt","justify-end":"justify-end___HaS3I","justify-evenly":"justify-evenly___aXAyp","justify-around":"justify-around___psxpW","justify-between":"justify-between___KoowD","align-start":"align-start___nsksa","align-center":"align-center___YE2M_","align-end":"align-end___RaCU8","all_box":"all_box___rRfZ8","wrap":"wrap___ID2zw","left":"left___MEyfy","home":"home___TyWdi","info":"info___Tgx7s","right":"right___t06Dt","search-bar":"search-bar___nn5VO"});
|
||||
;// CONCATENATED MODULE: ./src/pages/Magazinejor/Home/index2.less
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
||||
var input = __webpack_require__(92832);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(88271);
|
||||
// EXTERNAL MODULE: ./src/components/HeaderNav/index.tsx + 4 modules
|
||||
var HeaderNav = __webpack_require__(59827);
|
||||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||||
var authority = __webpack_require__(64118);
|
||||
// EXTERNAL MODULE: ./src/pages/Magazinejor/img/logo.png
|
||||
var logo = __webpack_require__(4847);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Magazinejor/Home/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Search = input/* default */.Z.Search;
|
||||
|
||||
|
||||
|
||||
|
||||
var Engineering = function Engineering(_ref) {
|
||||
var _user$userInfo, _user$userInfo2;
|
||||
var user = _ref.user,
|
||||
globalSetting = _ref.globalSetting,
|
||||
engineering = _ref.engineering,
|
||||
dispatch = _ref.dispatch;
|
||||
var location = (0,_umi_production_exports.useLocation)();
|
||||
var _useState = (0,_react_17_0_2_react.useState)(1),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
menuKey = _useState2[0],
|
||||
setMenuKey = _useState2[1];
|
||||
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
||||
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
||||
searchParams = _useSearchParams2[0];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
if (location.pathname == '/magazinever') {
|
||||
_umi_production_exports.history.replace('/magazinever/detail');
|
||||
}
|
||||
setMenuKey(function (e) {
|
||||
return e + 1;
|
||||
});
|
||||
}, [location.pathname]);
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: false
|
||||
});
|
||||
return function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: true
|
||||
});
|
||||
};
|
||||
}, []);
|
||||
var magazineCommentParams = JSON.parse(localStorage.getItem('magazineCommentParams'));
|
||||
function getItem(label, key, icon, children, type) {
|
||||
return {
|
||||
key: key,
|
||||
icon: icon,
|
||||
children: children,
|
||||
label: label,
|
||||
type: type
|
||||
};
|
||||
}
|
||||
var items = [getItem('期刊详情', '/magazinever/detail', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "icon-qikanxiangqing"
|
||||
})), getItem('评论互动', '/magazinever/comment', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "icon-pinglunhudong"
|
||||
})), getItem('投稿进度', '/magazinever/submission', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "icon-tougaojindu"
|
||||
})), getItem('其他期刊', '/magazinever/Journal', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "icon-qitaqikan"
|
||||
})), (0,authority/* isSuperAdmins */.Ny)() && getItem('投稿审核', '/magazinever/review', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "icon-tougaoshenhe"
|
||||
}))];
|
||||
|
||||
// 获取所有二级菜单项的key
|
||||
var allSubMenuKeys = items.filter(function (item) {
|
||||
return item === null || item === void 0 ? void 0 : item.children;
|
||||
}).map(function (item) {
|
||||
return item.key;
|
||||
});
|
||||
var isSelected = function isSelected(path) {
|
||||
//
|
||||
|
||||
if (searchParams.get("backUrl")) {
|
||||
if (path === "/materials/itemAssets" && (searchParams.get("backUrl").indexOf("itemAssetsList") > -1 || searchParams.get("backUrl").indexOf("itemAssetsType") > -1)) {
|
||||
return false;
|
||||
}
|
||||
return searchParams.get("backUrl").indexOf(path) > -1 ? true : false;
|
||||
}
|
||||
if (location.pathname.indexOf(path) > -1) {
|
||||
if (path === "/materials/itemAssets" && (location.pathname.indexOf("itemAssetsList") > -1 || location.pathname.indexOf("itemAssetsType") > -1)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "".concat(Homemodules.all_box, " materials-wrp"),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(HeaderNav/* default */.Z, {
|
||||
title: "\u4E91\u520A\u95EE\u9053",
|
||||
goBackurl: '/defendCloud',
|
||||
imgUrl: logo
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Homemodules.wrap,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Homemodules.left,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "block_1 flex-col",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
margin: '10px 10px 0px 10px',
|
||||
color: '#93ACFF'
|
||||
},
|
||||
children: "\u65E5\u5E38\u5DE5\u4F5C\u53F0"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(isSelected("/magazinever/detail") ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/magazinever/detail",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-qikanxiangqing"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u671F\u520A\u8BE6\u60C5"
|
||||
})]
|
||||
})
|
||||
}), ((magazineCommentParams === null || magazineCommentParams === void 0 ? void 0 : magazineCommentParams.can_reviewed) || (user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.is_magazine_authors)) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(isSelected("/magazinever/monthlydetails") ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/magazinever/monthlydetails",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-yuekanxiangqing"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u6708\u520A\u8BE6\u60C5"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(isSelected("/magazinever/comment") ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/magazinever/comment",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-pinglunhudong"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u8BC4\u8BBA\u4E92\u52A8"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(isSelected("/magazinever/submission") ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/magazinever/submission",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-tougaojindu"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u6295\u7A3F\u8FDB\u5EA6"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(isSelected("/magazinever/Journal") ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/magazinever/Journal",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-qitaqikan"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u5176\u4ED6\u671F\u520A"
|
||||
})]
|
||||
})
|
||||
}), ((magazineCommentParams === null || magazineCommentParams === void 0 ? void 0 : magazineCommentParams.can_reviewed) || (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.is_magazine_authors)) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
margin: '40px 10px 0px 10px',
|
||||
color: '#93ACFF'
|
||||
},
|
||||
children: "\u7BA1\u7406\u5DE5\u4F5C\u53F0"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(isSelected("/magazinever/review") ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/magazinever/review",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-tougaoshenhe"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u6295\u7A3F\u5BA1\u6838"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(isSelected("/magazinever/monthlyadmins") ? "section_7" : "section_8", " flex-row"),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
||||
to: "/magazinever/monthlyadmins",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "icon-zzxy-yuekanguanli"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_5",
|
||||
children: "\u6708\u520A\u7BA1\u7406"
|
||||
})]
|
||||
})
|
||||
})]
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Homemodules.right,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Home = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var globalSetting = _ref2.globalSetting,
|
||||
user = _ref2.user,
|
||||
engineering = _ref2.engineering,
|
||||
dispatch = _ref2.dispatch;
|
||||
return {
|
||||
user: user,
|
||||
globalSetting: globalSetting,
|
||||
engineering: engineering,
|
||||
dispatch: dispatch
|
||||
};
|
||||
})(Engineering));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,351 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58140],{
|
||||
|
||||
/***/ 35503:
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/pages/Practices/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 */ Practices; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(7557);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(41498);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(82242);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/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);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(88271);
|
||||
;// CONCATENATED MODULE: ./src/pages/Practices/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Practicesmodules = ({"officialNotice":"officialNotice___viNFQ","nav_add":"nav_add___dlM_9","content":"content___TPBj4","content_right":"content_right___HKM3Y","div_two":"div_two___kkTTX","two_item":"two_item___uhCn2","two_img":"two_img___M3hdb","two_text":"two_text___RRGlD","two_time":"two_time___IodP1","time_year":"time_year___Y3qEQ","time_month":"time_month___a7D0n","div_one":"div_one___g6HzK","one_item":"one_item___DF57E","one_img":"one_img___cogcZ","one_text":"one_text___c499Y","one_title":"one_title___MQP7E","one_neirong":"one_neirong___o3V99","one_time":"one_time___qYslU"});
|
||||
// EXTERNAL MODULE: ./src/pages/Practices/logo.png
|
||||
var logo = __webpack_require__(5933);
|
||||
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/bg_top.png
|
||||
var bg_top = __webpack_require__(25399);
|
||||
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/bg_bottom.png
|
||||
var bg_bottom = __webpack_require__(21634);
|
||||
// EXTERNAL MODULE: ./src/pages/Practices/PracticesModal/index.tsx
|
||||
var PracticesModal = __webpack_require__(40395);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(6848);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(58421);
|
||||
// EXTERNAL MODULE: ./src/utils/util.tsx
|
||||
var util = __webpack_require__(95972);
|
||||
// EXTERNAL MODULE: ./src/service/practices.ts
|
||||
var practices = __webpack_require__(90000);
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(69423);
|
||||
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
|
||||
var dayjs_min = __webpack_require__(61186);
|
||||
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
||||
// EXTERNAL MODULE: ./src/components/HeaderNav/index.tsx + 4 modules
|
||||
var HeaderNav = __webpack_require__(59827);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Practices/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var OfficialNotice = function OfficialNotice(_ref) {
|
||||
var user = _ref.user,
|
||||
dispatch = _ref.dispatch;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
menuName = _useState2[0],
|
||||
setMenuName = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)({
|
||||
page: 1,
|
||||
limit: 20
|
||||
}),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
params = _useState4[0],
|
||||
setParams = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(0),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
total = _useState6[0],
|
||||
setTotal = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
tableData = _useState8[0],
|
||||
setTableData = _useState8[1];
|
||||
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
||||
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
||||
searchParams = _useSearchParams2[0];
|
||||
var handleChangePage = function handleChangePage(page, pageSize) {
|
||||
params.page = page;
|
||||
params.limit = pageSize;
|
||||
setParams(objectSpread2_default()({}, params));
|
||||
};
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
if (menuName) {
|
||||
getData();
|
||||
}
|
||||
}, [menuName, params]);
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
if (searchParams.get("indexType")) {
|
||||
setMenuName(searchParams.get("indexType"));
|
||||
} else {
|
||||
setMenuName('news');
|
||||
}
|
||||
}, []);
|
||||
var getData = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,practices/* memos_list */.Yz)(objectSpread2_default()({
|
||||
keyword: '',
|
||||
container_type: 'TeachingActivity'
|
||||
}, params)).then(function (res) {
|
||||
if (res !== null && res !== void 0 && res.memo_list) {
|
||||
// setTotal(res?.data?.count)
|
||||
setTableData(res === null || res === void 0 ? void 0 : res.memo_list);
|
||||
}
|
||||
});
|
||||
case 2:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getData() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var addDom = function addDom() {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.nav_add,
|
||||
onClick: function onClick() {
|
||||
dispatch({
|
||||
type: 'account/setActionTabs',
|
||||
payload: {
|
||||
key: '发布活动'
|
||||
}
|
||||
});
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: __webpack_require__(/*! ../OfficialNotice/img/fabu.png */ 457),
|
||||
style: {
|
||||
width: '2.5vh',
|
||||
height: '2.5vh'
|
||||
}
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '0.6vw',
|
||||
fontSize: '1.4vh',
|
||||
color: '#fff'
|
||||
},
|
||||
children: "\u53D1\u5E03\u6D3B\u52A8"
|
||||
})]
|
||||
});
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.officialNotice,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(HeaderNav/* default */.Z, {
|
||||
addDom: addDom,
|
||||
goBackUrl: '/laboratoryOverview',
|
||||
imgUrl: logo
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.content,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.content_right,
|
||||
style: {
|
||||
backgroundImage: "url(".concat(menuName == 'notice' ? bg_bottom : bg_top, ")")
|
||||
},
|
||||
children: [menuName == 'notice' ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.div_two,
|
||||
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
|
||||
var _item$bg, _item$bg2;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.two_item,
|
||||
onClick: function onClick() {
|
||||
return (0,util/* openNewWindow */.xg)("/practices/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail"));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: item !== null && item !== void 0 && (_item$bg = item.bg) !== null && _item$bg !== void 0 && _item$bg.url ? env/* default */.Z.API_SERVER + (item === null || item === void 0 || (_item$bg2 = item.bg) === null || _item$bg2 === void 0 ? void 0 : _item$bg2.url) : __webpack_require__(/*! ../OfficialNotice/img/mock_img.png */ 86738),
|
||||
className: Practicesmodules.two_img
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "topLeft",
|
||||
title: item === null || item === void 0 ? void 0 : item.name,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.two_text,
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.two_time,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.time_year,
|
||||
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('YYYY')
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.time_month,
|
||||
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('MM-DD')
|
||||
})]
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.div_one,
|
||||
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
|
||||
var _item$narrator_users, _item$bg_file, _item$bg_file2;
|
||||
var teacher = item === null || item === void 0 || (_item$narrator_users = item.narrator_users) === null || _item$narrator_users === void 0 ? void 0 : _item$narrator_users.map(function (e) {
|
||||
return e.user_name;
|
||||
}).join('、');
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.one_item,
|
||||
onClick: function onClick() {
|
||||
return (0,util/* openNewWindow */.xg)("/practices/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail"));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: item !== null && item !== void 0 && (_item$bg_file = item.bg_file) !== null && _item$bg_file !== void 0 && _item$bg_file.url ? env/* default */.Z.API_SERVER + (item === null || item === void 0 || (_item$bg_file2 = item.bg_file) === null || _item$bg_file2 === void 0 ? void 0 : _item$bg_file2.url) : __webpack_require__(/*! ../OfficialNotice/img/mock_img.png */ 86738),
|
||||
className: Practicesmodules.one_img
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.one_text,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "topLeft",
|
||||
title: item === null || item === void 0 ? void 0 : item.subject,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.one_title,
|
||||
children: item === null || item === void 0 ? void 0 : item.subject
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
color: '#fff',
|
||||
fontWeight: 500
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginRight: 10,
|
||||
fontWeight: 400,
|
||||
color: 'rgba(255, 255, 255, 0.6)'
|
||||
},
|
||||
children: "\u89E3\u8BF4\u5458"
|
||||
}), teacher || '--']
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
color: '#fff',
|
||||
fontWeight: 500,
|
||||
marginTop: '2vh'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginRight: 10,
|
||||
fontWeight: 400,
|
||||
color: 'rgba(255, 255, 255, 0.6)'
|
||||
},
|
||||
children: "\u53C2\u4E0E\u4EBA\u5458"
|
||||
}), (item === null || item === void 0 ? void 0 : item.participant) || '--']
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Practicesmodules.one_time,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.time_year,
|
||||
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('YYYY')
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Practicesmodules.time_month,
|
||||
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('MM-DD')
|
||||
})]
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
className: "mt20",
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
pageSizeOptions: ['10', '20', '50', '100', '200'],
|
||||
total: total,
|
||||
onChange: handleChangePage,
|
||||
pageSize: params.limit,
|
||||
current: params.page,
|
||||
hideOnSinglePage: !total,
|
||||
showTotal: util/* showTotal */.rU
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PracticesModal/* default */.Z, {
|
||||
getData: getData
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Practices = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var user = _ref3.user;
|
||||
return {
|
||||
user: user
|
||||
};
|
||||
})(OfficialNotice));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 21634:
|
||||
/*!****************************************************!*\
|
||||
!*** ./src/pages/OfficialNotice/img/bg_bottom.png ***!
|
||||
\****************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "static/bg_bottom.ad8567a0.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 25399:
|
||||
/*!*************************************************!*\
|
||||
!*** ./src/pages/OfficialNotice/img/bg_top.png ***!
|
||||
\*************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "static/bg_top.d6dde0ed.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 457:
|
||||
/*!***********************************************!*\
|
||||
!*** ./src/pages/OfficialNotice/img/fabu.png ***!
|
||||
\***********************************************/
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAABU1JREFUaEPlm2nIbVMYx3/LkCHzPGWeMg+Z+SAUN+WbezMkKSGKiITii/ggSXwSEkqU8oGrS6JcLiFEF/feqNc1X0Pmadn/c5/9ts+2z9lr2Od9D/up3VvveYb132utZz3D2o4Jkfd+PWArYHNgE3s2APR/PaI/7fkN+NGe74E1zjn91jm5LjV67wVoZ2BHYEsgVb8HvgU+Az51zumFdEKpAxoy7r3fGtgb2DYD5ChAAv8VsMI5900u6izA3vttgP1s6eaOJUR+DfCBc+7rEOYmniTA3vsNgQOBnVINZ8qtBt5zzv0aqycasPd+e+CIiuOJtdkVv5zam865L2IURgH23u8FHBBjYA5433fOrQy1EwTYe78ucAiwS6jiOeabAd5xzv3VZrcVsB01R9kx06ZvPn/XMfZ62xE2FrDN7HH/AbDlixboV8bNdBvgw6d4GY9aTTPOubdG/TgS8JQ6qNAtM9KRNQK2o+foUO1Tyvda05H1L8AWVJw8Beds7nvUOf1CPThpAnzkPEZQuSDr8qudc29U/zkE2GJjeeX/E8lrz8bedcAnzGEiEPpS1wf2t8DnYGB3YHHx98FABcqtXy55ZwFP0eyqOLAvIHCK7gRWoKv0M7AoELDYZme5CvgYYLsIJV2xrmO5dAlQsboKCePobeCmiAF86ZxbJv4BYAsfT5tA8t40Jtncw2ZPMyiAG0cMXqwPAE9GyKiIsERhZwl4T8tvI3REse5WWaIHWX0rSkGN+Qrgk0gFyp9XlYC7dlaqa2n29GipbhY5uHHsKvNcmKBv4LycVRdPz1zOO1RmUABVrZwULQHuTlCuZb1YgOWo5LBiSeVXeUqFoCrezRXdDsweM5FGlwnwPub6I2W5BVA2NZekBP884KdEo8sFODUFfLijvako6GN7eaqsjKPlwLWJYCU2I8AnAVskKLkIOCtBTiLaTzpLnwY2BS5pCC6aVD8CPJZoU2LfCfCpwEYJShQwXA5IPpTUTnm+8BnPFCA/N28b89KuBj4KNdbA94sAy0PXQ7cYndpTZ7cIrLDZfAn43c7h64rg4dAIQz8A59vqiBAbYv1DgM/MPJKkcQFwMaBZL0nABFCzWZ2VXYsG2o2AjrIYerFY/nfECDTw+q4AS7fSymusD6Rs5jnrBlbtiufKxC10pxL6LgDnLunqGNRUG9XwOgdYmLia5OQukNPJBDxY0qlOK9S2HOJVRZRzbKhAA98qWxkZKgaiA6eVeiyFGNc+vaHIbpQ85NATwEM5Ckx2cCylBh4h9u8H1FLNpevVLcxVUgYeqaFliP1HO0gFVd04t0j4W/tGAQMahJapyUOAfroA/Cpwa4ixAJ5B8qAaUm56OMpWF4DvKY68ZwPAtLGsTQ/F5b3vugBQGm8CrJAyJuhQzK47Hrm0tgBggCdV4qkDftyCfzkhFfzbSH3fy9qYAn8fKvGoSjiJIl4V8FNFJ/I+G5y2kdK8trO5KhOIq5FtuIhnszyJMm0JWHtQe7FKiruV/SgOGEU36x5HDlKTHS7TGmCFhcd3oLyq4l7gw6KhfteILEegVYE8pcGukg+Fo/qbS0vLO16TbrUI0N8Bo70UOKPGp5nVDOdSc6vFZllR0Xw10+oVlNuApbloq20W6Zq2dumJwGHAu4Dy31wa3y61WdYtu/40xA20btv148pDuYZ6damlAnqSqWPu/hwln3ZtyZa2CuP9uZhmoBV29uPqYWVp9+dyaXWjTKkj6/76cA10fy6IV5Z4fz4BqM12Pz7yqB+AdsdLnwdM8jOelTlfs5Rjbr0RHxMd9OZDraaXMq2f4v0DVwmpJnVRg1gAAAAASUVORK5CYII=";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 86738:
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/pages/OfficialNotice/img/mock_img.png ***!
|
||||
\***************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "static/mock_img.8bb20e42.png";
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 486 KiB |
|
After Width: | Height: | Size: 562 KiB |
|
Before Width: | Height: | Size: 140 KiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue