Auto Submit

dev_local_v9_test2
autosubmit 2 years ago
parent 9aa25f7515
commit 57bc7b6968

@ -15,6 +15,7 @@
/* harmony export */ Cc: function() { return /* binding */ reservation_rules_info; },
/* harmony export */ Do: function() { return /* binding */ reservations_create; },
/* harmony export */ GJ: function() { return /* binding */ classroom_query; },
/* harmony export */ Gy: function() { return /* binding */ can_reservation_classroom_centers; },
/* harmony export */ Ig: function() { return /* binding */ classroom_categories_update; },
/* harmony export */ Iy: function() { return /* binding */ classroom_rooms_info; },
/* harmony export */ Jn: function() { return /* binding */ classroom_centers_import; },
@ -982,6 +983,8 @@ function _can_reservation_classrooms() {
function can_reservation_classroom_rooms(_x43) {
return _can_reservation_classroom_rooms.apply(this, arguments);
}
//当前用户能预约的实验室中心
function _can_reservation_classroom_rooms() {
_can_reservation_classroom_rooms = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee43(params) {
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee43$(_context43) {
@ -999,6 +1002,26 @@ function _can_reservation_classroom_rooms() {
}));
return _can_reservation_classroom_rooms.apply(this, arguments);
}
function can_reservation_classroom_centers(_x44) {
return _can_reservation_classroom_centers.apply(this, arguments);
}
function _can_reservation_classroom_centers() {
_can_reservation_classroom_centers = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee44(params) {
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___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/yn_classrooms/classroom_centers/can_reservation_classroom_centers.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context44.stop();
}
}, _callee44);
}));
return _can_reservation_classroom_centers.apply(this, arguments);
}
/***/ })

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

