autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent 17f7d021b1
commit df07f8cf1d

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

@ -42,7 +42,7 @@ var SubMenu = menu/* default */.Z.SubMenu;
var Engineering = function Engineering(_ref) {
var _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12;
var _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11;
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering,
@ -89,9 +89,11 @@ var Engineering = function Engineering(_ref) {
className: "iconfont icon-wodeyuyue"
})), (user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.classroom_center_auth) && getItem('工作台', 'workbench', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-wodegongzuotai"
}), [(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.classroom_center_auth) && getItem('实验室中心', '/laboratory/laboratoryCenter'),
}), [(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.classroom_center_auth) && getItem('实验室中心管理', '/laboratory/laboratoryCenter'),
// (user?.userInfo?.classroom_center_auth || user?.userInfo?.classroom_auth) && getItem('智慧大屏', '/wisdom'),
((user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.classroom_auth)) && getItem('我的实验室', '/laboratory/myLaboratory'), ((user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.classroom_auth)) && getItem('实验室房间', '/laboratory/laboratoryRoom'), ((user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.classroom_auth)) && getItem('预约规则', '/laboratory/ruleManage'), ((user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.classroom_auth)) && getItem('实验室分类', '/laboratory/laboratoryType'), ((user === null || user === void 0 || (_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.classroom_auth)) && getItem('预约管理', '/laboratory/reservationmanage')])];
((user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.classroom_auth)) && getItem('实验室管理', '/laboratory/myLaboratory'), ((user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.classroom_auth)) && getItem('实验室分室管理', '/laboratory/laboratoryRoom'), ((user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.classroom_auth)) && getItem('预约规则管理', '/laboratory/ruleManage'),
// (user?.userInfo?.classroom_center_auth || user?.userInfo?.classroom_auth) && getItem('实验室分类', '/laboratory/laboratoryType'),
((user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.classroom_auth)) && (user === null || user === void 0 || (_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.admin_and_review) && getItem('预约管理', '/laboratory/reservationmanage')])];
// 获取所有二级菜单项的key
var allSubMenuKeys = items.filter(function (item) {

@ -270,7 +270,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '存在实验室数',
dataIndex: 'title',
dataIndex: 'classroom_count',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
@ -286,7 +286,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '存在实验室分室数',
dataIndex: 'title',
dataIndex: 'classroom_room_count',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
@ -302,7 +302,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '可使用人数',
dataIndex: 'title',
dataIndex: 'work_num',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
@ -318,7 +318,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '总面积',
dataIndex: 'title',
dataIndex: 'area',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {

@ -250,6 +250,32 @@ var Navigation = function Navigation(_ref) {
})
});
}
}, {
title: '存在实验室分室数',
dataIndex: 'classroom_room_count',
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: '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: 'nature',

@ -297,13 +297,13 @@ var OpenReservationStatistics = function OpenReservationStatistics(_ref) {
}
}, {
title: '所需物资',
dataIndex: 'classroom_title',
dataIndex: 'substance_names',
ellipsis: true,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: text || '--'
title: text === null || text === void 0 ? void 0 : text.join('、'),
children: (text === null || text === void 0 ? void 0 : text.join('、')) || '--'
});
}
}, {

@ -93,7 +93,6 @@
justify-content: space-between;
margin-bottom: 15px;
padding: 20px;
height: 102px;
background: #FFFFFF;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
border-radius: 2px;

@ -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, {

@ -36,7 +36,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
var _umi_production_exports = __webpack_require__(88271);
;// 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"});
/* 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_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","tj_warp":"tj_warp___P_UK7","colorBlue":"colorBlue___u9cjn"});
// 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
@ -55,6 +55,12 @@ var table = __webpack_require__(36546);
var pagination = __webpack_require__(19871);
// 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
@ -64,6 +70,8 @@ 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/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/ReservationManage/index.tsx
@ -83,31 +91,32 @@ var jsx_runtime = __webpack_require__(37712);
var timeType = {
1: '第1节(00:00-00:50)',
2: '第2节(01:00-01:50)',
3: '第3节(02:00-02:50)',
4: '第4节(03:00-03:50)',
5: '第5节(04:00-04:50)',
6: '第6节(05:00-05:50)',
7: '第7节(06:00-06:50)',
8: '第8节(07:00-07:50)',
9: '第9节(08:00-08:50)',
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)'
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': '待审核',
@ -212,6 +221,22 @@ var Navigation = function Navigation(_ref) {
_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',
@ -326,7 +351,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: 'ip地址',
dataIndex: 'mail',
dataIndex: 'ip',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
@ -554,6 +579,7 @@ var Navigation = function Navigation(_ref) {
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) {
@ -584,6 +610,24 @@ var Navigation = function Navigation(_ref) {
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');
@ -630,6 +674,47 @@ var Navigation = function Navigation(_ref) {
}
})
})]
}), /*#__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: 'icon-a-zhishitupu1'
}, {
name: '未开始数',
num: (toollist === null || toollist === void 0 ? void 0 : toollist.not_start_count) || 0,
iconfont: 'icon-shenqingchengweizhujiao'
}, {
name: '进行中数',
num: (toollist === null || toollist === void 0 ? void 0 : toollist.underway_count) || 0,
iconfont: 'icon-wodeyuyue'
}, {
name: '已完成数',
num: (toollist === null || toollist === void 0 ? void 0 : toollist.completed_count) || 0,
iconfont: 'icon-leiji'
}].map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ReservationManagemodules.tj_item,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ReservationManagemodules.tj_item_icon,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont ".concat(item === null || item === void 0 ? void 0 : item.iconfont, " font18 mr5 ").concat(ReservationManagemodules.colorBlue)
})
}), /*#__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, {
@ -713,6 +798,12 @@ var Navigation = function Navigation(_ref) {
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)(table/* default */.Z, {
pagination: false,
@ -1252,13 +1343,116 @@ var Navigation = function Navigation(_ref) {
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
title: "\u6587\u4EF6\u5BFC\u5165",
open: exportshow,
centered: true,
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 (_ref4) {
var loading = _ref4.loading,
engineeringNavigtion = _ref4.engineeringNavigtion,
user = _ref4.user;
/* 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), {}, {
@ -1266,6 +1460,25 @@ var Navigation = function Navigation(_ref) {
});
})(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 */ 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);
/***/ })
}]);

