Auto Submit

dev_local_v9_test5
autosubmit 2 years ago
parent 535998afed
commit dbf1abcbf4

@ -10,6 +10,7 @@
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ $u: function() { return /* binding */ classroom_import; },
/* harmony export */ $x: function() { return /* binding */ classroom_info; },
/* harmony export */ C: function() { return /* binding */ getReservationDetails; },
/* harmony export */ C0: function() { return /* binding */ directors_query; },
/* harmony export */ CI: function() { return /* binding */ add_reservation_rules_update; },
/* harmony export */ Cc: function() { return /* binding */ reservation_rules_info; },
@ -1050,6 +1051,8 @@ function _can_reservation_classroom_rooms() {
function can_reservation_classroom_centers(_x46) {
return _can_reservation_classroom_centers.apply(this, arguments);
}
//实验室房间预约详情
function _can_reservation_classroom_centers() {
_can_reservation_classroom_centers = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee46(params) {
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee46$(_context46) {
@ -1067,6 +1070,26 @@ function _can_reservation_classroom_centers() {
}));
return _can_reservation_classroom_centers.apply(this, arguments);
}
function getReservationDetails(_x47) {
return _getReservationDetails.apply(this, arguments);
}
function _getReservationDetails() {
_getReservationDetails = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee47(params) {
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee47$(_context47) {
while (1) switch (_context47.prev = _context47.next) {
case 0:
return _context47.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/classroom_rooms/".concat(params === null || params === void 0 ? void 0 : params.id, "/reservation_details.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context47.stop();
}
}, _callee47);
}));
return _getReservationDetails.apply(this, arguments);
}
/***/ })

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

@ -1,6 +1,51 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[47778],{
/***/ 49866:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CheckCircleOutlined.js + 1 modules ***!
\*************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_CheckCircleOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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/CheckCircleOutlined.js
// This icon file is generated automatically.
var CheckCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "check-circle", "theme": "outlined" };
/* harmony default export */ var asn_CheckCircleOutlined = (CheckCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CheckCircleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CheckCircleOutlined_CheckCircleOutlined = function CheckCircleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CheckCircleOutlined
}));
};
/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTY5OSAzNTNoLTQ2LjljLTEwLjIgMC0xOS45IDQuOS0yNS45IDEzLjNMNDY5IDU4NC4zbC03MS4yLTk4LjhjLTYtOC4zLTE1LjYtMTMuMy0yNS45LTEzLjNIMzI1Yy02LjUgMC0xMC4zIDcuNC02LjUgMTIuN2wxMjQuNiAxNzIuOGEzMS44IDMxLjggMCAwMDUxLjcgMGwyMTAuNi0yOTJjMy45LTUuMy4xLTEyLjctNi40LTEyLjd6IiAvPjxwYXRoIGQ9Ik01MTIgNjRDMjY0LjYgNjQgNjQgMjY0LjYgNjQgNTEyczIwMC42IDQ0OCA0NDggNDQ4IDQ0OC0yMDAuNiA0NDgtNDQ4Uzc1OS40IDY0IDUxMiA2NHptMCA4MjBjLTIwNS40IDAtMzcyLTE2Ni42LTM3Mi0zNzJzMTY2LjYtMzcyIDM3Mi0zNzIgMzcyIDE2Ni42IDM3MiAzNzItMTY2LjYgMzcyLTM3MiAzNzJ6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CheckCircleOutlined_CheckCircleOutlined);
if (false) {}
/* harmony default export */ var icons_CheckCircleOutlined = (RefIcon);
/***/ }),
/***/ 84078:
/*!**********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PoweroffOutlined.js + 1 modules ***!
@ -46,9 +91,9 @@ if (false) {}
/***/ }),
/***/ 40644:
/***/ 99138:
/*!**********************************************************!*\
!*** ./src/pages/IOT/DeviceManage/index.tsx + 4 modules ***!
!*** ./src/pages/IOT/DeviceManage/index.tsx + 1 modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -57,7 +102,7 @@ __webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ DeviceManage; }
"default": function() { return /* binding */ IOT_DeviceManage; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
@ -102,150 +147,12 @@ var modal = __webpack_require__(43418);
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(5703);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CheckCircleOutlined.js
// This icon file is generated automatically.
var CheckCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "check-circle", "theme": "outlined" };
/* harmony default export */ var asn_CheckCircleOutlined = (CheckCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CheckCircleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CheckCircleOutlined_CheckCircleOutlined = function CheckCircleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CheckCircleOutlined
}));
};
/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTY5OSAzNTNoLTQ2LjljLTEwLjIgMC0xOS45IDQuOS0yNS45IDEzLjNMNDY5IDU4NC4zbC03MS4yLTk4LjhjLTYtOC4zLTE1LjYtMTMuMy0yNS45LTEzLjNIMzI1Yy02LjUgMC0xMC4zIDcuNC02LjUgMTIuN2wxMjQuNiAxNzIuOGEzMS44IDMxLjggMCAwMDUxLjcgMGwyMTAuNi0yOTJjMy45LTUuMy4xLTEyLjctNi40LTEyLjd6IiAvPjxwYXRoIGQ9Ik01MTIgNjRDMjY0LjYgNjQgNjQgMjY0LjYgNjQgNTEyczIwMC42IDQ0OCA0NDggNDQ4IDQ0OC0yMDAuNiA0NDgtNDQ4Uzc1OS40IDY0IDUxMiA2NHptMCA4MjBjLTIwNS40IDAtMzcyLTE2Ni42LTM3Mi0zNzJzMTY2LjYtMzcyIDM3Mi0zNzIgMzcyIDE2Ni42IDM3MiAzNzItMTY2LjYgMzcyLTM3MiAzNzJ6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CheckCircleOutlined_CheckCircleOutlined);
if (false) {}
/* harmony default export */ var icons_CheckCircleOutlined = (RefIcon);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CheckCircleOutlined.js + 1 modules
var CheckCircleOutlined = __webpack_require__(49866);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PoweroffOutlined.js + 1 modules
var PoweroffOutlined = __webpack_require__(84078);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(27786);
;// CONCATENATED MODULE: ./src/service/iot.ts
//物联网设备列表
function getIOTDeviceList(_x) {
return _getIOTDeviceList.apply(this, arguments);
}
//添加关联设备管理
function _getIOTDeviceList() {
_getIOTDeviceList = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(params) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
return _context4.abrupt("return", (0,fetch/* default */.ZP)('/api/yn_classrooms/devices/lots.json', {
method: 'get',
params: objectSpread2_default()({}, params)
}));
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _getIOTDeviceList.apply(this, arguments);
}
var addIOTDevices = /*#__PURE__*/function () {
var _ref = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(params) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", (0,fetch/* default */.ZP)('/api/yn_classrooms/devices.json', {
method: 'post',
body: objectSpread2_default()({}, params)
}));
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return function addIOTDevices(_x2) {
return _ref.apply(this, arguments);
};
}();
//编辑物联网设备
function editIOTDevices(_x3, _x4) {
return _editIOTDevices.apply(this, arguments);
}
//智慧开关开机
function _editIOTDevices() {
_editIOTDevices = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(params, id) {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
return _context5.abrupt("return", (0,fetch/* default */.ZP)("/api/yn_classrooms/devices/".concat(id, ".json"), {
method: 'put',
body: params
}));
case 1:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return _editIOTDevices.apply(this, arguments);
}
var lot_up = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(params) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", (0,fetch/* default */.ZP)('/api/yn_classrooms/devices/lot_up.json', {
method: 'post',
body: objectSpread2_default()({}, params)
}));
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function lot_up(_x5) {
return _ref2.apply(this, arguments);
};
}();
//智慧开关关机
var lot_down = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(params) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
return _context3.abrupt("return", (0,fetch/* default */.ZP)('/api/yn_classrooms/devices/lot_down.json', {
method: 'post',
body: objectSpread2_default()({}, params)
}));
case 1:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function lot_down(_x6) {
return _ref3.apply(this, arguments);
};
}();
// EXTERNAL MODULE: ./src/service/iot.ts
var iot = __webpack_require__(93717);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/IOT/DeviceManage/index.tsx
@ -264,7 +171,7 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var DeviceManage = function DeviceManage(_ref) {
var _ref2, _ref3;
var loading = _ref.loading,
dispatch = _ref.dispatch;
@ -347,19 +254,15 @@ var Navigation = function Navigation(_ref) {
setSysRoom = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)(''),
_useState30 = slicedToArray_default()(_useState29, 2),
deviceType = _useState30[0],
setDeviceType = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)(''),
_useState32 = slicedToArray_default()(_useState31, 2),
deviceStatus = _useState32[0],
setDeviceStatus = _useState32[1];
deviceStatus = _useState30[0],
setDeviceStatus = _useState30[1];
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
myForm = _Form$useForm2[0];
var _useState33 = (0,_react_17_0_2_react.useState)(false),
_useState34 = slicedToArray_default()(_useState33, 2),
openAddModal = _useState34[0],
setOpenAddModal = _useState34[1];
var _useState31 = (0,_react_17_0_2_react.useState)(false),
_useState32 = slicedToArray_default()(_useState31, 2),
openAddModal = _useState32[0],
setOpenAddModal = _useState32[1];
var isFirstLoad = (0,_react_17_0_2_react.useRef)(true);
var columns = [{
title: '设备编号',
@ -400,7 +303,7 @@ var Navigation = function Navigation(_ref) {
})
});
}
},, {
}, {
title: '设备型号',
dataIndex: 'model',
ellipsis: true,
@ -480,7 +383,7 @@ var Navigation = function Navigation(_ref) {
marginLeft: '20px'
},
onClick: function onClick() {
lot_up({
(0,iot/* lot_up */.zh)({
device_ids: [record === null || record === void 0 ? void 0 : record.id]
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
@ -497,7 +400,7 @@ var Navigation = function Navigation(_ref) {
marginLeft: '20px'
},
onClick: function onClick() {
lot_down({
(0,iot/* lot_down */.hQ)({
device_ids: [record === null || record === void 0 ? void 0 : record.id]
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
@ -549,19 +452,20 @@ var Navigation = function Navigation(_ref) {
} else {
isFirstLoad.current = false;
}
}, [keyword, sys, sysRoom, deviceType, deviceStatus, limit]);
}, [keyword, sys, sysRoom, deviceStatus, limit]);
var getData = function getData(flag) {
if (flag) {
setPage(1);
}
getIOTDeviceList({
(0,iot/* getIOTDeviceList */.Yj)({
page: page,
limit: limit,
keyword: keyword,
classroom_id: sys,
classroom_room_id: sysRoom,
use_status: deviceStatus,
genre: deviceType
// 1:非物理网设备 2:电子班牌 3:智慧开关
genre: 3
}).then(function (res) {
var _res$data3, _res$data4;
setTotal(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.count);
@ -599,7 +503,7 @@ var Navigation = function Navigation(_ref) {
className: DeviceManagemodules.header_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: DeviceManagemodules.header_title,
children: "\u7269\u8054\u7F51\u8BBE\u5907"
children: "\u667A\u6167\u5F00\u5173\u7BA1\u7406"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
style: {
marginLeft: 'auto'
@ -692,32 +596,6 @@ var Navigation = function Navigation(_ref) {
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u7C7B\u578B",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
style: {
width: 140
},
defaultValue: deviceType,
value: deviceType,
onChange: function onChange(e) {
setDeviceType(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: "\u7535\u5B50\u73ED\u724C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "3",
children: "\u667A\u6167\u5F00\u5173"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u72B6\u6001",
@ -821,7 +699,7 @@ var Navigation = function Navigation(_ref) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
lot_up({
(0,iot/* lot_up */.zh)({
device_ids: selectIds === null || selectIds === void 0 ? void 0 : selectIds.map(function (item) {
return item === null || item === void 0 ? void 0 : item.id;
})
@ -844,7 +722,7 @@ var Navigation = function Navigation(_ref) {
}()
});
},
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(icons_CheckCircleOutlined, {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleOutlined/* default */.Z, {
style: {
marginRight: 5
}
@ -872,7 +750,7 @@ var Navigation = function Navigation(_ref) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
lot_down({
(0,iot/* lot_down */.hQ)({
device_ids: selectIds === null || selectIds === void 0 ? void 0 : selectIds.map(function (item) {
return item === null || item === void 0 ? void 0 : item.id;
})
@ -932,7 +810,7 @@ var Navigation = function Navigation(_ref) {
return myForm.validateFields();
case 2:
if (rowData) {
editIOTDevices({
(0,iot/* editIOTDevices */.Tk)({
device: objectSpread2_default()({}, myForm.getFieldsValue())
}, rowData === null || rowData === void 0 ? void 0 : rowData.id).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
@ -943,8 +821,9 @@ var Navigation = function Navigation(_ref) {
}
});
} else {
addIOTDevices({
(0,iot/* addIOTDevices */["if"])({
device: objectSpread2_default()(objectSpread2_default()({}, myForm.getFieldsValue()), {}, {
genre: 'smart_switch',
category: 1
})
}).then(function (res) {
@ -977,25 +856,6 @@ var Navigation = function Navigation(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u7C7B\u578B",
name: "genre",
rules: [{
required: true,
message: '请选择设备类型'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
size: "large",
placeholder: "\u8BF7\u9009\u62E9\u8BBE\u5907\u7C7B\u578B",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'electronic_card',
children: "\u7535\u5B50\u73ED\u724C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'smart_switch',
children: "\u667A\u6167\u5F00\u5173"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "clientId",
name: "client_id",
@ -1010,9 +870,7 @@ var Navigation = function Navigation(_ref) {
myForm.setFieldValue('请输入clientId', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim());
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u7F16\u53F7",
name: "number",
@ -1029,7 +887,9 @@ var Navigation = function Navigation(_ref) {
myForm.setFieldValue('number', e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2 = _e$target2.value) === null || _e$target2 === void 0 ? void 0 : _e$target2.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u540D\u79F0",
name: "name",
@ -1046,9 +906,7 @@ var Navigation = function Navigation(_ref) {
myForm.setFieldValue('name', e === null || e === void 0 || (_e$target3 = e.target) === null || _e$target3 === void 0 || (_e$target3 = _e$target3.value) === null || _e$target3 === void 0 ? void 0 : _e$target3.trim());
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u578B\u53F7",
name: "model",
@ -1065,7 +923,9 @@ var Navigation = function Navigation(_ref) {
myForm.setFieldValue('model', e === null || e === void 0 || (_e$target4 = e.target) === null || _e$target4 === void 0 || (_e$target4 = _e$target4.value) === null || _e$target4 === void 0 ? void 0 : _e$target4.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907IP",
name: "ip",
@ -1083,9 +943,7 @@ var Navigation = function Navigation(_ref) {
myForm.setFieldValue('ip', e === null || e === void 0 || (_e$target5 = e.target) === null || _e$target5 === void 0 || (_e$target5 = _e$target5.value) === null || _e$target5 === void 0 ? void 0 : _e$target5.trim());
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u7AEF\u53E3",
name: "port",
@ -1105,7 +963,9 @@ var Navigation = function Navigation(_ref) {
myForm.setFieldValue('port', e === null || e === void 0 || (_e$target6 = e.target) === null || _e$target6 === void 0 || (_e$target6 = _e$target6.value) === null || _e$target6 === void 0 ? void 0 : _e$target6.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8D26\u6237",
name: "user_name",
@ -1120,22 +980,22 @@ var Navigation = function Navigation(_ref) {
myForm.setFieldValue('user_name', e === null || e === void 0 || (_e$target7 = e.target) === null || _e$target7 === void 0 || (_e$target7 = _e$target7.value) === null || _e$target7 === void 0 ? void 0 : _e$target7.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5BC6\u7801",
name: "password",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801",
onChange: function onChange(e) {
var _e$target8;
myForm.setFieldValue('password', e === null || e === void 0 || (_e$target8 = e.target) === null || _e$target8 === void 0 || (_e$target8 = _e$target8.value) === null || _e$target8 === void 0 ? void 0 : _e$target8.trim());
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5BC6\u7801",
name: "password",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801",
onChange: function onChange(e) {
var _e$target8;
myForm.setFieldValue('password', e === null || e === void 0 || (_e$target8 = e.target) === null || _e$target8 === void 0 || (_e$target8 = _e$target8.value) === null || _e$target8 === void 0 ? void 0 : _e$target8.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
@ -1199,7 +1059,7 @@ var Navigation = function Navigation(_ref) {
})]
});
};
/* harmony default export */ var DeviceManage = ((0,_umi_production_exports.connect)(function (_ref5) {
/* harmony default export */ var IOT_DeviceManage = ((0,_umi_production_exports.connect)(function (_ref5) {
var loading = _ref5.loading,
engineeringNavigtion = _ref5.engineeringNavigtion,
dispatch = _ref5.dispatch;
@ -1208,7 +1068,141 @@ var Navigation = function Navigation(_ref) {
}, engineeringNavigtion), {}, {
dispatch: dispatch
});
})(Navigation));
})(DeviceManage));
/***/ }),
/***/ 93717:
/*!****************************!*\
!*** ./src/service/iot.ts ***!
\****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Tk: function() { return /* binding */ editIOTDevices; },
/* harmony export */ Yj: function() { return /* binding */ getIOTDeviceList; },
/* harmony export */ hQ: function() { return /* binding */ lot_down; },
/* harmony export */ "if": function() { return /* binding */ addIOTDevices; },
/* harmony export */ zh: function() { return /* binding */ lot_up; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_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_test5_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_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_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_test5_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_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_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_test5_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_test5_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 */ 27786);
//物联网设备列表
function getIOTDeviceList(_x) {
return _getIOTDeviceList.apply(this, arguments);
}
//添加关联设备管理
function _getIOTDeviceList() {
_getIOTDeviceList = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4(params) {
return _root_workspace_ppte5yg23_local_v9_test5_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/lots.json', {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _getIOTDeviceList.apply(this, arguments);
}
var addIOTDevices = /*#__PURE__*/function () {
var _ref = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_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_test5_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: 'post',
body: _root_workspace_ppte5yg23_local_v9_test5_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 function addIOTDevices(_x2) {
return _ref.apply(this, arguments);
};
}();
//编辑物联网设备
function editIOTDevices(_x3, _x4) {
return _editIOTDevices.apply(this, arguments);
}
//智慧开关开机
function _editIOTDevices() {
_editIOTDevices = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5(params, id) {
return _root_workspace_ppte5yg23_local_v9_test5_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(id, ".json"), {
method: 'put',
body: params
}));
case 1:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return _editIOTDevices.apply(this, arguments);
}
var lot_up = /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) {
return _root_workspace_ppte5yg23_local_v9_test5_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/lot_up.json', {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function lot_up(_x5) {
return _ref2.apply(this, arguments);
};
}();
//智慧开关关机
var lot_down = /*#__PURE__*/function () {
var _ref3 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) {
return _root_workspace_ppte5yg23_local_v9_test5_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/lot_down.json', {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function lot_down(_x6) {
return _ref3.apply(this, arguments);
};
}();
/***/ })

File diff suppressed because it is too large Load Diff

@ -0,0 +1,156 @@
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/IOT/ElectronBPManage/index.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.header_div___HhszB {
display: flex;
}
.header_div___HhszB .header_title___qgGn3 {
height: 38px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
color: #000000;
line-height: 38px;
}
.header_div___HhszB .search___GYwGv {
display: flex;
align-items: center;
overflow: hidden;
border-radius: 19px;
height: 38px;
width: 260px;
padding-left: 8px;
background-color: #f6f7f9;
border: none;
margin-left: 20px;
}
.header_div___HhszB .search___GYwGv span[class~='ant-input-search-icon'] {
display: none;
}
.header_div___HhszB .search___GYwGv [class~='ant-input-affix-wrapper'] {
background-color: #f6f7f9;
border: none;
}
.header_div___HhszB .search___GYwGv [class~='ant-input-affix-wrapper'] {
outline: none !important;
border: none !important;
box-shadow: none !important;
}
.header_div___HhszB .search___GYwGv span[class~='ant-input-group-addon'] {
display: none;
}
.header_div___HhszB .search___GYwGv .searchIcon___ugsHx {
margin-right: 14px;
cursor: pointer;
}
.header_div___HhszB .search___GYwGv input {
background-color: #f6f7f9;
}
.header_div___HhszB [class~='ant-form-item'] [class~='ant-form-item-label'] {
text-align: right !important;
}
.header_div___HhszB [class~='ant-form-item'] [class~='ant-form-item-label'] label {
color: #666 !important;
display: block !important;
height: 36px !important;
line-height: 36px !important;
}
.header_div___HhszB [class~='ant-select-selector'] {
height: 36px !important;
}
.header_div___HhszB [class~='ant-select-selection-item'] {
line-height: 34px !important;
}
.clear_Data___BnAOz {
width: 130px;
height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 14px;
color: #FFFFFF;
line-height: 32px;
font-style: normal;
text-align: center;
cursor: pointer;
margin-top: 4px;
margin-left: 20px;
}
.batch___f_bzI {
height: 60px;
margin: auto;
background: #ffffff;
box-shadow: 0px -1px 6px 0px #efefef;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 100;
}
.batch___f_bzI > aside {
margin: 0 100px;
padding-left: 270px;
display: flex;
align-items: center;
height: 100%;
}
.batch___f_bzI > aside .btns___Wmb4Z {
flex: 1 1;
display: flex;
align-items: center;
}
.batch___f_bzI > aside .btns___Wmb4Z .btn___gqt9F {
height: 32px;
line-height: 32px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #d9d9d9;
padding: 0 10px;
color: #145dff;
cursor: pointer;
margin-right: 15px;
font-size: 14px;
}
.batch___f_bzI > aside .btns___Wmb4Z .btn___gqt9F i {
color: #464f66;
margin-right: 6px;
font-size: 14px;
}
.my_modal___d_ikP {
margin-top: 5px;
}
.my_modal___d_ikP [class~='ant-form-item'] {
margin-bottom: 20px !important;
}
.my_modal___d_ikP [class~='ant-form-item'] [class~='ant-form-item-label'] {
text-align: right !important;
}
.my_modal___d_ikP [class~='ant-form-item'] [class~='ant-form-item-label'] label {
color: #666 !important;
width: 80px !important;
display: block !important;
line-height: 38px !important;
}
.my_modal___d_ikP [class~='ant-form-item']:nth-child(2n) {
justify-content: flex-end;
}
.my_modal___d_ikP [class~='ant-form-item']:nth-last-child(1) {
justify-content: flex-end;
}
.my_modal___d_ikP [class~='ant-form-item']:nth-last-child(1) [class~='ant-select-lg'] {
position: relative;
left: 35px;
}
.my_modal___d_ikP [class~='ant-modal-footer'] {
margin-top: 0 !important;
}
.maleRow___qNzzJ {
background-color: #FCF1F1 !important;
}
.maleRow___qNzzJ:hover > td {
background-color: inherit !important;
/* 禁止行鼠标移入时改变背景颜色 */
}

@ -42,7 +42,7 @@ var SubMenu = menu/* default */.Z.SubMenu;
var Engineering = function Engineering(_ref) {
var _user$userInfo, _user$userInfo2;
var _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4;
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering;
@ -68,7 +68,11 @@ var Engineering = function Engineering(_ref) {
type: type
};
}
var items = [((user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.classroom_auth)) && getItem('物联网设备管理', '/iot/deviceManage')];
var items = [((user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.classroom_auth)) && getItem('智慧开关管理', '/iot/deviceManage', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zhihuikaiguan"
})), ((user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.classroom_auth)) && getItem('电子班牌管理', '/iot/electronBPManage', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-dianzibanpai"
}))];
// 获取所有二级菜单项的key
var allSubMenuKeys = items.filter(function (item) {

@ -0,0 +1,411 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61075],{
/***/ 11407:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
/**![left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcyNCAyMTguM1YxNDFjMC02LjctNy43LTEwLjQtMTIuOS02LjNMMjYwLjMgNDg2LjhhMzEuODYgMzEuODYgMCAwMDAgNTAuM2w0NTAuOCAzNTIuMWM1LjMgNC4xIDEyLjkuNCAxMi45LTYuM3YtNzcuM2MwLTQuOS0yLjMtOS42LTYuMS0xMi42bC0zNjAtMjgxIDM2MC0yODEuMWMzLjgtMyA2LjEtNy43IDYuMS0xMi42eiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined);
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (RefIcon);
/***/ }),
/***/ 88845:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_RightOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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/RightOutlined.js
// This icon file is generated automatically.
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_RightOutlined
}));
};
/**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
if (false) {}
/* harmony default export */ var icons_RightOutlined = (RefIcon);
/***/ }),
/***/ 97837:
/*!*************************************************************!*\
!*** ./src/pages/IOT/ViewAppointment/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 */ IOT_ViewAppointment; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(12712);
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ViewAppointmentmodules = ({"content":"content____xFwD","schedule":"schedule___o3VOV","item_detail":"item_detail___Qvgau","item_detail_warp":"item_detail_warp___hPMSO","header_img":"header_img___HzTSz","item_title":"item_title___iUpmc","list_item":"list_item___Diz3Q","list_item_name":"list_item_name___AUxW9","goback_button":"goback_button___gGqG8"});
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/schedule/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var schedulemodules = ({"week":"week___Rv_0n","btn":"btn___a2OPL","weekCount":"weekCount___mG7X8","weekDay":"weekDay___ch7aL","weekDay1":"weekDay1___v2p75","weekDay2":"weekDay2___g0cHs","timeSlotWarp":"timeSlotWarp___Guf0w","timeSlot":"timeSlot___fsmG7","timeSlotItem":"timeSlotItem___H7Giz","timeSlotItem2":"timeSlotItem2___LETaH"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
var LeftOutlined = __webpack_require__(11407);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js + 1 modules
var RightOutlined = __webpack_require__(88845);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/schedule/index.tsx
var Navigation = function Navigation(_ref) {
var _scheduleData$reserva, _scheduleData$reserva2;
var loading = _ref.loading,
scheduleData = _ref.scheduleData,
onChangeWeek = _ref.onChangeWeek;
var times = ['0:00—0:50', '1:00—1:50', '2:00—2:50', '3:00—3:50', '4:00—4:50', '5:00—5:50', '6:00—6:50', '7:00—7:50', '8:00—8:50', '9:00—9:50', '10:00—10:50', '11:00—11:50', '12:00—12:50', '13:00—13:50', '14:00—14:50', '15:00—15:50', '16:00—16:50', '17:00—17:50', '18:00—18:50', '19:00—19:50', '20:00—20:50', '21:00—21:50', '22:00—22:50', '23:00—23:50'];
var colorType = {
0: '#ADB2B8',
1: '#165DFF'
};
var bgcolorType = {
4: 'rgba(22,93,255,0.04)',
2: '#FBFBFB'
};
var nameType = {
0: '已过期',
1: '已预约'
};
var dayType = {
1: '一',
2: '二',
3: '三',
4: '四',
5: '五',
6: '六',
7: '日'
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
padding: 20
},
children: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: schedulemodules.week,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: schedulemodules.btn,
style: {
cursor: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) > 1 ? 'pointer' : 'not-allowed',
color: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) > 1 ? '#464F66' : 'rgba(70, 79, 102,.5)'
},
onClick: function onClick() {
if ((scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) > 1) {
onChangeWeek(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) - 1);
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: schedulemodules.weekCount,
children: ["\u7B2C", scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek, "\u5468"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: schedulemodules.btn,
style: {
cursor: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) == Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_cweek) + 1 ? 'not-allowed' : 'pointer',
color: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) == Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_cweek) + 1 ? 'rgba(70, 79, 102,.5)' : '#464F66'
},
onClick: function onClick() {
if ((scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) < Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_cweek) + 1) {
onChangeWeek(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) + 1);
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
color: "#464F66"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: schedulemodules.weekDay,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: schedulemodules.weekDay1,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u65E5\u671F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8BFE\u8282"
})]
}), scheduleData === null || scheduleData === void 0 || (_scheduleData$reserva = scheduleData.reservation_details) === null || _scheduleData$reserva === void 0 ? void 0 : _scheduleData$reserva.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: schedulemodules.weekDay2,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginRight: 10,
color: '#ADB2B8'
},
children: item === null || item === void 0 ? void 0 : item.date
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5468", dayType[item === null || item === void 0 ? void 0 : item.week]]
})]
}, item === null || item === void 0 ? void 0 : item.date);
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: schedulemodules.timeSlotWarp,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: schedulemodules.timeSlot,
children: times.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: schedulemodules.timeSlotItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: index + 1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: item
})]
}, index);
})
}), scheduleData === null || scheduleData === void 0 || (_scheduleData$reserva2 = scheduleData.reservation_details) === null || _scheduleData$reserva2 === void 0 ? void 0 : _scheduleData$reserva2.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '100%'
},
children: item === null || item === void 0 ? void 0 : item.sections.map(function (item2, index2) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: schedulemodules.timeSlotItem2,
style: {
color: colorType[item2 === null || item2 === void 0 ? void 0 : item2.status],
background: bgcolorType[item2 === null || item2 === void 0 ? void 0 : item2.status]
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: (item2 === null || item2 === void 0 ? void 0 : item2.status) != 5 ? nameType[item2 === null || item2 === void 0 ? void 0 : item2.status] : "\u5269\u4F59 ".concat(item2 === null || item2 === void 0 ? void 0 : item2.num)
})
}, "".concat(item.date, "_").concat(index2));
})
}, item === null || item === void 0 ? void 0 : item.date);
})]
})]
})]
})
});
};
/* harmony default export */ var schedule = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
engineeringNavigtion = _ref2.engineeringNavigtion;
return objectSpread2_default()({
loading: loading
}, engineeringNavigtion);
})(Navigation));
// EXTERNAL MODULE: ./src/assets/images/roomInitImg.png
var roomInitImg = __webpack_require__(58253);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(5703);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(17985);
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/index.tsx
var ViewAppointment = function ViewAppointment(_ref) {
var _scheduleData$directo;
var loading = _ref.loading,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
scheduleData = _useState2[0],
setScheduleData = _useState2[1];
var params = (0,_umi_production_exports.useParams)();
(0,_react_17_0_2_react.useEffect)(function () {
getData(null);
dispatch({
type: 'globalSetting/headerFooterToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/headerFooterToggle',
payload: true
});
};
}, []);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(box) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,laboratory/* getReservationDetails */.C)({
id: params === null || params === void 0 ? void 0 : params.id,
cweek: box
}).then(function (res) {
setScheduleData(res === null || res === void 0 ? void 0 : res.data);
});
case 2:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewAppointmentmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewAppointmentmodules.schedule,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(schedule, {
scheduleData: scheduleData,
onChangeWeek: function onChangeWeek(e) {
getData(e);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewAppointmentmodules.item_detail,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewAppointmentmodules.item_detail_warp,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: ViewAppointmentmodules.header_img,
src: scheduleData !== null && scheduleData !== void 0 && scheduleData.image ? env/* default */.Z.API_SERVER + '/' + (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.image) : roomInitImg
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewAppointmentmodules.item_title,
children: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.title
}), [{
name: '所属实验室',
content: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.classroom_title
}, {
name: '使用面积',
content: "".concat(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.area, "\u5E73\u65B9\u7C73")
}, {
name: '工位数量',
content: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.work_num
}, {
name: '责任人',
content: scheduleData === null || scheduleData === void 0 || (_scheduleData$directo = scheduleData.directors) === null || _scheduleData$directo === void 0 || (_scheduleData$directo = _scheduleData$directo[0]) === null || _scheduleData$directo === void 0 ? void 0 : _scheduleData$directo.name
}].map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewAppointmentmodules.list_item,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewAppointmentmodules.list_item_name,
children: item === null || item === void 0 ? void 0 : item.name.split('').map(function (item2, i) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: item2
}, i);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: item === null || item === void 0 ? void 0 : item.content
})]
}, item === null || item === void 0 ? void 0 : item.name);
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewAppointmentmodules.goback_button,
onClick: function onClick() {
_umi_production_exports.history.push('/iot/electronBPManage');
},
children: "\u9000\u51FA"
})]
})
})]
});
};
/* harmony default export */ var IOT_ViewAppointment = ((0,_umi_production_exports.connect)(function (_ref3) {
var loading = _ref3.loading,
engineeringNavigtion = _ref3.engineeringNavigtion,
dispatch = _ref3.dispatch;
return objectSpread2_default()(objectSpread2_default()({
loading: loading
}, engineeringNavigtion), {}, {
dispatch: dispatch
});
})(ViewAppointment));
/***/ })
}]);