@ -118,7 +118,7 @@ var statusType = {
'canceled': '已取消'
};
var Navigation = function Navigation(_ref) {
var _ref2;
var _ref2, _infoData$sections;
var loading = _ref.loading,
user = _ref.user;
var _useState = (0,_react_17_0_2_react.useState)(),
@ -1134,6 +1134,17 @@ var Navigation = function Navigation(_ref) {
colon: false,
label: "\u9884\u7EA6\u65E5\u671F",
children: infoData === null || infoData === void 0 ? void 0 : infoData.date
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u8282\u6B21",
children: infoData === null || infoData === void 0 || (_infoData$sections = infoData.sections) === null || _infoData$sections === void 0 ? void 0 : _infoData$sections.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginTop: '5px'
},
children: timeType[item === null || item === void 0 ? void 0 : item.section_id]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u5DE5\u4F4D\u6570\u91CF",

@ -118,7 +118,7 @@ var statusType = {
'canceled': '已取消'
};
var Navigation = function Navigation(_ref) {
var _ref2;
var _infoData$sections;
var loading = _ref.loading,
user = _ref.user;
var _useState = (0,_react_17_0_2_react.useState)(),
@ -185,29 +185,33 @@ var Navigation = function Navigation(_ref) {
//实验室
var _useState25 = (0,_react_17_0_2_react.useState)([]),
_useState26 = slicedToArray_default()(_useState25, 2),
laboratorys = _useState26[0],
setLaboratorys = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)(''),
laboratorysAll = _useState26[0],
setLaboratorysAll = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)([]),
_useState28 = slicedToArray_default()(_useState27, 2),
classroomId = _useState28[0],
setClassroomId = _useState28[1];
//实验室房间
var _useState29 = (0,_react_17_0_2_react.useState)([]),
laboratorys = _useState28[0],
setLaboratorys = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)(''),
_useState30 = slicedToArray_default()(_useState29, 2),
rooms = _useState30[0],
setRooms = _useState30[1];
classroomId = _useState30[0],
setClassroomId = _useState30[1];
//实验室房间
var _useState31 = (0,_react_17_0_2_react.useState)([]),
_useState32 = slicedToArray_default()(_useState31, 2),
sectionList = _useState32[0],
setSectionList = _useState32[1];
var _useState33 = (0,_react_17_0_2_react.useState)(''),
rooms = _useState32[0],
setRooms = _useState32[1];
var _useState33 = (0,_react_17_0_2_react.useState)([]),
_useState34 = slicedToArray_default()(_useState33, 2),
stationSize = _useState34[0],
setStationSize = _useState34[1];
var _useState35 = (0,_react_17_0_2_react.useState)([]),
sectionList = _useState34[0],
setSectionList = _useState34[1];
var _useState35 = (0,_react_17_0_2_react.useState)(''),
_useState36 = slicedToArray_default()(_useState35, 2),
containerList = _useState36[0],
setContainerList = _useState36[1];
stationSize = _useState36[0],
setStationSize = _useState36[1];
var _useState37 = (0,_react_17_0_2_react.useState)([]),
_useState38 = slicedToArray_default()(_useState37, 2),
containerList = _useState38[0],
setContainerList = _useState38[1];
var columns = [{
title: '预约人',
dataIndex: 'user_name',
@ -515,24 +519,17 @@ var Navigation = function Navigation(_ref) {
var _res$data4;
setDirectorsList(res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.list);
});
//实验室房间
(0,laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
keyword: '',
classroom_id: ''
}).then(function (res) {
var _res$data5;
setRooms(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list);
});
//实验室
(0,laboratory/* classroom_query */.GJ)({
page: 1,
limit: 10000,
keyword: ''
}).then(function (res) {
var _res$data6;
setLaboratorys(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list);
var _res$data5;
setLaboratorysAll([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list)));
});
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
@ -553,9 +550,9 @@ var Navigation = function Navigation(_ref) {
classroom_id: classroomId,
keyword: keyword
}).then(function (res) {
var _res$data7, _res$data8;
setTotal(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.count);
setTableData(res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.list);
var _res$data6, _res$data7;
setTotal(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.count);
setTableData(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.list);
});
};
var onShowSizeChange = function onShowSizeChange(page, size) {
@ -647,10 +644,7 @@ var Navigation = function Navigation(_ref) {
onChange: function onChange(e) {
setClassroomId(e);
},
children: (_ref2 = [{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(laboratorys))) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item, index) {
children: laboratorysAll === null || laboratorysAll === void 0 ? void 0 : laboratorysAll.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
@ -853,8 +847,8 @@ var Navigation = function Navigation(_ref) {
(0,laboratory/* can_reservation_classrooms */.QS)({
reservation_user_id: e
}).then(function (res) {
var _res$data9;
setLaboratorys(res === null || res === void 0 || (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.list);
var _res$data8;
setLaboratorys(res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.list);
});
myForm.setFieldValue('classroom_id', '');
myForm.setFieldValue('classroom_room_id', '');
@ -904,8 +898,8 @@ var Navigation = function Navigation(_ref) {
reservation_user_id: myForm.getFieldValue('reservation_user_id'),
classroom_id: e
}).then(function (res) {
var _res$data10;
setRooms(res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.list);
var _res$data9;
setRooms(res === null || res === void 0 || (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.list);
});
myForm.setFieldValue('classroom_room_id', '');
},
@ -951,8 +945,8 @@ var Navigation = function Navigation(_ref) {
date: dayjs_min_default()(e === null || e === void 0 ? void 0 : e.$d).format('YYYY-MM-DD'),
classroom_room_id: myForm.getFieldValue('classroom_room_id')
}).then(function (res) {
var _res$data11;
setSectionList(res === null || res === void 0 || (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.list);
var _res$data10;
setSectionList(res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.list);
});
}
})
@ -1178,6 +1172,17 @@ var Navigation = function Navigation(_ref) {
colon: false,
label: "\u9884\u7EA6\u65E5\u671F",
children: infoData === null || infoData === void 0 ? void 0 : infoData.date
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u8282\u6B21",
children: infoData === null || infoData === void 0 || (_infoData$sections = infoData.sections) === null || _infoData$sections === void 0 ? void 0 : _infoData$sections.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginTop: '5px'
},
children: timeType[item === null || item === void 0 ? void 0 : item.section_id]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u5DE5\u4F4D\u6570\u91CF",
@ -1217,10 +1222,10 @@ var Navigation = function Navigation(_ref) {
})]
});
};
/* harmony default export */ var ReservationManage = ((0,_umi_production_exports.connect)(function (_ref5) {
var loading = _ref5.loading,
engineeringNavigtion = _ref5.engineeringNavigtion,
user = _ref5.user;
/* harmony default export */ var ReservationManage = ((0,_umi_production_exports.connect)(function (_ref4) {
var loading = _ref4.loading,
engineeringNavigtion = _ref4.engineeringNavigtion,
user = _ref4.user;
return objectSpread2_default()(objectSpread2_default()({
loading: loading
}, engineeringNavigtion), {}, {

@ -386,6 +386,7 @@ var statusType = {
'canceled': '已取消'
};
var subscribe_Navigation = function Navigation(_ref) {
var _infoData$sections;
var loading = _ref.loading,
user = _ref.user,
roomInfo = _ref.roomInfo;
@ -1396,6 +1397,17 @@ var subscribe_Navigation = function Navigation(_ref) {
colon: false,
label: "\u9884\u7EA6\u65E5\u671F",
children: infoData === null || infoData === void 0 ? void 0 : infoData.date
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u8282\u6B21",
children: infoData === null || infoData === void 0 || (_infoData$sections = infoData.sections) === null || _infoData$sections === void 0 ? void 0 : _infoData$sections.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginTop: '5px'
},
children: timeType[item === null || item === void 0 ? void 0 : item.section_id]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u5DE5\u4F4D\u6570\u91CF",

@ -198,7 +198,8 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var loading = _ref.loading;
var loading = _ref.loading,
user = _ref.user;
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
keyword = _useState2[0],
@ -325,11 +326,10 @@ var Navigation = function Navigation(_ref) {
limit = _useState24[0],
setLimit = _useState24[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo, _user$userInfo2;
//实验室中心
(0,service_laboratory/* classroom_centers_query */.Jv)({
page: 1,
limit: 10000,
keyword: ''
(0,service_laboratory/* can_reservation_classroom_centers */.Gy)({
reservation_user_id: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id
}).then(function (res) {
var _res$data;
setLaboratoryCenters([{
@ -337,11 +337,10 @@ var Navigation = function Navigation(_ref) {
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list)));
});
//实验室
(0,service_laboratory/* classroom_query */.GJ)({
page: 1,
limit: 10000,
keyword: ''
//实验室下拉
(0,service_laboratory/* can_reservation_classrooms */.QS)({
classroom_center_id: '',
reservation_user_id: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id
}).then(function (res) {
var _res$data2;
setLaboratorys([{
@ -476,7 +475,20 @@ var Navigation = function Navigation(_ref) {
defaultValue: laboratoryCenter,
value: laboratoryCenter,
onChange: function onChange(e) {
var _user$userInfo3;
setLaboratoryCenter(e);
//实验室下拉
(0,service_laboratory/* can_reservation_classrooms */.QS)({
classroom_center_id: e,
reservation_user_id: user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_id
}).then(function (res) {
var _res$data5;
setLaboratorys([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list)));
});
setLaboratory('');
},
children: laboratoryCenters === null || laboratoryCenters === void 0 ? void 0 : laboratoryCenters.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
@ -599,10 +611,13 @@ var Navigation = function Navigation(_ref) {
};
/* harmony default export */ var Reservations = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
engineeringNavigtion = _ref2.engineeringNavigtion;
return objectSpread2_default()({
engineeringNavigtion = _ref2.engineeringNavigtion,
user = _ref2.user;
return objectSpread2_default()(objectSpread2_default()({
loading: loading
}, engineeringNavigtion);
}, engineeringNavigtion), {}, {
user: user
});
})(Navigation));
/***/ }),

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