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/p__Laboratory__ReservationM...

1552 lines
72 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[43212],{
/***/ 82437:
/*!**********************************************************************!*\
!*** ./src/pages/Laboratory/ReservationManage/index.tsx + 2 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 */ ReservationManage; }
});
// 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/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// 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__(25789);
;// CONCATENATED MODULE: ./src/pages/Laboratory/ReservationManage/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ReservationManagemodules = ({"header_div":"header_div___FnZUF","header_title":"header_title___Uziic","search":"search___fe9lC","searchIcon":"searchIcon___wfKLC","search_params":"search_params___OmXRN","add_Data":"add_Data___h_mvI","my_modal":"my_modal___emMcK","tj_warp":"tj_warp___P_UK7","tjcount":"tjcount___Cxe_l","colorBlue":"colorBlue___u9cjn","tj_item":"tj_item___o3d8l","tj_item_icon":"tj_item_icon___jUQz1","tj_item_num":"tj_item_num___Skhqs","tj_item_text":"tj_item_text___iDuqK"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 12 modules
var date_picker = __webpack_require__(47119);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
var input = __webpack_require__(92832);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(1710);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(58421);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js
var upload = __webpack_require__(60028);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
var TextArea = __webpack_require__(1643);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(684);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.19@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(66649);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(55794);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(14160);
// EXTERNAL MODULE: ./src/assets/images/statistics/rl.png
var rl = __webpack_require__(3816);
// EXTERNAL MODULE: ./src/assets/images/statistics/tow.png
var tow = __webpack_require__(30980);
// EXTERNAL MODULE: ./src/assets/images/statistics/dl.png
var dl = __webpack_require__(82685);
;// CONCATENATED MODULE: ./src/assets/images/statistics/yes.png
var yes_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAA2hJREFUSEuVlV1oFFcUx393Zif7YZINYeOaTbKrwfrxkI8uxUZbqu1DEQ3pg4QKrdDSQKFhCAWhFVL6ZMWiXbIFSQkqTSQtvqlUahEfBJNiDGkM1vrQWIwrauykcbNr9mNmysyaNYnGbM7bzL3nd88993/OEcy3Tu86FMebOCgDacHSyz8M0JlGZK/w1fQ4YArbQcVJdcXXildWa1evLS5zeYHcUqE2PfuY8Ue3E+kp/QfuP+zMeX9Xcag44Pnyw7r3ecW7DsTKoDbDhNvxO/SO/czju/Go4FDFeqlSjL7b8LYnVFKNjl5okJiY6MLaLxCmoAiFe4n7/DJ6MSXoKtvnri3p3bK2EROjYKiBiT/rY4sZtn0eOCb5XQzb8Gt3riPoLlOLQq6o3+ezIyjUUnqan6p7eKfyLWaNFO/d+oAbyZvIQmZS0yxwqUpQjspeuVAmmDqtrhZ6G3pQHApdsWN8Pv4FkuyyGUZct8BulaAjSknhD+bRYbjuKpvKN3I3FaNh+DU0I/kssBkTwTGnSkgqHGxm+XjVPk6Ee2z1tN36lOMPfgQx78Y5sKRSI0cpeaoZK89zwZvPF0mA1Qy9OkSgtJJftd9oud5CRix69BkL8T0qIWywUzhpK27DbbpJG2lOJE4yI+L5K1qSilRG6NjYQdyIs314OyPJkeffZgG4OCfy9qrP6NoQRTIlDv95mAMPD+RvUC/XM/j6IB6nh4P/HKTz784XV34eXJOL2DLZkDnTeIbdvt08ST2h+WozlzKXkHSJcxvOsSu0i9hsjLrBOqaMqRdXfh5c/QxswWuVWoa2DlGulDM2OUbTH03scO/g7NazCEnQfrOd7lj30n3KBnehsghspWSvfy/99f1WsRIZi7AzsJPNvs1c+PcCzdeayUrZpXVvgyOozEvF3G6H4aC/sZ/WNa0YhoEkJJJGkm2D2xhNjL68+eXBVQtTMQcPKkEG3higylVl/zo6fpT9f+1fvlUnrHOPoBIkiqWKxWbAnjV7OB0+zcTsBOHLYTRDW770bfC3fEQNJ+dUsdjLUsn5pvP0TfRx6t6pwvq/nYpv2ESAEcpxLTU0/EV+tIxGxswsH63VIP8jkyvebqL4UFFWPJEWHmRBrbMfcfzpaMJNKUdYxScU4VzhuMvBLWiaNEn60Oj4H2lPKb806BGPAAAAAElFTkSuQmCC";
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Laboratory/ReservationManage/index.tsx
var timeType = {
1: '第1节(8:00-9:00)',
2: '第2节(9:00-10:00)',
3: '第3节(10:10-11:00)',
4: '第4节(11:00-12:00)',
5: '第5节(14:00-15:00)',
6: '第6节(15:00-16:00)',
7: '第7节(16:00-17:00)',
8: '第8节(19:00-20:00)',
9: '第9节(20:00-21:00)'
// 10: '第10节(09:00-09:50)',
// 11: '第11节(10:00-10:50)',
// 12: '第12节(11:00-11:50)',
// 13: '第13节(12:00-12:50)',
// 14: '第14节(13:00-13:50)',
// 15: '第15节(14:00-14:50)',
// 16: '第16节(15:00-15:50)',
// 17: '第17节(16:00-16:50)',
// 18: '第18节(17:00-17:50)',
// 19: '第19节(18:00-18:50)',
// 20: '第20节(19:00-19:50)',
// 21: '第21节(20:00-20:50)',
// 22: '第22节(21:00-21:50)',
// 23: '第23节(22:00-22:50)',
// 24: '第24节(23:00-23:50)',
};
var statusType = {
'reviewing': '待审核',
'waiting': '排队中',
'running': '进行中',
'completed': '已完成',
'rejected': '已驳回',
'canceled': '已取消'
};
var Navigation = function Navigation(_ref) {
var _infoData$sections;
var loading = _ref.loading,
user = _ref.user;
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
keyword = _useState2[0],
setkeyword = _useState2[1];
//时间
var _useState3 = (0,_react_17_0_2_react.useState)(''),
_useState4 = slicedToArray_default()(_useState3, 2),
time = _useState4[0],
setTime = _useState4[1];
//预约状态
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
status = _useState6[0],
setStatus = _useState6[1];
//预约数据
var _useState7 = (0,_react_17_0_2_react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
tableData = _useState8[0],
setTableData = _useState8[1];
//预约人下拉
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
directorsList = _useState10[0],
setDirectorsList = _useState10[1];
//新建 调整
var _useState11 = (0,_react_17_0_2_react.useState)(false),
_useState12 = slicedToArray_default()(_useState11, 2),
openAddModal = _useState12[0],
setOpenAddModal = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)({}),
_useState14 = slicedToArray_default()(_useState13, 2),
infoData = _useState14[0],
setInfoData = _useState14[1];
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
myForm = _Form$useForm2[0];
//驳回 取消预约 查看
var _useState15 = (0,_react_17_0_2_react.useState)(false),
_useState16 = slicedToArray_default()(_useState15, 2),
openSeeModal = _useState16[0],
setOpenSeeModal = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)('驳回'),
_useState18 = slicedToArray_default()(_useState17, 2),
modalType = _useState18[0],
setModalType = _useState18[1];
//分页
var _useState19 = (0,_react_17_0_2_react.useState)(0),
_useState20 = slicedToArray_default()(_useState19, 2),
total = _useState20[0],
setTotal = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(1),
_useState22 = slicedToArray_default()(_useState21, 2),
page = _useState22[0],
setPage = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(10),
_useState24 = slicedToArray_default()(_useState23, 2),
limit = _useState24[0],
setLimit = _useState24[1];
//实验室
var _useState25 = (0,_react_17_0_2_react.useState)([]),
_useState26 = slicedToArray_default()(_useState25, 2),
laboratorysAll = _useState26[0],
setLaboratorysAll = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)([]),
_useState28 = slicedToArray_default()(_useState27, 2),
laboratorys = _useState28[0],
setLaboratorys = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)(''),
_useState30 = slicedToArray_default()(_useState29, 2),
classroomId = _useState30[0],
setClassroomId = _useState30[1];
//实验室房间
var _useState31 = (0,_react_17_0_2_react.useState)([]),
_useState32 = slicedToArray_default()(_useState31, 2),
rooms = _useState32[0],
setRooms = _useState32[1];
var _useState33 = (0,_react_17_0_2_react.useState)([]),
_useState34 = slicedToArray_default()(_useState33, 2),
sectionList = _useState34[0],
setSectionList = _useState34[1];
var _useState35 = (0,_react_17_0_2_react.useState)(''),
_useState36 = slicedToArray_default()(_useState35, 2),
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 _useState39 = (0,_react_17_0_2_react.useState)([]),
_useState40 = slicedToArray_default()(_useState39, 2),
toollist = _useState40[0],
settoollist = _useState40[1];
var _useState41 = (0,_react_17_0_2_react.useState)(false),
_useState42 = slicedToArray_default()(_useState41, 2),
exportshow = _useState42[0],
setexport = _useState42[1];
var _useState43 = (0,_react_17_0_2_react.useState)([]),
_useState44 = slicedToArray_default()(_useState43, 2),
fileList = _useState44[0],
setFileList = _useState44[1];
var _useState45 = (0,_react_17_0_2_react.useState)(false),
_useState46 = slicedToArray_default()(_useState45, 2),
buttonloading = _useState46[0],
setbuttonloading = _useState46[1];
var columns = [{
title: '预约人',
dataIndex: 'user_name',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '人员类别',
dataIndex: 'user_role',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text == 'student' ? '学员' : '教员',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text == 'student' ? '学员' : '教员'
})
});
}
}, {
title: '实验室分室',
dataIndex: 'classroom_room_title',
ellipsis: true
}, {
title: '所属实验室',
dataIndex: 'classroom_title',
ellipsis: true
}, {
title: '预约节次',
dataIndex: 'sections',
ellipsis: true,
width: 160,
render: function render(text, record) {
var _record$sections;
return record === null || record === void 0 || (_record$sections = record.sections) === null || _record$sections === void 0 ? void 0 : _record$sections.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: timeType[item === null || item === void 0 ? void 0 : item.section_id]
}, index);
});
}
}, {
title: '使用人数',
dataIndex: 'work_num',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '关联类型',
dataIndex: 'container_type',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text == 'Subject' ? '实践课程' : text == 'Shixun' ? '实践项目' : '教学课堂',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text == 'Subject' ? '实践课程' : text == 'Shixun' ? '实践项目' : '教学课堂'
})
});
}
}, {
title: '关联内容',
dataIndex: 'container_titile',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '学号',
dataIndex: 'student_id',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '手机号',
dataIndex: 'user_phone',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: 'ip地址',
dataIndex: 'ip',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '备注',
dataIndex: 'description',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '预约状态',
dataIndex: 'status',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: statusType[text],
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: statusType[text]
})
});
}
}, {
title: '操作',
ellipsis: true,
fixed: 'right',
width: 150,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [(record === null || record === void 0 ? void 0 : record.status) == 'waiting' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer",
marginRight: 10
},
onClick: function onClick() {
var _record$sections2;
myForm.setFieldsValue({
reservation_user_id: record === null || record === void 0 ? void 0 : record.user_id,
user_phone: record === null || record === void 0 ? void 0 : record.user_phone,
mail: record === null || record === void 0 ? void 0 : record.mail,
classroom_room_id: record === null || record === void 0 ? void 0 : record.classroom_room_id,
classroom_id: record === null || record === void 0 ? void 0 : record.classroom_id,
date: dayjs_min_default()(record === null || record === void 0 ? void 0 : record.date),
work_num: record === null || record === void 0 ? void 0 : record.work_num,
description: record === null || record === void 0 ? void 0 : record.description,
adjusted_reason: '',
container_id: record === null || record === void 0 ? void 0 : record.container_id,
container_type: record === null || record === void 0 ? void 0 : record.container_type,
sections: record === null || record === void 0 || (_record$sections2 = record.sections) === null || _record$sections2 === void 0 ? void 0 : _record$sections2.map(function (item) {
return item === null || item === void 0 ? void 0 : item.section_id;
})
});
//实验室下拉
(0,laboratory/* can_reservation_classrooms */.QS)({
reservation_user_id: record === null || record === void 0 ? void 0 : record.user_id
}).then(function (res) {
var _res$data;
setLaboratorys(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
});
//实验室房间下拉
(0,laboratory/* can_reservation_classroom_rooms */.i6)({
reservation_user_id: record === null || record === void 0 ? void 0 : record.user_id,
classroom_id: record === null || record === void 0 ? void 0 : record.classroom_id
}).then(function (res) {
var _res$data2;
setRooms(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list);
});
//节次下拉
(0,laboratory/* date_section_details */.P6)({
date: dayjs_min_default()(record === null || record === void 0 ? void 0 : record.date).format('YYYY-MM-DD'),
classroom_room_id: record === null || record === void 0 ? void 0 : record.classroom_room_id,
reservation_id: record === null || record === void 0 ? void 0 : record.id
}).then(function (res) {
var _res$data3, _record$sections3, _record$sections5;
setSectionList(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.list);
//计算可预约工位数量
if ((record === null || record === void 0 || (_record$sections3 = record.sections) === null || _record$sections3 === void 0 ? void 0 : _record$sections3.length) == 1) {
var _res$data4, _res$data5;
var obj = 0;
res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 || (_res$data4 = _res$data4.list) === null || _res$data4 === void 0 || _res$data4.map(function (item, index) {
var _record$sections4;
if ((item === null || item === void 0 ? void 0 : item.section_id) == (record === null || record === void 0 || (_record$sections4 = record.sections) === null || _record$sections4 === void 0 || (_record$sections4 = _record$sections4[0]) === null || _record$sections4 === void 0 ? void 0 : _record$sections4.section_id)) {
obj = index;
}
});
setStationSize(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5.list[obj]) === null || _res$data5 === void 0 ? void 0 : _res$data5.work_num);
} else if ((record === null || record === void 0 || (_record$sections5 = record.sections) === null || _record$sections5 === void 0 ? void 0 : _record$sections5.length) == 2) {
var _res$data6, _res$data7, _res$data8, _res$data9, _res$data10;
var obj1 = 0;
var obj2 = 0;
res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 || (_res$data6 = _res$data6.list) === null || _res$data6 === void 0 || _res$data6.map(function (item, index) {
var _record$sections6, _record$sections7;
if ((item === null || item === void 0 ? void 0 : item.section_id) == (record === null || record === void 0 || (_record$sections6 = record.sections) === null || _record$sections6 === void 0 || (_record$sections6 = _record$sections6[0]) === null || _record$sections6 === void 0 ? void 0 : _record$sections6.section_id)) {
obj1 = index;
}
if ((item === null || item === void 0 ? void 0 : item.section_id) == (record === null || record === void 0 || (_record$sections7 = record.sections) === null || _record$sections7 === void 0 || (_record$sections7 = _record$sections7[1]) === null || _record$sections7 === void 0 ? void 0 : _record$sections7.section_id)) {
obj2 = index;
}
});
setStationSize((res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 || (_res$data7 = _res$data7.list[obj1]) === null || _res$data7 === void 0 ? void 0 : _res$data7.work_num) > (res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 || (_res$data8 = _res$data8.list[obj2]) === null || _res$data8 === void 0 ? void 0 : _res$data8.work_num) ? res === null || res === void 0 || (_res$data9 = res.data) === null || _res$data9 === void 0 || (_res$data9 = _res$data9.list[obj2]) === null || _res$data9 === void 0 ? void 0 : _res$data9.work_num : res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 || (_res$data10 = _res$data10.list[obj1]) === null || _res$data10 === void 0 ? void 0 : _res$data10.work_num);
} else {
setStationSize(0);
}
});
//关联教学
getContainerList(record === null || record === void 0 ? void 0 : record.container_type, record === null || record === void 0 ? void 0 : record.user_id);
setOpenAddModal(true);
setInfoData(record);
},
children: "\u8C03\u6574"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6367",
marginRight: 10,
cursor: "pointer"
},
onClick: function onClick() {
setOpenSeeModal(true);
setModalType('取消');
setInfoData(record);
},
children: "\u53D6\u6D88\u9884\u7EA6"
})]
}), (record === null || record === void 0 ? void 0 : record.status) == 'reviewing' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer",
marginRight: 10
},
onClick: function onClick() {
(0,laboratory/* reservations_review */.UP)({
id: record === null || record === void 0 ? void 0 : record.id,
type: 2
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
getData(true);
}
});
},
children: "\u901A\u8FC7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#E30000",
marginRight: 10,
cursor: "pointer"
},
onClick: function onClick() {
setOpenSeeModal(true);
setModalType('驳回');
setInfoData(record);
},
children: "\u9A73\u56DE"
})]
}), (record === null || record === void 0 ? void 0 : record.status) != 'waiting' && (record === null || record === void 0 ? void 0 : record.status) != 'reviewing' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
},
onClick: function onClick() {
setOpenSeeModal(true);
setModalType('查看');
setInfoData(record);
},
children: "\u67E5\u770B"
})]
});
}
}];
(0,_react_17_0_2_react.useEffect)(function () {
//预约人
(0,laboratory/* users_query */.ik)({}).then(function (res) {
var _res$data11;
setDirectorsList(res === null || res === void 0 || (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.list);
});
//实验室
(0,laboratory/* classroom_query */.GJ)({
page: 1,
limit: 10000,
keyword: ''
}).then(function (res) {
var _res$data12;
setLaboratorysAll([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : _res$data12.list)));
});
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
getData(false);
}, [page]);
(0,_react_17_0_2_react.useEffect)(function () {
getData(true);
}, [time, status, keyword, classroomId, limit]);
var getData = function getData(flag) {
if (flag) {
setPage(1);
}
(0,laboratory/* reservations_query */.bU)({
page: page,
limit: limit,
date: time ? dayjs_min_default()(time === null || time === void 0 ? void 0 : time.$d).format('YYYY-MM-DD') : '',
status: status,
classroom_id: classroomId,
keyword: keyword
}).then(function (res) {
var _res$data13, _res$data14;
setTotal(res === null || res === void 0 || (_res$data13 = res.data) === null || _res$data13 === void 0 ? void 0 : _res$data13.count);
setTableData(res === null || res === void 0 || (_res$data14 = res.data) === null || _res$data14 === void 0 ? void 0 : _res$data14.list);
settoollist(res);
});
};
var onShowSizeChange = function onShowSizeChange(page, size) {
setPage(page);
setLimit(size);
};
var filterOption = function filterOption(input, option) {
var _option$label;
var label = ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase();
// const phone = (option?.phone ?? '').toLowerCase();
var search = input.toLowerCase();
// label.includes(search) || phone.includes(search)
return label.includes(search);
};
//获取关联教学
var getContainerList = function getContainerList(e, user_id) {
var obj = e == 'Subject' ? 'subjects' : e == 'Shixun' ? 'shixuns' : 'courses';
(0,fetch/* default */.ZP)("/api/users/".concat(user_id, "/").concat(obj, ".json"), {
method: 'get',
params: {
page: 1,
per_page: 1000,
username: user.userInfo.login,
user_id: user_id
}
}).then(function (res) {
setContainerList(res === null || res === void 0 ? void 0 : res[obj]);
});
};
var Draggers = {
onRemove: function onRemove() {
setFileList([]);
},
beforeUpload: function beforeUpload(file) {
console.log(file);
if ((file === null || file === void 0 ? void 0 : file.size) > 1024 * 1024 * 50) {
message/* default */.ZP.info('文件超过50M不符合上传要求');
return false;
}
var filelist = [];
filelist.push(file);
setFileList([].concat(filelist));
return false;
},
fileList: fileList,
accept: ".xls,.xlsx"
};
var disabledDate = function disabledDate(current) {
// 获取今天的日期
var today = dayjs_min_default()().startOf('day');
// 获取本周的第一天和最后一天
var startOfThisWeek = dayjs_min_default()().startOf('week');
// 获取下周的最后一天
var endOfNextWeek = dayjs_min_default()().endOf('week').add(1, 'week');
// 如果当前日期早于本周的第一天或晚于下周的最后一天,则禁用
if (current.isBefore(startOfThisWeek) || current.isAfter(endOfNextWeek)) {
return true;
}
// 如果当前日期在本周的日期范围内,但早于今天,则禁用
if (current.isBefore(today)) {
return true;
}
// 如果当前日期在下周最后一天之后,则禁用
if (current.isAfter(endOfNextWeek)) {
return true;
}
return false;
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
padding: 20
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ReservationManagemodules.header_div,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ReservationManagemodules.header_title,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-yuyueguanli"
}), " \u9884\u7EA6\u7BA1\u7406"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ReservationManagemodules.tj_warp,
style: {
marginTop: 20
},
children: [{
name: '预约总次数',
num: (toollist === null || toollist === void 0 ? void 0 : toollist.total_count) || 0,
iconfont: rl
}, {
name: '未开始数',
num: (toollist === null || toollist === void 0 ? void 0 : toollist.not_start_count) || 0,
iconfont: tow
}, {
name: '进行中数',
num: (toollist === null || toollist === void 0 ? void 0 : toollist.underway_count) || 0,
iconfont: dl
}, {
name: '已完成数',
num: (toollist === null || toollist === void 0 ? void 0 : toollist.completed_count) || 0,
iconfont: yes_namespaceObject
}].map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ReservationManagemodules.tjcount,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ReservationManagemodules.tj_item_icon,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: item === null || item === void 0 ? void 0 : item.iconfont,
style: {
height: 22
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ReservationManagemodules.tj_item_data,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ReservationManagemodules.tj_item_num,
children: item === null || item === void 0 ? void 0 : item.num
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ReservationManagemodules.tj_item_text,
children: [item === null || item === void 0 ? void 0 : item.name, (item === null || item === void 0 ? void 0 : item.name) == '预约累积时长' && '(分钟)']
})]
})]
}, item === null || item === void 0 ? void 0 : item.name);
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ReservationManagemodules.search_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 160
},
defaultValue: classroomId,
value: classroomId,
onChange: function onChange(e) {
setClassroomId(e);
},
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
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u65E5\u671F",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
style: {
width: 140
},
defaultValue: time,
value: time,
onChange: function onChange(e) {
setTime(e);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u72B6\u6001",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
style: {
width: 160
},
defaultValue: status,
value: status,
onChange: function onChange(e) {
setStatus(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: 'reviewing',
children: "\u5F85\u5BA1\u6838"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'waiting',
children: "\u6392\u961F\u4E2D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'running',
children: "\u8FDB\u884C\u4E2D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'completed',
children: "\u5DF2\u5B8C\u6210"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'rejected',
children: "\u5DF2\u9A73\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'canceled',
children: "\u5DF2\u53D6\u6D88"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: " ",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u5B9E\u9A8C\u5BA4\u540D\u79F0\u3001\u623F\u95F4\u53F7\u6216\u9884\u7EA6\u4EBA\u8FDB\u884C\u641C\u7D22",
size: "large"
// className={styles.search}
,
style: {
width: 250,
borderRadius: 6,
marginLeft: 20
},
value: keyword,
onChange: function onChange(e) {
setkeyword(e.target.value);
},
onSearch: function onSearch(value) {
setkeyword(value);
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: " font14 ".concat(ReservationManagemodules.searchIcon),
onClick: function onClick() {
setkeyword(keyword);
getData(true);
}
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ReservationManagemodules.add_Data,
onClick: function onClick() {
setOpenAddModal(true);
setInfoData({});
myForm.resetFields();
},
children: "\u65B0\u5EFA\u9884\u7EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ReservationManagemodules.add_Data,
onClick: function onClick() {
setexport(true);
},
children: "\u5BFC\u5165"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "materials-table-wrp",
style: {
marginRight: 0
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: tableData,
className: "materials-table",
columns: columns,
scroll: {
x: 1500
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px 7px 20px 7px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showSizeChanger: true,
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: "".concat(ReservationManagemodules.my_modal, " modalXazy"),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
})
// className={styles.my_modal}
,
open: openAddModal,
title: "".concat(infoData !== null && infoData !== void 0 && infoData.id ? '调整' : '新建', "\u9884\u7EA6"),
width: "960px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _myForm$getFieldValue, _myForm$getFieldValue2;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return myForm.validateFields();
case 2:
//编辑预约
if (infoData !== null && infoData !== void 0 && infoData.id) {
(0,laboratory/* reservations_update */.vW)({
id: infoData === null || infoData === void 0 ? void 0 : infoData.id,
reservation: {
reservation_user_id: myForm.getFieldValue('reservation_user_id'),
user_phone: myForm.getFieldValue('user_phone'),
mail: myForm.getFieldValue('mail'),
classroom_room_id: myForm.getFieldValue('classroom_room_id'),
classroom_id: myForm.getFieldValue('classroom_id'),
date: dayjs_min_default()((_myForm$getFieldValue = myForm.getFieldValue('date')) === null || _myForm$getFieldValue === void 0 ? void 0 : _myForm$getFieldValue.$d).format('YYYY-MM-DD'),
work_num: Number(myForm.getFieldValue('work_num')),
description: myForm.getFieldValue('description'),
adjusted_reason: myForm.getFieldValue('adjusted_reason'),
container_id: myForm.getFieldValue('container_id'),
container_type: myForm.getFieldValue('container_type'),
sections: myForm.getFieldValue('sections')
}
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('编辑成功');
setOpenAddModal(false);
getData(true);
}
});
} else {
//创建
(0,laboratory/* reservations_create */.Do)({
reservation: {
reservation_user_id: myForm.getFieldValue('reservation_user_id'),
classroom_room_id: myForm.getFieldValue('classroom_room_id'),
classroom_id: myForm.getFieldValue('classroom_id'),
date: dayjs_min_default()((_myForm$getFieldValue2 = myForm.getFieldValue('date')) === null || _myForm$getFieldValue2 === void 0 ? void 0 : _myForm$getFieldValue2.$d).format('YYYY-MM-DD'),
work_num: Number(myForm.getFieldValue('work_num')),
description: myForm.getFieldValue('description'),
container_id: myForm.getFieldValue('container_id'),
container_type: myForm.getFieldValue('container_type'),
sections: myForm.getFieldValue('sections')
}
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('新增成功');
setOpenAddModal(false);
getData(true);
}
});
}
case 3:
case "end":
return _context.stop();
}
}, _callee);
})),
onCancel: function onCancel() {
setOpenAddModal(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: ReservationManagemodules.formWrap,
form: myForm,
wrapperCol: {
span: 19
},
style: {
maxHeight: "550px",
overflowY: 'auto'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u4EBA",
name: "reservation_user_id",
rules: [{
required: true,
message: '请选择预约人'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
showSearch: true,
filterOption: filterOption,
disabled: infoData !== null && infoData !== void 0 && infoData.id ? true : false,
onChange: function onChange(e) {
//实验室
(0,laboratory/* can_reservation_classrooms */.QS)({
reservation_user_id: e
}).then(function (res) {
var _res$data15;
setLaboratorys(res === null || res === void 0 || (_res$data15 = res.data) === null || _res$data15 === void 0 ? void 0 : _res$data15.list);
});
myForm.setFieldValue('classroom_id', '');
myForm.setFieldValue('classroom_room_id', '');
//关联教学清空
getContainerList(myForm.getFieldValue('container_type'), e);
myForm.setFieldValue('container_id', '');
},
children: directorsList === null || directorsList === void 0 ? void 0 : directorsList.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
label: item === null || item === void 0 ? void 0 : item.real_name,
phone: item === null || item === void 0 ? void 0 : item.phone,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: "flex"
},
children: (item === null || item === void 0 ? void 0 : item.real_name) || '--'
})
}, key);
})
})
}), (infoData === null || infoData === void 0 ? void 0 : infoData.id) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u624B\u673A\u53F7\u7801",
name: "user_phone",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u90AE\u7BB1\u8D26\u53F7",
name: "mail",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: true
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
rules: [{
required: true,
message: '必填项'
}],
label: "\u9884\u7EA6\u5B9E\u9A8C\u5BA4",
name: "classroom_id",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
onChange: function onChange(e) {
//实验室房间
(0,laboratory/* can_reservation_classroom_rooms */.i6)({
reservation_user_id: myForm.getFieldValue('reservation_user_id'),
classroom_id: e
}).then(function (res) {
var _res$data16;
setRooms(res === null || res === void 0 || (_res$data16 = res.data) === null || _res$data16 === void 0 ? void 0 : _res$data16.list);
});
myForm.setFieldValue('classroom_room_id', '');
},
children: laboratorys === null || laboratorys === void 0 ? void 0 : laboratorys.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
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
rules: [{
required: true,
message: '必填项'
}],
label: "\u9884\u7EA6\u5B9E\u9A8C\u5BA4\u5206\u5BA4",
name: "classroom_room_id",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
children: rooms === null || rooms === void 0 ? void 0 : rooms.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
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u65E5\u671F",
name: "date",
rules: [{
required: true,
message: '请选择日期'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
style: {
width: '100%'
},
format: "YYYY-MM-DD",
disabledDate: disabledDate,
onChange: function onChange(e) {
(0,laboratory/* date_section_details */.P6)({
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'),
reservation_id: infoData === null || infoData === void 0 ? void 0 : infoData.id
}).then(function (res) {
var _res$data17;
setSectionList(res === null || res === void 0 || (_res$data17 = res.data) === null || _res$data17 === void 0 ? void 0 : _res$data17.list);
});
myForm.setFieldValue('sections', []);
myForm.setFieldValue('work_num', '');
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u8282\u6B21",
name: "sections",
rules: [{
required: true,
message: '请选择节次'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
mode: "multiple",
onChange: function onChange(e) {
var _myForm$getFieldValue3, _myForm$getFieldValue5;
if (e.length > 2) {
message/* default */.ZP.error('最多只能选择两节次,请重新选择');
// 清空最后选的那个选项
myForm.setFieldValue('sections', e.slice(0, 2));
} else {
myForm.setFieldValue('sections', e);
}
//计算可预约工位数量
if (((_myForm$getFieldValue3 = myForm.getFieldValue('sections')) === null || _myForm$getFieldValue3 === void 0 ? void 0 : _myForm$getFieldValue3.length) == 1) {
var _sectionList$obj;
var obj = 0;
sectionList === null || sectionList === void 0 || sectionList.map(function (item, index) {
var _myForm$getFieldValue4;
if ((item === null || item === void 0 ? void 0 : item.section_id) == ((_myForm$getFieldValue4 = myForm.getFieldValue('sections')) === null || _myForm$getFieldValue4 === void 0 ? void 0 : _myForm$getFieldValue4[0])) {
obj = index;
}
});
setStationSize((_sectionList$obj = sectionList[obj]) === null || _sectionList$obj === void 0 ? void 0 : _sectionList$obj.work_num);
} else if (((_myForm$getFieldValue5 = myForm.getFieldValue('sections')) === null || _myForm$getFieldValue5 === void 0 ? void 0 : _myForm$getFieldValue5.length) == 2) {
var _sectionList$obj2, _sectionList$obj3, _sectionList$obj4, _sectionList$obj5;
var obj1 = 0;
var obj2 = 0;
sectionList === null || sectionList === void 0 || sectionList.map(function (item, index) {
var _myForm$getFieldValue6, _myForm$getFieldValue7;
if ((item === null || item === void 0 ? void 0 : item.section_id) == ((_myForm$getFieldValue6 = myForm.getFieldValue('sections')) === null || _myForm$getFieldValue6 === void 0 ? void 0 : _myForm$getFieldValue6[0])) {
obj1 = index;
}
if ((item === null || item === void 0 ? void 0 : item.section_id) == ((_myForm$getFieldValue7 = myForm.getFieldValue('sections')) === null || _myForm$getFieldValue7 === void 0 ? void 0 : _myForm$getFieldValue7[1])) {
obj2 = index;
}
});
setStationSize(((_sectionList$obj2 = sectionList[obj1]) === null || _sectionList$obj2 === void 0 ? void 0 : _sectionList$obj2.work_num) > ((_sectionList$obj3 = sectionList[obj2]) === null || _sectionList$obj3 === void 0 ? void 0 : _sectionList$obj3.work_num) ? (_sectionList$obj4 = sectionList[obj2]) === null || _sectionList$obj4 === void 0 ? void 0 : _sectionList$obj4.work_num : (_sectionList$obj5 = sectionList[obj1]) === null || _sectionList$obj5 === void 0 ? void 0 : _sectionList$obj5.work_num);
} else {
setStationSize(0);
}
},
children: sectionList === null || sectionList === void 0 ? void 0 : sectionList.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.section_id,
disabled: (item === null || item === void 0 ? void 0 : item.work_num) == 0 ? true : false,
children: ["\u7B2C", item === null || item === void 0 ? void 0 : item.section_id, "\u8282"]
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u5DE5\u4F4D\u6570\u91CF",
name: "work_num",
rules: [{
required: true,
message: '请选择输入数量'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "number",
max: stationSize,
onChange: function onChange(e) {
var value = e.target.value;
if (value === '' || Number(value) <= stationSize && Number.isInteger(Number(value)) && Number(value) > 0) {
myForm.setFieldValue('work_num', value);
} else {
message/* default */.ZP.error("".concat(stationSize == 0 ? '请先选择预约节次' : "\u8BF7\u8F93\u5165\u5927\u4E8E0\u4E14\u4E0D\u5927\u4E8E".concat(stationSize || 0, "\u7684\u6B63\u6574\u6570")));
myForm.setFieldValue('work_num', '');
}
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5173\u8054\u6559\u5B66",
name: "container_type",
rules: [{
required: false,
message: '必填项'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
style: {
width: '100px'
},
onChange: function onChange(e) {
getContainerList(e, myForm.getFieldValue('reservation_user_id'));
myForm.setFieldValue('container_id', '');
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'Subject',
children: "\u5B9E\u8DF5\u8BFE\u7A0B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'Shixun',
children: "\u5B9E\u8DF5\u9879\u76EE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'Course',
children: "\u6559\u5B66\u8BFE\u5802"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
name: "container_id",
rules: [{
required: false,
message: '请选择关联教学'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
marginLeft: '10px',
width: '325px'
},
children: containerList === null || containerList === void 0 ? void 0 : containerList.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.name
}, index);
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5907\u6CE8",
name: "description",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea/* default */.Z, {})
}), (infoData === null || infoData === void 0 ? void 0 : infoData.id) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
rules: [{
required: true,
message: '必填项'
}],
label: "\u8C03\u6574\u9884\u7EA6\u539F\u56E0",
name: "adjusted_reason",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea/* default */.Z, {})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true
// className={styles.my_modal}
,
className: "".concat(ReservationManagemodules.my_modal, " modalXazy"),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
}),
open: openSeeModal,
title: "".concat(modalType, "\u9884\u7EA6"),
width: "600px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return myForm.validateFields();
case 2:
if (modalType == '驳回') {
(0,laboratory/* reservations_review */.UP)({
id: infoData === null || infoData === void 0 ? void 0 : infoData.id,
type: 1,
reason: myForm.getFieldValue('reason_bohui')
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
getData(true);
}
});
} else if (modalType == '取消') {
(0,laboratory/* reservations_canceled */.mJ)({
id: infoData === null || infoData === void 0 ? void 0 : infoData.id,
reason: myForm.getFieldValue('reason_quxiao')
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
getData(true);
}
});
}
setOpenSeeModal(false);
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
})),
onCancel: function onCancel() {
setOpenSeeModal(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: ReservationManagemodules.formWrap,
form: myForm,
style: {
height: "500px",
overflowY: 'auto',
paddingRight: 10
},
wrapperCol: {
span: 19
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u4EBA",
children: infoData === null || infoData === void 0 ? void 0 : infoData.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u624B\u673A\u53F7",
children: infoData === null || infoData === void 0 ? void 0 : infoData.user_phone
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u90AE\u7BB1",
children: infoData === null || infoData === void 0 ? void 0 : infoData.mail
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u5B9E\u9A8C\u5BA4",
children: infoData === null || infoData === void 0 ? void 0 : infoData.classroom_title
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u623F\u95F4\u53F7",
children: infoData === null || infoData === void 0 ? void 0 : infoData.classroom_room_title
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
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: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: "flex"
},
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',
marginRight: '10px'
},
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: "\u4F7F\u7528\u4EBA\u6570",
children: infoData === null || infoData === void 0 ? void 0 : infoData.work_num
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5173\u8054\u6559\u5B66\u7C7B\u578B",
children: (infoData === null || infoData === void 0 ? void 0 : infoData.container_type) == 'Subject' ? '实践课程' : (infoData === null || infoData === void 0 ? void 0 : infoData.container_type) == 'Shixun' ? '实践项目' : '教学课堂'
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5173\u8054\u6559\u5B66\u5185\u5BB9",
children: infoData === null || infoData === void 0 ? void 0 : infoData.container_titile
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5907\u6CE8",
children: infoData === null || infoData === void 0 ? void 0 : infoData.description
}), modalType == '驳回' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
rules: [{
required: true,
message: '必填项'
}],
label: "\u9A73\u56DE\u9884\u7EA6\u539F\u56E0",
name: "reason_bohui",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea/* default */.Z, {
showCount: true,
maxLength: 200,
style: {
marginBottom: 10
}
})
}), modalType == '取消' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
rules: [{
required: true,
message: '必填项'
}],
label: "\u53D6\u6D88\u9884\u7EA6\u539F\u56E0",
name: "reason_quxiao",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea/* default */.Z, {
showCount: true,
maxLength: 200,
style: {
marginBottom: 10
}
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
title: "\u6587\u4EF6\u5BFC\u5165",
open: exportshow,
centered: true,
className: " modalXazy",
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
}),
okButtonProps: {
loading: buttonloading
},
onCancel: function onCancel() {
setexport(false);
setFileList([]);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var formData, res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
formData = new FormData();
if (!(fileList.length > 0)) {
_context3.next = 5;
break;
}
formData.append('file', fileList[0]);
_context3.next = 7;
break;
case 5:
message/* default */.ZP.warning("请选择文件");
return _context3.abrupt("return");
case 7:
setbuttonloading(true);
_context3.next = 10;
return (0,fetch/* default */.ZP)("/api/yn_classrooms/reservations/import.json", {
method: 'post',
body: formData
}, true);
case 10:
res = _context3.sent;
setbuttonloading(false);
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.info('导入成功');
getData(true);
setexport(false);
}
case 13:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
color: '#5F6368'
},
children: ["\u6B65\u9AA41\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#000000'
},
children: "\u4E0B\u8F7D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: "".concat(env/* default */.Z.API_SERVER, "/api/yn_classrooms/reservations/download_template.xlsx"),
download: "\u6A21\u7248.xlsx",
children: "\u5BFC\u5165\u9884\u7EA6\u6A21\u7248"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
style: {
color: '#5F6368'
},
children: ["\u6B65\u9AA42\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#000000'
},
children: "\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u5BFC\u5165\u9884\u7EA6\u6A21\u7248\u300B"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
style: {
marginTop: 10,
marginLeft: 50
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, Draggers), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
padding: '0px 16px',
color: '#3061D0',
cursor: 'pointer',
height: 32,
alignItems: 'center',
display: 'inline-flex',
borderRadius: 2,
border: '1px solid #BACFFE',
background: '#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)',
boxShadow: '0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: 12,
marginRight: 6
},
className: "iconfont icon-tianjiashitixiaojiahao"
}), " \u9009\u62E9\u6587\u4EF6"]
})
}))
})]
})]
});
};
/* harmony default export */ var ReservationManage = ((0,_umi_production_exports.connect)(function (_ref5) {
var loading = _ref5.loading,
engineeringNavigtion = _ref5.engineeringNavigtion,
user = _ref5.user;
return objectSpread2_default()(objectSpread2_default()({
loading: loading
}, engineeringNavigtion), {}, {
user: user
});
})(Navigation));
/***/ }),
/***/ 60028:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/upload/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ 71409);
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ 37714);
"use client";
const Upload = _Upload__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z;
Upload.Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
Upload.LIST_IGNORE = _Upload__WEBPACK_IMPORTED_MODULE_0__/* .LIST_IGNORE */ .E;
/* harmony default export */ __webpack_exports__.Z = (Upload);
/***/ }),
/***/ 82685:
/*!*********************************************!*\
!*** ./src/assets/images/statistics/dl.png ***!
\*********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAA41JREFUSEuVlV9IWlEcx4/a1TI1t7qVmJjRWoVBEAmL6kGmjII2CB/2sAY9RAU+rQ172EMjNnC01+1lUHvYQzEWFOwl9yC3Ih1EzGBtBDoMg7K0v/53fE/di7kN7IDce879/T7ne76/c44ictGKJicnTRqNRnbZJ0VFRfxrwc9UKkXC4XBqenp6TYQsq9XaFgqFvoXDYSIS0SHhmf/O900mE5FIJFcmzWazpKSkBPC7lNLb29u0sbGxGQwGL6gFNKPRSAwGA8lkMleiS0tLCcMwdyjIZrNVezyeX4FAQFEAk4bI5XLS0dFxZWUYV6lUSbFYfJuCBwcHlcvLy5tbW1u6QsGIa2xsJFVVVTQFNuBXUVERYVn2FgUPDQ3JV1ZWvD6fr/k6YKiGJXyDLRqNZqe2traZgu12u4zjOPf6+rrpOmDEwmelUknTsCsMBsMPrVbbxnss8fv9X7xer+W6YOyCmpoaAdzQ0MDp9XqzsAs6Ozs/cBz36LpgxMNnhmGo4vb29sWFhYX7AthqtTqXlpae5m+fQiaSSqXUjnQ6TSBwcXHxsQDu6ekZd7lcL+PxeCGsv2JQSBwui8XyZn5+/okA7u/vH/b7/W9jsRjdNvwJzH8HMfdbbh/K6+vrn83Nzb0WwFNTUy/cbvdzWJFMJoWlnZ6eUv9QpEQiQc7Pz0lZWRkRi8Xk5OSEnjyVSkW/oZnN5nd2u32EB4udTuen1dXVB1BTXFxMMDsScRkpFAqaiEkARczZ2ZkARRwshMddXV2usbGxe/x2K2ltbfVwHGfExcKyLIlEIlQ1FCEJ45gAcIzhTuAng2JcYAB3d3f/Pjw8NFLw+Pg4K5VKf/p8PjW2DMBQhEBA8IRKrAI2YQzviJXJZNSm/f19urqWlpZYNpu9uCscDkd7PB5f297eFh0fH1NlSNzb26OFzG35Ra2srKQTR6NROkFdXR1WaqXgiYmJhxaL5SOWzCceHBxQ1Xz/f3sQ9SgvLxc+o9Ber3eYgmdmZl7p9XoHlgkQfru7u9RbvmEsXz36sKK6ulr4hlrs7Oy8B1g0Ozv7mWXZ+/ypAyQUCtHi/AuYqx6+arVa4dpEfDQa/Sqy2WySgYGB73K5vCn3bykYDFLvcg9ILpBXD4U6nU5QjPFEIhEU9fX1KUdGRwMyqfRGLhgn8PIqTB8dHR2m02laRRwMrEytVt9kGEaCHNjBC8Azk8kk/wCV5LyqzLQtbwAAAABJRU5ErkJggg==";
/***/ }),
/***/ 3816:
/*!*********************************************!*\
!*** ./src/assets/images/statistics/rl.png ***!
\*********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAA6lJREFUSEuVlN9Lm1cYx7/n/RF9k7poIEYKFS0MdrG6q9gKu9ulDdnIhO3KG0GN4vzRGxVERFEZVKj7A7xyw4i4OAfeCqUtKFiC7VWjdHV08kbNmtckvr/Gc5LYt0023QPJeXNyzud5nu/5npf9OjYWYLlcEMWQRVgt98OJ3bW1LyCKpeny0TThcrvTitv9Jv32bQskyXQuYvG+vnA2nV5nggDbtlHtcSc/+/qr7xOx338x80YzGPtXuHTD8zLw6a3pzJ+ptvOTs/sX+XwTYwyWYYCtR6Ohi4wWJ4BgWWi41xL5su/B2uOHP373x87ez4IsVQbbNgc0Bz//5u7Q2PrjR4++PXr2LEZdOsCZOKhi3cCN+roVb/Otn05fvflBU1MR6oQ+ZWHbsC0Liq/mt08C/ocZNd2rHasdnPO+4kycNtbcvg1BEPF38pUu19TIstfLoe8ODsrgTBT5HEEEUaAv3pptmlzSohSZOGX3B4MQq6tx/PQpqv1+KPX1IIC6u8tHilIHgiyD5KN9sG0IkgSbk22YuVwRrGlxyuxvbYVYVYW/njzhUCUQALWm7uyAgwAILhcfRZeLJyEIAWWPh1dP1RrZbAHMZDnuu3MHRi6H7PExPDdvQlIUqHt7qG9thXZ0hNMXL3iblJiSCSSFKMK8uCi0bxbdZlkwdb0Azp2exgnEF1kW32zpOn9msgxBEAq/STtqnySxeeOFKD6XZvjhvXz+PGQbBrdbxSgB6H8nzLHYkeIyEUsmkyHLsrgrPg6qVFVVyLIMj8eDk5OTctcBqPV6IUkf+r0imNrNZrNYXl5GIpFAMBhEKBTC9PQ0l4Uk4Q5hDOfn5xgeHkZjY6NDGRsVwWdnZ5idnUVTUxM0TUNDQwM6Ozt5slJQhdvb29jY2MDU1BTcbvfV4MPDQ+zv7yMSiWB+fh5erxddXV3Qdf1ys2maGB0dRVtbGzo6OmAYxtVg7lOyE2OYm5tDbW0tent7L8FU7erqKra2trCwsIAqsqDzMMk9/3V4BJiZmeHg/v7+SzBV193dzXWnrpzVFtx3DTDpV1dXh4GBAQ6mTjY3NxGLxbC4uAhFUcqdch3w5OQkBw8ODnIwHWA0GuWVhsPhsmqvVTH5d2JigoOHhoZgWRZWVla4vktLS3AV3xsfl3ylFAQeHx+Hz+fDyMgIUqkUenp60N7ezu3ndMn/OjxaTDePdKWqSQaCBwKBsptWBj54/Tps5PPrlV8UhdtV0q1020iSq+IfGToUG2ciFMgAAAAASUVORK5CYII=";
/***/ }),
/***/ 30980:
/*!**********************************************!*\
!*** ./src/assets/images/statistics/tow.png ***!
\**********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAqpJREFUOE990VtIUwEYB/D/2XZ29UynYqbWKiEwLbFMLcyyLBGC9EGxIkRfLCoiEDSKkKhQIYvoAoJGIlQUvSVE9RAoNCzSRNQ5yzpzbu7snN3OOTu7xh4Mx6Tv7fvg9/FdCKyL9y8eb1G7nNt1snA6wzKUg/GRFqcAe0QRikTk/k3ZBrbImL90tqPjd5wRa3ZscJAafXnflKUUCnRqNWxuHpZVL36yElh3AHwgCkorx9HSfMuh5rbSpvYuzz8cbzJws6OT1KX0uNwe0Ms2uFgOASkIBamGjjKA0imRZ5Dd6rg31A0QsQS8yjGXwz7uoSIqISTyEHgfBFFAMEIgQigRVWqgUqNzX0lVX8LY8cQ8Od5qnRobctLzcDEOrDIMHC4PeFECIdcgM9uImsbmi3X1LU+S8KzJlDH7Y/yzY2mu0Otm4BVEiFIEsWgEhIxEjjHfXHmqoaqiosaRhOOFD2+elyzOzwwHSX1RNBZBOBgC5HKQIe+8cefulvrTbaa1IyfsvFYcHRnRcyH/Bd7v7eYFicjJy72dlWN4VF3d4F7/2g0xTcc0Qbmnxbkw0W+12YnMbXs6JS0Ga4uL+f9iGyMV+MXwMzLmKw+LLoiihGBMhWUm/E2r5FuPHz44veHYHMelecMpn1Qxca9Wq4DI2RGQQqAysuFw+kDb2elUlVhdXl7uSjqY1WY7R2r0w5RGDZVSBvrrO8wuWnGiqR2CKIFeWYGf+9NeVnZkIAkvzn2/ok0xPEgzZMA68RbmsdeYNNPYcaAZJ8+cB8sysJhnrh2rre9Jwq/6blxVkvJ+RZiF226BEJDg4PywsQI0aVuRmbUZqZTy+qU7T+8m4MHeXmrh4/CXgnTZrvRUHRweEb9cEqZoDkurfrj5INL1MlQW5i4U1zXub+/q9fwFCrY6H9bm4fMAAAAASUVORK5CYII=";
/***/ })
}]);