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/82135.6929fa25.async.js

1148 lines
66 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82135],{
/***/ 82135:
/*!*************************************!*\
!*** ./src/service/onlinedevice.ts ***!
\*************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ $Y: function() { return /* binding */ reservations_table_canceled; },
/* harmony export */ AY: function() { return /* binding */ device_tags_device_info; },
/* harmony export */ Ck: function() { return /* binding */ device_tags_devcie_models; },
/* harmony export */ Fi: function() { return /* binding */ device_fault_infos_content; },
/* harmony export */ IA: function() { return /* binding */ device_fault_delete; },
/* harmony export */ J4: function() { return /* binding */ reservations_table_info; },
/* harmony export */ J5: function() { return /* binding */ reservations_table_querys; },
/* harmony export */ KN: function() { return /* binding */ device_tags_table_delete; },
/* harmony export */ Ku: function() { return /* binding */ reservations_table_week_query; },
/* harmony export */ MU: function() { return /* binding */ devices_monitor; },
/* harmony export */ O3: function() { return /* binding */ reservations_table_devices_change_shixun; },
/* harmony export */ QD: function() { return /* binding */ device_info_table_query; },
/* harmony export */ Qq: function() { return /* binding */ postDevicesChangeStatus; },
/* harmony export */ RW: function() { return /* binding */ device_type_table_update; },
/* harmony export */ SY: function() { return /* binding */ device_type_table_info; },
/* harmony export */ T0: function() { return /* binding */ device_tags_table_add; },
/* harmony export */ TT: function() { return /* binding */ reservation_today_data; },
/* harmony export */ XS: function() { return /* binding */ device_tags_table_update; },
/* harmony export */ aZ: function() { return /* binding */ device_tags_table_info; },
/* harmony export */ bV: function() { return /* binding */ reservations_table_devices_info; },
/* harmony export */ cJ: function() { return /* binding */ message_table_query; },
/* harmony export */ d1: function() { return /* binding */ device_info_table_info; },
/* harmony export */ d_: function() { return /* binding */ device_type_table_add; },
/* harmony export */ dh: function() { return /* binding */ device_tags_table_query; },
/* harmony export */ eX: function() { return /* binding */ device_tags_device_type; },
/* harmony export */ e_: function() { return /* binding */ device_fault_statistics; },
/* harmony export */ ed: function() { return /* binding */ reservations_table_query; },
/* harmony export */ f6: function() { return /* binding */ reservations_table_reviewed; },
/* harmony export */ h9: function() { return /* binding */ device_info_table_update; },
/* harmony export */ hO: function() { return /* binding */ device_fault_add; },
/* harmony export */ iD: function() { return /* binding */ device_fault_query; },
/* harmony export */ lX: function() { return /* binding */ reservations_table_update; },
/* harmony export */ oV: function() { return /* binding */ can_reservation_devices; },
/* harmony export */ oW: function() { return /* binding */ reservations_table_add; },
/* harmony export */ ph: function() { return /* binding */ application_scrapped; },
/* harmony export */ rm: function() { return /* binding */ getDevicesOperationLogs; },
/* harmony export */ sT: function() { return /* binding */ support_shixuns_info; },
/* harmony export */ sp: function() { return /* binding */ device_info_table_add; },
/* harmony export */ uz: function() { return /* binding */ device_type_table_query; },
/* harmony export */ zZ: function() { return /* binding */ device_fault_update; }
/* harmony export */ });
/* unused harmony exports device_type_table_delete, device_info_use_status, device_info_all_tags, scrapped_data_info, used_rate, shixun_use_type_records, device_statistics, behavior_statistics, procure_records_device_statistics, device_fault_infos */
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_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_test4_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_test4_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 */ 82710);
/**
* @description 设备管理-设备操作日志
*/
var getDevicesOperationLogs = /*#__PURE__*/function () {
var _ref = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/operation_logs.json", {
method: 'Get',
params: params
}));
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getDevicesOperationLogs(_x) {
return _ref.apply(this, arguments);
};
}();
/**
* @description 设备管理-设备变更状态
*/
var postDevicesChangeStatus = /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee2(body) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/devices/".concat(body === null || body === void 0 ? void 0 : body.id, "/change_status.json"), {
method: 'post',
body: body
}));
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function postDevicesChangeStatus(_x2) {
return _ref2.apply(this, arguments);
};
}();
//设备标签列表查询
function device_tags_table_query(_x3) {
return _device_tags_table_query.apply(this, arguments);
}
//设备标签列表删除
function _device_tags_table_query() {
_device_tags_table_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee3(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_tags.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _device_tags_table_query.apply(this, arguments);
}
function device_tags_table_delete(_x4) {
return _device_tags_table_delete.apply(this, arguments);
}
//设备标签列表编辑
function _device_tags_table_delete() {
_device_tags_table_delete = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee4(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_tags/".concat(params.id, ".json"), {
method: 'DELETE'
}));
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _device_tags_table_delete.apply(this, arguments);
}
function device_tags_table_update(_x5) {
return _device_tags_table_update.apply(this, arguments);
}
//设备标签列表新增
function _device_tags_table_update() {
_device_tags_table_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee5(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_tags/".concat(data.id, ".json"), {
method: 'PUT',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return _device_tags_table_update.apply(this, arguments);
}
function device_tags_table_add(_x6) {
return _device_tags_table_add.apply(this, arguments);
}
//获取物理设备标签
function _device_tags_table_add() {
_device_tags_table_add = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee6(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_tags.json", {
method: 'POST',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context6.stop();
}
}, _callee6);
}));
return _device_tags_table_add.apply(this, arguments);
}
function device_tags_devcie_models(_x7) {
return _device_tags_devcie_models.apply(this, arguments);
}
//设备标签列表单条数据详情
function _device_tags_devcie_models() {
_device_tags_devcie_models = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee7(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_tags/get_devcie_models.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context7.stop();
}
}, _callee7);
}));
return _device_tags_devcie_models.apply(this, arguments);
}
function device_tags_table_info(_x8) {
return _device_tags_table_info.apply(this, arguments);
}
//获取某一设备信息
function _device_tags_table_info() {
_device_tags_table_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee8(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_tags/".concat(params, ".json"), {
method: 'get'
}));
case 1:
case "end":
return _context8.stop();
}
}, _callee8);
}));
return _device_tags_table_info.apply(this, arguments);
}
function device_tags_device_info(_x9) {
return _device_tags_device_info.apply(this, arguments);
}
//设备类型
function _device_tags_device_info() {
_device_tags_device_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee9(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/devices/".concat(params, ".json"), {
method: 'get'
}));
case 1:
case "end":
return _context9.stop();
}
}, _callee9);
}));
return _device_tags_device_info.apply(this, arguments);
}
function device_tags_device_type(_x10) {
return _device_tags_device_type.apply(this, arguments);
}
//设备类型列表查询
function _device_tags_device_type() {
_device_tags_device_type = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/devices/total_data.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _device_tags_device_type.apply(this, arguments);
}
function device_type_table_query(_x11) {
return _device_type_table_query.apply(this, arguments);
}
//设备类型列表删除
function _device_type_table_query() {
_device_type_table_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee11(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_types.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _device_type_table_query.apply(this, arguments);
}
function device_type_table_delete(_x12) {
return _device_type_table_delete.apply(this, arguments);
}
//设备类型列表详情
function _device_type_table_delete() {
_device_type_table_delete = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params) {
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
return _context12.abrupt("return", Fetch("/api/zz_classrooms/device_types/".concat(params, ".json"), {
method: 'DELETE'
}));
case 1:
case "end":
return _context12.stop();
}
}, _callee12);
}));
return _device_type_table_delete.apply(this, arguments);
}
function device_type_table_info(_x13) {
return _device_type_table_info.apply(this, arguments);
}
//设备类型列表修改
function _device_type_table_info() {
_device_type_table_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee13(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___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/zz_classrooms/device_types/".concat(params, ".json"), {
method: 'get'
}));
case 1:
case "end":
return _context13.stop();
}
}, _callee13);
}));
return _device_type_table_info.apply(this, arguments);
}
function device_type_table_update(_x14) {
return _device_type_table_update.apply(this, arguments);
}
//设备类型列表新增
function _device_type_table_update() {
_device_type_table_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee14(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
case 0:
return _context14.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/device_types/".concat(data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context14.stop();
}
}, _callee14);
}));
return _device_type_table_update.apply(this, arguments);
}
function device_type_table_add(_x15) {
return _device_type_table_add.apply(this, arguments);
}
//上下架
function _device_type_table_add() {
_device_type_table_add = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee15(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee15$(_context15) {
while (1) switch (_context15.prev = _context15.next) {
case 0:
return _context15.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/device_types.json", {
method: 'POST',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context15.stop();
}
}, _callee15);
}));
return _device_type_table_add.apply(this, arguments);
}
function device_info_use_status(_x16) {
return _device_info_use_status.apply(this, arguments);
}
//某设备所有标签记录
function _device_info_use_status() {
_device_info_use_status = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
return _context16.abrupt("return", Fetch("/api/zz_classrooms/devices/".concat(params.id, "/update_device_use_status.json"), {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context16.stop();
}
}, _callee16);
}));
return _device_info_use_status.apply(this, arguments);
}
function device_info_all_tags(_x17) {
return _device_info_all_tags.apply(this, arguments);
}
//设备信息列表查询
function _device_info_all_tags() {
_device_info_all_tags = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
while (1) switch (_context17.prev = _context17.next) {
case 0:
return _context17.abrupt("return", Fetch("/api/zz_classrooms/devices/".concat(params, "/device_all_tags.json"), {
method: 'get'
}));
case 1:
case "end":
return _context17.stop();
}
}, _callee17);
}));
return _device_info_all_tags.apply(this, arguments);
}
function device_info_table_query(_x18) {
return _device_info_table_query.apply(this, arguments);
}
//设备信息列表详情
function _device_info_table_query() {
_device_info_table_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee18(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee18$(_context18) {
while (1) switch (_context18.prev = _context18.next) {
case 0:
return _context18.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context18.stop();
}
}, _callee18);
}));
return _device_info_table_query.apply(this, arguments);
}
function device_info_table_info(_x19) {
return _device_info_table_info.apply(this, arguments);
}
//设备当前性能
function _device_info_table_info() {
_device_info_table_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee19(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee19$(_context19) {
while (1) switch (_context19.prev = _context19.next) {
case 0:
return _context19.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(params, ".json"), {
method: 'get'
}));
case 1:
case "end":
return _context19.stop();
}
}, _callee19);
}));
return _device_info_table_info.apply(this, arguments);
}
function devices_monitor(_x20) {
return _devices_monitor.apply(this, arguments);
}
//获取某个设备的维修记录
function _devices_monitor() {
_devices_monitor = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee20(id) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee20$(_context20) {
while (1) switch (_context20.prev = _context20.next) {
case 0:
return _context20.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(id, "/monitor.json"), {
method: 'get'
}));
case 1:
case "end":
return _context20.stop();
}
}, _callee20);
}));
return _devices_monitor.apply(this, arguments);
}
function device_fault_infos_content(_x21) {
return _device_fault_infos_content.apply(this, arguments);
}
//设备详情页图表
function _device_fault_infos_content() {
_device_fault_infos_content = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee21(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee21$(_context21) {
while (1) switch (_context21.prev = _context21.next) {
case 0:
return _context21.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(params, "/device_fault_infos.json"), {
method: 'get'
}));
case 1:
case "end":
return _context21.stop();
}
}, _callee21);
}));
return _device_fault_infos_content.apply(this, arguments);
}
function device_fault_statistics(_x22) {
return _device_fault_statistics.apply(this, arguments);
}
//设备信息列表编辑
function _device_fault_statistics() {
_device_fault_statistics = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee22(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee22$(_context22) {
while (1) switch (_context22.prev = _context22.next) {
case 0:
return _context22.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(params === null || params === void 0 ? void 0 : params.id, "/statistics.json"), {
method: 'get',
params: params
}));
case 1:
case "end":
return _context22.stop();
}
}, _callee22);
}));
return _device_fault_statistics.apply(this, arguments);
}
function device_info_table_update(_x23) {
return _device_info_table_update.apply(this, arguments);
}
//设备信息列表编辑
function _device_info_table_update() {
_device_info_table_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee23(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee23$(_context23) {
while (1) switch (_context23.prev = _context23.next) {
case 0:
return _context23.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context23.stop();
}
}, _callee23);
}));
return _device_info_table_update.apply(this, arguments);
}
function device_info_table_add(_x24) {
return _device_info_table_add.apply(this, arguments);
}
//设备信息列表查询
function _device_info_table_add() {
_device_info_table_add = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee24(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee24$(_context24) {
while (1) switch (_context24.prev = _context24.next) {
case 0:
return _context24.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context24.stop();
}
}, _callee24);
}));
return _device_info_table_add.apply(this, arguments);
}
function can_reservation_devices(_x25) {
return _can_reservation_devices.apply(this, arguments);
}
//预约列表(预约管理, 预约审核)
function _can_reservation_devices() {
_can_reservation_devices = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee25(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee25$(_context25) {
while (1) switch (_context25.prev = _context25.next) {
case 0:
return _context25.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/can_reservation_devices.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context25.stop();
}
}, _callee25);
}));
return _can_reservation_devices.apply(this, arguments);
}
function reservations_table_query(_x26) {
return _reservations_table_query.apply(this, arguments);
}
//预约列表(预约管理, 预约审核)
function _reservations_table_query() {
_reservations_table_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee26(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee26$(_context26) {
while (1) switch (_context26.prev = _context26.next) {
case 0:
return _context26.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context26.stop();
}
}, _callee26);
}));
return _reservations_table_query.apply(this, arguments);
}
function reservations_table_querys(_x27) {
return _reservations_table_querys.apply(this, arguments);
}
//取消预约
function _reservations_table_querys() {
_reservations_table_querys = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee27(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee27$(_context27) {
while (1) switch (_context27.prev = _context27.next) {
case 0:
return _context27.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(params.device_id, "/reservations.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context27.stop();
}
}, _callee27);
}));
return _reservations_table_querys.apply(this, arguments);
}
function reservations_table_canceled(_x28) {
return _reservations_table_canceled.apply(this, arguments);
}
//预约设备详情
function _reservations_table_canceled() {
_reservations_table_canceled = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee28(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee28$(_context28) {
while (1) switch (_context28.prev = _context28.next) {
case 0:
return _context28.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations/".concat(params, "/canceled.json"), {
method: 'get'
}));
case 1:
case "end":
return _context28.stop();
}
}, _callee28);
}));
return _reservations_table_canceled.apply(this, arguments);
}
function reservations_table_devices_info(_x29) {
return _reservations_table_devices_info.apply(this, arguments);
}
//设备找可预约的实训
function _reservations_table_devices_info() {
_reservations_table_devices_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee29(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee29$(_context29) {
while (1) switch (_context29.prev = _context29.next) {
case 0:
return _context29.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations/get_shixun_devices.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context29.stop();
}
}, _callee29);
}));
return _reservations_table_devices_info.apply(this, arguments);
}
function reservations_table_devices_change_shixun(_x30) {
return _reservations_table_devices_change_shixun.apply(this, arguments);
}
//创建预约
function _reservations_table_devices_change_shixun() {
_reservations_table_devices_change_shixun = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee30(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee30$(_context30) {
while (1) switch (_context30.prev = _context30.next) {
case 0:
return _context30.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations/device_find_shixuns.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context30.stop();
}
}, _callee30);
}));
return _reservations_table_devices_change_shixun.apply(this, arguments);
}
function reservations_table_add(_x31) {
return _reservations_table_add.apply(this, arguments);
}
// 编辑预约
function _reservations_table_add() {
_reservations_table_add = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee31(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee31$(_context31) {
while (1) switch (_context31.prev = _context31.next) {
case 0:
return _context31.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context31.stop();
}
}, _callee31);
}));
return _reservations_table_add.apply(this, arguments);
}
function reservations_table_update(_x32) {
return _reservations_table_update.apply(this, arguments);
}
//某一预约详情
function _reservations_table_update() {
_reservations_table_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee32(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
return _context32.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations/".concat(data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return _reservations_table_update.apply(this, arguments);
}
function reservations_table_info(_x33) {
return _reservations_table_info.apply(this, arguments);
}
//批准or驳回预约
function _reservations_table_info() {
_reservations_table_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee33(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
return _context33.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations/".concat(params, ".json"), {
method: 'get'
}));
case 1:
case "end":
return _context33.stop();
}
}, _callee33);
}));
return _reservations_table_info.apply(this, arguments);
}
function reservations_table_reviewed(_x34) {
return _reservations_table_reviewed.apply(this, arguments);
}
//每周设备预约数据
function _reservations_table_reviewed() {
_reservations_table_reviewed = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee34(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee34$(_context34) {
while (1) switch (_context34.prev = _context34.next) {
case 0:
return _context34.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/reservations/".concat(params.id, "/reviewed.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context34.stop();
}
}, _callee34);
}));
return _reservations_table_reviewed.apply(this, arguments);
}
function reservations_table_week_query(_x35) {
return _reservations_table_week_query.apply(this, arguments);
}
//申请报废
function _reservations_table_week_query() {
_reservations_table_week_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee35(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee35$(_context35) {
while (1) switch (_context35.prev = _context35.next) {
case 0:
return _context35.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(params.id, "/reservation_detail.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context35.stop();
}
}, _callee35);
}));
return _reservations_table_week_query.apply(this, arguments);
}
function application_scrapped(_x36) {
return _application_scrapped.apply(this, arguments);
}
//设备报废详情
function _application_scrapped() {
_application_scrapped = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee36(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee36$(_context36) {
while (1) switch (_context36.prev = _context36.next) {
case 0:
return _context36.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/devices/".concat(data.id, "/application_scrapped.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context36.stop();
}
}, _callee36);
}));
return _application_scrapped.apply(this, arguments);
}
function scrapped_data_info(_x37) {
return _scrapped_data_info.apply(this, arguments);
}
//设备类型支持的实验项目
function _scrapped_data_info() {
_scrapped_data_info = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(params) {
return _regeneratorRuntime().wrap(function _callee37$(_context37) {
while (1) switch (_context37.prev = _context37.next) {
case 0:
return _context37.abrupt("return", Fetch("/api/zz_classrooms/devices/".concat(params, "/scrapped_data.json"), {
method: 'get'
}));
case 1:
case "end":
return _context37.stop();
}
}, _callee37);
}));
return _scrapped_data_info.apply(this, arguments);
}
function support_shixuns_info(_x38) {
return _support_shixuns_info.apply(this, arguments);
}
//设备类型使用率
function _support_shixuns_info() {
_support_shixuns_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee38(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee38$(_context38) {
while (1) switch (_context38.prev = _context38.next) {
case 0:
return _context38.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/device_types/".concat(params.id, "/support_shixuns.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context38.stop();
}
}, _callee38);
}));
return _support_shixuns_info.apply(this, arguments);
}
function used_rate(_x39) {
return _used_rate.apply(this, arguments);
}
//设备类型历史使用记录
function _used_rate() {
_used_rate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(params) {
return _regeneratorRuntime().wrap(function _callee39$(_context39) {
while (1) switch (_context39.prev = _context39.next) {
case 0:
return _context39.abrupt("return", Fetch("/api/zz_classrooms/device_details/used_rate.json", {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context39.stop();
}
}, _callee39);
}));
return _used_rate.apply(this, arguments);
}
function shixun_use_type_records(_x40) {
return _shixun_use_type_records.apply(this, arguments);
}
//设备统计
function _shixun_use_type_records() {
_shixun_use_type_records = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(params) {
return _regeneratorRuntime().wrap(function _callee40$(_context40) {
while (1) switch (_context40.prev = _context40.next) {
case 0:
return _context40.abrupt("return", Fetch("/api/zz_classrooms/device_details/shixun_use_type_records.json", {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context40.stop();
}
}, _callee40);
}));
return _shixun_use_type_records.apply(this, arguments);
}
function device_statistics(_x41) {
return _device_statistics.apply(this, arguments);
}
//行为统计
function _device_statistics() {
_device_statistics = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(params) {
return _regeneratorRuntime().wrap(function _callee41$(_context41) {
while (1) switch (_context41.prev = _context41.next) {
case 0:
return _context41.abrupt("return", Fetch("/api/zz_classrooms/device_details/device_statistics.json", {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context41.stop();
}
}, _callee41);
}));
return _device_statistics.apply(this, arguments);
}
function behavior_statistics(_x42) {
return _behavior_statistics.apply(this, arguments);
}
//获取设备类型下所有设备数量与折旧率统计
function _behavior_statistics() {
_behavior_statistics = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(params) {
return _regeneratorRuntime().wrap(function _callee42$(_context42) {
while (1) switch (_context42.prev = _context42.next) {
case 0:
return _context42.abrupt("return", Fetch("/api/zz_classrooms/device_details/action_statistics.json", {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context42.stop();
}
}, _callee42);
}));
return _behavior_statistics.apply(this, arguments);
}
function procure_records_device_statistics(_x43) {
return _procure_records_device_statistics.apply(this, arguments);
}
//获取故障列表
function _procure_records_device_statistics() {
_procure_records_device_statistics = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(params) {
return _regeneratorRuntime().wrap(function _callee43$(_context43) {
while (1) switch (_context43.prev = _context43.next) {
case 0:
return _context43.abrupt("return", Fetch("/api/zz_classrooms/procure_records/device_statistics.json", {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context43.stop();
}
}, _callee43);
}));
return _procure_records_device_statistics.apply(this, arguments);
}
function device_fault_query(_x44) {
return _device_fault_query.apply(this, arguments);
}
//创建故障记录
function _device_fault_query() {
_device_fault_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee44(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee44$(_context44) {
while (1) switch (_context44.prev = _context44.next) {
case 0:
return _context44.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/device_fault_infos.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context44.stop();
}
}, _callee44);
}));
return _device_fault_query.apply(this, arguments);
}
function device_fault_add(_x45) {
return _device_fault_add.apply(this, arguments);
}
//更新故障记录
function _device_fault_add() {
_device_fault_add = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee45(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee45$(_context45) {
while (1) switch (_context45.prev = _context45.next) {
case 0:
return _context45.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/device_fault_infos.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context45.stop();
}
}, _callee45);
}));
return _device_fault_add.apply(this, arguments);
}
function device_fault_update(_x46) {
return _device_fault_update.apply(this, arguments);
}
//获取单条故障记录
function _device_fault_update() {
_device_fault_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee46(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee46$(_context46) {
while (1) switch (_context46.prev = _context46.next) {
case 0:
return _context46.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/device_fault_infos/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, data)
}));
case 1:
case "end":
return _context46.stop();
}
}, _callee46);
}));
return _device_fault_update.apply(this, arguments);
}
function device_fault_infos(_x47) {
return _device_fault_infos.apply(this, arguments);
}
//删除单条故障记录
function _device_fault_infos() {
_device_fault_infos = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(params) {
return _regeneratorRuntime().wrap(function _callee47$(_context47) {
while (1) switch (_context47.prev = _context47.next) {
case 0:
return _context47.abrupt("return", Fetch("/api/zz_classrooms/device_fault_infos/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context47.stop();
}
}, _callee47);
}));
return _device_fault_infos.apply(this, arguments);
}
function device_fault_delete(_x48) {
return _device_fault_delete.apply(this, arguments);
}
// 今日预约统计
function _device_fault_delete() {
_device_fault_delete = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee48(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee48$(_context48) {
while (1) switch (_context48.prev = _context48.next) {
case 0:
return _context48.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/device_fault_infos/".concat(data, ".json"), {
method: 'delete'
}));
case 1:
case "end":
return _context48.stop();
}
}, _callee48);
}));
return _device_fault_delete.apply(this, arguments);
}
function reservation_today_data(_x49) {
return _reservation_today_data.apply(this, arguments);
}
//消息中心列表查询
function _reservation_today_data() {
_reservation_today_data = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee49(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee49$(_context49) {
while (1) switch (_context49.prev = _context49.next) {
case 0:
return _context49.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)('/api/zz_classrooms/reservations/reservation_data.json', {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context49.stop();
}
}, _callee49);
}));
return _reservation_today_data.apply(this, arguments);
}
function message_table_query(_x50) {
return _message_table_query.apply(this, arguments);
}
function _message_table_query() {
_message_table_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee50(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee50$(_context50) {
while (1) switch (_context50.prev = _context50.next) {
case 0:
return _context50.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/zz_classrooms/message_centers.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":
return _context50.stop();
}
}, _callee50);
}));
return _message_table_query.apply(this, arguments);
}
/***/ })
}]);