autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent bcd831690a
commit 45d8f230d3

@ -12,7 +12,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta http-equiv="Cache-Control" content="no-transform">
<title>头歌实践教学平台</title>
<link rel="stylesheet" href="/react/build/umi.4c9ff4c6.css">
<link rel="stylesheet" href="/react/build/umi.be628a86.css">
<script src="/react/build/js/polyfill.min.js"></script>
</head>
<body>
@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.4155f590.js"></script>
<script src="/react/build/umi.9e4f023e.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -83,72 +83,46 @@ button:active {
display: flex;
align-items: flex-end;
}
.all_box___KMtnn {
background: #fff;
padding-top: 40px;
}
.wrap___mlbHv {
margin: 0 100px;
display: flex;
justify-content: space-between;
align-items: flex-start;
background: #fff;
}
.wrap___mlbHv .left___Nf96q {
width: 240px;
overflow: hidden;
flex-shrink: 0;
}
.wrap___mlbHv .left___Nf96q [class~='ant-menu-item'] {
height: 44px !important;
line-height: 44px !important;
margin-inline: 8px !important;
color: #5F6367;
}
.wrap___mlbHv .left___Nf96q [class~='ant-menu-item']::after {
content: '';
width: 3px;
background: #232B40;
border-radius: 3px 0px 0px 3px;
}
.wrap___mlbHv .left___Nf96q [class~='ant-menu-item-selected'] {
background-color: #F8F9FA !important;
color: #000000 !important;
}
.wrap___mlbHv .left___Nf96q [class~='ant-menu-submenu-title'] {
color: #5F6367 !important;
margin-left: 8px !important;
}
.wrap___mlbHv .left___Nf96q [class~='ant-menu-inline'] {
background: #fff !important;
-webkit-border-end: none !important;
border-inline-end: none !important;
}
.wrap___mlbHv .left___Nf96q .home___NbuIk {
display: flex;
padding-left: 16px;
padding-right: 8px;
margin-bottom: 15px;
cursor: pointer;
}
.wrap___mlbHv .left___Nf96q .home___NbuIk .info___yN6lg > div:first-child {
font-size: 20px;
font-weight: 500;
color: #0152d9;
line-height: 28px;
}
.wrap___mlbHv .left___Nf96q .home___NbuIk .info___yN6lg > div:last-child {
font-size: 18px;
font-weight: 600;
color: #165DFF;
}
.wrap___mlbHv .right___GNnqh {
background: #ffffff;
border-radius: 4px;
flex: 1 1;
padding-left: 19px;
overflow: hidden;
min-height: 500px;
border-left: 1px #DBDCE0 solid;
.MenuStyles___BHYdE {
width: 300px;
gap: 10px;
background: linear-gradient(180deg, #0D2A6D 0%, #4351A8 100%);
box-shadow: inset 0px 1px 6px 0px #051E55;
border-radius: 8px;
color: #fff;
font-size: 16px;
}
.MenuStyles___BHYdE .MenuStylesItem___cnAZu {
padding: 14px 44px;
background: linear-gradient(270deg, #242FA3 0%, #3761BC 100%);
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
border-radius: 8px;
position: relative;
}
.MenuStyles___BHYdE .MenuStylesItemActive___KgmGV {
background: linear-gradient(270deg, #242FA3 0%, #3761BC 100%);
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5), inset 0px 1px 3px 0px #FFFFFF;
color: #96FFFD;
}
.MenuStyles___BHYdE .MenuStylesItemActive___KgmGV::after {
position: absolute;
right: -30px;
content: "";
width: 18px;
height: 22px;
-webkit-clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
background: linear-gradient(270deg, #242FA3 0%, #3761BC 100%);
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5), inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
}
.ContentStyles___Mfx8e {
min-width: 0;
min-height: 0;
overflow: auto;
background: linear-gradient(180deg, #224392 0%, #5B6BC7 100%);
box-shadow: 0px 2px 4px 0px #435FCC;
border-radius: 8px;
border: 1px solid;
border-image: linear-gradient(135deg, #4363dd, rgba(44, 44, 166, 0.66)) 1 1;
}

@ -1,172 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27416],{
/***/ 3242:
/*!*********************************************************!*\
!*** ./src/pages/Equipment/Index/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 */ 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/Equipment/Index/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___jmmXe","flex_space_between":"flex_space_between___vxGWa","flex_box_vertical_center":"flex_box_vertical_center___SGwrN","flex_box_center_end":"flex_box_center_end___KiDj3","flex_box_column":"flex_box_column___Z6TVL","flex-col":"flex-col___ZnKoO","flex-row":"flex-row___pctXX","justify-start":"justify-start___csUBe","justify-center":"justify-center___kKub2","justify-end":"justify-end___n8cXO","justify-evenly":"justify-evenly___mjQm1","justify-around":"justify-around___JL_9s","justify-between":"justify-between___qTRS7","align-start":"align-start___lqbAM","align-center":"align-center___oDNBy","align-end":"align-end___Uiurd","all_box":"all_box___KMtnn","wrap":"wrap___mlbHv","left":"left___Nf96q","home":"home___NbuIk","info":"info___yN6lg","right":"right___GNnqh"});
// 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/assets/images/shiyanshi.png
var shiyanshi = __webpack_require__(87072);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Equipment/Index/index.tsx
var SubMenu = menu/* default */.Z.SubMenu;
var Engineering = function Engineering(_ref) {
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 == '/equipment') {
_umi_production_exports.history.replace('/equipment/information');
}
setMenuKey(function (e) {
return e + 1;
});
}, [location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: true
});
};
}, []);
function getItem(label, key, icon, children, type) {
return {
key: key,
icon: icon,
children: children,
label: label,
type: type
};
}
var items = [getItem('设备信息管理', '/equipment/information', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeixinxiguanli"
})),
// getItem('预约管理', '/equipment/bookingManage', <i className="iconfont icon-shebeibaofei-2"></i>),
getItem('设备在线监控', '/equipment/working', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeiyunhangjiankong"
})), getItem('设备类型管理', '/equipment/maintenance', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeiweixiujilu"
})),
// getItem('设备标签管理', '/equipment/deviceLabel', <i className="iconfont icon-shebeibaofei-2"></i>),
getItem('保养信息管理', '/equipment/faultlibrary', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeibaofei-2"
})), getItem('消息中心', '/equipment/messageCenterManage', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeibaofei-2"
})), getItem('操作日志', '/equipment/actionlog', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeibaofei-2"
}))];
// 获取所有二级菜单项的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__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.all_box,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.left,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: Indexmodules.home,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mr15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 22,
src: shiyanshi,
style: {
marginTop: "3px"
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.info,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8BBE\u5907\u7BA1\u7406"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
defaultSelectedKeys: [location === null || location === void 0 ? void 0 : location.pathname],
defaultOpenKeys: allSubMenuKeys,
mode: "inline",
theme: "light",
items: items,
onClick: function onClick(item) {
_umi_production_exports.history.push(item === null || item === void 0 ? void 0 : item.key);
}
}, menuKey)]
}), /*#__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));
/***/ }),
/***/ 87072:
/*!*****************************************!*\
!*** ./src/assets/images/shiyanshi.png ***!
\*****************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,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";
/***/ })
}]);