@ -96,4 +96,53 @@
line-height: 32px !important;
padding-right: 5px !important;
}
.tj_item___o3d8l {
display: flex;
align-items: center;
}
.tj_item_icon___jUQz1 {
width: 40px;
height: 40px;
background: #F4F8FA;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.tj_item_num___Skhqs {
font-family: PingFangSC, PingFang SC;
font-weight: 600;
font-size: 20px;
color: #000000;
line-height: 20px;
text-align: left;
font-style: normal;
margin-bottom: 8px;
}
.tj_item_text___iDuqK {
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 12px;
color: #6A7283;
line-height: 12px;
text-align: left;
font-style: normal;
}
.tj_warp___P_UK7 {
width: 100%;
height: 80px;
background: #FFFFFF;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
border-radius: 2px;
border: 1px solid #F5F5F5;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 40px;
margin-bottom: 20px;
}
.colorBlue___u9cjn {
color: #0152d9;
}

@ -50,6 +50,8 @@ var date_picker = __webpack_require__(251);
var es_select = __webpack_require__(57809);
// 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/button/index.js
var es_button = __webpack_require__(3113);
;// CONCATENATED MODULE: ./src/pages/Laboratory/Reservations/Info/Instructions/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Instructionsmodules = ({"file_list":"file_list___vW4zF"});
@ -1494,9 +1496,10 @@ var roomInitImg = __webpack_require__(58253);
var Info_Navigation = function Navigation(_ref) {
var _roomInfo$classroom_d, _user$userInfo6, _user$userInfo7;
var _roomInfo$classroom_d, _user$userInfo5, _user$userInfo6;
var loading = _ref.loading,
user = _ref.user;
var _useState = (0,_react_17_0_2_react.useState)(false),
@ -1530,10 +1533,14 @@ var Info_Navigation = function Navigation(_ref) {
_useState12 = slicedToArray_default()(_useState11, 2),
containerList = _useState12[0],
setContainerList = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(false),
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
ip = _useState14[0],
setip = _useState14[1];
teacherlist = _useState14[0],
setteacherlist = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(false),
_useState16 = slicedToArray_default()(_useState15, 2),
ip = _useState16[0],
setip = _useState16[1];
(0,_react_17_0_2_react.useEffect)(function () {
getInfo();
}, []);
@ -1550,7 +1557,7 @@ var Info_Navigation = function Navigation(_ref) {
}
function _getip() {
_getip = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var ip;
var ip, res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
@ -1561,7 +1568,16 @@ var Info_Navigation = function Navigation(_ref) {
case 2:
ip = _context2.sent;
setip(ip);
case 4:
_context2.next = 6;
return (0,fetch/* default */.ZP)("/api/users/review_users.json", {
method: 'get'
});
case 6:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setteacherlist(res === null || res === void 0 ? void 0 : res.users);
}
case 8:
case "end":
return _context2.stop();
}
@ -1774,7 +1790,7 @@ var Info_Navigation = function Navigation(_ref) {
title: "\u65B0\u589E\u9884\u7EA6\u7533\u8BF7",
width: "600px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _user$userInfo3, _user$userInfo4, _user$userInfo5, _myForm$getFieldValue;
var _user$userInfo3, _user$userInfo4, _myForm$getFieldValue;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -1786,7 +1802,7 @@ var Info_Navigation = function Navigation(_ref) {
reservation: {
reservation_user_id: user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_id,
phone: user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.phone,
email: user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.email,
ip: ip,
classroom_room_id: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.id,
classroom_id: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.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'),
@ -1794,7 +1810,8 @@ var Info_Navigation = function Navigation(_ref) {
description: myForm.getFieldValue('description'),
container_id: myForm.getFieldValue('container_id'),
container_type: myForm.getFieldValue('container_type'),
sections: myForm.getFieldValue('sections')
sections: myForm.getFieldValue('sections'),
review_user_id: myForm.getFieldValue('review_user_id')
}
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
@ -1822,7 +1839,7 @@ var Info_Navigation = function Navigation(_ref) {
colon: false,
label: "\u9884\u7EA6\u4EBA",
name: "reservation_user_id",
children: user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.username
children: user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.username
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u9884\u7EA6\u5B9E\u9A8C\u5BA4",
@ -1938,6 +1955,21 @@ var Info_Navigation = function Navigation(_ref) {
}
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u6307\u5B9A\u5BA1\u6838\u4EBA",
name: "review_user_id ",
rules: [{
required: true,
message: '请选择指定审核人'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
children: teacherlist === null || teacherlist === void 0 ? void 0 : teacherlist.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.user_name
}, item === null || item === void 0 ? void 0 : item.id);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex"
@ -1993,11 +2025,23 @@ var Info_Navigation = function Navigation(_ref) {
colon: false,
label: "\u624B\u673A\u53F7\u7801",
name: "phone",
children: user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.phone
children: user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.phone
}), !ip && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
colon: false,
label: " ",
name: "",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-red",
children: "\uFF08\u987BChrome\u8C37\u6B4C\u6D4F\u89C8\u5668\uFF0C\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF0C\uFF09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: util/* showInstallWebRtcDoc */.jt,
type: "link",
children: "\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "ip\u5730\u5740",
name: "email",
name: "ip",
children: ip
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,

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