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__OpenReservat...

1504 lines
65 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[51810],{
/***/ 61772:
/*!******************************************************************************************!*\
!*** ./src/pages/Laboratory/OpenReservation/OpenReservationDetail/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 */ OpenReservation_OpenReservationDetail; }
});
// 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/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__(88271);
;// CONCATENATED MODULE: ./src/pages/Laboratory/OpenReservation/OpenReservationDetail/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var OpenReservationDetailmodules = ({"flex_box_center":"flex_box_center___DW0Mb","flex_space_between":"flex_space_between___xyGP_","flex_box_vertical_center":"flex_box_vertical_center___uDHCv","flex_box_center_end":"flex_box_center_end___DWqXE","flex_box_column":"flex_box_column___bGStQ","flex-col":"flex-col___yVzIT","flex-row":"flex-row___wKfxZ","justify-start":"justify-start___VWyBs","justify-center":"justify-center___khjxv","justify-end":"justify-end___rap0F","justify-evenly":"justify-evenly___pb7CZ","justify-around":"justify-around___G1E4Z","justify-between":"justify-between___JV4C_","align-start":"align-start___bGpmy","align-center":"align-center___m5esQ","align-end":"align-end___FJO8h","back_style":"back_style___Kt501","header_div":"header_div___bqPUB","header_title":"header_title___UoBqy","search":"search___WwJzq","searchIcon":"searchIcon___Il82z","search_params":"search_params___Yxl8R","formWrap":"formWrap___FVmkK","cz_btn":"cz_btn___yQ4KO","list_item":"list_item___bXoQo","add_Data":"add_Data___Fm7Rb","tj_Data":"tj_Data___yXfzM","jdy_dom":"jdy_dom___Hvx62","jdy_title_con":"jdy_title_con___Aa3Xk","con_title":"con_title___jenIy","title_status":"title_status___GYNtA","title_name":"title_name___tI6T7","headerdiv":"headerdiv___woAn5","titlename":"titlename___gvc79","titlecoent":"titlecoent___waG0U","content_wrp":"content_wrp___iDeOT","content_list":"content_list___bw9hR","content":"content___kdzaS","content_img":"content_img___EN5Or","content_id":"content_id___DJFBM","content_name":"content_name___uAdFo","content_params":"content_params___yqoax","params_title":"params_title___p6iRv","params_content":"params_content___YcSXh","addyy":"addyy___SuOK2"});
// 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/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/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// 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/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
var tabs = __webpack_require__(99313);
// 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__(36546);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(19871);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(39531);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(95972);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(69423);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/service/user.ts
var service_user = __webpack_require__(43255);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(85681);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(82710);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(63017);
// EXTERNAL MODULE: ./src/assets/images/roomInitImgMaterials.png
var roomInitImgMaterials = __webpack_require__(3416);
// EXTERNAL MODULE: ./src/assets/images/statistics/six.png
var six = __webpack_require__(61938);
;// CONCATENATED MODULE: ./src/assets/images/statistics/yyxq.png
var yyxq_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAABFpJREFUOE9tlctvG1UUxr95evwKjVPbqTtO7BYn6cMp5bFgW6G2tA1IdE1ViYoFlfo3sERCQgL+A/ZI7JCoUPpYIFoqNYWSFLuexI7Hjj1jO/aMO++L7qRxWsGVruT78M/nnu87xwwAEEK4Vqv1K8/zMyzLgmEYuj0ZdE0IeW1vf+H7fnjmeV4/l8udC79JCOG73a4SkSSZewW4D2IZBsH/ACkoCIJw2ratZjKZwgSoaZoiSZLc7/eRSqXA8zw6nS5mZlLYqtcxn89j/MICyzKIRqOwbQeGYYABQSKZhOPYajr9ClDXNYVhWLm+1YAgCshmM9D1HjKZNDRND9f0x+ikoFKpBNuyYTs20uk0HMf5b4Qcx8mWZSGTyYR54TgOOzsdSFIknBRMz+gd+syxOcbUG1NwXReObavZ2dmDJ9McMgwjr609wfJyGY3GNvqDPiKRCIqFAqamknj4xyOcWV5GrVbDcDgMxTtdLsMzTRBJUo++Cuy02wonCLIoCBAjIizLnihLlY/FYhiNhpAkCZ7nQ9f18HPs3l0ETRWPSbBT+OTqQYStVksJAl9++vc6yqdPY2PjGQ5NH8LuYIBEIgHTNGGaY8QTcZTePI67935DsZiHWN3C2YSI3epz/FyrfTtRWVVVhWUYmdqDKmzbNpLJBIKAgFqJ5swPfFQq1fBc0n6AOn0TymYdx/Qa3rFMPKxUjAmw2dxWHNuRzfEYvuchFo+j3W6j1+vj+PFjE5F2d4dINW+iNNvCo/a7eOJ/AbJbRWRLxUkp+tUEuN1oKHpPl0cjAzzPYWFhEYTsmZYm33M9vLAdSM+uI5t4DiY2D4gS7v/u4UH3PDYqVe3Lz27MTYD1+pbieZ4c+EGoLBWBAn1aCb4Pw7QQr91ANlEFFy+AiDE0NjbR3THwS2UR8cLV5q1bN4svgau8oswppmHK/cEAhcI8hsNR6D1aq5rWD5+5kNsBGyuARGLYflZHt2NhTU2hN3UNF8+fU0+Vl/dUXl1d5efyecV13dDYESkSisJzPAAGUvVzFNObYGPzIGICzUoDWtfGE3Ua3eQ1rFy+AEKgLi4tHQDzeVkxRobc6/VQUzZxZrkMTe/Bat/Hytx34A6dAokkoFa20dVcPHguYt25gpVL51EsFuE47uvAo7lc6MM//3qKxcUFsAwLnwDR/m3MH/bBmz+ipQ6gdT2sqUnsRD/FpQ8/CHNNrea6rrq0dOIgwtyRWeWFZcnGyAhFicai2NWbWEo8hUcEdDbvgLXbeFQZo5O8jo+uXIQgCKGdqBNc11OXTrwGPKKsr6/L2WyWdkiIYgR3bv+Ej9+PQ+sZ2O5a+GerA+nw27h86QJ4QaDXwrEHdNUTJ08dRHh4JqXQbiOKYniJevHrb76Haw0h57LIHClgoVRCLjcLWtt07Ddg+mTavsoTlQnhp9ceP+A4Lk27816HRli/w9EAmXQWAs/Dp5svw9r/m6CNPKAF4Pv6mbfOvvcvoih7Rt6nGC0AAAAASUVORK5CYII=";
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Laboratory/OpenReservation/OpenReservationDetail/index.tsx
var statusType = {
'unstart': {
name: '未开始',
color: '#9096A3',
background: 'rgba(144, 150, 163, 0.1)'
},
'running': {
name: '进行中',
color: '#fff',
background: 'linear-gradient( 270deg, #29C7EB 0%, #20C692 100%)'
},
'completed': {
name: '已完成',
color: '#fff',
background: 'linear-gradient( 270deg, #EB2929 0%, #C62320 100%)'
}
};
var Dragger = upload/* default */.Z.Dragger;
var unitType = {
1: '个',
2: '套',
3: '袋',
4: '条',
5: '根',
6: '升',
7: '毫升'
};
var OpenReservationDetail = function OpenReservationDetail(_ref) {
var _statusType$titledata, _statusType$titledata2, _statusType$titledata3, _ref3, _ref4, _titledata$substances, _titledata$substances2, _infoData$attachments, _infoData$attachments2, _user$userInfo2;
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 urlParam = (0,_umi_production_exports.useParams)();
var location = (0,_umi_production_exports.useLocation)();
// 获取查询参数
var params = new URLSearchParams(location.search);
//预约数据
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
tableData = _useState4[0],
setTableData = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)({
content: "",
type: ""
}),
_useState6 = slicedToArray_default()(_useState5, 2),
data = _useState6[0],
setData = _useState6[1];
//分页
var _useState7 = (0,_react_17_0_2_react.useState)(0),
_useState8 = slicedToArray_default()(_useState7, 2),
total = _useState8[0],
setTotal = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(1),
_useState10 = slicedToArray_default()(_useState9, 2),
page = _useState10[0],
setPage = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(10),
_useState12 = slicedToArray_default()(_useState11, 2),
limit = _useState12[0],
setLimit = _useState12[1];
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
myForm = _Form$useForm2[0];
var _useState13 = (0,_react_17_0_2_react.useState)(false),
_useState14 = slicedToArray_default()(_useState13, 2),
openSeeModal = _useState14[0],
setOpenSeeModal = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)({}),
_useState16 = slicedToArray_default()(_useState15, 2),
infoData = _useState16[0],
setInfoData = _useState16[1];
//新增
var _useState17 = (0,_react_17_0_2_react.useState)(false),
_useState18 = slicedToArray_default()(_useState17, 2),
openMyModal = _useState18[0],
setOpenMyModal = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)([]),
_useState20 = slicedToArray_default()(_useState19, 2),
directorsList = _useState20[0],
setDirectorsList = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(false),
_useState22 = slicedToArray_default()(_useState21, 2),
spinning = _useState22[0],
setSpinning = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(),
_useState24 = slicedToArray_default()(_useState23, 2),
titledata = _useState24[0],
settitledata = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(false),
_useState26 = slicedToArray_default()(_useState25, 2),
openModal = _useState26[0],
setOpenModal = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)('1'),
_useState28 = slicedToArray_default()(_useState27, 2),
tablekey = _useState28[0],
settablekey = _useState28[1];
(0,_react_17_0_2_react.useEffect)(function () {
getData(false);
}, [page]);
(0,_react_17_0_2_react.useEffect)(function () {
getData(true);
}, [keyword, limit]);
(0,_react_17_0_2_react.useEffect)(function () {
//预约人
(0,service_user/* user_table_query */.bn)({
open_experiment_id: urlParam === null || urlParam === void 0 ? void 0 : urlParam.id
}).then(function (res) {
var _res$data;
setDirectorsList(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
});
gettitle();
}, []);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(flag) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setSpinning(true);
if (flag) {
setPage(1);
}
_context.next = 4;
return (0,laboratory/* open_experiments_detail */.EH)({
id: urlParam === null || urlParam === void 0 ? void 0 : urlParam.id,
page: page,
limit: limit,
keyword: keyword
}).then(function (res) {
var _res$data2, _res$data3;
setTotal(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.count);
setTableData(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.list);
});
case 4:
setSpinning(false);
case 5:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref2.apply(this, arguments);
};
}();
function gettitle() {
return _gettitle.apply(this, arguments);
}
function _gettitle() {
_gettitle = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var res;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_context5.next = 2;
return (0,fetch/* default */.ZP)("/api/zz_classrooms/open_experiments/".concat(urlParam === null || urlParam === void 0 ? void 0 : urlParam.id, ".json"), {
method: 'get'
});
case 2:
res = _context5.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
settitledata(res === null || res === void 0 ? void 0 : res.data);
}
case 4:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return _gettitle.apply(this, arguments);
}
var columns = [{
title: '预约人',
dataIndex: 'user_name',
"with": 120,
ellipsis: true,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: text || '--'
});
}
}, {
title: '角色',
"with": 120,
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: '预约房间',
"with": 120,
dataIndex: 'classroom_title',
ellipsis: true,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: text || '--'
});
}
}, {
title: '所属实验室分室',
"with": 120,
dataIndex: 'classroom_room_title',
ellipsis: true,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: text || '--'
});
}
}, {
title: '学号/工号',
dataIndex: 'student_id',
ellipsis: true,
"with": 120,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: text || '--'
});
}
}, {
title: '手机',
dataIndex: 'user_phone',
ellipsis: true,
"with": 120,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: text || '--'
});
}
}, {
title: '邮箱',
dataIndex: 'mail',
"with": 120,
ellipsis: true,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: text || '--'
});
}
}, {
title: '操作',
ellipsis: true,
width: 200,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
},
onClick: function onClick() {
setInfoData(record);
setOpenSeeModal(true);
},
children: "\u67E5\u770B\u5B9E\u9A8C\u7B80\u62A5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6367",
marginLeft: "15px",
cursor: "pointer"
},
onClick: function onClick() {
modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
title: "提示",
content: "\u8BF7\u786E\u8BA4\u662F\u5426\u53D6\u6D88\u9884\u7EA6",
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
(0,laboratory/* cancel_reservation */.T$)({
id: record === null || record === void 0 ? void 0 : record.id,
reservation_id: record === null || record === void 0 ? void 0 : record.reservation_id
}).then(function (res) {
if (res.status === 0) {
message/* default */.ZP.success('取消成功');
getData(true);
}
});
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
},
children: "\u53D6\u6D88\u9884\u7EA6"
})]
});
}
}].filter(function (item) {
return !!item;
});
var onShowSizeChange = function onShowSizeChange(page, size) {
setPage(page);
setLimit(size);
};
var filterOption = function filterOption(input, option) {
var _option$label, _option$phone;
var label = ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase();
var phone = ((_option$phone = option === null || option === void 0 ? void 0 : option.phone) !== null && _option$phone !== void 0 ? _option$phone : '').toLowerCase();
var search = input.toLowerCase();
return label.includes(search) || phone.includes(search);
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.back_style,
style: {
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center'
},
onClick: function onClick() {
_umi_production_exports.history.push("/laboratory/openReservation");
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
marginRight: 20
},
className: "icon-zzxy-fanhui1"
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z, {
separator: ">",
items: [{
title: '实验室预约'
}, {
title: titledata === null || titledata === void 0 ? void 0 : titledata.name
}]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flex: 1,
textAlign: 'end'
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginTop: 20,
display: 'flex',
background: '#1F3B89',
padding: '30px 40px',
borderRadius: 6,
marginBottom: 20
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
width: 345,
height: 260,
marginRight: 50
},
src: (env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.IMG_SERVER) + '/' + (titledata === null || titledata === void 0 ? void 0 : titledata.image)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center',
marginBottom: 10
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.title_status,
style: {
color: (_statusType$titledata = statusType[titledata === null || titledata === void 0 ? void 0 : titledata.status]) === null || _statusType$titledata === void 0 ? void 0 : _statusType$titledata.color,
background: (_statusType$titledata2 = statusType[titledata === null || titledata === void 0 ? void 0 : titledata.status]) === null || _statusType$titledata2 === void 0 ? void 0 : _statusType$titledata2.background
},
children: (_statusType$titledata3 = statusType[titledata === null || titledata === void 0 ? void 0 : titledata.status]) === null || _statusType$titledata3 === void 0 ? void 0 : _statusType$titledata3.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.title_name,
children: titledata === null || titledata === void 0 ? void 0 : titledata.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginTop: 20,
display: 'flex',
justifyContent: 'space-between'
},
children: (_ref3 = [{
name: '教员',
count: '1'
}, {
name: '实验室分室',
count: (titledata === null || titledata === void 0 ? void 0 : titledata.classroom_room_name) || '- -'
}, {
name: '时间',
count: "".concat(dayjs_min_default()(titledata === null || titledata === void 0 ? void 0 : titledata.start_time).format('YYYY-MM-DD hh:mm'), "~").concat(dayjs_min_default()(titledata === null || titledata === void 0 ? void 0 : titledata.end_time).format('YYYY-MM-DD hh:mm'))
}, {
name: '已预约人数',
count: (titledata === null || titledata === void 0 ? void 0 : titledata.reservation_count) || 0
}]) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
margin: index === 1 && '0px 20px',
marginLeft: (index === 3 || index === 1) && 20
},
className: OpenReservationDetailmodules.headerdiv,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.titlename,
children: (item === null || item === void 0 ? void 0 : item.name) === '教员' ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: titledata === null || titledata === void 0 ? void 0 : titledata.teachers.map(function (info, index) {
var _titledata$teachers;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [info === null || info === void 0 ? void 0 : info.name, index == (titledata === null || titledata === void 0 || (_titledata$teachers = titledata.teachers) === null || _titledata$teachers === void 0 ? void 0 : _titledata$teachers.length) - 1 ? '' : '、']
});
}),
children: titledata === null || titledata === void 0 ? void 0 : titledata.teachers.map(function (info, index) {
var _titledata$teachers2;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [info === null || info === void 0 ? void 0 : info.name, index == (titledata === null || titledata === void 0 || (_titledata$teachers2 = titledata.teachers) === null || _titledata$teachers2 === void 0 ? void 0 : _titledata$teachers2.length) - 1 ? '' : '、']
});
})
}) : item === null || item === void 0 ? void 0 : item.count
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.titlecoent,
children: item === null || item === void 0 ? void 0 : item.name
})]
});
})
}), (titledata === null || titledata === void 0 ? void 0 : titledata.can_reservation) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.addyy,
onClick: function onClick() {
console.log('---', dayjs_min_default()(titledata === null || titledata === void 0 ? void 0 : titledata.end_time) < dayjs_min_default()(new Date()));
if (titledata !== null && titledata !== void 0 && titledata.has_reservation || dayjs_min_default()(titledata === null || titledata === void 0 ? void 0 : titledata.end_time) < dayjs_min_default()(new Date()) || (titledata === null || titledata === void 0 ? void 0 : titledata.status) === 'completed') {
return;
}
setOpenModal(true);
},
children: titledata !== null && titledata !== void 0 && titledata.has_reservation ? '已预约' : dayjs_min_default()(titledata === null || titledata === void 0 ? void 0 : titledata.end_time) < dayjs_min_default()(new Date()) ? '已截止' : (titledata === null || titledata === void 0 ? void 0 : titledata.status) === 'completed' ? '已结束' : '预约实验'
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
defaultActiveKey: "1"
// style={{ background: '#B2BDF9' }}
,
tabBarStyle: {
background: '#B2BDF9',
width: titledata !== null && titledata !== void 0 && titledata.show_detail ? 550 : 275,
marginBottom: 0
},
className: "tabs",
type: "card",
onChange: function onChange(key) {
settablekey(key);
},
items: (_ref4 = [{
label: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
display: 'block',
width: 240,
textAlign: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: six
}), " \u6240\u9700\u7269\u8D44"]
}),
key: '1'
}, (titledata === null || titledata === void 0 ? void 0 : titledata.show_detail) && {
label: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
display: 'block',
width: 240,
textAlign: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: yyxq_namespaceObject
}), " \u9884\u7EA6\u8BE6\u60C5"]
}),
key: '2'
}]) === null || _ref4 === void 0 ? void 0 : _ref4.filter(function (item) {
return !!item;
})
}), tablekey === '1' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
background: '#B2BDF9'
},
children: (titledata === null || titledata === void 0 || (_titledata$substances = titledata.substances) === null || _titledata$substances === void 0 ? void 0 : _titledata$substances.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.content_wrp,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.content_list,
children: titledata === null || titledata === void 0 || (_titledata$substances2 = titledata.substances) === null || _titledata$substances2 === void 0 ? void 0 : _titledata$substances2.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.content,
onClick: function onClick() {
// history.push(`/materials/itemAssets/${item?.id}/info?backUrl=/materials/itemAssets&indexType=0`)
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.content_img,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: item !== null && item !== void 0 && item.image ? env/* default */.Z.API_SERVER + '/' + (item === null || item === void 0 ? void 0 : item.image) : roomInitImgMaterials
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.content_id,
children: ["\u7269\u8D44\u7F16\u53F7\uFF1A", item === null || item === void 0 ? void 0 : item.number]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.content_name,
children: item === null || item === void 0 ? void 0 : item.title
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.content_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.params_title,
children: "\u578B\u53F7\u89C4\u683C\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item === null || item === void 0 ? void 0 : item.model,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.params_content,
children: item === null || item === void 0 ? void 0 : item.model
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.content_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.params_title,
children: "\u6240\u5728\u5B9E\u9A8C\u5BA4\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item === null || item === void 0 ? void 0 : item.classroom_titile,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.params_content,
children: (item === null || item === void 0 ? void 0 : item.classroom_title) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.content_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.params_title,
children: "\u6240\u5728\u623F\u95F4\u53F7\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item === null || item === void 0 ? void 0 : item.classroom_room_title,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.params_content,
children: (item === null || item === void 0 ? void 0 : item.classroom_room_title) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.content_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.params_title,
children: "\u603B\u6570\u91CF\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "".concat(item === null || item === void 0 ? void 0 : item.total).concat(unitType[item === null || item === void 0 ? void 0 : item.unit], "(\u5269\u4F59").concat(item === null || item === void 0 ? void 0 : item.apply_total).concat(unitType[item === null || item === void 0 ? void 0 : item.unit], "\u53EF\u7533\u8BF7)"),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationDetailmodules.params_content,
children: [item === null || item === void 0 ? void 0 : item.total, unitType[item === null || item === void 0 ? void 0 : item.unit], /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: "#E02020",
marginLeft: '5px'
},
children: ["(\u5269\u4F59", item === null || item === void 0 ? void 0 : item.apply_total, unitType[item === null || item === void 0 ? void 0 : item.unit], "\u53EF\u7533\u8BF7)"]
})]
})
})]
})]
}, index);
})
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "\u6682\u65E0\u6570\u636E"
})
}), tablekey === '2' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(OpenReservationDetailmodules.header_div),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u9884\u7EA6\u4EBA\u540D\u79F0\u641C\u7D22",
size: "large",
className: OpenReservationDetailmodules.search,
value: keyword,
onChange: function onChange(e) {
setkeyword(e.target.value);
},
onSearch: function onSearch(value) {
setkeyword(value);
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9 font14 ".concat(OpenReservationDetailmodules.searchIcon),
onClick: function onClick() {
setkeyword(keyword);
getData(true);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.add_Data,
onClick: function onClick() {
setOpenMyModal(true);
},
children: "\u589E\u52A0\u9884\u7EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.add_Data,
onClick: function onClick() {
(0,util/* downLoadFile */.FH)('', (0,util/* setUrlQuery */.NY)({
url: env/* default */.Z.API_SERVER + "/api/zz_classrooms/open_experiments/".concat(urlParam === null || urlParam === void 0 ? void 0 : urlParam.id, "/reservations.xlsx"),
query: {}
}));
},
children: "\u5BFC\u51FA"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "materials-table-wrp",
style: {
padding: 0
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
loading: spinning,
pagination: false,
dataSource: tableData,
className: "materials-table",
columns: columns
})
}), /*#__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={styles.my_modal}
,
className: "".concat(OpenReservationDetailmodules.my_modal, " modalXazy"),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
}),
open: openMyModal,
title: "\u65B0\u5EFA\u9884\u7EA6",
width: "600px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return myForm.validateFields();
case 2:
(0,laboratory/* public_open_experiments */.GU)({
id: urlParam.id,
reservation_user_id: myForm.getFieldValue('reservation_user_id')
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('新建成功');
getData(true);
setOpenMyModal(false);
myForm === null || myForm === void 0 || myForm.resetFields();
}
});
case 3:
case "end":
return _context3.stop();
}
}, _callee3);
})),
onCancel: function onCancel() {
setOpenMyModal(false);
myForm === null || myForm === void 0 || myForm.resetFields();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: OpenReservationDetailmodules.formWrap,
form: myForm,
labelCol: {
span: 4
},
wrapperCol: {
span: 20
},
style: {
marginTop: '20px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "reservation_user_id",
label: "\u9884\u7EA6\u4EBA",
rules: [{
required: true,
message: '预约人不能为空'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
options: directorsList,
showSearch: true,
filterOption: function filterOption(input, option) {
var _option$real_name;
return ((_option$real_name = option === null || option === void 0 ? void 0 : option.real_name) !== null && _option$real_name !== void 0 ? _option$real_name : '').toLowerCase().includes(input.toLowerCase());
},
fieldNames: {
label: 'real_name',
value: 'id'
},
size: "large"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u9884\u7EA6\u5B9E\u9A8C\u5BA4",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
lineHeight: '36px'
},
children: (titledata === null || titledata === void 0 ? void 0 : titledata.name) || '--'
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u9884\u7EA6\u623F\u95F4\u53F7",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
lineHeight: '36px'
},
children: (titledata === null || titledata === void 0 ? void 0 : titledata.classroom_room_name) || '--'
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true
// className={styles.my_modal}
,
className: "".concat(OpenReservationDetailmodules.my_modal, " modalXazy"),
closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "icon-zzxy-fanhui"
}),
open: openSeeModal,
title: "\u5B9E\u9A8C\u7B80\u62A5",
width: "600px",
onOk: function onOk() {
setOpenSeeModal(false);
},
onCancel: function onCancel() {
setOpenSeeModal(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: myForm,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5B9E\u9A8C\u540D\u79F0",
children: infoData === null || infoData === void 0 ? void 0 : infoData.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5185\u5BB9",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: infoData === null || infoData === void 0 ? void 0 : infoData.report_content
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8D44\u6E90",
children: (infoData === null || infoData === void 0 || (_infoData$attachments = infoData.attachments) === null || _infoData$attachments === void 0 ? void 0 : _infoData$attachments.length) > 0 && (infoData === null || infoData === void 0 || (_infoData$attachments2 = infoData.attachments) === null || _infoData$attachments2 === void 0 ? void 0 : _infoData$attachments2.map(function (items) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: 'flex'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061D0',
cursor: 'pointer'
},
onClick: function onClick() {
return (0,util/* downLoadLink */.Nd)(items === null || items === void 0 ? void 0 : items.name, env/* default */.Z.API_SERVER + (items === null || items === void 0 ? void 0 : items.url));
},
children: (items === null || items === void 0 ? void 0 : items.title) || '--'
})
});
}))
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: OpenReservationDetailmodules.formWrap,
open: openModal,
title: "\u521B\u5EFA\u9884\u7EA6",
width: "400px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _user$userInfo;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return (0,laboratory/* public_open_experiments */.GU)({
id: titledata === null || titledata === void 0 ? void 0 : titledata.id,
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) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
getData(true);
gettitle();
}
});
case 2:
setOpenModal(false);
case 3:
case "end":
return _context4.stop();
}
}, _callee4);
})),
onCancel: function onCancel() {
setOpenModal(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u9884\u7EA6\u4EBA: ", user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.username]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
margin: '15px 0'
},
children: ["\u9884\u7EA6\u5B9E\u9A8C\u5BA4: ", titledata === null || titledata === void 0 ? void 0 : titledata.name]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u9884\u7EA6\u623F\u95F4\u53F7: ", titledata === null || titledata === void 0 ? void 0 : titledata.classroom_room_name]
})]
})
})]
});
};
/* harmony default export */ var OpenReservation_OpenReservationDetail = ((0,_umi_production_exports.connect)(function (_ref7) {
var loading = _ref7.loading,
engineeringNavigtion = _ref7.engineeringNavigtion,
user = _ref7.user;
return objectSpread2_default()(objectSpread2_default()({
loading: loading
}, engineeringNavigtion), {}, {
user: user
});
})(OpenReservationDetail));
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ breadcrumb; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(38298);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(36994);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.0@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(76995);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
"use client";
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function getBreadcrumbName(route, params) {
if (route.title === undefined || route.title === null) {
return null;
}
const paramsKeys = Object.keys(params).join('|');
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
}
function renderItem(prefixCls, item, children, href) {
if (children === null || children === undefined) {
return null;
}
const {
className,
onClick
} = item,
restItem = __rest(item, ["className", "onClick"]);
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
data: true,
aria: true
})), {
onClick
});
if (href !== undefined) {
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
}), children);
}
function useItemRender(prefixCls, itemRender) {
const mergedItemRender = (item, params, routes, path, href) => {
if (itemRender) {
return itemRender(item, params, routes, path);
}
const name = getBreadcrumbName(item, params);
return renderItem(prefixCls, item, name, href);
};
return mergedItemRender;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
"use client";
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalBreadcrumbItem = props => {
const {
prefixCls,
separator = '/',
children,
menu,
overlay,
dropdownProps,
href
} = props;
// Warning for deprecated usage
if (false) {}
/** If overlay is have Wrap a Dropdown */
const renderBreadcrumbNode = breadcrumbItem => {
if (menu || overlay) {
const mergeDropDownProps = Object.assign({}, dropdownProps);
if (menu) {
const _a = menu || {},
{
items
} = _a,
menuProps = BreadcrumbItem_rest(_a, ["items"]);
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
var {
key,
title,
label,
path
} = _a,
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
let mergedLabel = label !== null && label !== void 0 ? label : title;
if (path) {
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
href: `${href}${path}`
}, mergedLabel);
}
return Object.assign(Object.assign({}, itemProps), {
key: key !== null && key !== void 0 ? key : index,
label: mergedLabel
});
})
});
} else if (overlay) {
mergeDropDownProps.overlay = overlay;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
placement: "bottom"
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-overlay-link`
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
}
return breadcrumbItem;
};
// wrap to dropDown
const link = renderBreadcrumbNode(children);
if (link !== undefined && link !== null) {
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
}
return null;
};
const BreadcrumbItem = props => {
const {
prefixCls: customizePrefixCls,
children,
href
} = props,
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
prefixCls: prefixCls
}), renderItem(prefixCls, restProps, children, href));
};
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
const genBreadcrumbStyle = token => {
const {
componentCls,
iconCls
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
color: token.itemColor,
fontSize: token.fontSize,
[iconCls]: {
fontSize: token.iconFontSize
},
ol: {
display: 'flex',
flexWrap: 'wrap',
margin: 0,
padding: 0,
listStyle: 'none'
},
a: Object.assign({
color: token.linkColor,
transition: `color ${token.motionDurationMid}`,
padding: `0 ${token.paddingXXS}px`,
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
marginInline: -token.marginXXS,
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover
}
}, (0,style/* genFocusStyle */.Qy)(token)),
[`li:last-child`]: {
color: token.lastItemColor
},
[`${componentCls}-separator`]: {
marginInline: token.separatorMargin,
color: token.separatorColor
},
[`${componentCls}-link`]: {
[`
> ${iconCls} + span,
> ${iconCls} + a
`]: {
marginInlineStart: token.marginXXS
}
},
[`${componentCls}-overlay-link`]: {
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
padding: `0 ${token.paddingXXS}px`,
marginInline: -token.marginXXS,
[`> ${iconCls}`]: {
marginInlineStart: token.marginXXS,
fontSize: token.fontSizeIcon
},
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover,
a: {
color: token.linkHoverColor
}
},
a: {
'&:hover': {
backgroundColor: 'transparent'
}
}
},
// rtl style
[`&${token.componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
return [genBreadcrumbStyle(BreadcrumbToken)];
}, token => ({
itemColor: token.colorTextDescription,
lastItemColor: token.colorText,
iconFontSize: token.fontSize,
linkColor: token.colorTextDescription,
linkHoverColor: token.colorText,
separatorColor: token.colorTextDescription,
separatorMargin: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
var useItems_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function route2item(route) {
const {
breadcrumbName,
children
} = route,
rest = useItems_rest(route, ["breadcrumbName", "children"]);
const clone = Object.assign({
title: breadcrumbName
}, rest);
if (children) {
clone.menu = {
items: children.map(_a => {
var {
breadcrumbName: itemBreadcrumbName
} = _a,
itemProps = useItems_rest(_a, ["breadcrumbName"]);
return Object.assign(Object.assign({}, itemProps), {
title: itemBreadcrumbName
});
})
};
}
return clone;
}
function useItems(items, routes) {
return (0,_react_17_0_2_react.useMemo)(() => {
if (items) {
return items;
}
if (routes) {
return routes.map(route2item);
}
return null;
}, [items, routes]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
"use client";
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const getPath = (params, path) => {
if (path === undefined) {
return path;
}
let mergedPath = (path || '').replace(/^\//, '');
Object.keys(params).forEach(key => {
mergedPath = mergedPath.replace(`:${key}`, params[key]);
});
return mergedPath;
};
const Breadcrumb = props => {
const {
prefixCls: customizePrefixCls,
separator = '/',
style,
className,
rootClassName,
routes: legacyRoutes,
items,
children,
itemRender,
params = {}
} = props,
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
const {
getPrefixCls,
direction,
breadcrumb
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
let crumbs;
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
const mergedItems = useItems(items, legacyRoutes);
if (false) {}
const mergedItemRender = useItemRender(prefixCls, itemRender);
if (mergedItems && mergedItems.length > 0) {
// generated by route
const paths = [];
const itemRenderRoutes = items || legacyRoutes;
crumbs = mergedItems.map((item, index) => {
const {
path,
key,
type,
menu,
overlay,
onClick,
className: itemClassName,
separator: itemSeparator,
dropdownProps
} = item;
const mergedPath = getPath(params, path);
if (mergedPath !== undefined) {
paths.push(mergedPath);
}
const mergedKey = key !== null && key !== void 0 ? key : index;
if (type === 'separator') {
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
key: mergedKey
}, itemSeparator);
}
const itemProps = {};
const isLastItem = index === mergedItems.length - 1;
if (menu) {
itemProps.menu = menu;
} else if (overlay) {
itemProps.overlay = overlay;
}
let {
href
} = item;
if (paths.length && mergedPath !== undefined) {
href = `#/${paths.join('/')}`;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
key: mergedKey
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
data: true,
aria: true
}), {
className: itemClassName,
dropdownProps: dropdownProps,
href: href,
separator: isLastItem ? '' : separator,
onClick: onClick,
prefixCls: prefixCls
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
});
} else if (children) {
const childrenLength = (0,toArray/* default */.Z)(children).length;
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
if (!element) {
return element;
}
// =================== Warning =====================
if (false) {}
false ? 0 : void 0;
const isLastItem = index === childrenLength - 1;
return (0,reactNode/* cloneElement */.Tm)(element, {
separator: isLastItem ? '' : separator,
key: index
});
});
}
const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
className: breadcrumbClassName,
style: mergedStyle
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
};
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
if (false) {}
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
"use client";
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
/***/ }),
/***/ 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 */ 41945);
"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);
/***/ }),
/***/ 61938:
/*!**********************************************!*\
!*** ./src/assets/images/statistics/six.png ***!
\**********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAkhJREFUOE+lk81LVFEYxp/3zP2YO475MWMpughdzK2oSKxRqaAJmttYCoJZm5ZRm9Zt+jsSEqQkwkCIiK6JBFaUC6ONgmHYhFGW42CkzIxzzzlx5suPlr27+57z3Od5f++9hP8o2qu1bTtk2/YVKakRrHQqAF33pRYWFp7Mzc39LGv2iv3RU9HxbGbT9rZy81ueJ9VFnWmk6XrEDFT9SH5NXlpdXd1Q/V3i1kikI1xd/ay9o6N7aGgouTPVtd7eA4vLy+9hmjdmZ2amKmJ583pz1n1p3MrzKLpid28vLQ4cSn/P7BSnfEK7c/jM49yHt/dHDZqUXZ0eTfVfPnk6n3luhPf78kLogrGAIcRvIgLyOUAF1w2ACFlGNYzzjEFsS6ynBT04cfRiP8+88FtWwUiJ1P2M38LSuQTAGFrfvUIgnSq8QKpTCXDOQQ/bj8QTXm5C0/Rd4FeqquH2DMJfF0J8chz1Xz5vE1J6KUCP2o/HHV1MME0r8ishXDECGDvWiVBzMxKzr1H/LVlwrhQXoOG2FueqZbjFzNsLSBkmxhIDIMYwOO0ivPZrx3IkmI+BRloanGiix/XFHHAuwNU8AvCEQHL9Dzwh0WgFISUD5xJCSAgwmB/fgEbbmpxaK+iuBWuKZAtVwFJxkuqB1JxFWCp+bXYTNNzS4Jzv7XOtCz3wys4c4FKWEiiyEp7qKVflDgZtdho0crDJMauCbrouXPIsOkMSRDlHIUaxV060b2MddC92Ntb9af6pbuqVb1VuQ//3nyuNpvb8F16o8ZLMlFIbAAAAAElFTkSuQmCC";
/***/ })
}]);