@ -0,0 +1,191 @@
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/IOT/ViewAppointment/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.content____xFwD {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
background: #EFEFEF;
}
.content____xFwD .schedule___o3VOV {
width: calc(100% - 380px);
height: 100%;
margin: 20px;
background: #fff;
height: calc(100% - 40px);
border-radius: 3px;
}
.content____xFwD .item_detail___Qvgau {
width: 340px;
height: 100%;
background: #fff;
position: fixed;
right: 0;
top: 0;
}
.content____xFwD .item_detail___Qvgau .item_detail_warp___hPMSO {
width: 100%;
height: 100%;
padding: 20px;
position: relative;
}
.content____xFwD .item_detail___Qvgau .header_img___HzTSz {
width: 300px;
height: 156px;
border-radius: 5px;
}
.content____xFwD .item_detail___Qvgau .item_title___iUpmc {
font-weight: 600;
font-size: 30px;
color: #000F37;
text-align: left;
margin: 40px 0 30px 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.content____xFwD .item_detail___Qvgau .list_item___Diz3Q {
color: #000000;
display: flex;
align-items: center;
margin-bottom: 20px;
}
.content____xFwD .item_detail___Qvgau .list_item_name___AUxW9 {
width: 70px;
font-size: 14px;
color: #999999;
display: flex;
justify-content: space-between;
margin-right: 20px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.content____xFwD .goback_button___gGqG8 {
position: absolute;
bottom: 20px;
left: 20px;
width: 300px;
height: 38px;
line-height: 38px;
text-align: center;
background: #3061D0;
color: #fff;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
cursor: pointer;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/IOT/ViewAppointment/schedule/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.week___Rv_0n {
width: 100%;
height: 50px;
border: 1px solid #F1F1F1;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}
.week___Rv_0n .btn___a2OPL {
width: 28px;
height: 28px;
background: #F8F9FC;
border-radius: 2px;
border: 1px solid #C3CFE0;
opacity: 0.5;
display: flex;
align-items: center;
justify-content: center;
}
.week___Rv_0n .weekCount___mG7X8 {
width: 190px;
text-align: center;
font-size: 14px;
}
.weekDay___ch7aL {
display: flex;
align-items: center;
height: 60px;
border: 1px solid #F1F1F1;
border-top: 0;
background: rgba(22, 93, 255, 0.04);
color: #333;
}
.weekDay___ch7aL .weekDay1___v2p75 {
position: relative;
width: 100%;
height: 100%;
}
.weekDay___ch7aL .weekDay1___v2p75 :nth-child(1) {
position: absolute;
top: 15%;
left: 71%;
}
.weekDay___ch7aL .weekDay1___v2p75 :nth-child(2) {
position: absolute;
top: 47%;
left: 12%;
}
.weekDay___ch7aL .weekDay1___v2p75::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
box-sizing: border-box;
background: linear-gradient(to top right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 1px), rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0) calc(50% + 1px), rgba(0, 0, 0, 0) 100%);
}
.weekDay___ch7aL .weekDay2___g0cHs {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
border-left: 1px solid #F1F1F1;
}
.timeSlotWarp___Guf0w {
display: flex;
}
.timeSlot___fsmG7 {
width: 101%;
height: 100%;
display: flex;
flex-wrap: wrap;
}
.timeSlot___fsmG7 .timeSlotItem___H7Giz {
width: calc(100%);
height: 60px;
background: rgba(22, 93, 255, 0.04);
border: 1px solid #F1F1F1;
border-top: 0px;
display: flex;
flex-wrap: wrap;
align-content: center;
justify-content: center;
}
.timeSlot___fsmG7 .timeSlotItem___H7Giz :nth-child(1) {
width: 100%;
text-align: center;
color: #333;
font-size: 14px;
}
.timeSlot___fsmG7 .timeSlotItem___H7Giz :nth-child(2) {
color: #999999;
font-size: 12px;
}
.timeSlotItem2___LETaH {
width: 100%;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #F1F1F1;
border-top: 0px;
border-left: 0px;
}

@ -4097,14 +4097,14 @@ var Navigation = function Navigation(_ref) {
},
children: "\u8FD4\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [hour, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: [hour || '00', /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
position: 'relative',
top: '-0.2vh',
margin: '0 0.2vw'
},
children: ":"
}), minute]
}), minute || '00']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
textAlign: 'left',

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.6 MiB

File diff suppressed because one or more lines are too long

@ -292,10 +292,10 @@ mark {
\**************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: "iconfont"; /* Project id 653600 */
src: url(./static/iconfont.96d1a46e.woff2) format('woff2'),
url(./static/iconfont.4b977730.woff) format('woff'),
url(./static/iconfont.28378175.ttf) format('truetype'),
url(./static/iconfont.c1c822b5.svg#iconfont) format('svg');
src: url(./static/iconfont.a20ff7c0.woff2) format('woff2'),
url(./static/iconfont.52d3f218.woff) format('woff'),
url(./static/iconfont.248bcb30.ttf) format('truetype'),
url(./static/iconfont.72ef1946.svg#iconfont) format('svg');
}
.iconfont {
@ -306,6 +306,114 @@ mark {
-moz-osx-font-smoothing: grayscale;
}
.icon-dianzibanpai:before {
content: "\eca9";
}
.icon-zhihuikaiguan:before {
content: "\eca8";
}
.icon-quxiaofabu1:before {
content: "\eca6";
}
.icon-fuhe-gaizhang:before {
content: "\eca7";
}
.icon-fasong2:before {
content: "\eca5";
}
.icon-icon-weixin:before {
content: "\eca4";
}
.icon-a-fenxiang2:before {
content: "\eca3";
}
.icon-qiyehezuo:before {
content: "\eca1";
}
.icon-zhaopinxinxi:before {
content: "\eca2";
}
.icon-dianzanhou:before {
content: "\eca0";
}
.icon-zhankai7:before {
content: "\ec9e";
}
.icon-shouqi7:before {
content: "\ec9f";
}
.icon-xueshi:before {
content: "\ec9c";
}
.icon-zhishidian:before {
content: "\ec9d";
}
.icon-piliangkaiji:before {
content: "\ec9a";
}
.icon-piliangguanji:before {
content: "\ec9b";
}
.icon-wulianwangshebei:before {
content: "\ec99";
}
.icon-dingweitubiao:before {
content: "\ec98";
}
.icon-zhongzhijilu:before {
content: "\ec97";
}
.icon-yunhang:before {
content: "\ec95";
}
.icon-tingzhiyunhang:before {
content: "\ec96";
}
.icon-chakanyuanti:before {
content: "\ec94";
}
.icon-jiarushitiku:before {
content: "\ec93";
}
.icon-jiazai:before {
content: "\ec92";
}
.icon-pizhuwenjian:before {
content: "\ec91";
}
.icon-wenjian8:before {
content: "\ec90";
}
.icon-xinjianwenjian:before {
content: "\ec8f";
}
.icon-shebeiyunhangjiankong:before {
content: "\ec8d";
}
Loading…
Cancel
Save