autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent 02cef1bba3
commit cdb3799413

File diff suppressed because one or more lines are too long

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.3ee752a8.js"></script>
<script src="/react/build/umi.31d477d0.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -92,17 +92,17 @@ var ActionLog = function ActionLog(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
className: "flex items-center",
style: {
gap: "10px"
gap: "10rem"
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("i", {
className: "iconfont icon-caozuorizhi1"
className: "iconfont icon-zzxy-caozuorizhi1"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", {
children: "\u64CD\u4F5C\u65E5\u5FD7"
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
className: "flex items-center",
style: {
gap: "20px"
gap: "20rem"
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
className: _pages_Equipment_Index_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z.FormStyle,
@ -116,7 +116,7 @@ var ActionLog = function ActionLog(_ref) {
return;
}
getData(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, urlData), values), {}, {
time: (_values$time = values.time) === null || _values$time === void 0 ? void 0 : _values$time.toJSON()
time: (_values$time = values.time) === null || _values$time === void 0 ? void 0 : _values$time.format("YYYY-MM-DD")
}));
},
onFinish: function onFinish(allValue) {
@ -127,7 +127,7 @@ var ActionLog = function ActionLog(_ref) {
label: "\u64CD\u4F5C\u65F6\u95F4",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__["default"], {
style: {
width: 240
width: "240rem"
},
className: _pages_Equipment_Index_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z.DatePickerStyles,
allowClear: true,
@ -138,10 +138,13 @@ var ActionLog = function ActionLog(_ref) {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0\u641C\u7D22",
style: {
width: 428
width: "428rem"
},
suffix: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("i", {
className: "iconfont icon-sousuo font14 current",
className: "iconfont icon-sousuo current",
style: {
fontSize: "14rem"
},
onClick: function onClick() {
form.submit();
}
@ -151,7 +154,11 @@ var ActionLog = function ActionLog(_ref) {
})
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
className: "materials-table-wrp mr0 mt20",
className: "materials-table-wrp",
style: {
marginTop: "20rem",
marginRight: "0rem"
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
className: "materials-table",
dataSource: DevicesOperationLogsData === null || DevicesOperationLogsData === void 0 || (_DevicesOperationLogs = DevicesOperationLogsData.data) === null || _DevicesOperationLogs === void 0 ? void 0 : _DevicesOperationLogs.list,

@ -75,7 +75,6 @@ var jsx_runtime = __webpack_require__(37712);
dayjs_min_default().extend((customParseFormat_default()));
var ReservationDialog = function ReservationDialog(_ref) {
var ModalProps = _ref.ModalProps,
@ -121,89 +120,80 @@ var ReservationDialog = function ReservationDialog(_ref) {
centered: true,
destroyOnClose: true,
title: "".concat(DataProps !== null && DataProps !== void 0 && DataProps.isEdit ? '编辑' : '新增', "\u4FDD\u517B\u7BA1\u7406"),
width: 773,
width: "773rem",
keyboard: false
}, ModalProps), {}, {
className: "".concat(Indexmodules/* default */.Z.ModalStyles, " ").concat((ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.className) || ""),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/pages/Equipment/imgs/close.png */ 27948),
width: 24,
height: 24
className: "".concat(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.className, " modalXazy"),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
})
})), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
borderRadius: "8px",
background: "rgba(255,255,255,0.8)",
padding: "20px 30px"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, objectSpread2_default()({
size: "large",
labelAlign: "right",
colon: false,
labelCol: {
span: 4
}
}, FormProps)), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "fault_type",
label: "\u4FDD\u517B\u5185\u5BB9",
rules: [{
required: true,
whitespace: true,
message: '请输入保养内容'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u4FDD\u517B\u5185\u5BB9"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "device_id",
label: "\u4FDD\u517B\u8BBE\u5907",
rules: [{
required: true,
message: '请先选择设备'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
placeholder: "\u8BF7\u9009\u62E9\u4FDD\u517B\u8BBE\u5907",
options: devices,
showSearch: true,
filterOption: function filterOption(input, option) {
var _option$label;
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase().includes(input.toLowerCase());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "solved_by",
label: "\u4FDD\u517B\u8D1F\u8D23\u4EBA",
rules: [{
required: true,
message: "请先输入负责人"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u4FDD\u517B\u8D1F\u8D23\u4EBA"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "date",
label: "\u4FDD\u517B\u65F6\u95F4",
rules: [{
required: true,
message: '请先选择保养时间'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
className: "w-full",
format: "YYYY-MM-DD",
placeholder: "\u8BF7\u9009\u62E9\u4FDD\u517B\u65F6\u95F4"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "solution",
label: "\u5907\u6CE8",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
rows: 6,
placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8"
})
})]
}))
})
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, objectSpread2_default()({
size: "large",
labelAlign: "right",
colon: false,
labelCol: {
span: 4
}
}, FormProps)), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "fault_type",
label: "\u4FDD\u517B\u5185\u5BB9",
rules: [{
required: true,
whitespace: true,
message: '请输入保养内容'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u4FDD\u517B\u5185\u5BB9"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "device_id",
label: "\u4FDD\u517B\u8BBE\u5907",
rules: [{
required: true,
message: '请先选择设备'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
placeholder: "\u8BF7\u9009\u62E9\u4FDD\u517B\u8BBE\u5907",
options: devices,
showSearch: true,
filterOption: function filterOption(input, option) {
var _option$label;
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase().includes(input.toLowerCase());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "solved_by",
label: "\u4FDD\u517B\u8D1F\u8D23\u4EBA",
rules: [{
required: true,
message: "请先输入负责人"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u4FDD\u517B\u8D1F\u8D23\u4EBA"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "date",
label: "\u4FDD\u517B\u65F6\u95F4",
rules: [{
required: true,
message: '请先选择保养时间'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
className: "w-full",
format: "YYYY-MM-DD",
placeholder: "\u8BF7\u9009\u62E9\u4FDD\u517B\u65F6\u95F4"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "solution",
label: "\u5907\u6CE8",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
rows: 6,
placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8"
})
})]
}))
}));
};
/* harmony default export */ var Dialog = (ReservationDialog);
@ -267,10 +257,9 @@ var InfoList = function InfoList(_ref) {
while (1) switch (_context.prev = _context.next) {
case 0:
data = _args.length > 0 && _args[0] !== undefined ? _args[0] : urlData;
console.log("getData====", data);
setUrlData(data);
Device_fault_query(objectSpread2_default()({}, data));
case 4:
case 3:
case "end":
return _context.stop();
}
@ -282,25 +271,25 @@ var InfoList = function InfoList(_ref) {
}();
var columns = [{
title: '保养内容',
width: 150,
width: "150rem",
ellipsis: true,
dataIndex: 'fault_type',
key: 'fault_type'
}, {
title: '保养负责人',
width: 120,
width: "120rem",
ellipsis: true,
dataIndex: 'solved_by',
key: 'solved_by'
}, {
title: '保养设备',
width: 150,
width: "150rem",
ellipsis: true,
dataIndex: 'device_name',
key: 'device_name'
}, {
title: '保养时间',
width: 120,
width: "120rem",
ellipsis: true,
dataIndex: 'date',
key: 'date',
@ -314,7 +303,7 @@ var InfoList = function InfoList(_ref) {
dataIndex: 'description',
key: 'description',
ellipsis: true,
width: 300,
width: "300rem",
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: text,
@ -323,12 +312,12 @@ var InfoList = function InfoList(_ref) {
}
}, {
title: '操作',
width: 70,
width: "80rem",
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex",
style: {
gap: "20px"
gap: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
@ -367,24 +356,26 @@ var InfoList = function InfoList(_ref) {
}
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font16",
style: {
fontSize: "16rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center justify-between",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center",
style: {
gap: "10px",
gap: "10rem",
color: "#96FFFD"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-baoyangxinxiguanli"
className: "iconfont icon-zzxy-baoyangxinxiguanli"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u4FDD\u517B\u4FE1\u606F\u7BA1\u7406"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex items-center",
style: {
gap: "20px"
gap: "20rem"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: Indexmodules/* default */.Z.FormStyle,
@ -398,7 +389,7 @@ var InfoList = function InfoList(_ref) {
return;
}
getData(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, urlData), values), {}, {
time: (_values$time = values.time) === null || _values$time === void 0 ? void 0 : _values$time.toJSON()
time: (_values$time = values.time) === null || _values$time === void 0 ? void 0 : _values$time.format("YYYY-MM-DD")
}));
},
onFinish: function onFinish(allValue) {
@ -409,7 +400,7 @@ var InfoList = function InfoList(_ref) {
label: "\u4FDD\u517B\u65F6\u95F4",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
style: {
width: 240
width: "240rem"
},
className: Indexmodules/* default */.Z.DatePickerStyles,
allowClear: true,
@ -420,7 +411,7 @@ var InfoList = function InfoList(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0\u641C\u7D22",
style: {
width: 428
width: "428rem"
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo font14 current",
@ -445,7 +436,11 @@ var InfoList = function InfoList(_ref) {
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "materials-table-wrp mr0 mt20",
className: "materials-table-wrp",
style: {
marginTop: "20rem",
marginRight: "0rem"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
className: "materials-table",
loading: TableQueryLoading,
@ -618,16 +613,6 @@ function useCustomRequest(request, baseParams) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ 27948:
/*!********************************************!*\
!*** ./src/pages/Equipment/imgs/close.png ***!
\********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAYdJREFUSEu9lkErRFEUx38nRVmzsrCwkw/ASlZqUnYoRTZWMktsFBsslb0oJTslsRIbPoDsLBQr1pNROuaMe1/P8+7MM7rzlu+e9/+dc+7/3PuEBo+q9gOTQAkYAnpc+BtwD5wDpyLyFJKRvAUnvAnMAh2NkgA+gSNgPQ/0C6CqU8A+0N1EOLtcARZE5CS98AOgqivAFpBbWQGgAmsisuNjEyGX+fE/xL2mQWZ8JXWA6/lDC20JFWXtGrQ98YADYK5AC/4Scigi8+Kyfwy4xdyxB2wDoxn1a2AVWHJuy8LNXQMGWAZ2A6mNiMidqpqjzoAxF3cFTIhIRVWHgdvA92UDXNQCxgMBlmXJCXmIhXpxe2fDlq3Oy10a4Bnoa9DcdLb12cgAfVV5Ei8GqAKdTXYvgTjXZVsW+vzDAO+14eqKBKi2pUXRNzm6Te3Mb2XQbmqG2gAWgemcPfweNOeKeEdFWw47B7GLJs5xnRzkMS+cFCTelZmCmLPiXPppu+X8tvS69deivy1fZr7cPjXKXGkAAAAASUVORK5CYII=";
/***/ })
}]);

@ -12,7 +12,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less?modules */ 57054);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! umi */ 88271);
/* harmony import */ var _components_HeaderNav__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/HeaderNav */ 59827);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
/* harmony import */ var _utils_hooks_useResponsiveFontSize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/hooks/useResponsiveFontSize */ 9849);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
@ -24,6 +26,7 @@ var Engineering = function Engineering(_ref) {
globalSetting = _ref.globalSetting,
engineering = _ref.engineering,
dispatch = _ref.dispatch;
(0,_utils_hooks_useResponsiveFontSize__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)();
var location = (0,umi__WEBPACK_IMPORTED_MODULE_2__.useLocation)();
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
if (location.pathname == '/equipment') {
@ -51,59 +54,64 @@ var Engineering = function Engineering(_ref) {
type: type
};
}
var items = [getItem('设备信息管理', '/equipment/information', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("i", {
className: "iconfont icon-shebeixinxiguanli"
var items = [getItem('设备信息管理', '/equipment/information', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("i", {
className: "iconfont icon-zzxy-shebeixinxiguanli"
})),
// getItem('预约管理', '/equipment/bookingManage', <i className="iconfont icon-shebeibaofei-2"></i>),
getItem('设备监控', '/equipment/working', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("i", {
className: "iconfont icon-shebeijiankong"
})), getItem('设备类型管理', '/equipment/maintenance', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("i", {
className: "iconfont icon-shebeileixingguanli"
getItem('设备监控', '/equipment/working', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("i", {
className: "iconfont icon-zzxy-shebeijiankong"
})), getItem('设备类型管理', '/equipment/maintenance', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("i", {
className: "iconfont icon-zzxy-shebeileixingguanli"
})),
// getItem('设备标签管理', '/equipment/deviceLabel', <i className="iconfont icon-shebeibaofei-2"></i>),
getItem('保养信息管理', '/equipment/faultlibrary', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("i", {
className: "iconfont icon-baoyangxinxiguanli"
})), getItem('消息中心', '/equipment/messageCenterManage', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("i", {
className: "iconfont icon-xiaoxizhongxin"
})), getItem('操作日志', '/equipment/actionlog', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("i", {
className: "iconfont icon-caozuorizhi1"
getItem('保养信息管理', '/equipment/faultlibrary', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("i", {
className: "iconfont icon-zzxy-baoyangxinxiguanli"
})), getItem('消息中心', '/equipment/messageCenterManage', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("i", {
className: "iconfont icon-zzxy-xiaoxizhongxin"
})), getItem('操作日志', '/equipment/actionlog', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("i", {
className: "iconfont icon-zzxy-caozuorizhi1"
}))];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
className: "flex flex-col minH-0 minW-0",
style: {
background: "linear-gradient( 180deg, #0B2D73 0%, #5463C5 100%)",
height: "100vh",
position: "relative"
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_components_HeaderNav__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_components_HeaderNav__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
title: "\u8BBE\u5907\u7BA1\u7406"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", {
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("img", {
src: __webpack_require__(/*! @/pages/Equipment/imgs/equipment.png */ 84205),
width: 588,
width: "588rem",
style: {
position: "absolute",
top: "0",
width: "588rem",
right: "50%",
transform: "translatex(50%)"
}
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", {
className: "flex p30 flex-1 minW-0 minH-0",
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
className: "flex flex-1 minW-0 minH-0",
style: {
gap: "20px",
overflow: "hidden"
gap: "20rem",
overflow: "hidden",
padding: "30rem"
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", {
className: "p10 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.MenuStyles, " flex flex-col"),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
className: " ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.MenuStyles, " flex flex-col"),
style: {
padding: "10rem"
},
children: items === null || items === void 0 ? void 0 : items.map(function (item) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
className: "flex items-center justify-center current ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.MenuStylesItem, " ").concat(location.pathname.includes("".concat(item === null || item === void 0 ? void 0 : item.key)) ? _index_less_modules__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.MenuStylesItemActive : ''),
style: {
gap: "10px"
gap: "10rem"
},
onClick: function onClick(e) {
umi__WEBPACK_IMPORTED_MODULE_2__.history.push(item === null || item === void 0 ? void 0 : item.key);
},
children: [item === null || item === void 0 ? void 0 : item.icon, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", {
children: [item === null || item === void 0 ? void 0 : item.icon, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
className: "flex-1",
style: {
minWidth: 0
@ -112,9 +120,12 @@ var Engineering = function Engineering(_ref) {
})]
}, item === null || item === void 0 ? void 0 : item.key);
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", {
className: "flex-1 p20 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.ContentStyles),
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(umi__WEBPACK_IMPORTED_MODULE_2__.Outlet, {})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
className: "flex-1 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.ContentStyles),
style: {
padding: "20rem"
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(umi__WEBPACK_IMPORTED_MODULE_2__.Outlet, {})
})]
})]
});
@ -134,6 +145,40 @@ var Engineering = function Engineering(_ref) {
/***/ }),
/***/ 9849:
/*!***************************************************!*\
!*** ./src/utils/hooks/useResponsiveFontSize.tsx ***!
\***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
var useResponsiveFontSize = function useResponsiveFontSize() {
var designWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1920;
var minFontSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6;
var maxFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2;
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
var setRootFontSize = function setRootFontSize() {
var docEl = document.documentElement;
var clientWidth = docEl.clientWidth;
var fontSize = clientWidth / designWidth;
fontSize = fontSize > maxFontSize ? maxFontSize : fontSize < minFontSize ? minFontSize : fontSize;
docEl.style.fontSize = fontSize + 'px';
};
window.addEventListener('resize', setRootFontSize);
setRootFontSize(); // 初始化时设置字体大小
return function () {
// 清除font-size样式
document.documentElement.removeAttribute('style');
window.removeEventListener('resize', setRootFontSize);
};
}, [designWidth, minFontSize, maxFontSize]);
};
/* harmony default export */ __webpack_exports__.Z = (useResponsiveFontSize);
/***/ }),
/***/ 57054:
/*!******************************************************!*\
!*** ./src/pages/Equipment/Index/index.less?modules ***!

@ -2,11 +2,11 @@
!*** 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/Details/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.TimelineStyle___IccnT [class~="ant-timeline-item-label"] {
width: calc(20% - 12px) !important;
width: calc(20% - 12rem) !important;
}
.TimelineStyle___IccnT [class~="ant-timeline-item-tail"] {
-webkit-border-start: 2px dashed rgba(120, 255, 235, 0.4);
border-inline-start: 2px dashed rgba(120, 255, 235, 0.4);
-webkit-border-start: 2rem dashed rgba(120, 255, 235, 0.4);
border-inline-start: 2rem dashed rgba(120, 255, 235, 0.4);
}
.TimelineStyle___IccnT [class~="ant-timeline-item-head"],
.TimelineStyle___IccnT [class~="ant-timeline-item-tail"] {
@ -14,23 +14,23 @@
background: transparent !important;
}
.TimelineStyle___IccnT [class~="ant-timeline-item-content"] {
inset-inline-start: calc(23% - 4px) !important;
width: calc(77% - 12px) !important;
inset-inline-start: calc(23% - 4rem) !important;
width: calc(77% - 12rem) !important;
background: #122E7B;
border-radius: 6px;
padding: 12px;
border-radius: 6rem;
padding: 12rem;
}
.DotStyle___w0eJH {
width: 16px;
height: 16px;
width: 16rem;
height: 16rem;
border-radius: 50%;
background: #78FFEB;
position: relative;
}
.DotStyle___w0eJH::after {
content: '';
width: 24px;
height: 24px;
width: 24rem;
height: 24rem;
border-radius: 50%;
background: rgba(113, 255, 251, 0.3);
position: absolute;

@ -209,9 +209,9 @@ var DeviceStatusTypeDom = function DeviceStatusTypeDom(_ref) {
style: {
width: 140,
height: 140,
borderRadius: "6px",
border: "2px solid",
padding: "12px",
borderRadius: "6rem",
border: "2rem solid",
padding: "12rem",
position: "relative",
background: currentData === null || currentData === void 0 ? void 0 : currentData.background,
borderImage: currentData === null || currentData === void 0 ? void 0 : currentData.borderImage
@ -227,7 +227,7 @@ var DeviceStatusTypeDom = function DeviceStatusTypeDom(_ref) {
bottom: 0,
left: 0,
width: "100%",
height: "30px",
height: "30rem",
color: "#Fff",
background: currentData === null || currentData === void 0 ? void 0 : currentData.labelBg
},
@ -462,42 +462,56 @@ var Details = function Details(_ref2) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-col minW-0 minH-0 h-full w-full",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-white font12",
className: "c-white",
style: {
fontSize: "12rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fanhui1 mr10 current",
className: "iconfont icon-zzxy-fanhui1 current",
style: {
marginRight: "10rem"
},
onClick: function onClick() {
_umi_production_exports.history.push("/equipment/information");
}
}), "\u8BBE\u5907\u4FE1\u606F\u7BA1\u7406 / ", deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.name, deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.number]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "current",
onClick: function onClick() {
_umi_production_exports.history.push("/equipment/information");
},
children: "\u8BBE\u5907\u4FE1\u606F\u7BA1\u7406"
}), "/ ", deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.name, deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.number]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex mt20 flex-1 minW-0 minH-0",
className: "flex flex-1 minW-0 minH-0",
style: {
gap: "20px"
gap: "20rem",
marginTop: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-col flex-2 minW-0 minH-0",
style: {
gap: "20px"
gap: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "p20 flex items-center",
className: "flex items-center",
style: {
gap: "40px",
gap: "40rem",
background: "#1F3B89",
borderRadius: "6px"
borderRadius: "6rem",
padding: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DeviceStatusTypeDom, {
status: deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.status
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-col flex-1 minW-0 minH-0",
style: {
gap: "30px"
gap: "30rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font24",
style: {
color: "transparent",
background: "linear-gradient(180deg, #B1B4FF 0%, #8DDCFF 100%)",
fontSize: "24rem",
backgroundClip: "text",
WebkitBackgroundClip: "text",
WebkitTextFillColor: "transparent"
@ -506,13 +520,13 @@ var Details = function Details(_ref2) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex flex-wrap",
style: {
gap: "24px"
gap: "24rem"
},
children: dataInfo === null || dataInfo === void 0 ? void 0 : dataInfo.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex c-white",
style: {
gap: "20px",
gap: "20rem",
whiteSpace: "nowrap"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -523,7 +537,7 @@ var Details = function Details(_ref2) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "multi-llipsis1e",
style: {
width: 176
width: "176rem"
},
children: item === null || item === void 0 ? void 0 : item.value
})
@ -535,7 +549,7 @@ var Details = function Details(_ref2) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex",
style: {
gap: "20px"
gap: "20rem"
},
children: [{
label: "损坏次数",
@ -543,7 +557,7 @@ var Details = function Details(_ref2) {
img: __webpack_require__(/*! @/pages/Equipment/Information/InfoList/Details/imgs/damaged_num.png */ 18750),
style: {
color: "#EECF9C",
textShadow: "0px 2px 7px rgba(255,198,40,0.5), inset 0px 1px 3px rgba(255,255,255,0.5)"
textShadow: "0rem 2rem 7rem rgba(255,198,40,0.5), inset 0rem 1rem 3rem rgba(255,255,255,0.5)"
}
}, {
label: "保养次数",
@ -551,7 +565,7 @@ var Details = function Details(_ref2) {
img: __webpack_require__(/*! @/pages/Equipment/Information/InfoList/Details/imgs/maintenance_num.png */ 7233),
style: {
color: "#B972E1",
textShadow: "0px 2px 7px rgba(207,40,255,0.5), inset 0px 1px 3px rgba(255,255,255,0.5)"
textShadow: "0rem 2rem 7rem rgba(207,40,255,0.5), inset 0rem 1rem 3rem rgba(255,255,255,0.5)"
}
}, {
label: "使用剩余时间",
@ -559,16 +573,16 @@ var Details = function Details(_ref2) {
img: __webpack_require__(/*! @/pages/Equipment/Information/InfoList/Details/imgs/date.png */ 18410),
style: {
color: "#B0E1FF",
textShadow: "0px 2px 7px rgba(40,222,255,0.5), inset 0px 1px 3px rgba(255,255,255,0.5)"
textShadow: "0rem 2rem 7rem rgba(40,222,255,0.5), inset 0rem 1rem 3rem rgba(255,255,255,0.5)"
}
}].map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-1 flex minW-0 minH-0",
style: {
background: "#1F3B89",
borderRadius: "6px",
gap: "20px",
padding: "27px 40px"
borderRadius: "6rem",
gap: "20rem",
padding: "27rem 40rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: item === null || item === void 0 ? void 0 : item.img,
@ -590,7 +604,7 @@ var Details = function Details(_ref2) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
className: "flex-1 minW-0 minH-0",
style: {
borderRadius: "6px"
borderRadius: "6rem"
},
option: EchartsOption
})]
@ -598,11 +612,14 @@ var Details = function Details(_ref2) {
className: "flex-1 minW-0 minH-0 p20 flex flex-col",
style: {
background: "#1F3B89",
borderRadius: "6px",
gap: "20px"
borderRadius: "6rem",
gap: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font16 c-white",
className: "c-white",
style: {
fontSize: "16rem"
},
children: "\u751F\u547D\u5468\u671F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-1 minW-0 minH-0 pt10",

@ -71,8 +71,6 @@ var date_picker = __webpack_require__(57421);
var Text = __webpack_require__(76250);
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
var useCustomRequest = __webpack_require__(13158);
// EXTERNAL MODULE: ./src/pages/Equipment/Index/index.less?modules
var Indexmodules = __webpack_require__(57054);
// 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);
@ -94,7 +92,6 @@ var jsx_runtime = __webpack_require__(37712);
var AddOrEidtDevicesModal = function AddOrEidtDevicesModal(_ref) {
var _DeviceTypeData$devic2, _ClassroomRoomsData$d;
var ModalProps = _ref.ModalProps,
@ -153,146 +150,123 @@ var AddOrEidtDevicesModal = function AddOrEidtDevicesModal(_ref) {
centered: true,
destroyOnClose: true,
title: "".concat(DataProps !== null && DataProps !== void 0 && DataProps.isEdit ? '编辑' : '添加', "\u8BBE\u5907\u4FE1\u606F"),
width: 700
width: "700rem"
}, ModalProps), {}, {
className: "".concat(Indexmodules/* default */.Z.ModalStyles, " ").concat(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.className),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/pages/Equipment/imgs/close.png */ 27948),
width: 24,
height: 24
className: "".concat(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.className, " modalXazy"),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
})
})), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
borderRadius: "8px",
background: "rgba(255,255,255,0.8)",
padding: "20px 30px"
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, objectSpread2_default()({
size: "large",
labelCol: {
span: 4
},
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)(es_form/* default */.Z.Item, {
name: "purchase_time",
label: "\u91C7\u8D2D\u65F6\u95F4",
rules: [{
required: true,
message: "请选择采购时间"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
className: "w-full",
placeholder: "请选择采购时间",
format: "YYYY-MM-DD"
})
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: "\u5F52\u5C5E\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)(es_form/* default */.Z.Item, {
name: "purchase_time",
label: "\u91C7\u8D2D\u65F6\u95F4",
rules: [{
required: true,
message: "请选择采购时间"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
className: "w-full",
placeholder: "请选择采购时间",
format: "YYYY-MM-DD"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "file",
label: "\u4F7F\u7528\u5BFF\u547D",
rules: [{
required: true,
message: "请输入可用月份"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u53EF\u7528\u6708\u4EFD",
suffix: "月"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "purchase_money",
label: "\u91C7\u8D2D\u6210\u672C",
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: "请选择设备状态",
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地址"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text/* default */.Z, {
name: "file",
rules: [{
required: true,
message: "请输入可用月份"
}],
label: "\u4F7F\u7528\u5BFF\u547D"
name: "account",
label: "\u8D26\u53F7",
placeholder: "请输入账号"
}), /*#__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: "元"
name: "password",
label: "\u5BC6\u7801",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Password, {
placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801"
})
}), /*#__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: ./src/pages/Equipment/Index/index.less?modules
var Indexmodules = __webpack_require__(57054);
;// CONCATENATED MODULE: ./src/pages/Equipment/Information/InfoList/index.tsx
@ -453,7 +427,7 @@ var InfoList = function InfoList(_ref) {
dataIndex: 'file',
key: 'file'
}, {
title: '所属实验室分室',
title: '所属分室',
dataIndex: 'classroom_name',
key: 'classroom_name'
}, {
@ -476,7 +450,7 @@ var InfoList = function InfoList(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
gap: "10px"
gap: "10rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
@ -543,44 +517,53 @@ var InfoList = function InfoList(_ref) {
color: "#FF2828"
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font16",
style: {
fontSize: "16rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center",
style: {
gap: "10px",
gap: "10rem",
color: "#96FFFD"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeixinxiguanli"
className: "iconfont icon-zzxy-shebeixinxiguanli"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u8BBE\u5907\u4FE1\u606F\u7BA1\u7406"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex mt20 mb20",
className: "flex",
style: {
gap: "20px"
gap: "20rem",
margin: "20rem 0"
},
children: DevicesList === null || DevicesList === void 0 ? void 0 : DevicesList.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-1 items-center",
style: {
padding: "27px 40px",
padding: "27rem 40rem",
background: "#1F3B89",
borderRadius: "4px",
gap: "20px"
borderRadius: "4rem",
gap: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
width: "74rem",
height: "66rem"
},
width: 74,
height: 66,
src: item === null || item === void 0 ? void 0 : item.img
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-col",
style: {
gap: "10px"
gap: "10rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "blod",
style: {
color: item === null || item === void 0 ? void 0 : item.color
color: item === null || item === void 0 ? void 0 : item.color,
fontSize: "24rem"
},
children: item === null || item === void 0 ? void 0 : item.value
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -670,7 +653,7 @@ var InfoList = function InfoList(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
gap: "10px"
gap: "10rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
@ -699,7 +682,11 @@ var InfoList = function InfoList(_ref) {
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "materials-table-wrp mr0 mt20",
className: "materials-table-wrp",
style: {
marginTop: "20rem",
marginRight: "0"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
className: "materials-table",
rowKey: "id",
@ -769,12 +756,10 @@ var InfoList = function InfoList(_ref) {
}()
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
className: Indexmodules/* default */.Z.ModalStyles,
width: 773,
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/pages/Equipment/imgs/close.png */ 27948),
width: 24,
height: 24
className: "modalXazy",
width: "773rem",
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
}),
title: "更改状态",
open: changeOpen,
@ -787,70 +772,65 @@ var InfoList = function InfoList(_ref) {
setChangeOpen(false);
changeForm.resetFields();
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
borderRadius: "8px",
background: "rgba(255,255,255,0.8)",
padding: "20px 30px"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: changeForm,
layout: "vertical",
onFinish: ( /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(allValue) {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return PostDevicesChangeStatus(objectSpread2_default()({}, allValue));
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('修改成功');
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
page: 1
}));
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function (_x2) {
return _ref2.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: 8
})
})]
})
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: changeForm,
layout: "vertical",
onFinish: ( /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(allValue) {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return PostDevicesChangeStatus(objectSpread2_default()({}, allValue));
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('修改成功');
setChangeOpen(false);
changeForm.resetFields();
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
page: 1
}));
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function (_x2) {
return _ref2.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: 8
})
})]
})
})]
});
@ -2171,16 +2151,6 @@ function useCustomRequest(request, baseParams) {
/***/ }),
/***/ 27948:
/*!********************************************!*\
!*** ./src/pages/Equipment/imgs/close.png ***!
\********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAYdJREFUSEu9lkErRFEUx38nRVmzsrCwkw/ASlZqUnYoRTZWMktsFBsslb0oJTslsRIbPoDsLBQr1pNROuaMe1/P8+7MM7rzlu+e9/+dc+7/3PuEBo+q9gOTQAkYAnpc+BtwD5wDpyLyFJKRvAUnvAnMAh2NkgA+gSNgPQ/0C6CqU8A+0N1EOLtcARZE5CS98AOgqivAFpBbWQGgAmsisuNjEyGX+fE/xL2mQWZ8JXWA6/lDC20JFWXtGrQ98YADYK5AC/4Scigi8+Kyfwy4xdyxB2wDoxn1a2AVWHJuy8LNXQMGWAZ2A6mNiMidqpqjzoAxF3cFTIhIRVWHgdvA92UDXNQCxgMBlmXJCXmIhXpxe2fDlq3Oy10a4Bnoa9DcdLb12cgAfVV5Ei8GqAKdTXYvgTjXZVsW+vzDAO+14eqKBKi2pUXRNzm6Te3Mb2XQbmqG2gAWgemcPfweNOeKeEdFWw47B7GLJs5xnRzkMS+cFCTelZmCmLPiXPppu+X8tvS69deivy1fZr7cPjXKXGkAAAAASUVORK5CYII=";
/***/ }),
/***/ 17862:
/*!**************************************************!*\
!*** ./src/pages/Equipment/imgs/damaged_num.png ***!

@ -50,8 +50,6 @@ var onlinedevice = __webpack_require__(82135);
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js
var es_radio = __webpack_require__(69140);
// EXTERNAL MODULE: ./src/pages/Equipment/Index/index.less?modules
var Indexmodules = __webpack_require__(57054);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Equipment/Maintenance/Dialog/index.tsx
@ -62,7 +60,6 @@ var jsx_runtime = __webpack_require__(37712);
var TextArea = input/* default */.Z.TextArea;
var DeviceTypeDialog = function DeviceTypeDialog(_ref) {
var ModalProps = _ref.ModalProps,
@ -87,80 +84,73 @@ var DeviceTypeDialog = function DeviceTypeDialog(_ref) {
centered: true,
destroyOnClose: true,
title: "".concat(DataProps !== null && DataProps !== void 0 && DataProps.isEdit ? '编辑' : '新增', "\u8BBE\u5907\u7C7B\u578B"),
width: 700
width: "700rem"
}, ModalProps), {}, {
className: "".concat(Indexmodules/* default */.Z.ModalStyles, " ").concat((ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.className) || ""),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/pages/Equipment/imgs/close.png */ 27948),
width: 24,
height: 24
className: "".concat(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.className, " modalXazy"),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
})
})), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
borderRadius: "8px",
background: "rgba(255,255,255,0.8)",
padding: "20px 30px"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, objectSpread2_default()({
size: "large",
labelAlign: "right",
layout: "vertical",
colon: false
}, FormProps)), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "id",
hidden: true
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "name",
label: "\u7C7B\u578B\u540D\u79F0",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "number",
label: "\u7C7B\u578B\u7F16\u53F7",
rules: [{
required: true,
whitespace: true,
message: '不能为空'
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, objectSpread2_default()({
size: "large",
labelAlign: "right",
layout: "vertical",
colon: false
}, FormProps)), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "id",
hidden: true
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "name",
label: "\u7C7B\u578B\u540D\u79F0",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "number",
label: "\u7C7B\u578B\u7F16\u53F7",
rules: [{
required: true,
whitespace: true,
message: '不能为空'
}, {
required: true,
pattern: /^\d{3}$/,
message: '必须是三位数字'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: DataProps === null || DataProps === void 0 ? void 0 : DataProps.isEdit
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "need_monitor",
label: "\u662F\u5426\u9700\u8981\u76D1\u63A7\u6027\u80FD",
rules: [{
required: true,
message: '请选择是否需要监控性能'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
options: [{
value: false,
label: '否'
}, {
required: true,
pattern: /^\d{3}$/,
message: '必须是三位数字'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: DataProps === null || DataProps === void 0 ? void 0 : DataProps.isEdit
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "need_monitor",
label: "\u662F\u5426\u9700\u8981\u76D1\u63A7\u6027\u80FD",
rules: [{
required: true,
message: '请选择是否需要监控性能'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
options: [{
value: false,
label: '否'
}, {
value: true,
label: '是'
}]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "description",
label: "\u5907\u6CE8",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
rows: 4
})
})]
}))
})
value: true,
label: '是'
}]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "description",
label: "\u5907\u6CE8",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
rows: 4
})
})]
}))
}));
};
/* harmony default export */ var Dialog = (DeviceTypeDialog);
// EXTERNAL MODULE: ./src/pages/Equipment/Index/index.less?modules
var Indexmodules = __webpack_require__(57054);
// EXTERNAL MODULE: ./src/styles/table_botton.less
var table_botton = __webpack_require__(55130);
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
@ -221,7 +211,7 @@ var DeviceTypePage = function DeviceTypePage(_ref) {
};
var columns = [{
title: '类型编号',
width: 200,
width: "200rem",
ellipsis: true,
key: 'number',
dataIndex: 'number'
@ -232,18 +222,23 @@ var DeviceTypePage = function DeviceTypePage(_ref) {
dataIndex: 'name'
}, {
title: '关联设备数',
width: 100,
width: "100rem",
key: 'associated_device_count',
dataIndex: 'associated_device_count'
}, {
title: '是否需要监控性能',
key: 'need_monitor',
dataIndex: 'need_monitor',
width: 200,
width: "200rem",
align: 'center',
render: function render(text) {
return text ? '是' : '否';
}
}, {
title: '添加人',
key: 'user_name',
ellipsis: true,
dataIndex: 'user_name'
}, {
title: '备注',
key: 'description',
@ -259,12 +254,12 @@ var DeviceTypePage = function DeviceTypePage(_ref) {
}, {
title: '操作',
key: 'cz',
width: 80,
width: "80rem",
render: function render(_, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: "#165dff",
marginRight: '10px',
marginRight: '10rem',
cursor: "pointer"
},
onClick: function onClick() {
@ -279,28 +274,33 @@ var DeviceTypePage = function DeviceTypePage(_ref) {
}
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font16",
style: {
fontSize: "16rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex justify-between items-center mb20",
className: "flex justify-between items-center",
style: {
marginBottom: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center",
style: {
gap: "10px",
gap: "10rem",
color: "#96FFFD"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shebeileixingguanli"
className: "iconfont icon-zzxy-shebeileixingguanli"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u8BBE\u5907\u7C7B\u578B\u7BA1\u7406"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center ".concat(Indexmodules/* default */.Z.InputStyles),
style: {
gap: "20px"
gap: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
style: {
width: 428
width: "428rem"
},
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u60A8\u60F3\u641C\u7D22\u7684\u5185\u5BB9",
@ -310,7 +310,10 @@ var DeviceTypePage = function DeviceTypePage(_ref) {
}));
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo font14 ",
className: "iconfont icon-sousuo ",
style: {
fontSize: "14rem"
},
onClick: function onClick() {
getData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
page: 1
@ -333,7 +336,11 @@ var DeviceTypePage = function DeviceTypePage(_ref) {
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "materials-table-wrp mr0 mt20",
className: "materials-table-wrp ",
style: {
marginTop: "20rem",
marginRight: "0rem"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
className: "materials-table",
loading: TableQueryLoading,
@ -508,16 +515,6 @@ function useCustomRequest(request, baseParams) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ 27948:
/*!********************************************!*\
!*** ./src/pages/Equipment/imgs/close.png ***!
\********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAYdJREFUSEu9lkErRFEUx38nRVmzsrCwkw/ASlZqUnYoRTZWMktsFBsslb0oJTslsRIbPoDsLBQr1pNROuaMe1/P8+7MM7rzlu+e9/+dc+7/3PuEBo+q9gOTQAkYAnpc+BtwD5wDpyLyFJKRvAUnvAnMAh2NkgA+gSNgPQ/0C6CqU8A+0N1EOLtcARZE5CS98AOgqivAFpBbWQGgAmsisuNjEyGX+fE/xL2mQWZ8JXWA6/lDC20JFWXtGrQ98YADYK5AC/4Scigi8+Kyfwy4xdyxB2wDoxn1a2AVWHJuy8LNXQMGWAZ2A6mNiMidqpqjzoAxF3cFTIhIRVWHgdvA92UDXNQCxgMBlmXJCXmIhXpxe2fDlq3Oy10a4Bnoa9DcdLb12cgAfVV5Ei8GqAKdTXYvgTjXZVsW+vzDAO+14eqKBKi2pUXRNzm6Te3Mb2XQbmqG2gAWgemcPfweNOeKeEdFWw47B7GLJs5xnRzkMS+cFCTelZmCmLPiXPppu+X8tvS69deivy1fZr7cPjXKXGkAAAAASUVORK5CYII=";
/***/ })
}]);

@ -348,10 +348,10 @@ var DeviceInfoPage = function DeviceInfoPage(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center",
style: {
gap: "10px"
gap: "10rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaoxizhongxin"
className: "iconfont icon-zzxy-xiaoxizhongxin"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6D88\u606F\u4E2D\u5FC3"
})]
@ -370,28 +370,38 @@ var DeviceInfoPage = function DeviceInfoPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "materials-table-wrp mr0 mt20 flex flex-col",
style: {
gap: "20px"
gap: "20rem"
},
children: MessageQueryData === null || MessageQueryData === void 0 || (_MessageQueryData$dat = MessageQueryData.data) === null || _MessageQueryData$dat === void 0 ? void 0 : _MessageQueryData$dat.map(function (item, i) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "p30 pl40 pr40 flex justify-between ".concat(MessageCenterManagemodules.messageItem),
className: "flex justify-between ".concat(MessageCenterManagemodules.messageItem),
style: {
padding: "30rem 40rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex",
style: {
gap: "20px"
gap: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: (item === null || item === void 0 ? void 0 : item.msg_type) == 2 ? __webpack_require__(/*! ../../../assets/img/warning_message.png */ 73551) : __webpack_require__(/*! ../../../assets/img/incomplete_message.png */ 66876),
width: 42,
height: 42
height: 42,
style: {
width: "42rem",
height: "42rem"
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-col",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-grey-333 font16",
className: "c-grey-333",
style: {
fontSize: "16rem"
},
children: [item === null || item === void 0 ? void 0 : item.send_user_name, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10",
style: {
color: "#3B6A71"
color: "#3B6A71",
marginLeft: "5rem"
},
children: item === null || item === void 0 ? void 0 : item.time
})]
@ -405,7 +415,7 @@ var DeviceInfoPage = function DeviceInfoPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex items-center",
style: {
gap: "20px"
gap: "20rem"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
danger: true,

@ -501,6 +501,7 @@
height: 3vh !important;
font-size: 1.2vh !important;
line-height: 3vh !important;
color: #6AD0FD !important;
}
.sb_xxzs___rNKFo [class~='ant-select-open'] [class~='ant-select-selection-item'] {
color: #6AD0FD !important;

@ -710,7 +710,7 @@ var IndexPage = function IndexPage(_ref) {
value: DeviceStatisticsData === null || DeviceStatisticsData === void 0 || (_DeviceStatisticsData6 = DeviceStatisticsData.data) === null || _DeviceStatisticsData6 === void 0 || (_DeviceStatisticsData6 = _DeviceStatisticsData6.device_statistics) === null || _DeviceStatisticsData6 === void 0 ? void 0 : _DeviceStatisticsData6.maintenance_num,
label: "保养数",
img: device_zongshu_namespaceObject,
color: "#01B5FF"
color: "#E100FF"
}, {
value: DeviceStatisticsData === null || DeviceStatisticsData === void 0 || (_DeviceStatisticsData7 = DeviceStatisticsData.data) === null || _DeviceStatisticsData7 === void 0 || (_DeviceStatisticsData7 = _DeviceStatisticsData7.device_statistics) === null || _DeviceStatisticsData7 === void 0 ? void 0 : _DeviceStatisticsData7.scrapped_num,
label: "报废数",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save