parent
561fd50008
commit
f09b92cd7c
@ -1,331 +1,5 @@
|
||||
"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));
|
||||
|
||||
/***/ }),
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97629],{
|
||||
|
||||
/***/ 97629:
|
||||
/*!***********************************************!*\
|
||||
@ -0,0 +1,330 @@
|
||||
"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));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39820],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39820,97629],{
|
||||
|
||||
/***/ 87169:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -0,0 +1,754 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[43361],{
|
||||
|
||||
/***/ 87169:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.7@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(16378);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(7657);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 85812:
|
||||
/*!**************************************************************************************!*\
|
||||
!*** ./src/pages/Magazinejor/component/MonthlyDetailamins/Add/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 */ Add; }
|
||||
});
|
||||
|
||||
// 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/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/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(41498);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(88271);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 12 modules
|
||||
var date_picker = __webpack_require__(47119);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
||||
var es_form = __webpack_require__(78241);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
||||
var message = __webpack_require__(8591);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
||||
var input = __webpack_require__(92832);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js
|
||||
var upload = __webpack_require__(60028);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
||||
var table = __webpack_require__(1710);
|
||||
// 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/modal/index.js + 16 modules
|
||||
var modal = __webpack_require__(43418);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
||||
var es_select = __webpack_require__(57809);
|
||||
;// CONCATENATED MODULE: ./src/pages/Magazinejor/component/MonthlyDetailamins/Add/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Addmodules = ({"wrap":"wrap___pfTN1","back_style":"back_style___eOMMP","header":"header___OcrbD","header_form":"header_form___d0ki1","guize_select":"guize_select___X6yrF","guize_update":"guize_update___tpVUC","shangchuan_button":"shangchuan_button___hw9Px","shangchuan_img":"shangchuan_img___HTTbi","shangchuan_close":"shangchuan_close___DVgeN","close_button":"close_button___z8riH","submit_button":"submit_button___hDRvk","add_button":"add_button___g2BqA","root":"root___pPCeU","reportContent":"reportContent___I_SQn"});
|
||||
// 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: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(69423);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
|
||||
var CloseCircleFilled = __webpack_require__(19248);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(82710);
|
||||
// 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: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Magazinejor/component/MonthlyDetailamins/Add/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// import XazyHeader from '@/components/HeaderNav';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var RangePicker = date_picker["default"].RangePicker;
|
||||
var Navigation = function Navigation(_ref) {
|
||||
var loading = _ref.loading,
|
||||
user = _ref.user,
|
||||
dispatch = _ref.dispatch,
|
||||
account = _ref.account,
|
||||
classroomList = _ref.classroomList;
|
||||
var params = (0,_umi_production_exports.useParams)();
|
||||
var _Form$useForm = es_form/* default */.Z.useForm(),
|
||||
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
||||
myForm = _Form$useForm2[0];
|
||||
var _useState = (0,_react_17_0_2_react.useState)(undefined),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
attachId = _useState2[0],
|
||||
setattachId = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
imgLoading = _useState4[0],
|
||||
setImgLoading = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
wzopen = _useState6[0],
|
||||
setwzopen = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
wzlist = _useState8[0],
|
||||
setwzlist = _useState8[1];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
tablist = _useState10[0],
|
||||
settablist = _useState10[1];
|
||||
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState12 = slicedToArray_default()(_useState11, 2),
|
||||
selectlist = _useState12[0],
|
||||
setselectlist = _useState12[1];
|
||||
var _useState13 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState14 = slicedToArray_default()(_useState13, 2),
|
||||
selectlistok = _useState14[0],
|
||||
setselectlistok = _useState14[1];
|
||||
var _useState15 = (0,_react_17_0_2_react.useState)({
|
||||
category_id: '',
|
||||
status: 'approved',
|
||||
start_time: '',
|
||||
end_time: ''
|
||||
}),
|
||||
_useState16 = slicedToArray_default()(_useState15, 2),
|
||||
values = _useState16[0],
|
||||
setvalues = _useState16[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getdata();
|
||||
getlist();
|
||||
if (params !== null && params !== void 0 && params.id) {
|
||||
getdetail();
|
||||
}
|
||||
}, []);
|
||||
function getdata() {
|
||||
return _getdata.apply(this, arguments);
|
||||
}
|
||||
function _getdata() {
|
||||
_getdata = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
||||
var res;
|
||||
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/categories.json", {
|
||||
mehtod: 'get',
|
||||
params: {
|
||||
magazine_id: 1
|
||||
}
|
||||
});
|
||||
case 2:
|
||||
res = _context3.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
setwzlist(res === null || res === void 0 ? void 0 : res.data);
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee3);
|
||||
}));
|
||||
return _getdata.apply(this, arguments);
|
||||
}
|
||||
function getdetail() {
|
||||
return _getdetail.apply(this, arguments);
|
||||
}
|
||||
function _getdetail() {
|
||||
_getdetail = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
|
||||
var res, _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6;
|
||||
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/monthly_magazines/".concat(params.id, ".json"), {
|
||||
mehtod: 'get'
|
||||
});
|
||||
case 2:
|
||||
res = _context4.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
// setwzlist(res?.data)
|
||||
myForm.setFieldsValue({
|
||||
name: res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.name,
|
||||
cover_image_id: {
|
||||
uid: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 || (_res$data2 = _res$data2.cover_image) === null || _res$data2 === void 0 ? void 0 : _res$data2.id,
|
||||
name: res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 || (_res$data3 = _res$data3.cover_image) === null || _res$data3 === void 0 ? void 0 : _res$data3.title,
|
||||
response: {
|
||||
id: res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 || (_res$data4 = _res$data4.cover_image) === null || _res$data4 === void 0 ? void 0 : _res$data4.id
|
||||
}
|
||||
}
|
||||
});
|
||||
setattachId(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5.cover_image) === null || _res$data5 === void 0 ? void 0 : _res$data5.id);
|
||||
setselectlistok(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.articles);
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context4.stop();
|
||||
}
|
||||
}, _callee4);
|
||||
}));
|
||||
return _getdetail.apply(this, arguments);
|
||||
}
|
||||
function getlist() {
|
||||
return _getlist.apply(this, arguments);
|
||||
}
|
||||
function _getlist() {
|
||||
_getlist = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
|
||||
var res, _res$data7;
|
||||
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
||||
while (1) switch (_context5.prev = _context5.next) {
|
||||
case 0:
|
||||
_context5.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/articles.json", {
|
||||
mehtod: 'get',
|
||||
params: objectSpread2_default()({
|
||||
magazine_id: 1
|
||||
}, values)
|
||||
});
|
||||
case 2:
|
||||
res = _context5.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
settablist(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.list);
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context5.stop();
|
||||
}
|
||||
}, _callee5);
|
||||
}));
|
||||
return _getlist.apply(this, arguments);
|
||||
}
|
||||
var renderImg = function renderImg() {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
position: 'relative',
|
||||
backgroundColor: '#f4f3f4',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: env/* default */.Z.API_SERVER + "/api/attachments/" + attachId,
|
||||
alt: "avatar",
|
||||
style: {
|
||||
width: 288
|
||||
}
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
position: 'absolute',
|
||||
right: '-6px',
|
||||
top: '-6px',
|
||||
cursor: 'pointer',
|
||||
backgroundColor: '#fff',
|
||||
width: '16px',
|
||||
height: '16px',
|
||||
borderRadius: '50%'
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
|
||||
onClick: function onClick() {
|
||||
return setattachId(undefined);
|
||||
},
|
||||
style: {
|
||||
fontSize: '16px',
|
||||
color: 'red'
|
||||
}
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
var handleChange = function handleChange(info) {
|
||||
if (info.file.status === 'uploading') {
|
||||
setImgLoading(true);
|
||||
return;
|
||||
}
|
||||
if (info.file.status === 'done') {
|
||||
var _info$file, _info$file3;
|
||||
setImgLoading(false);
|
||||
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
|
||||
var _info$file2;
|
||||
message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
|
||||
return;
|
||||
}
|
||||
setattachId(info === null || info === void 0 || (_info$file3 = info.file) === null || _info$file3 === void 0 || (_info$file3 = _info$file3.response) === null || _info$file3 === void 0 ? void 0 : _info$file3.id);
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Addmodules.root,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(HeaderNav/* default */.Z, {
|
||||
title: "\u5B9E\u9A8C\u5BA4\u7BA1\u7406",
|
||||
goBackUrl: '/magazinever/monthlyadmins',
|
||||
imgUrl: logo
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Addmodules.reportContent,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Addmodules.wrap,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Addmodules.back_style,
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push('/magazinever/monthlyadmins');
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-fanhui2 font12 mr5"
|
||||
}), "\u8FD4\u56DE"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Addmodules.header,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
||||
form: myForm,
|
||||
className: Addmodules.header_form,
|
||||
labelCol: {
|
||||
span: 3
|
||||
},
|
||||
wrapperCol: {
|
||||
span: 21
|
||||
},
|
||||
onFinish: ( /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(value) {
|
||||
var _value$cover_image_id, _value$cover_image_id2;
|
||||
var url, res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
if (!((selectlistok === null || selectlistok === void 0 ? void 0 : selectlistok.length) === 0)) {
|
||||
_context.next = 3;
|
||||
break;
|
||||
}
|
||||
message/* default */.ZP.info('请选择月刊文章');
|
||||
return _context.abrupt("return");
|
||||
case 3:
|
||||
value.cover_image_id = (value === null || value === void 0 || (_value$cover_image_id = value.cover_image_id) === null || _value$cover_image_id === void 0 || (_value$cover_image_id = _value$cover_image_id.response) === null || _value$cover_image_id === void 0 ? void 0 : _value$cover_image_id.id) || (value === null || value === void 0 || (_value$cover_image_id2 = value.cover_image_id) === null || _value$cover_image_id2 === void 0 || (_value$cover_image_id2 = _value$cover_image_id2.file) === null || _value$cover_image_id2 === void 0 || (_value$cover_image_id2 = _value$cover_image_id2.response) === null || _value$cover_image_id2 === void 0 ? void 0 : _value$cover_image_id2.id);
|
||||
url = params !== null && params !== void 0 && params.id ? "/api/monthly_magazines/".concat(params.id, ".json") : "/api/monthly_magazines.json";
|
||||
_context.next = 7;
|
||||
return (0,fetch/* default */.ZP)(url, {
|
||||
method: params !== null && params !== void 0 && params.id ? 'put' : 'post',
|
||||
body: objectSpread2_default()(objectSpread2_default()({}, value), {}, {
|
||||
magazine_id: 1,
|
||||
article_ids: selectlistok === null || selectlistok === void 0 ? void 0 : selectlistok.map(function (item) {
|
||||
return item.id;
|
||||
})
|
||||
})
|
||||
});
|
||||
case 7:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
message/* default */.ZP.info('新增成功');
|
||||
_umi_production_exports.history.push('/magazinever/monthlyadmins');
|
||||
}
|
||||
case 9:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function (_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}()),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u6708\u520A\u540D\u79F0",
|
||||
name: "name",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入规则名称'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
onChange: function onChange(e) {
|
||||
var _e$target;
|
||||
myForm.setFieldValue('title', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim());
|
||||
}
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: "cover_image_id"
|
||||
// valuePropName="fileList"
|
||||
,
|
||||
label: "\u5C01\u9762\u56FE:",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请上传封面图'
|
||||
}],
|
||||
children: attachId ? renderImg() : /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
|
||||
withCredentials: true,
|
||||
name: "file",
|
||||
showUploadList: false,
|
||||
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
||||
onChange: handleChange,
|
||||
accept: "image/*",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
loading: imgLoading,
|
||||
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-shangchuantupian2"
|
||||
}),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: "3px"
|
||||
},
|
||||
children: "\u4E0A\u4F20\u56FE\u7247"
|
||||
})
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ""
|
||||
// valuePropName="fileList"
|
||||
,
|
||||
label: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: 'red'
|
||||
},
|
||||
children: "*"
|
||||
}), "\u6708\u520A\u6587\u7AE0"]
|
||||
}),
|
||||
style: {
|
||||
marginBottom: "34px"
|
||||
}
|
||||
// rules={[{ required: true, message: '请选择月刊文章' }]}
|
||||
,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
type: "primary",
|
||||
onClick: function onClick() {
|
||||
getdata();
|
||||
setselectlist(selectlistok);
|
||||
setwzopen(true);
|
||||
},
|
||||
children: "\u6DFB\u52A0"
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
dataSource: selectlistok,
|
||||
style: {
|
||||
marginTop: 30
|
||||
},
|
||||
columns: [{
|
||||
title: '文章',
|
||||
dataIndex: 'title',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '投稿人',
|
||||
dataIndex: 'user_name',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '所在栏目',
|
||||
dataIndex: 'category_name',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '投稿时间',
|
||||
dataIndex: 'submit_at',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
var _moment, _moment2;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: (_moment = dayjs_min_default()(text)) === null || _moment === void 0 ? void 0 : _moment.format('YYYY-MM-DD'),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: ((_moment2 = dayjs_min_default()(text)) === null || _moment2 === void 0 ? void 0 : _moment2.format('YYYY-MM-DD')) || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '操作',
|
||||
dataIndex: 'id',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
cursor: 'pointer',
|
||||
color: 'red'
|
||||
},
|
||||
onClick: function onClick() {
|
||||
var aa = selectlistok.filter(function (item) {
|
||||
return (item === null || item === void 0 ? void 0 : item.id) !== text;
|
||||
});
|
||||
setselectlistok(aa);
|
||||
},
|
||||
children: "\u79FB\u9664"
|
||||
});
|
||||
}
|
||||
}]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
marginTop: '40px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Addmodules.close_button,
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push("/magazinever/monthlyadmins");
|
||||
},
|
||||
children: "\u53D6\u6D88"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Addmodules.submit_button,
|
||||
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
||||
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
myForm.submit();
|
||||
case 1:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
})),
|
||||
children: "\u63D0\u4EA4"
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
||||
title: "\u6DFB\u52A0\u6587\u7AE0",
|
||||
open: wzopen,
|
||||
width: 1200,
|
||||
className: "modalXazy",
|
||||
centered: true,
|
||||
onOk: function onOk() {
|
||||
setwzopen(false);
|
||||
setselectlistok(selectlist);
|
||||
},
|
||||
onCancel: function onCancel() {
|
||||
setwzopen(false);
|
||||
setselectlist([]);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
||||
children: "\u680F\u76EE"
|
||||
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
||||
style: {
|
||||
width: 300
|
||||
},
|
||||
onChange: function onChange(value) {
|
||||
values.category_id = value;
|
||||
setvalues(objectSpread2_default()({}, values));
|
||||
getlist();
|
||||
},
|
||||
children: wzlist === null || wzlist === void 0 ? void 0 : wzlist.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
||||
value: item === null || item === void 0 ? void 0 : item.id,
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
});
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
||||
children: "\u6295\u7A3F\u65F6\u95F4 "
|
||||
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)(RangePicker, {
|
||||
style: {
|
||||
width: 600
|
||||
},
|
||||
onChange: function onChange(value) {
|
||||
var _moment3, _moment4;
|
||||
values.start_time = (_moment3 = dayjs_min_default()(value === null || value === void 0 ? void 0 : value[0])) === null || _moment3 === void 0 ? void 0 : _moment3.format('YYYY-MM-DD');
|
||||
values.end_time = (_moment4 = dayjs_min_default()(value === null || value === void 0 ? void 0 : value[1])) === null || _moment4 === void 0 ? void 0 : _moment4.format('YYYY-MM-DD');
|
||||
setvalues(objectSpread2_default()({}, values));
|
||||
getlist();
|
||||
}
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
dataSource: tablist,
|
||||
style: {
|
||||
marginTop: 30
|
||||
},
|
||||
rowKey: function rowKey(r) {
|
||||
return r.id;
|
||||
},
|
||||
rowSelection: {
|
||||
type: 'checkbox',
|
||||
selectedRowKeys: selectlist === null || selectlist === void 0 ? void 0 : selectlist.map(function (item) {
|
||||
return item === null || item === void 0 ? void 0 : item.id;
|
||||
}),
|
||||
onChange: function onChange(value, values) {
|
||||
setselectlist(values);
|
||||
}
|
||||
},
|
||||
columns: [{
|
||||
title: '文章',
|
||||
dataIndex: 'title',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '投稿人',
|
||||
dataIndex: 'user_name',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '所在栏目',
|
||||
dataIndex: 'category_name',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '投稿时间',
|
||||
dataIndex: 'submit_at',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
var _moment5, _moment6;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
title: (_moment5 = dayjs_min_default()(text)) === null || _moment5 === void 0 ? void 0 : _moment5.format('YYYY-MM-DD'),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: ((_moment6 = dayjs_min_default()(text)) === null || _moment6 === void 0 ? void 0 : _moment6.format('YYYY-MM-DD')) || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}]
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Add = ((0,_umi_production_exports.connect)(function (_ref4) {
|
||||
var loading = _ref4.loading,
|
||||
user = _ref4.user,
|
||||
engineeringNavigtion = _ref4.engineeringNavigtion,
|
||||
dispatch = _ref4.dispatch,
|
||||
account = _ref4.account,
|
||||
classroomList = _ref4.classroomList;
|
||||
return objectSpread2_default()(objectSpread2_default()({
|
||||
loading: loading,
|
||||
user: user
|
||||
}, engineeringNavigtion), {}, {
|
||||
dispatch: dispatch,
|
||||
account: account,
|
||||
classroomList: classroomList
|
||||
});
|
||||
})(Navigation));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 60028:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/upload/index.js ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ 71409);
|
||||
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ 37714);
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Upload = _Upload__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z;
|
||||
Upload.Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
||||
Upload.LIST_IGNORE = _Upload__WEBPACK_IMPORTED_MODULE_0__/* .LIST_IGNORE */ .E;
|
||||
/* harmony default export */ __webpack_exports__.Z = (Upload);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue