|
|
|
|
@ -244,6 +244,10 @@ var DeviceManage = function DeviceManage(_ref) {
|
|
|
|
|
_useState32 = slicedToArray_default()(_useState31, 2),
|
|
|
|
|
openAddModal = _useState32[0],
|
|
|
|
|
setOpenAddModal = _useState32[1];
|
|
|
|
|
var _useState33 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState34 = slicedToArray_default()(_useState33, 2),
|
|
|
|
|
rooms2 = _useState34[0],
|
|
|
|
|
setRooms2 = _useState34[1];
|
|
|
|
|
var isFirstLoad = (0,_react_17_0_2_react.useRef)(true);
|
|
|
|
|
var columns = [{
|
|
|
|
|
title: '设备编号',
|
|
|
|
|
@ -344,6 +348,7 @@ var DeviceManage = function DeviceManage(_ref) {
|
|
|
|
|
title: '操作',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
width: 140,
|
|
|
|
|
align: 'right',
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
@ -510,6 +515,7 @@ var DeviceManage = function DeviceManage(_ref) {
|
|
|
|
|
className: DeviceManagemodules.clear_Data,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setRowData(null);
|
|
|
|
|
setRooms2([]);
|
|
|
|
|
setOpenAddModal(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u5173\u8054\u8BBE\u5907"
|
|
|
|
|
@ -1000,7 +1006,7 @@ var DeviceManage = function DeviceManage(_ref) {
|
|
|
|
|
classroom_id: e
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
var _res$data6;
|
|
|
|
|
setRooms(toConsumableArray_default()(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list));
|
|
|
|
|
setRooms2(toConsumableArray_default()(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list));
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: laboratorys === null || laboratorys === void 0 ? void 0 : laboratorys.map(function (item, index) {
|
|
|
|
|
@ -1027,7 +1033,7 @@ var DeviceManage = function DeviceManage(_ref) {
|
|
|
|
|
style: {
|
|
|
|
|
width: '300px !important'
|
|
|
|
|
},
|
|
|
|
|
children: rooms === null || rooms === void 0 ? void 0 : rooms.map(function (item, index) {
|
|
|
|
|
children: rooms2 === null || rooms2 === void 0 ? void 0 : rooms2.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
|