@ -0,0 +1,129 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27416],{
/***/ 3242:
/*!*********************************************************!*\
!*** ./src/pages/Equipment/Index/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 */ Index; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/Equipment/Index/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___jmmXe","flex_space_between":"flex_space_between___vxGWa","flex_box_vertical_center":"flex_box_vertical_center___SGwrN","flex_box_center_end":"flex_box_center_end___KiDj3","flex_box_column":"flex_box_column___Z6TVL","flex-col":"flex-col___ZnKoO","flex-row":"flex-row___pctXX","justify-start":"justify-start___csUBe","justify-center":"justify-center___kKub2","justify-end":"justify-end___n8cXO","justify-evenly":"justify-evenly___mjQm1","justify-around":"justify-around___JL_9s","justify-between":"justify-between___qTRS7","align-start":"align-start___lqbAM","align-center":"align-center___oDNBy","align-end":"align-end___Uiurd","MenuStyles":"MenuStyles___BHYdE","MenuStylesItem":"MenuStylesItem___cnAZu","MenuStylesItemActive":"MenuStylesItemActive___KgmGV","ContentStyles":"ContentStyles___Mfx8e"});
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(88271);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Equipment/Index/index.tsx
var Engineering = function Engineering(_ref) {
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering,
dispatch = _ref.dispatch;
var location = (0,_umi_production_exports.useLocation)();
(0,_react_17_0_2_react.useEffect)(function () {
if (location.pathname == '/equipment') {
_umi_production_exports.history.replace('/equipment/information');
}
}, [location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: true
});
};
}, []);
function getItem(label, key, icon, children, type) {
return {
key: key,
icon: icon,
children: children,
label: label,
type: type
};
}
var items = [getItem('设备信息管理', '/equipment/information', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeixinxiguanli"
})),
// getItem('预约管理', '/equipment/bookingManage', <i className="iconfont icon-shebeibaofei-2"></i>),
getItem('设备在线监控', '/equipment/working', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeiyunhangjiankong"
})), getItem('设备类型管理', '/equipment/maintenance', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeiweixiujilu"
})),
// getItem('设备标签管理', '/equipment/deviceLabel', <i className="iconfont icon-shebeibaofei-2"></i>),
getItem('保养信息管理', '/equipment/faultlibrary', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeibaofei-2"
})), getItem('消息中心', '/equipment/messageCenterManage', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeibaofei-2"
})), getItem('操作日志', '/equipment/actionlog', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeibaofei-2"
}))];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex p20 pl30 pr30",
style: {
gap: "20px",
height: "calc(100vh - 82px)"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "p10 ".concat(Indexmodules.MenuStyles, " flex flex-col"),
children: items === null || items === void 0 ? void 0 : items.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center justify-center current ".concat(Indexmodules.MenuStylesItem, " ").concat(location.pathname === (item === null || item === void 0 ? void 0 : item.key) ? Indexmodules.MenuStylesItemActive : ''),
style: {
gap: "10px"
},
onClick: function onClick(e) {
_umi_production_exports.history.push(item === null || item === void 0 ? void 0 : item.key);
},
children: [item === null || item === void 0 ? void 0 : item.icon, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-1",
style: {
minWidth: 0
},
children: item === null || item === void 0 ? void 0 : item.label
})]
}, item === null || item === void 0 ? void 0 : item.key);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-1 p20 ".concat(Indexmodules.ContentStyles),
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

@ -1,158 +0,0 @@
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/styles/table_botton.less ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tag_btn,
.info,
.update,
.xiajia,
.yuyue_info,
.yuyue_clear,
.yuyue_update,
.baofei_info,
.yichang_info {
display: inline-block;
width: 44px;
margin-right: 10px;
padding: 1px 0px;
font-weight: 400;
font-size: 12px;
text-align: center;
border-radius: 2px;
cursor: pointer;
}
.info {
color: #0370d5;
background: rgba(3, 112, 213, 0.1);
border: 1px solid #0370d5;
}
.update {
color: #019158;
background: rgba(1, 145, 88, 0.1);
border: 1px solid #019158;
}
.xiajia {
color: #fe5050;
background: rgba(254, 80, 80, 0.1);
border: 1px solid #fe5050;
}
.yuyue_info {
width: 72px;
color: #0370d5;
background: rgba(3, 112, 213, 0.1);
border: 1px solid #0370d5;
}
.yuyue_clear {
width: 72px;
color: #fa6400;
background: rgba(250, 100, 0, 0.1);
border: 1px solid #fa6400;
}
.yuyue_update {
width: 72px;
color: #019158;
background: rgba(1, 145, 88, 0.1);
border: 1px solid #019158;
}
.baofei_info {
width: 72px;
color: #fe5050;
background: rgba(254, 80, 80, 0.1);
border: 1px solid #fe5050;
}
.yichang_info {
width: 96px;
color: #0370d5;
background: rgba(3, 112, 213, 0.1);
border: 1px solid #0370d5;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Equipment/Information/InfoList/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.search_params___qdp66 {
display: flex;
}
.search_params___qdp66 [class~='ant-form-item'] {
margin-bottom: 10px !important;
}
.search_params___qdp66 [class~='ant-form-item'] [class~='ant-form-item-label'] {
text-align: right !important;
}
.search_params___qdp66 [class~='ant-form-item'] [class~='ant-form-item-label'] label {
color: #666 !important;
display: block !important;
height: 36px !important;
line-height: 36px !important;
}
.search_params___qdp66 [class~='ant-select-selector'] {
height: 36px !important;
}
.search_params___qdp66 [class~='ant-picker'] {
height: 36px !important;
}
.search_params___qdp66 [class~='ant-select-selection-item'] {
line-height: 34px !important;
}
.ellipsis___PLgna {
width: 120px;
/* 设置容器的固定宽度 */
white-space: nowrap;
/* 防止文本换行 */
overflow: hidden;
/* 隐藏溢出的内容 */
text-overflow: ellipsis;
/* 显示省略号 */
-webkit-text-decoration-line: underline;
text-decoration-line: underline;
}
.search___wEG7n {
margin-left: auto;
display: flex !important;
align-items: center !important;
overflow: hidden;
border-radius: 19px;
height: 38px;
width: 268px;
padding-left: 8px;
background-color: #f6f7f9;
border: none;
}
.search___wEG7n span[class~='ant-input-search-icon'] {
display: none !important;
}
.search___wEG7n [class~='ant-input-affix-wrapper'] {
background-color: #f6f7f9 !important;
border: none !important;
}
.search___wEG7n [class~='ant-input-affix-wrapper'] {
outline: none !important;
border: none !important;
box-shadow: none !important;
}
.search___wEG7n span[class~='ant-input-group-addon'] {
display: none !important;
}
.search___wEG7n .searchIcon___orerQ {
margin-right: 14px;
cursor: pointer;
}
.search___wEG7n input {
background-color: #f6f7f9 !important;
}
.clear_Data___M2GZV {
height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #FFFFFF;
line-height: 32px;
margin-left: auto;
text-align: center;
cursor: pointer;
margin-top: 3px;
margin-bottom: 20px;
}

