Auto Submit

dev_local_v9_test5
autosubmit 2 years ago
parent 95b0f2d388
commit 8e8ed0be3c

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

@ -60,15 +60,15 @@ __webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ IOT_DeviceManage; }
});
// 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/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);
@ -153,7 +153,7 @@ var jsx_runtime = __webpack_require__(37712);
var DeviceManage = function DeviceManage(_ref) {
var _ref2, _ref3;
var _ref3, _ref4;
var loading = _ref.loading,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)(),
@ -377,6 +377,8 @@ var DeviceManage = function DeviceManage(_ref) {
marginLeft: '20px'
},
onClick: function onClick() {
if (isLoading) return;
setIsLoading(true);
(0,iot/* lot_up */.zh)({
device_ids: [record === null || record === void 0 ? void 0 : record.id]
}).then(function (res) {
@ -384,6 +386,7 @@ var DeviceManage = function DeviceManage(_ref) {
message/* default */.ZP.success('开机成功');
getData(false);
}
setIsLoading(false);
});
},
children: "\u5F00\u673A"
@ -393,16 +396,33 @@ var DeviceManage = function DeviceManage(_ref) {
cursor: "pointer",
marginLeft: '20px'
},
onClick: function onClick() {
(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) {
message/* default */.ZP.success('关机成功');
getData(true);
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!isLoading) {
_context.next = 2;
break;
}
return _context.abrupt("return");
case 2:
setIsLoading(true);
_context.next = 5;
return (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) {
message/* default */.ZP.success('关机成功');
getData(true);
}
setIsLoading(false);
});
case 5:
case "end":
return _context.stop();
}
});
},
}, _callee);
})),
children: "\u5173\u673A"
})]
});
@ -555,10 +575,10 @@ var DeviceManage = function DeviceManage(_ref) {
setRooms(toConsumableArray_default()(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list));
});
},
children: (_ref2 = [{
children: (_ref3 = [{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(laboratorys))) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item, index) {
}].concat(toConsumableArray_default()(laboratorys))) === null || _ref3 === void 0 ? void 0 : _ref3.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
@ -581,10 +601,10 @@ var DeviceManage = function DeviceManage(_ref) {
onChange: function onChange(e) {
setSysRoom(e);
},
children: (_ref3 = [{
children: (_ref4 = [{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(rooms))) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item, index) {
}].concat(toConsumableArray_default()(rooms))) === null || _ref4 === void 0 ? void 0 : _ref4.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
@ -690,9 +710,9 @@ var DeviceManage = function DeviceManage(_ref) {
return item.name;
}).join('、'), "\uFF09\u5C06\u4F1A\u88AB\u6279\u91CF\u5F00\u673A, \u8BF7\u60A8\u786E\u8BA4!"),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
(0,iot/* lot_up */.zh)({
device_ids: selectIds === null || selectIds === void 0 ? void 0 : selectIds.map(function (item) {
@ -706,9 +726,9 @@ var DeviceManage = function DeviceManage(_ref) {
});
case 1:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -741,9 +761,9 @@ var DeviceManage = function DeviceManage(_ref) {
return item.name;
}).join('、'), "\uFF09\u5C06\u4F1A\u88AB\u6279\u91CF\u5173\u673A, \u8BF7\u60A8\u786E\u8BA4!"),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
(0,iot/* lot_down */.hQ)({
device_ids: selectIds === null || selectIds === void 0 ? void 0 : selectIds.map(function (item) {
@ -757,9 +777,9 @@ var DeviceManage = function DeviceManage(_ref) {
});
case 1:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
function onOk() {
return _onOk2.apply(this, arguments);
@ -797,11 +817,11 @@ var DeviceManage = function DeviceManage(_ref) {
open: openAddModal,
title: "".concat(rowData ? '编辑关联设备' : '关联设备'),
width: "948px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context3.next = 2;
_context4.next = 2;
return myForm.validateFields();
case 2:
if (rowData) {
@ -832,9 +852,9 @@ var DeviceManage = function DeviceManage(_ref) {
}
case 3:
case "end":
return _context3.stop();
return _context4.stop();
}
}, _callee3);
}, _callee4);
})),
onCancel: function onCancel() {
setOpenAddModal(false);
@ -1008,10 +1028,10 @@ var DeviceManage = function DeviceManage(_ref) {
})]
});
};
/* harmony default export */ var IOT_DeviceManage = ((0,_umi_production_exports.connect)(function (_ref5) {
var loading = _ref5.loading,
engineeringNavigtion = _ref5.engineeringNavigtion,
dispatch = _ref5.dispatch;
/* harmony default export */ var IOT_DeviceManage = ((0,_umi_production_exports.connect)(function (_ref6) {
var loading = _ref6.loading,
engineeringNavigtion = _ref6.engineeringNavigtion,
dispatch = _ref6.dispatch;
return objectSpread2_default()(objectSpread2_default()({
loading: loading
}, engineeringNavigtion), {}, {

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