You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Equipment__Maintenance__...

1336 lines
67 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88093],{
/***/ 60186:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_InboxOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(5891);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/InboxOutlined.js
// This icon file is generated automatically.
var InboxOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
/* harmony default export */ var asn_InboxOutlined = (InboxOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/InboxOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var InboxOutlined_InboxOutlined = function InboxOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_InboxOutlined
}));
};
/**![inbox](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NS4yIDQ0Ni4zbC0uMi0uOC0xMTIuMi0yODUuMWMtNS0xNi4xLTE5LjktMjcuMi0zNi44LTI3LjJIMjgxLjJjLTE3IDAtMzIuMSAxMS4zLTM2LjkgMjcuNkwxMzkuNCA0NDNsLS4zLjctLjIuOGMtMS4zIDQuOS0xLjcgOS45LTEgMTQuOC0uMSAxLjYtLjIgMy4yLS4yIDQuOFY4MzBhNjAuOSA2MC45IDAgMDA2MC44IDYwLjhoNjI3LjJjMzMuNSAwIDYwLjgtMjcuMyA2MC45LTYwLjhWNDY0LjFjMC0xLjMgMC0yLjYtLjEtMy43LjQtNC45IDAtOS42LTEuMy0xNC4xem0tMjk1LjgtNDNsLS4zIDE1LjdjLS44IDQ0LjktMzEuOCA3NS4xLTc3LjEgNzUuMS0yMi4xIDAtNDEuMS03LjEtNTQuOC0yMC42UzQzNiA0NDEuMiA0MzUuNiA0MTlsLS4zLTE1LjdIMjI5LjVMMzA5IDIxMGgzOTkuMmw4MS43IDE5My4zSDU4OS40em0tMzc1IDc2LjhoMTU3LjNjMjQuMyA1Ny4xIDc2IDkwLjggMTQwLjQgOTAuOCAzMy43IDAgNjUtOS40IDkwLjMtMjcuMiAyMi4yLTE1LjYgMzkuNS0zNy40IDUwLjctNjMuNmgxNTYuNVY4MTRIMjE0LjRWNDgwLjF6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(InboxOutlined_InboxOutlined);
if (false) {}
/* harmony default export */ var icons_InboxOutlined = (RefIcon);
/***/ }),
/***/ 25677:
/*!***************************************************************!*\
!*** ./src/pages/Equipment/Maintenance/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 */ Maintenance; }
});
// 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/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/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(8785);
;// CONCATENATED MODULE: ./src/pages/Equipment/Maintenance/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Maintenancemodules = ({"header_div":"header_div___trzMW","header_title":"header_title___RyK0X","search":"search___lF9UC","searchIcon":"searchIcon___YY41x","search_params":"search_params___eBV0k","clear_Data":"clear_Data___Wcmtq","content_list":"content_list___AerAg","content":"content___o_c0H","content_img":"content_img___WYMwy","content_name":"content_name___xC0qQ","content_title":"content_title___pbhJR","content_params":"content_params___kppTt","redRow":"redRow___rM29n","infoItem":"infoItem___PQAsa","infoItem_value":"infoItem_value___wWkeC","file_list":"file_list___vrG3f","file_list_title":"file_list_title___kjuva","file_list_size":"file_list_size___gMnGM","modal_info":"modal_info___KplEq"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/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 + 5 modules
var input = __webpack_require__(73782);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(61998);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(27092);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(23981);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(94334);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(16644);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_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/date-picker/index.js + 66 modules
var date_picker = __webpack_require__(57930);
;// CONCATENATED MODULE: ./src/pages/Equipment/Maintenance/EditModal/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var EditModalmodules = ({"my_modal":"my_modal___MGso3"});
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(30010);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(41930);
// EXTERNAL MODULE: ./src/service/equipment.ts
var equipment = __webpack_require__(10188);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Equipment/Maintenance/EditModal/index.tsx
var EditModal = function EditModal(_ref) {
var openEditModal = _ref.openEditModal,
_ref$centerId = _ref.centerId,
centerId = _ref$centerId === void 0 ? null : _ref$centerId,
_onCancel = _ref.onCancel,
user = _ref.user;
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
ruleForm = _Form$useForm2[0];
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
formValue = _useState2[0],
setFormValue = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
selectData = _useState4[0],
setSelectData = _useState4[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (openEditModal) {
//设备下拉
(0,equipment/* devices_query */.RS)({
page: 1,
limit: 10000,
use_status: '',
status: '',
keyword: '',
classroom_id: ''
}).then(function (res) {
var _res$data;
setSelectData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
});
if (centerId) {
(0,equipment/* repair_records_info */.Ae)(centerId).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
var _res$data2, _res$data3, _res$data4, _res$data5, _res$data6;
var formData = {
device_id: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 || (_res$data2 = _res$data2.device) === null || _res$data2 === void 0 ? void 0 : _res$data2.id,
user_name: res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.user_name,
date: res !== null && res !== void 0 && (_res$data4 = res.data) !== null && _res$data4 !== void 0 && _res$data4.date ? dayjs_min_default()(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.date) : '',
description: res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.description,
attachment_ids: (0,MultiUpload/* coverToFileList */.z)(res === null || res === void 0 ? void 0 : res.data.attachments)
};
ruleForm.setFieldsValue(formData);
setFormValue(objectSpread2_default()({}, formData));
}
});
} else {
var _user$userInfo;
var formData = {
device_id: '',
user_name: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.username,
date: dayjs_min_default()(),
description: '',
attachment_ids: ''
};
ruleForm.setFieldsValue(formData);
setFormValue(objectSpread2_default()({}, formData));
}
}
}, [openEditModal]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: EditModalmodules.my_modal,
open: openEditModal,
title: "".concat(centerId ? '编辑' : '新增', "\u7EF4\u4FEE\u8BB0\u5F55"),
width: "790px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _ruleForm$getFieldVal;
var formInfo;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return ruleForm.validateFields();
case 2:
formInfo = {
device_id: ruleForm.getFieldValue('device_id'),
user_name: ruleForm.getFieldValue('user_name'),
date: ruleForm.getFieldValue('date'),
description: ruleForm.getFieldValue('description'),
attachment_ids: ruleForm.getFieldValue('attachment_ids') ? (_ruleForm$getFieldVal = ruleForm.getFieldValue('attachment_ids')) === null || _ruleForm$getFieldVal === void 0 ? void 0 : _ruleForm$getFieldVal.map(function (item) {
var _item$response;
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
}) : []
};
if (centerId) {
(0,equipment/* repair_records_update */.NE)({
id: centerId,
repair_record: formInfo
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('编辑成功');
_onCancel();
}
});
} else {
(0,equipment/* repair_records_create */.J_)({
repair_record: formInfo
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('新增成功');
_onCancel();
}
});
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
})),
onCancel: function onCancel() {
_onCancel();
ruleForm === null || ruleForm === void 0 || ruleForm.resetFields();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: EditModalmodules.formWrap,
form: ruleForm,
style: {
marginTop: '20px'
},
onValuesChange: function onValuesChange() {
setFormValue(objectSpread2_default()({}, ruleForm.getFieldsValue()));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BBE\u5907\u540D\u79F0",
name: "device_id",
rules: [{
required: true,
message: '请选择设备名称'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
placeholder: "\u8BF7\u9009\u62E9\u8BBE\u5907\u540D\u79F0",
size: "large",
showSearch: true,
filterOption: function filterOption(inputValue, option) {
var _option$label;
return (option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toUpperCase().indexOf(inputValue.toUpperCase())) !== -1;
},
children: selectData === null || selectData === void 0 ? void 0 : selectData.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
label: (item === null || item === void 0 ? void 0 : item.name) + (item === null || item === void 0 ? void 0 : item.id),
children: item === null || item === void 0 ? void 0 : item.name
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u6545\u969C\u63CF\u8FF0",
name: "description",
rules: [{
required: true,
message: "必填项"
}, {
max: 200,
message: '故障描述最大限制200个字符'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
height: 235,
defaultValue: (formValue === null || formValue === void 0 ? void 0 : formValue.description) || '',
watch: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: " ",
name: "attachment_ids",
style: {
marginTop: '-12px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u7EF4\u4FEE\u4EBA\u5458",
name: "user_name",
rules: [{
required: true,
message: '请输入维修人员'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u7EF4\u4FEE\u4EBA\u5458",
size: "large",
showCount: true,
maxLength: 60
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u7EF4\u4FEE\u65F6\u95F4",
name: "date",
rules: [{
required: true,
message: '请选择维修时间'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
size: "large",
style: {
width: '100%'
},
placeholder: "\u8BF7\u9009\u62E9\u7EF4\u4FEE\u65F6\u95F4",
format: "YYYY-MM-DD HH:mm",
showTime: {
format: 'HH:mm'
}
})
})]
})
});
};
/* harmony default export */ var Maintenance_EditModal = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user;
return {
user: user
};
})(EditModal));
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(42930);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = __webpack_require__(99058);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(1680);
;// CONCATENATED MODULE: ./src/pages/Equipment/Maintenance/index.tsx
var Navigation = function Navigation(_ref) {
var _viewData$device, _viewData$device2, _viewData$device3, _viewData$device4, _viewData$device5, _viewData$device6, _viewData$device7, _viewData$device8, _viewData$device9, _viewData$device10, _viewData$device11, _viewData$device12, _viewData$attachments;
var loading = _ref.loading;
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
keyword = _useState2[0],
setkeyword = _useState2[1];
//状态
var _useState3 = (0,_react_17_0_2_react.useState)(''),
_useState4 = slicedToArray_default()(_useState3, 2),
status = _useState4[0],
setStatus = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
category = _useState6[0],
setCategory = _useState6[1];
//实验室
var _useState7 = (0,_react_17_0_2_react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
laboratorys = _useState8[0],
setLaboratorys = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(''),
_useState10 = slicedToArray_default()(_useState9, 2),
laboratorySq = _useState10[0],
setLaboratorySq = _useState10[1];
//分页
var _useState11 = (0,_react_17_0_2_react.useState)(0),
_useState12 = slicedToArray_default()(_useState11, 2),
total = _useState12[0],
setTotal = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(1),
_useState14 = slicedToArray_default()(_useState13, 2),
page = _useState14[0],
setPage = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(10),
_useState16 = slicedToArray_default()(_useState15, 2),
limit = _useState16[0],
setLimit = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)([]),
_useState18 = slicedToArray_default()(_useState17, 2),
tableData = _useState18[0],
setTableData = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(false),
_useState20 = slicedToArray_default()(_useState19, 2),
editVisible = _useState20[0],
setEditVisible = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(''),
_useState22 = slicedToArray_default()(_useState21, 2),
centerId = _useState22[0],
setCenterId = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(false),
_useState24 = slicedToArray_default()(_useState23, 2),
viewVisible = _useState24[0],
setViewVisible = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)({}),
_useState26 = slicedToArray_default()(_useState25, 2),
viewData = _useState26[0],
setViewData = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)({
content: "",
type: ""
}),
_useState28 = slicedToArray_default()(_useState27, 2),
data = _useState28[0],
setData = _useState28[1];
var columns = [{
title: '设备名称',
ellipsis: true,
render: function render(text, record) {
var _record$device, _record$device2;
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: record === null || record === void 0 || (_record$device = record.device) === null || _record$device === void 0 ? void 0 : _record$device.name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (record === null || record === void 0 || (_record$device2 = record.device) === null || _record$device2 === void 0 ? void 0 : _record$device2.name) || '--'
})
});
}
}, {
title: '设备类型',
ellipsis: true,
render: function render(text, record) {
var _record$device3, _record$device4;
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: (record === null || record === void 0 || (_record$device3 = record.device) === null || _record$device3 === void 0 ? void 0 : _record$device3.category) == 'virtual' ? '虚拟机' : '物理机',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (record === null || record === void 0 || (_record$device4 = record.device) === null || _record$device4 === void 0 ? void 0 : _record$device4.category) == 'virtual' ? '虚拟机' : '物理机'
})
});
}
}, {
title: '所属实验室',
ellipsis: true,
render: function render(text, record) {
var _record$device5, _record$device6;
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: record === null || record === void 0 || (_record$device5 = record.device) === null || _record$device5 === void 0 ? void 0 : _record$device5.classroom_title,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (record === null || record === void 0 || (_record$device6 = record.device) === null || _record$device6 === void 0 ? void 0 : _record$device6.classroom_title) || '--'
})
});
}
}, {
title: '所属房间',
ellipsis: true,
render: function render(text, record) {
var _record$device7, _record$device8;
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: record === null || record === void 0 || (_record$device7 = record.device) === null || _record$device7 === void 0 ? void 0 : _record$device7.classroom_room_title,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (record === null || record === void 0 || (_record$device8 = record.device) === null || _record$device8 === void 0 ? void 0 : _record$device8.classroom_room_title) || '--'
})
});
}
}, {
title: '故障描述',
dataIndex: 'description',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '维修人员',
dataIndex: 'user_name',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '维修日期',
dataIndex: 'date',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text ? dayjs_min_default()(text).format('YYYY-MM-DD') : '--',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? dayjs_min_default()(text).format('YYYY-MM-DD') : '--'
})
});
}
}, {
title: '操作',
ellipsis: true,
width: 100,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
},
onClick: function onClick() {
(0,equipment/* repair_records_info */.Ae)(record === null || record === void 0 ? void 0 : record.id).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
setViewData(res === null || res === void 0 ? void 0 : res.data);
setViewVisible(true);
}
});
},
children: "\u8BE6\u60C5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer",
marginLeft: '20px'
},
onClick: function onClick() {
setCenterId(record.id);
setEditVisible(true);
},
children: "\u7F16\u8F91"
})]
});
}
}];
(0,_react_17_0_2_react.useEffect)(function () {
//实验室
(0,laboratory/* user_substance_classrooms */.y8)({
type: 1
}).then(function (res) {
var _res$data;
setLaboratorys([{
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,_react_17_0_2_react.useEffect)(function () {
//列表查询
getData(false);
}, [page, limit]);
(0,_react_17_0_2_react.useEffect)(function () {
//列表查询
getData(true);
}, [laboratorySq, status, category, keyword]);
var getData = function getData(flag) {
if (flag) {
setPage(1);
}
(0,equipment/* repair_records_query */.LP)({
page: page,
limit: limit,
category: category,
keyword: keyword,
classroom_id: laboratorySq
}).then(function (res) {
var _res$data2, _res$data3;
setTableData(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list);
setTotal(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.count);
});
};
var onShowSizeChange = function onShowSizeChange(page, size) {
setPage(page);
setLimit(size);
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.header_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.header_title,
children: "\u8BBE\u5907\u7EF4\u4FEE\u8BB0\u5F55"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.search_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 120
},
defaultValue: laboratorySq,
value: laboratorySq,
onChange: function onChange(e) {
setLaboratorySq(e);
},
children: laboratorys === null || laboratorys === void 0 ? void 0 : laboratorys.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u7C7B\u578B",
style: {
margin: '0 20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
style: {
width: 120
},
defaultValue: category,
value: category,
onChange: function onChange(e) {
setCategory(e);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "",
children: "\u5168\u90E8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "2",
children: "\u865A\u62DF\u673A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "1",
children: "\u7269\u7406\u673A"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0\u641C\u7D22",
size: "large",
className: Maintenancemodules.search,
value: keyword,
onChange: function onChange(e) {
setkeyword(e.target.value);
},
onSearch: function onSearch(value) {
setkeyword(value);
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9 font14 ".concat(Maintenancemodules.searchIcon),
onClick: function onClick() {
setkeyword(keyword);
getData(true);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.clear_Data,
style: {
width: '116px',
marginLeft: '20px'
},
onClick: function onClick() {
setCenterId('');
setEditVisible(true);
},
children: "\u65B0\u589E\u7EF4\u4FEE\u8BB0\u5F55"
})]
})]
}), (tableData === null || tableData === void 0 ? void 0 : tableData.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: tableData,
columns: columns
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "\u6682\u65E0\u6570\u636E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px 7px 20px 7px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#656F87'
},
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: total
}), "\u6761\u6570\u636E"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showSizeChanger: true,
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Maintenance_EditModal, {
openEditModal: editVisible,
centerId: centerId,
onCancel: function onCancel() {
setEditVisible(false);
getData(true);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
className: Maintenancemodules.modal_info,
maskClosable: false,
title: "\u67E5\u770B\u8BE6\u60C5",
centered: true,
open: viewVisible,
onOk: function onOk() {
setViewVisible(false);
setCenterId(viewData === null || viewData === void 0 ? void 0 : viewData.id);
setEditVisible(true);
},
onCancel: function onCancel() {
return setViewVisible(false);
},
okText: "\u7F16\u8F91"
// cancelButtonProps={{ style: { display: 'none' } }}
,
width: 600,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
maxHeight: '500px',
overflowY: 'auto'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u8BBE\u5907\u540D\u79F0\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewData === null || viewData === void 0 || (_viewData$device = viewData.device) === null || _viewData$device === void 0 ? void 0 : _viewData$device.name) || '--',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: (viewData === null || viewData === void 0 || (_viewData$device2 = viewData.device) === null || _viewData$device2 === void 0 ? void 0 : _viewData$device2.name) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u8BBE\u5907\u7C7B\u578B\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewData === null || viewData === void 0 || (_viewData$device3 = viewData.device) === null || _viewData$device3 === void 0 ? void 0 : _viewData$device3.category) == 'virtual' ? '虚拟机' : '物理机',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: (viewData === null || viewData === void 0 || (_viewData$device4 = viewData.device) === null || _viewData$device4 === void 0 ? void 0 : _viewData$device4.category) == 'virtual' ? '虚拟机' : '物理机'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "IP\u5730\u5740\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewData === null || viewData === void 0 || (_viewData$device5 = viewData.device) === null || _viewData$device5 === void 0 ? void 0 : _viewData$device5.ip) || '--',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: (viewData === null || viewData === void 0 || (_viewData$device6 = viewData.device) === null || _viewData$device6 === void 0 ? void 0 : _viewData$device6.ip) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "MAC\u5730\u5740\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewData === null || viewData === void 0 || (_viewData$device7 = viewData.device) === null || _viewData$device7 === void 0 ? void 0 : _viewData$device7.mac_address) || '--',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: (viewData === null || viewData === void 0 || (_viewData$device8 = viewData.device) === null || _viewData$device8 === void 0 ? void 0 : _viewData$device8.mac_address) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewData === null || viewData === void 0 || (_viewData$device9 = viewData.device) === null || _viewData$device9 === void 0 ? void 0 : _viewData$device9.classroom_title) || '--',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: (viewData === null || viewData === void 0 || (_viewData$device10 = viewData.device) === null || _viewData$device10 === void 0 ? void 0 : _viewData$device10.classroom_title) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u6240\u5C5E\u623F\u95F4\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewData === null || viewData === void 0 || (_viewData$device11 = viewData.device) === null || _viewData$device11 === void 0 ? void 0 : _viewData$device11.classroom_room_title) || '--',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: (viewData === null || viewData === void 0 || (_viewData$device12 = viewData.device) === null || _viewData$device12 === void 0 ? void 0 : _viewData$device12.classroom_room_title) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u7EF4\u4FEE\u65E5\u671F\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: viewData !== null && viewData !== void 0 && viewData.date ? dayjs_min_default()(viewData === null || viewData === void 0 ? void 0 : viewData.date).format('YYYY-MM-DD HH:mm') : '--',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: viewData !== null && viewData !== void 0 && viewData.date ? dayjs_min_default()(viewData === null || viewData === void 0 ? void 0 : viewData.date).format('YYYY-MM-DD HH:mm') : '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u7EF4\u4FEE\u4EBA\u5458\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewData === null || viewData === void 0 ? void 0 : viewData.user_name) || '--',
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.infoItem_value,
children: (viewData === null || viewData === void 0 ? void 0 : viewData.user_name) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
style: {
marginBottom: '20px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u6545\u969C\u63CF\u8FF0\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '460px',
textAlign: "left",
marginTop: '5px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: (viewData === null || viewData === void 0 ? void 0 : viewData.description) || ''
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.infoItem,
style: {
marginBottom: '20px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '85px'
},
children: "\u4E0A\u4F20\u9644\u4EF6\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '460px',
textAlign: "left",
marginTop: '5px'
},
children: viewData === null || viewData === void 0 || (_viewData$attachments = viewData.attachments) === null || _viewData$attachments === void 0 ? void 0 : _viewData$attachments.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Maintenancemodules.file_list,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.file_list_title,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fujian font12 mr5"
}), item === null || item === void 0 ? void 0 : item.title]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Maintenancemodules.file_list_size,
children: item === null || item === void 0 ? void 0 : item.filesize
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginLeft: '20px',
cursor: 'pointer',
lineHeight: '24px'
},
onClick: function onClick() {
var _item$url;
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER).concat(item === null || item === void 0 || (_item$url = item.url) === null || _item$url === void 0 ? void 0 : _item$url.replace('disposition=inline', '')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiazai4 font12 mr5"
}), "\u4E0B\u8F7D"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginLeft: '20px',
cursor: 'pointer',
lineHeight: '24px',
color: '#50A760'
},
onClick: function onClick() {
setData({
type: item === null || item === void 0 ? void 0 : item.file_type,
content: env/* default */.Z.API_SERVER + (item === null || item === void 0 ? void 0 : item.url)
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-yulan font12 mr5"
}), "\u9884\u89C8"]
})]
});
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
close: true,
data: data === null || data === void 0 ? void 0 : data.content,
type: data === null || data === void 0 ? void 0 : data.type,
hasMask: true,
monacoEditor: {
language: "txt",
onChange: function onChange() {},
options: {
readOnly: true,
fontSize: 14,
minimap: {
enabled: false
}
}
},
onClose: function onClose() {
setData({
content: "",
type: ""
});
}
})]
})
})]
});
};
/* harmony default export */ var Maintenance = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
engineeringNavigtion = _ref2.engineeringNavigtion;
return objectSpread2_default()({
loading: loading
}, engineeringNavigtion);
})(Navigation));
/***/ }),
/***/ 10188:
/*!**********************************!*\
!*** ./src/service/equipment.ts ***!
\**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Ae: function() { return /* binding */ repair_records_info; },
/* harmony export */ Be: function() { return /* binding */ device_messages; },
/* harmony export */ Ct: function() { return /* binding */ devices_create; },
/* harmony export */ Hn: function() { return /* binding */ statistics_query; },
/* harmony export */ J_: function() { return /* binding */ repair_records_create; },
/* harmony export */ LP: function() { return /* binding */ repair_records_query; },
/* harmony export */ NE: function() { return /* binding */ repair_records_update; },
/* harmony export */ Nz: function() { return /* binding */ devices_scrapped; },
/* harmony export */ RS: function() { return /* binding */ devices_query; },
/* harmony export */ RV: function() { return /* binding */ devices_update; },
/* harmony export */ cl: function() { return /* binding */ monitor_info; },
/* harmony export */ jc: function() { return /* binding */ devices_info; },
/* harmony export */ xF: function() { return /* binding */ change_use_status; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test3_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_test3_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_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test3_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_test3_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_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test3_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_test3_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_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 92911);
//设备关联列表
function devices_query(_x) {
return _devices_query.apply(this, arguments);
}
//关联设备
function _devices_query() {
_devices_query = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) {
return _root_workspace_ppte5yg23_local_v9_test3_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:
return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return _devices_query.apply(this, arguments);
}
function devices_create(_x2) {
return _devices_create.apply(this, arguments);
}
//编辑设备
function _devices_create() {
_devices_create = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(data) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return _devices_create.apply(this, arguments);
}
function devices_update(_x3) {
return _devices_update.apply(this, arguments);
}
//上下架
function _devices_update() {
_devices_update = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(data) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _devices_update.apply(this, arguments);
}
function change_use_status(_x4) {
return _change_use_status.apply(this, arguments);
}
//设备详情
function _change_use_status() {
_change_use_status = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4(data) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
return _context4.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices/".concat(data === null || data === void 0 ? void 0 : data.id, "/change_use_status.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _change_use_status.apply(this, arguments);
}
function devices_info(_x5) {
return _devices_info.apply(this, arguments);
}
//设备报废
function _devices_info() {
_devices_info = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5(params) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
return _context5.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return _devices_info.apply(this, arguments);
}
function devices_scrapped(_x6) {
return _devices_scrapped.apply(this, arguments);
}
//创建维修记录
function _devices_scrapped() {
_devices_scrapped = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee6(data) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices/".concat(data === null || data === void 0 ? void 0 : data.id, "/scrapped.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context6.stop();
}
}, _callee6);
}));
return _devices_scrapped.apply(this, arguments);
}
function repair_records_create(_x7) {
return _repair_records_create.apply(this, arguments);
}
//编辑维修记录
function _repair_records_create() {
_repair_records_create = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee7(data) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/repair_records.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context7.stop();
}
}, _callee7);
}));
return _repair_records_create.apply(this, arguments);
}
function repair_records_update(_x8) {
return _repair_records_update.apply(this, arguments);
}
//维修记录列表
function _repair_records_update() {
_repair_records_update = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee8(data) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
return _context8.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/repair_records/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context8.stop();
}
}, _callee8);
}));
return _repair_records_update.apply(this, arguments);
}
function repair_records_query(_x9) {
return _repair_records_query.apply(this, arguments);
}
//维修记录详情
function _repair_records_query() {
_repair_records_query = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9(params) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
return _context9.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/repair_records.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context9.stop();
}
}, _callee9);
}));
return _repair_records_query.apply(this, arguments);
}
function repair_records_info(_x10) {
return _repair_records_info.apply(this, arguments);
}
//设备统计
function _repair_records_info() {
_repair_records_info = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/repair_records/".concat(params, ".json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _repair_records_info.apply(this, arguments);
}
function statistics_query(_x11) {
return _statistics_query.apply(this, arguments);
}
//设备异常消息
function _statistics_query() {
_statistics_query = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(params) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices/statistics.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _statistics_query.apply(this, arguments);
}
function device_messages(_x12) {
return _device_messages.apply(this, arguments);
}
//设备性能
function _device_messages() {
_device_messages = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee12(params) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
return _context12.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/device_messages.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context12.stop();
}
}, _callee12);
}));
return _device_messages.apply(this, arguments);
}
function monitor_info(_x13) {
return _monitor_info.apply(this, arguments);
}
function _monitor_info() {
_monitor_info = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee13(params) {
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
case 0:
return _context13.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/devices/".concat(params, "/monitor.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context13.stop();
}
}, _callee13);
}));
return _monitor_info.apply(this, arguments);
}
/***/ }),
/***/ 60028:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/upload/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ 71409);
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ 40013);
"use client";
const Upload = _Upload__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z;
Upload.Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
Upload.LIST_IGNORE = _Upload__WEBPACK_IMPORTED_MODULE_0__/* .LIST_IGNORE */ .E;
/* harmony default export */ __webpack_exports__.Z = (Upload);
/***/ })
}]);