@ -0,0 +1,53 @@
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Equipment/Information/InfoList/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.FormStyle___bUUkD [class~="ant-form-item-label"] > label {
color: #90AAFF;
}
.FormStyle___bUUkD [class~="ant-input-affix-wrapper"],
.FormStyle___bUUkD [class~="ant-select-selector"] {
background-color: #17378A !important;
box-shadow: inset 0px 1px 3px 0px rgba(29, 29, 29, 0.5);
border-radius: 4px !important;
color: #fff !important;
border: none !important;
}
.FormStyle___bUUkD [class~="ant-select-arrow"] {
color: #fff;
}
.FormStyle___bUUkD [class~="ant-input-affix-wrapper"] > input::-webkit-input-placeholder {
background: none !important;
color: #fff !important;
}
.FormStyle___bUUkD [class~="ant-input-affix-wrapper"] > input:-ms-input-placeholder {
background: none !important;
color: #fff !important;
}
.FormStyle___bUUkD [class~="ant-input-affix-wrapper"] > input::-ms-input-placeholder {
background: none !important;
color: #fff !important;
}
.FormStyle___bUUkD [class~="ant-input-affix-wrapper"] > input::placeholder,
.FormStyle___bUUkD [class~="ant-input-affix-wrapper"] > input {
background: none !important;
color: #fff !important;
}
.TitleStyle___wXHTJ table {
border-spacing: 0 10px;
}
.TitleStyle___wXHTJ [class~="ant-table"] {
background: none;
}
.TitleStyle___wXHTJ [class~="ant-table-cell"] {
background: linear-gradient(180deg, #355EBB 0%, #2737A7 100%) !important;
border-right: none !important;
color: #FFFFFF !important;
border-image: linear-gradient(360deg, #4695e6, #5f9ae8) 1 1;
}
.TitleStyle___wXHTJ [class~="ant-table-cell"]::before {
display: none;
}
.TitleStyle___wXHTJ [class~="ant-table-row"] {
margin-top: 10px !important;
}

@ -1,979 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[42159],{
/***/ 97502:
/*!***************************************************************!*\
!*** ./src/pages/Equipment/Information/index.tsx + 3 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 */ Information; }
});
// 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/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(70236);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// 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/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/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// 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: ./src/service/onlinedevice.ts
var onlinedevice = __webpack_require__(82135);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.31.4@@ant-design/pro-form/es/components/Select/index.js
var Select = __webpack_require__(78166);
// EXTERNAL MODULE: ./src/styles/table_botton.less
var table_botton = __webpack_require__(55130);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(95972);
// 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/select/index.js
var es_select = __webpack_require__(57809);
// 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/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__(36546);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(19871);
// 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/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(88271);
;// CONCATENATED MODULE: ./src/pages/Equipment/Information/InfoList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var InfoListmodules = ({"search_params":"search_params___qdp66","ellipsis":"ellipsis___PLgna","search":"search___wEG7n","searchIcon":"searchIcon___orerQ","clear_Data":"clear_Data___M2GZV"});
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(39531);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(69423);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(44320);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.31.4@@ant-design/pro-form/es/components/Text/index.js
var Text = __webpack_require__(76250);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.31.4@@ant-design/pro-form/es/components/DatePicker/index.js + 5 modules
var DatePicker = __webpack_require__(12366);
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
var useCustomRequest = __webpack_require__(13158);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Equipment/Information/InfoList/components/AddOrEidtDevicesModal.tsx
var AddOrEidtDevicesModal = function AddOrEidtDevicesModal(_ref) {
var _DeviceTypeData$devic2, _ClassroomRoomsData$d;
var ModalProps = _ref.ModalProps,
FormProps = _ref.FormProps,
_ref$DataProps = _ref.DataProps,
DataProps = _ref$DataProps === void 0 ? {} : _ref$DataProps;
// 获取设备类型
var _useCustomRequest = (0,useCustomRequest/* useCustomRequest */.U)(onlinedevice/* device_type_table_query */.uz, {
page: 1,
limit: 1000000,
keyword: ""
}),
_useCustomRequest2 = slicedToArray_default()(_useCustomRequest, 4),
DeviceTypeLoading = _useCustomRequest2[1],
Device_type_table_query = _useCustomRequest2[2],
DeviceTypeData = _useCustomRequest2[3];
var _useCustomRequest3 = (0,useCustomRequest/* useCustomRequest */.U)(laboratory/* classroom_rooms_query */.jd, {
page: 1,
limit: 1000000,
classroom_room_id: ""
}),
_useCustomRequest4 = slicedToArray_default()(_useCustomRequest3, 4),
ClassroomRoomsLoading = _useCustomRequest4[1],
Classroom_rooms_query = _useCustomRequest4[2],
ClassroomRoomsData = _useCustomRequest4[3];
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
currentDeviceTypeData = _useState2[0],
setCurrentDeviceTypeData = _useState2[1];
var device_type_id = es_form/* default */.Z.useWatch("device_type_id", FormProps.form);
(0,_react_17_0_2_react.useEffect)(function () {
if (ModalProps.open) {
Device_type_table_query({});
Classroom_rooms_query({});
if (DataProps !== null && DataProps !== void 0 && DataProps.isEdit && DataProps !== null && DataProps !== void 0 && DataProps.id) {
(0,onlinedevice/* device_info_table_info */.d1)(DataProps === null || DataProps === void 0 ? void 0 : DataProps.id).then(function (res) {
var _FormProps$form;
FormProps === null || FormProps === void 0 || (_FormProps$form = FormProps.form) === null || _FormProps$form === void 0 || _FormProps$form.setFieldsValue(objectSpread2_default()({}, res));
});
}
} else {
var _FormProps$form2;
FormProps === null || FormProps === void 0 || (_FormProps$form2 = FormProps.form) === null || _FormProps$form2 === void 0 || _FormProps$form2.resetFields();
}
}, [ModalProps.open, DataProps === null || DataProps === void 0 ? void 0 : DataProps.isEdit]);
(0,_react_17_0_2_react.useEffect)(function () {
var _DeviceTypeData$devic;
device_type_id && setCurrentDeviceTypeData(DeviceTypeData === null || DeviceTypeData === void 0 || (_DeviceTypeData$devic = DeviceTypeData.device_types) === null || _DeviceTypeData$devic === void 0 ? void 0 : _DeviceTypeData$devic.find(function (item) {
return item.id === device_type_id;
}));
}, [device_type_id]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, objectSpread2_default()({
maskClosable: false,
centered: true,
destroyOnClose: true,
title: "".concat(DataProps !== null && DataProps !== void 0 && DataProps.isEdit ? '编辑' : '添加', "\u8BBE\u5907"),
width: 700
}, ModalProps)), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, objectSpread2_default()({
size: "large",
labelCol: {
span: 4
},
initialValues: {
status: "usable"
}
}, FormProps)), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "id",
hidden: true
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Select/* default */.Z, {
name: "device_type_id",
label: "\u8BBE\u5907\u7C7B\u578B",
placeholder: "请选择设备类型",
rules: [{
required: true,
message: "请选择设备类型"
}],
options: (DeviceTypeData === null || DeviceTypeData === void 0 || (_DeviceTypeData$devic2 = DeviceTypeData.device_types) === null || _DeviceTypeData$devic2 === void 0 ? void 0 : _DeviceTypeData$devic2.map(function (item) {
return {
label: item.name,
value: item.id
};
})) || []
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text/* default */.Z, {
name: "name",
rules: [{
required: true,
message: "请输入设备名称"
}],
label: "\u8BBE\u5907\u540D\u79F0",
placeholder: "请输入设备名称"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Select/* default */.Z, {
name: "classroom_room_id",
label: "\u5B9E\u9A8C\u5BA4\u5206\u5BA4",
placeholder: "请选择实验室分室",
rules: [{
required: true,
message: "请选择实验室分室"
}],
options: (ClassroomRoomsData === null || ClassroomRoomsData === void 0 || (_ClassroomRoomsData$d = ClassroomRoomsData.data) === null || _ClassroomRoomsData$d === void 0 || (_ClassroomRoomsData$d = _ClassroomRoomsData$d.list) === null || _ClassroomRoomsData$d === void 0 ? void 0 : _ClassroomRoomsData$d.map(function (item) {
return {
label: item.title,
value: item.id
};
})) || []
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DatePicker/* default */.Z, {
name: "purchase_time",
label: "\u91C7\u8D2D\u65F6\u95F4",
placeholder: "请选择采购时间",
rules: [{
required: true,
message: "请选择采购时间"
}]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text/* default */.Z, {
name: "file",
rules: [{
required: true,
message: "请输入可用月份"
}],
label: "\u53EF\u7528\u6708\u4EFD"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "purchase_money",
label: "\u91C7\u8D2D\u6210\u672C",
rules: [{
required: true,
message: "请输入采购成本"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u91C7\u8D2D\u6210\u672C",
suffix: "元"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Select/* default */.Z, {
disabled: DataProps === null || DataProps === void 0 ? void 0 : DataProps.isEdit,
name: "status",
label: "\u8BBE\u5907\u72B6\u6001",
placeholder: "请选择设备状态",
rules: [{
required: true,
message: "请选择设备状态"
}],
options: [{
label: "全部",
value: ""
}].concat(toConsumableArray_default()(constant/* DEVICE_STATUS_TYPE */.Z))
}), (currentDeviceTypeData === null || currentDeviceTypeData === void 0 ? void 0 : currentDeviceTypeData.need_monitor) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Text/* default */.Z, {
name: "ip",
label: "IP\u5730\u5740",
placeholder: "请输入IP地址",
rules: [{
required: true,
message: "请输入IP地址"
}]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text/* default */.Z, {
name: "account",
label: "\u8D26\u53F7",
placeholder: "请输入账号",
rules: [{
required: true,
message: "请输入账号"
}]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "password",
label: "\u5BC6\u7801",
rules: [{
required: true,
message: "请输入密码"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Password, {
placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801"
})
})]
})]
}))
}));
};
/* harmony default export */ var components_AddOrEidtDevicesModal = (AddOrEidtDevicesModal);
// 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);
;// CONCATENATED MODULE: ./src/pages/Equipment/Information/InfoList/index.tsx
var InfoList = function InfoList(_ref) {
objectDestructuringEmpty_default()(_ref);
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
tableData = _useState2[0],
setTableData = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(1),
_useState4 = slicedToArray_default()(_useState3, 2),
page = _useState4[0],
setPage = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(10),
_useState6 = slicedToArray_default()(_useState5, 2),
limit = _useState6[0],
setLimit = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(0),
_useState8 = slicedToArray_default()(_useState7, 2),
total = _useState8[0],
setTotal = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)({}),
_useState10 = slicedToArray_default()(_useState9, 2),
allData = _useState10[0],
setAllData = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)({}),
_useState12 = slicedToArray_default()(_useState11, 2),
params = _useState12[0],
setParams = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
deviceType = _useState14[0],
setDeviceType = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)([]),
_useState16 = slicedToArray_default()(_useState15, 2),
kdClassroom = _useState16[0],
setKdClassroom = _useState16[1];
var defaultFormData = {
status: '',
classroom_id: '',
tag_id: '',
reservation_status: '',
type_id: '',
use_status: ''
};
var _useCustomRequest = (0,useCustomRequest/* useCustomRequest */.U)(onlinedevice/* postDevicesChangeStatus */.Qq, {}),
_useCustomRequest2 = slicedToArray_default()(_useCustomRequest, 3),
DevicesChangeStatusLoading = _useCustomRequest2[1],
PostDevicesChangeStatus = _useCustomRequest2[2];
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
// 添加or编辑设备
var _Form$useForm3 = es_form/* default */.Z.useForm(),
_Form$useForm4 = slicedToArray_default()(_Form$useForm3, 1),
addOrEidtForm = _Form$useForm4[0];
var _useState17 = (0,_react_17_0_2_react.useState)({
open: false,
isEdit: false,
loading: false
}),
_useState18 = slicedToArray_default()(_useState17, 2),
addOrEidtOpen = _useState18[0],
setAddOrEidtOpen = _useState18[1];
// 变更状态
var _useState19 = (0,_react_17_0_2_react.useState)(false),
_useState20 = slicedToArray_default()(_useState19, 2),
changeOpen = _useState20[0],
setChangeOpen = _useState20[1];
var _Form$useForm5 = es_form/* default */.Z.useForm(),
_Form$useForm6 = slicedToArray_default()(_Form$useForm5, 1),
changeForm = _Form$useForm6[0];
(0,_react_17_0_2_react.useEffect)(function () {
querySelect();
queryData(true, params);
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
queryData(false, params);
}, [page]);
var onChange = function onChange(pageNumber) {
setPage(pageNumber);
};
var querySelect = /*#__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:
//实验室房间
(0,laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
classroom_id: ''
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
var _res$data;
setKdClassroom([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()((res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [])));
}
});
//设备类型
(0,onlinedevice/* device_tags_device_type */.eX)({
type: 'DeviceType'
}).then(function (res) {
setDeviceType([{
id: '',
name: '全部'
}].concat(toConsumableArray_default()((res === null || res === void 0 ? void 0 : res.data) || [])));
});
case 2:
case "end":
return _context.stop();
}
}, _callee);
}));
return function querySelect() {
return _ref2.apply(this, arguments);
};
}();
var queryData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(flag, data) {
var info;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (flag) {
setPage(1);
}
info = form.getFieldsValue();
(0,onlinedevice/* device_info_table_query */.QD)({
page: page,
limit: limit,
keyword: (info === null || info === void 0 ? void 0 : info.keyword) || '',
classroom_id: (info === null || info === void 0 ? void 0 : info.classroom_id) || '',
tag_id: (info === null || info === void 0 ? void 0 : info.tag_id) || '',
reservation_status: (info === null || info === void 0 ? void 0 : info.reservation_status) || '',
type_id: (info === null || info === void 0 ? void 0 : info.type_id) || '',
use_status: (info === null || info === void 0 ? void 0 : info.use_status) || '',
scrapped: 0,
status: (info === null || info === void 0 ? void 0 : info.status) || '',
forbidden: true
}).then(function (res) {
setTableData(res === null || res === void 0 ? void 0 : res.devices);
setTotal(res === null || res === void 0 ? void 0 : res.devices_count);
setAllData(res);
});
case 3:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function queryData(_x, _x2) {
return _ref3.apply(this, arguments);
};
}();
var onFinish = function onFinish(values) {
setParams(values);
queryData(true, values);
};
var onShowSizeChange = function onShowSizeChange(current, pageSize) {
setLimit(pageSize);
queryData(true, params);
};
var columns = [{
title: '设备编号',
"with": 180,
ellipsis: true,
dataIndex: 'number',
key: 'number'
}, {
title: '设备名称',
"with": 180,
ellipsis: true,
dataIndex: 'name',
key: 'name'
}, {
title: '设备类型',
dataIndex: 'device_type_name',
key: 'device_type_name'
}, {
title: '状态',
dataIndex: 'status',
key: 'status',
render: function render(text) {
var _DEVICE_STATUS_TYPE$f;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: text == 3 ? '#fe5050' : '#019158'
},
children: (constant/* DEVICE_STATUS_TYPE */.Z === null || constant/* DEVICE_STATUS_TYPE */.Z === void 0 || (_DEVICE_STATUS_TYPE$f = constant/* DEVICE_STATUS_TYPE */.Z.find(function (item) {
return item.value === text;
})) === null || _DEVICE_STATUS_TYPE$f === void 0 ? void 0 : _DEVICE_STATUS_TYPE$f.label) || ""
});
}
}, {
title: '采购时间',
dataIndex: 'purchase_time',
key: 'purchase_time',
render: function render(text) {
return dayjs_min_default()(text).format("YYYY-MM-DD");
}
}, {
title: '可用月数',
dataIndex: 'file',
key: 'file'
}, {
title: '所属实验室分室',
dataIndex: 'classroom_name',
key: 'classroom_name'
}, {
title: '操作',
fixed: 'right',
width: 200,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
gap: "10px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: "#165dff",
cursor: "pointer"
},
onClick: function onClick() {
_umi_production_exports.history.push({
pathname: "/equipment/information/deviceDetails/".concat(record.id, "/", true)
});
},
children: "\u8BE6\u60C5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: "#165dff",
cursor: "pointer"
},
onClick: function onClick() {
changeForm.setFieldsValue(objectSpread2_default()({}, record));
setChangeOpen(true);
},
children: "\u53D8\u66F4\u72B6\u6001"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: "#165dff",
cursor: "pointer"
},
onClick: function onClick() {
// history.push({ pathname: `/equipment/information/deviceEdit/${record.id}` });
setAddOrEidtOpen({
open: true,
isEdit: true,
id: record.id
});
},
children: "\u7F16\u8F91"
})]
});
}
}];
var DevicesList = [{
img: "",
label: "设备总数",
value: (allData === null || allData === void 0 ? void 0 : allData.total_num) || 0
}, {
img: "",
label: "堪用数",
value: (allData === null || allData === void 0 ? void 0 : allData.usable_num) || 0
}, {
img: "",
label: "损坏数",
value: (allData === null || allData === void 0 ? void 0 : allData.damaged_num) || 0
}, {
img: "",
label: "保养数",
value: (allData === null || allData === void 0 ? void 0 : allData.maintenance_num) || 0
}, {
img: "",
label: "报废数",
value: (allData === null || allData === void 0 ? void 0 : allData.scrapped_num) || 0
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: "flex",
justifyContent: "space-between"
},
children: DevicesList === null || DevicesList === void 0 ? void 0 : DevicesList.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [item === null || item === void 0 ? void 0 : item.label, item === null || item === void 0 ? void 0 : item.value]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
initialValues: defaultFormData,
form: form,
layout: "inline",
onFinish: onFinish,
autoComplete: "off",
className: InfoListmodules.search_params,
style: {
display: 'flex',
flexWrap: 'wrap'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u5B9E\u9A8C\u5BA4",
name: "classroom_id",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 150,
marginBottom: '10px'
},
onChange: function onChange() {
return queryData(true, form.getFieldsValue());
},
options: kdClassroom,
fieldNames: {
label: 'title',
value: 'id'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u72B6\u6001",
name: "status",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 150
},
options: [{
value: '',
label: '全部'
}].concat(toConsumableArray_default()(constant/* DEVICE_STATUS_TYPE */.Z))
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u662F\u5426\u53EF\u9884\u7EA6",
name: "reservation_status",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
onChange: function onChange() {
return queryData(true, form.getFieldsValue());
},
style: {
width: 150
},
options: [{
value: '',
label: '全部'
}, {
value: 1,
label: '预约无审核'
}, {
value: 2,
label: '预约需审核'
}, {
value: 3,
label: '无预约'
}]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BBE\u5907\u7C7B\u578B",
name: "type_id",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
onChange: function onChange() {
var formData = form.getFieldsValue();
queryData(true, formData);
},
style: {
width: 150
},
options: deviceType,
fieldNames: {
label: 'name',
value: 'id'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "keyword",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0\u641C\u7D22",
size: "large",
className: InfoListmodules.search,
onChange: function onChange(e) {
queryData(true, form.getFieldsValue());
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9 font14 ".concat(InfoListmodules.searchIcon),
onClick: function onClick() {
queryData(true, form.getFieldsValue());
}
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
gap: "10px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
setAddOrEidtOpen({
open: true
});
},
children: "\u6DFB\u52A0\u8BBE\u5907"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
var info = form.getFieldsValue();
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER, "/api/zz_classrooms/devices.xlsx?keyword=").concat((info === null || info === void 0 ? void 0 : info.keyword) || '', "&classroom_id=").concat((info === null || info === void 0 ? void 0 : info.classroom_id) || '', "&tag_id=").concat((info === null || info === void 0 ? void 0 : info.tag_id) || '', "&reservation_status=").concat((info === null || info === void 0 ? void 0 : info.reservation_status) || '', "&type_id=").concat((info === null || info === void 0 ? void 0 : info.type_id) || '', "&use_status=").concat((info === null || info === void 0 ? void 0 : info.use_status) || '', "&status=").concat((info === null || info === void 0 ? void 0 : info.status) || '', "&scrapped=0"));
},
children: "\u5BFC\u51FA"
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
scroll: {
x: 1500
},
columns: columns,
dataSource: tableData,
pagination: false,
rowKey: function rowKey(record) {
return record.id;
},
className: InfoListmodules.table_style
}), total > limit && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
padding: '20px 0'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showQuickJumper: true,
current: page,
pageSize: limit,
total: total,
onChange: onChange,
onShowSizeChange: onShowSizeChange
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_AddOrEidtDevicesModal, {
ModalProps: {
open: addOrEidtOpen.open,
onCancel: function onCancel() {
setAddOrEidtOpen({});
},
onOk: function onOk() {
addOrEidtForm.submit();
},
confirmLoading: addOrEidtOpen.loading
},
DataProps: addOrEidtOpen,
FormProps: {
form: addOrEidtForm,
onFinish: function () {
var _onFinish = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(allValue) {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
setAddOrEidtOpen(objectSpread2_default()(objectSpread2_default()({}, addOrEidtOpen), {}, {
loading: true
}));
_context3.next = 3;
return addOrEidtOpen !== null && addOrEidtOpen !== void 0 && addOrEidtOpen.isEdit ? (0,onlinedevice/* device_info_table_update */.h9)(objectSpread2_default()({}, allValue)) : (0,onlinedevice/* device_info_table_add */.sp)(objectSpread2_default()({}, allValue));
case 3:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success(addOrEidtOpen !== null && addOrEidtOpen !== void 0 && addOrEidtOpen.isEdit ? '修改成功' : '添加成功');
queryData(true, params);
}
setAddOrEidtOpen({});
case 6:
case "end":
return _context3.stop();
}
}, _callee3);
}));
function onFinish(_x3) {
return _onFinish.apply(this, arguments);
}
return onFinish;
}()
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
title: "更改状态",
open: changeOpen,
confirmLoading: DevicesChangeStatusLoading,
centered: true,
onOk: function onOk() {
changeForm.submit();
},
onCancel: function onCancel() {
setChangeOpen(false);
changeForm.resetFields();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: changeForm,
layout: "vertical",
onFinish: ( /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(allValue) {
var res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return PostDevicesChangeStatus(objectSpread2_default()({}, allValue));
case 2:
res = _context4.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('修改成功');
queryData(true, params);
}
case 4:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function (_x4) {
return _ref4.apply(this, arguments);
};
}()),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "id",
hidden: true
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Select/* default */.Z, {
name: "status",
label: "\u8BBE\u5907\u72B6\u6001",
placeholder: "请选择设备状态",
rules: [{
required: true,
message: "请选择设备状态"
}],
options: [{
label: "全部",
value: ""
}].concat(toConsumableArray_default()(constant/* DEVICE_STATUS_TYPE */.Z))
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "comment",
label: "说明",
rules: [{
required: true,
whitespace: true,
message: "请输入说明"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
placeholder: "\u8BF7\u8F93\u5165\u8BF4\u660E",
rows: 4
})
})]
})
})]
});
};
/* harmony default export */ var Information_InfoList = (InfoList);
;// CONCATENATED MODULE: ./src/pages/Equipment/Information/index.tsx
var items = (/* unused pure expression or super */ null && ([
// {
// label: '设备信息列表',
// key: 'info-list',
// children: <InfoList />,
// },
// {
// label: '报废设备',
// key: 'scrap',
// children: <Scrap />,
// },
]));
var DeviceInfoPage = function DeviceInfoPage(_ref) {
objectDestructuringEmpty_default()(_ref);
var _useState = (0,_react_17_0_2_react.useState)('info-list'),
_useState2 = slicedToArray_default()(_useState, 2),
activeKey = _useState2[0],
setActiveKey = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
keyDom = _useState4[0],
setKeyDom = _useState4[1];
var onChange = function onChange(key) {
setActiveKey(key);
setKeyDom(keyDom + 1);
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "header_tabs",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Information_InfoList, {})
});
};
/* harmony default export */ var Information = (DeviceInfoPage);
/***/ }),
/***/ 13158:
/*!*********************************************!*\
!*** ./src/utils/hooks/useCustomRequest.ts ***!
\*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ U: function() { return /* binding */ useCustomRequest; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
//常见的请求模式包含loading和改变params。
function useCustomRequest(request, baseParams) {
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(baseParams),
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(),
_useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
data = _useState6[0],
setData = _useState6[1];
var getData = /*#__PURE__*/function () {
var _ref = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(newParams) {
var reset,
mergedParams,
res,
_args = arguments;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
reset = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
mergedParams = reset ? baseParams : _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params), newParams);
setLoading(true);
setParams(mergedParams);
_context.next = 6;
return request(mergedParams);
case 6:
res = _context.sent;
setLoading(false);
setData(res);
return _context.abrupt("return", res);
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref.apply(this, arguments);
};
}();
return [params, loading, getData, data];
}
/***/ }),
/***/ 55130:
/*!**************************************!*\
!*** ./src/styles/table_botton.less ***!
\**************************************/
/***/ (function() {
// extracted by mini-css-extract-plugin
/***/ })
}]);

File diff suppressed because one or more lines are too long

@ -13896,6 +13896,36 @@ body[data-custom='auto'] {
.disabled-fill textarea {
pointer-events: none !important;
}
.flex {
display: flex;
}
.flex-col {
flex-direction: column;
}
.flex-1 {
flex: 1 1;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.w-auto {
width: auto;
}
.w-full {
width: 100%;
}
.h-auto {
height: auto;
}
.h-full {
height: 100%;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/styles/animate.min.css ***!
Loading…
Cancel
Save