|
|
|
|
@ -242,10 +242,14 @@ var laboratory = __webpack_require__(39531);
|
|
|
|
|
// 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/utils/fetch.ts
|
|
|
|
|
var fetch = __webpack_require__(82710);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
|
|
|
var authority = __webpack_require__(64118);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
|
|
|
var NoData = __webpack_require__(63017);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
|
|
var env = __webpack_require__(69423);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Laboratory/OpenReservation/index.tsx
|
|
|
|
|
@ -265,6 +269,8 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var RangePicker = date_picker["default"].RangePicker;
|
|
|
|
|
var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
var _ref3, _user$userInfo2;
|
|
|
|
|
@ -335,6 +341,10 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
|
|
openModal = _useState28[0],
|
|
|
|
|
setOpenModal = _useState28[1];
|
|
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState30 = slicedToArray_default()(_useState29, 2),
|
|
|
|
|
substance = _useState30[0],
|
|
|
|
|
setsubstance = _useState30[1];
|
|
|
|
|
var statusType = {
|
|
|
|
|
'unstart': {
|
|
|
|
|
name: '未开始',
|
|
|
|
|
@ -386,6 +396,36 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData(false);
|
|
|
|
|
}, [page]);
|
|
|
|
|
function getsub() {
|
|
|
|
|
return _getsub.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _getsub() {
|
|
|
|
|
_getsub = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
|
|
|
|
|
var res, _res$data5;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context4.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/yn_classrooms/substances.json", {
|
|
|
|
|
mehtod: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10000
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context4.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
setsubstance(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list);
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context4.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee4);
|
|
|
|
|
}));
|
|
|
|
|
return _getsub.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData(true);
|
|
|
|
|
}, [status, keyword, classroomId, limit]);
|
|
|
|
|
@ -530,6 +570,7 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.add_Data,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
getsub();
|
|
|
|
|
setOpenAddModal(true);
|
|
|
|
|
setInfoData({});
|
|
|
|
|
myForm.resetFields();
|
|
|
|
|
@ -547,77 +588,121 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
|
|
|
spinning: spinning,
|
|
|
|
|
children: (tableData === null || tableData === void 0 ? void 0 : tableData.length) > 0 ? tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
|
|
|
|
|
var _statusType$item$stat, _statusType$item$stat2, _statusType$item$stat3;
|
|
|
|
|
var _statusType$item$stat, _statusType$item$stat2, _statusType$item$stat3, _item$substance_names, _item$substance_names2;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: OpenReservationmodules === null || OpenReservationmodules === void 0 ? void 0 : OpenReservationmodules.list_item,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: env/* default */.Z.IMG_SERVER + '/' + (item === null || item === void 0 ? void 0 : item.image),
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
marginBottom: 20
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.title_status,
|
|
|
|
|
style: {
|
|
|
|
|
color: (_statusType$item$stat = statusType[item.status]) === null || _statusType$item$stat === void 0 ? void 0 : _statusType$item$stat.color,
|
|
|
|
|
background: (_statusType$item$stat2 = statusType[item.status]) === null || _statusType$item$stat2 === void 0 ? void 0 : _statusType$item$stat2.background
|
|
|
|
|
},
|
|
|
|
|
children: (_statusType$item$stat3 = statusType[item.status]) === null || _statusType$item$stat3 === void 0 ? void 0 : _statusType$item$stat3.name
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.title_name,
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
|
|
})]
|
|
|
|
|
width: 150,
|
|
|
|
|
marginRight: 20
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
fontSize: '12px'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_dom,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u6559\u5BFC\u5458"
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
marginBottom: 20
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.title_status,
|
|
|
|
|
style: {
|
|
|
|
|
color: (_statusType$item$stat = statusType[item.status]) === null || _statusType$item$stat === void 0 ? void 0 : _statusType$item$stat.color,
|
|
|
|
|
background: (_statusType$item$stat2 = statusType[item.status]) === null || _statusType$item$stat2 === void 0 ? void 0 : _statusType$item$stat2.background
|
|
|
|
|
},
|
|
|
|
|
children: (_statusType$item$stat3 = statusType[item.status]) === null || _statusType$item$stat3 === void 0 ? void 0 : _statusType$item$stat3.name
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_title_con,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.teachers.map(function (info, index) {
|
|
|
|
|
var _item$teachers;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [info === null || info === void 0 ? void 0 : info.name, index == (item === null || item === void 0 || (_item$teachers = item.teachers) === null || _item$teachers === void 0 ? void 0 : _item$teachers.length) - 1 ? '' : '、']
|
|
|
|
|
});
|
|
|
|
|
}),
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.teachers.map(function (info, index) {
|
|
|
|
|
var _item$teachers2;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [info === null || info === void 0 ? void 0 : info.name, index == (item === null || item === void 0 || (_item$teachers2 = item.teachers) === null || _item$teachers2 === void 0 ? void 0 : _item$teachers2.length) - 1 ? '' : '、']
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
className: OpenReservationmodules.title_name,
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mr40",
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
display: 'flex',
|
|
|
|
|
fontSize: '12px'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u5B9E\u9A8C\u5BA4\u623F\u95F4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_title_con,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.classroom_room_name,
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.classroom_room_name
|
|
|
|
|
})
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_dom,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u6559\u5BFC\u5458"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_title_con,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.teachers.map(function (info, index) {
|
|
|
|
|
var _item$teachers;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [info === null || info === void 0 ? void 0 : info.name, index == (item === null || item === void 0 || (_item$teachers = item.teachers) === null || _item$teachers === void 0 ? void 0 : _item$teachers.length) - 1 ? '' : '、']
|
|
|
|
|
});
|
|
|
|
|
}),
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.teachers.map(function (info, index) {
|
|
|
|
|
var _item$teachers2;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [info === null || info === void 0 ? void 0 : info.name, index == (item === null || item === void 0 || (_item$teachers2 = item.teachers) === null || _item$teachers2 === void 0 ? void 0 : _item$teachers2.length) - 1 ? '' : '、']
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mr40",
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u5B9E\u9A8C\u5BA4\u5206\u5BA4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_title_con,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.classroom_room_name,
|
|
|
|
|
children: (item === null || item === void 0 ? void 0 : item.classroom_room_name) || '暂无分室'
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u65F6\u95F4"
|
|
|
|
|
}), dayjs_min_default()(item === null || item === void 0 ? void 0 : item.start_time).format('YYYY-MM-DD hh:mm'), "~", dayjs_min_default()(item === null || item === void 0 ? void 0 : item.end_time).format('YYYY-MM-DD hh:mm')]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
fontSize: '12px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_dom,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u62A5\u540D\u622A\u6B62\u65F6\u95F4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_title_con,
|
|
|
|
|
children: (item === null || item === void 0 ? void 0 : item.finish_time) || '- -'
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
display: 'flex',
|
|
|
|
|
fontSize: '12px'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u65F6\u95F4"
|
|
|
|
|
}), dayjs_min_default()(item === null || item === void 0 ? void 0 : item.start_time).format('YYYY-MM-DD hh:mm'), "~", dayjs_min_default()(item === null || item === void 0 ? void 0 : item.end_time).format('YYYY-MM-DD hh:mm')]
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_dom,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: OpenReservationmodules.con_title,
|
|
|
|
|
children: "\u6240\u9700\u7269\u8D44\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.jdy_title_con,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: item === null || item === void 0 || (_item$substance_names = item.substance_names) === null || _item$substance_names === void 0 ? void 0 : _item$substance_names.join('、'),
|
|
|
|
|
children: (item === null || item === void 0 || (_item$substance_names2 = item.substance_names) === null || _item$substance_names2 === void 0 ? void 0 : _item$substance_names2.join('、')) || '暂无物资需求'
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), (item === null || item === void 0 ? void 0 : item.is_teacher) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -634,6 +719,7 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.add_Data2,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
getsub();
|
|
|
|
|
setOpenAddModal(true);
|
|
|
|
|
setInfoData(objectSpread2_default()(objectSpread2_default()({}, item), {}, {
|
|
|
|
|
teacher_ids: item === null || item === void 0 ? void 0 : item.teachers.map(function (info) {
|
|
|
|
|
@ -643,18 +729,6 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
}));
|
|
|
|
|
},
|
|
|
|
|
children: "\u7F16\u8F91"
|
|
|
|
|
}), item !== null && item !== void 0 && item.has_reservation ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.add_Data2,
|
|
|
|
|
children: "\u5DF2\u9884\u7EA6"
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
|
|
|
children: ((item === null || item === void 0 ? void 0 : item.status) != 'completed' || (item === null || item === void 0 ? void 0 : item.can_reservation)) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OpenReservationmodules.add_Data2,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setInfoData(item);
|
|
|
|
|
setOpenModal(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u5F00\u59CB\u9884\u7EA6"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
@ -743,10 +817,10 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
className: OpenReservationmodules.formWrap,
|
|
|
|
|
form: myForm,
|
|
|
|
|
labelCol: {
|
|
|
|
|
span: 4
|
|
|
|
|
span: 6
|
|
|
|
|
},
|
|
|
|
|
wrapperCol: {
|
|
|
|
|
span: 20
|
|
|
|
|
span: 18
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
colon: false,
|
|
|
|
|
@ -810,11 +884,11 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
colon: false,
|
|
|
|
|
label: "\u5B9E\u9A8C\u5BA4\u623F\u95F4",
|
|
|
|
|
label: "\u5B9E\u9A8C\u5BA4\u5206\u5BA4",
|
|
|
|
|
name: "classroom_room_id",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择实验室房间'
|
|
|
|
|
message: '请选择实验室分室'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
children: rooms === null || rooms === void 0 ? void 0 : rooms.map(function (item, key) {
|
|
|
|
|
@ -873,6 +947,37 @@ var OpenReservation = function OpenReservation(_ref) {
|
|
|
|
|
},
|
|
|
|
|
format: "YYYY-MM-DD HH:mm"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "finish_time",
|
|
|
|
|
label: "\u62A5\u540D\u622A\u6B62\u65F6\u95F4",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择开放日期'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
|
|
|
|
size: "large",
|
|
|
|
|
style: {
|
|
|
|
|
width: '100%'
|
|
|
|
|
},
|
|
|
|
|
allowClear: false,
|
|
|
|
|
format: "YYYY-MM-DD HH:mm"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "substance_ids",
|
|
|
|
|
label: "\u5B9E\u9A8C\u6240\u9700\u7269\u8D44",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择开放日期'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
mode: "multiple",
|
|
|
|
|
children: substance === null || substance === void 0 ? void 0 : substance.map(function (item) {
|
|
|
|
|
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
|
|
|
|
|
}, item === null || item === void 0 ? void 0 : item.id);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|