Auto Submit

dev_local_v9_test2
autosubmit 2 years ago
parent 0e6d49d00c
commit 8b3ebe1e98

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

@ -572,8 +572,9 @@ var Navigation = function Navigation(_ref) {
message: '请输入正整数'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "number",
size: "large"
size: "large",
maxLength: 5,
showCount: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
@ -1180,7 +1181,8 @@ var jsx_runtime = __webpack_require__(37712);
var CustomRules = function CustomRules(_ref) {
var handleCustomRulesChange = _ref.handleCustomRulesChange,
_ref$updateList = _ref.updateList,
updateList = _ref$updateList === void 0 ? null : _ref$updateList;
updateList = _ref$updateList === void 0 ? null : _ref$updateList,
isType = _ref.isType;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
customRulesList = _useState2[0],
@ -1225,12 +1227,14 @@ var CustomRules = function CustomRules(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(CustomRulesmodules.timeSlotItem2, " ").concat(item2 ? CustomRulesmodules.checked : CustomRulesmodules.unchecked),
onClick: function onClick() {
setCustomRulesList(function (val) {
var newList = toConsumableArray_default()(val);
newList[index].reservation = toConsumableArray_default()(val[index].reservation);
newList[index].reservation[index2] = !item2;
return newList;
});
if (isType != '查看') {
setCustomRulesList(function (val) {
var newList = toConsumableArray_default()(val);
newList[index].reservation = toConsumableArray_default()(val[index].reservation);
newList[index].reservation[index2] = !item2;
return newList;
});
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomRulesmodules.customCheckbox

@ -559,8 +559,9 @@ var Navigation = function Navigation(_ref) {
message: '请输入正整数'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "number",
size: "large"
size: "large",
maxLength: 5,
showCount: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
@ -1168,7 +1169,8 @@ var jsx_runtime = __webpack_require__(37712);
var CustomRules = function CustomRules(_ref) {
var handleCustomRulesChange = _ref.handleCustomRulesChange,
_ref$updateList = _ref.updateList,
updateList = _ref$updateList === void 0 ? null : _ref$updateList;
updateList = _ref$updateList === void 0 ? null : _ref$updateList,
isType = _ref.isType;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
customRulesList = _useState2[0],
@ -1213,12 +1215,14 @@ var CustomRules = function CustomRules(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(CustomRulesmodules.timeSlotItem2, " ").concat(item2 ? CustomRulesmodules.checked : CustomRulesmodules.unchecked),
onClick: function onClick() {
setCustomRulesList(function (val) {
var newList = toConsumableArray_default()(val);
newList[index].reservation = toConsumableArray_default()(val[index].reservation);
newList[index].reservation[index2] = !item2;
return newList;
});
if (isType != '查看') {
setCustomRulesList(function (val) {
var newList = toConsumableArray_default()(val);
newList[index].reservation = toConsumableArray_default()(val[index].reservation);
newList[index].reservation[index2] = !item2;
return newList;
});
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomRulesmodules.customCheckbox

@ -39,7 +39,8 @@ var jsx_runtime = __webpack_require__(37712);
var CustomRules = function CustomRules(_ref) {
var handleCustomRulesChange = _ref.handleCustomRulesChange,
_ref$updateList = _ref.updateList,
updateList = _ref$updateList === void 0 ? null : _ref$updateList;
updateList = _ref$updateList === void 0 ? null : _ref$updateList,
isType = _ref.isType;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
customRulesList = _useState2[0],
@ -84,12 +85,14 @@ var CustomRules = function CustomRules(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(CustomRulesmodules.timeSlotItem2, " ").concat(item2 ? CustomRulesmodules.checked : CustomRulesmodules.unchecked),
onClick: function onClick() {
setCustomRulesList(function (val) {
var newList = toConsumableArray_default()(val);
newList[index].reservation = toConsumableArray_default()(val[index].reservation);
newList[index].reservation[index2] = !item2;
return newList;
});
if (isType != '查看') {
setCustomRulesList(function (val) {
var newList = toConsumableArray_default()(val);
newList[index].reservation = toConsumableArray_default()(val[index].reservation);
newList[index].reservation[index2] = !item2;
return newList;
});
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomRulesmodules.customCheckbox
@ -658,7 +661,7 @@ var Navigation = function Navigation(_ref) {
}
});
});
if (isType != '复用') {
if (isType != '查看') {
if (centerId) {
(0,laboratory/* add_reservation_rules_update */.CI)({
id: centerId,
@ -760,6 +763,7 @@ var Navigation = function Navigation(_ref) {
})
})]
}), showCustomRules && /*#__PURE__*/(0,jsx_runtime.jsx)(CustomRules/* default */.Z, {
isType: isType,
updateList: isType == '新建' ? null : newData,
handleCustomRulesChange: function handleCustomRulesChange(values) {
setCustomRulesList(values);

@ -66,9 +66,6 @@ var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorR
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
@ -82,8 +79,6 @@ var es_form = __webpack_require__(78241);
var input = __webpack_require__(20008);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
var date_picker = __webpack_require__(72086);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(86383);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
@ -116,7 +111,6 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var loading = _ref.loading,
user = _ref.user,
@ -135,7 +129,7 @@ var Navigation = function Navigation(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
laboratoryLists = _useState4[0],
setLaboratoryLists = _useState4[1];
// 关联课程
// 关联
var _useState5 = (0,_react_17_0_2_react.useState)([]),
_useState6 = slicedToArray_default()(_useState5, 2),
containerList = _useState6[0],
@ -218,7 +212,7 @@ var Navigation = function Navigation(_ref) {
}
};
//获取关联教学
//获取关联
var getContainerList = function getContainerList(e) {
var _user$userInfo;
var obj = e == 'Subject' ? 'subjects' : e == 'Shixun' ? 'shixuns' : 'courses';
@ -272,7 +266,7 @@ var Navigation = function Navigation(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5173\u8054\u6559\u5B66",
label: "\u5173\u8054",
name: "container_type",
rules: [{
required: true,
@ -303,7 +297,7 @@ var Navigation = function Navigation(_ref) {
name: "container_id",
rules: [{
required: true,
message: '请选择关联教学'
message: '请选择关联'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
@ -319,107 +313,6 @@ var Navigation = function Navigation(_ref) {
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u4F7F\u7528\u5730\u70B9",
name: "sys",
rules: [{
required: true,
message: '必填项'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
style: {
width: '700px'
},
onChange: function onChange(e) {
myForm.setFieldValue('sysfj', '');
//实验室房间
(0,laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
keyword: '',
classroom_id: e
}).then(function (res) {
var _res$data2;
setLaboratoryRooms([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list)));
});
},
children: laboratoryLists === null || laboratoryLists === void 0 ? void 0 : laboratoryLists.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item.id,
children: item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
name: "sysfj",
rules: [{
required: true,
message: '请选择关联教学'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
style: {
marginLeft: '10px',
width: '314px'
},
children: laboratoryRooms === null || laboratoryRooms === void 0 ? void 0 : laboratoryRooms.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u4F7F\u7528\u5730\u70B9",
name: "start_time",
rules: [{
required: true,
message: '请选择开始时间'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
size: "large",
style: {
width: '487px'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: '40px',
lineHeight: '40px',
width: "50px",
textAlign: "center"
},
children: "\u81F3"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
name: "end_time",
rules: [{
required: true,
message: '请选择结束时间'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
size: "large",
style: {
width: '487px'
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u7533\u8BF7\u5B9E\u9A8C\u5BA4",
@ -457,9 +350,6 @@ var Navigation = function Navigation(_ref) {
label: "\u90AE\u7BB1",
name: "area22",
rules: [{
required: true,
message: '请输入邮箱'
}, {
required: true,
pattern: /^[1-9]\d*(\.\d+)?$/,
message: '请输入正数'

@ -135,7 +135,7 @@ var Navigation = function Navigation(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
laboratoryLists = _useState4[0],
setLaboratoryLists = _useState4[1];
// 关联课程
// 关联
var _useState5 = (0,_react_17_0_2_react.useState)([]),
_useState6 = slicedToArray_default()(_useState5, 2),
containerList = _useState6[0],
@ -218,7 +218,7 @@ var Navigation = function Navigation(_ref) {
}
};
//获取关联教学
//获取关联
var getContainerList = function getContainerList(e) {
var _user$userInfo;
var obj = e == 'Subject' ? 'subjects' : e == 'Shixun' ? 'shixuns' : 'courses';
@ -272,7 +272,7 @@ var Navigation = function Navigation(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5173\u8054\u6559\u5B66",
label: "\u5173\u8054",
name: "container_type",
rules: [{
required: true,
@ -303,7 +303,7 @@ var Navigation = function Navigation(_ref) {
name: "container_id",
rules: [{
required: true,
message: '请选择关联教学'
message: '请选择关联'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
@ -364,7 +364,7 @@ var Navigation = function Navigation(_ref) {
name: "sysfj",
rules: [{
required: true,
message: '请选择关联教学'
message: '请选择关联'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
@ -386,7 +386,7 @@ var Navigation = function Navigation(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u4F7F\u7528\u5730\u70B9",
label: "\u4F7F\u7528\u65F6\u95F4",
name: "start_time",
rules: [{
required: true,
@ -457,9 +457,6 @@ var Navigation = function Navigation(_ref) {
label: "\u90AE\u7BB1",
name: "area22",
rules: [{
required: true,
message: '请输入邮箱'
}, {
required: true,
pattern: /^[1-9]\d*(\.\d+)?$/,
message: '请输入正数'

@ -210,69 +210,6 @@ var Navigation = function Navigation(_ref) {
}, {
label: '第3节',
value: 3
}, {
label: '第4节',
value: 4
}, {
label: '第5节',
value: 5
}, {
label: '第6节',
value: 6
}, {
label: '第7节',
value: 7
}, {
label: '第8节',
value: 8
}, {
label: '第9节',
value: 9
}, {
label: '第10节',
value: 10
}, {
label: '第11节',
value: 11
}, {
label: '第12节',
value: 12
}, {
label: '第13节',
value: 13
}, {
label: '第14节',
value: 14
}, {
label: '第15节',
value: 15
}, {
label: '第16节',
value: 16
}, {
label: '第17节',
value: 17
}, {
label: '第18节',
value: 18
}, {
label: '第19节',
value: 19
}, {
label: '第20节',
value: 20
}, {
label: '第21节',
value: 21
}, {
label: '第22节',
value: 22
}, {
label: '第23节',
value: 23
}, {
label: '第24节',
value: 24
}]),
_useState6 = slicedToArray_default()(_useState5, 2),
sections = _useState6[0],
@ -409,7 +346,7 @@ var Navigation = function Navigation(_ref) {
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 160
width: 140
},
defaultValue: laboratory,
value: laboratory,
@ -445,7 +382,7 @@ var Navigation = function Navigation(_ref) {
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 160
width: 140
},
defaultValue: laboratoryRoom,
value: laboratoryRoom,
@ -461,13 +398,13 @@ var Navigation = function Navigation(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8282\u6B21",
label: "\u7269\u8D44\u7C7B\u522B",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 140
width: 100
},
defaultValue: section,
value: section,

@ -90,12 +90,13 @@
}
.content_list___HLLIu .content___AzXhj {
width: 222px;
height: 247px;
height: 302px;
background: #FFFFFF;
margin: 0 10px 20px 10px;
box-shadow: 0px 2px 4px 0px #D6DAE1;
border-radius: 8px;
cursor: pointer;
position: relative;
}
.content_list___HLLIu .content___AzXhj .content_img___aIwBi {
width: 222px;
@ -103,6 +104,20 @@
box-shadow: 0px 2px 4px 0px #D6DAE1;
border-radius: 8px 8px 0px 0px;
}
.content_list___HLLIu .content___AzXhj .content_id___FxUBi {
width: 222px;
height: 36px;
line-height: 36px;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
box-shadow: 0px 2px 4px 0px #D6DAE1;
position: absolute;
top: 104px;
color: #FFE7C8;
font-size: 12px;
font-weight: 400;
font-style: normal;
padding-left: 15px;
}
.content_list___HLLIu .content___AzXhj .content_name___Amhwa {
height: 26px;
font-size: 16px;
@ -114,24 +129,11 @@
text-overflow: ellipsis;
overflow: hidden;
margin-top: 10px;
padding: 0 15px;
}
.content_list___HLLIu .content___AzXhj .content_title___nnyo6 {
height: 22px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 22px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
margin-top: 6px;
margin-bottom: 5px;
padding: 0 15px;
}
.content_list___HLLIu .content___AzXhj .content_params___koB_B {
margin-top: 18px;
padding: 0 15px;
padding: 5px 15px;
display: flex;
}
.content_list___HLLIu .content___AzXhj .content_params___koB_B span {

@ -0,0 +1,463 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[48289],{
/***/ 35732:
/*!*************************************************************!*\
!*** ./src/pages/Materials/MyReceive/index.tsx + 1 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 */ MyReceive; }
});
// 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/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(44742);
;// CONCATENATED MODULE: ./src/pages/Materials/MyReceive/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var MyReceivemodules = ({"header_div":"header_div___g5aU4","header_title":"header_title___bmMQ4","search":"search___vPJxM","searchIcon":"searchIcon___HIsg6","search_params":"search_params___F7Qdj","clear_Data":"clear_Data___wZkTY","content_list":"content_list___HLLIu","content":"content___AzXhj","content_img":"content_img___aIwBi","content_id":"content_id___FxUBi","content_name":"content_name___Amhwa","content_params":"content_params___koB_B"});
// 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/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(86383);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(36697);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var service_laboratory = __webpack_require__(66754);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(77068);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/MyReceive/index.tsx
var Navigation = function Navigation(_ref) {
var loading = _ref.loading;
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
keyword = _useState2[0],
setkeyword = _useState2[1];
//时间
var _useState3 = (0,_react_17_0_2_react.useState)(dayjs_min_default()(new Date()).format('YYYY-MM-DD')),
_useState4 = slicedToArray_default()(_useState3, 2),
time = _useState4[0],
setTime = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)([{
label: '第1节',
value: 1
}, {
label: '第2节',
value: 2
}, {
label: '第6节',
value: 6
}]),
_useState6 = slicedToArray_default()(_useState5, 2),
sections = _useState6[0],
setSections = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(new Date().getHours() + 1),
_useState8 = slicedToArray_default()(_useState7, 2),
section = _useState8[0],
setSection = _useState8[1];
//实验室中心
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
laboratoryRooms = _useState10[0],
setLaboratoryRooms = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(''),
_useState12 = slicedToArray_default()(_useState11, 2),
laboratoryRoom = _useState12[0],
setLaboratoryRoom = _useState12[1];
//实验室
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
laboratorys = _useState14[0],
setLaboratorys = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(''),
_useState16 = slicedToArray_default()(_useState15, 2),
laboratory = _useState16[0],
setLaboratory = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(''),
_useState18 = slicedToArray_default()(_useState17, 2),
laboratorySq = _useState18[0],
setLaboratorySq = _useState18[1];
//实验室房间数据
var _useState19 = (0,_react_17_0_2_react.useState)([]),
_useState20 = slicedToArray_default()(_useState19, 2),
roomList = _useState20[0],
setRoomList = _useState20[1];
//分页
var _useState21 = (0,_react_17_0_2_react.useState)(0),
_useState22 = slicedToArray_default()(_useState21, 2),
total = _useState22[0],
setTotal = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(1),
_useState24 = slicedToArray_default()(_useState23, 2),
page = _useState24[0],
setPage = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(18),
_useState26 = slicedToArray_default()(_useState25, 2),
limit = _useState26[0],
setLimit = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)([]),
_useState28 = slicedToArray_default()(_useState27, 2),
tableData = _useState28[0],
setTableData = _useState28[1];
var columns = [{
title: '申请原因',
dataIndex: 'user_name',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '申请实验室',
dataIndex: 'user_role',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text == 'student' ? '学生' : '教师'
})
});
}
}, {
title: '状态',
dataIndex: 'classroom_room_title',
ellipsis: true
}, {
title: '使用时间',
dataIndex: 'classroom_title',
ellipsis: true
}, {
title: '使用实验室',
dataIndex: 'sections',
ellipsis: true
}, {
title: '使用实验室房间',
dataIndex: 'work_num',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '申请时间',
dataIndex: 'container_type',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '操作',
ellipsis: true,
width: 150,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer",
marginLeft: "10px"
},
children: "\u67E5\u770B"
})
});
}
}];
(0,_react_17_0_2_react.useEffect)(function () {
//实验室
(0,service_laboratory/* classroom_query */.GJ)({
page: 1,
limit: 10000,
keyword: ''
}).then(function (res) {
var _res$data;
setLaboratorys([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list)));
});
//实验室房间
(0,service_laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
keyword: '',
classroom_id: laboratory
}).then(function (res) {
var _res$data2;
setLaboratoryRooms([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list)));
});
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
//列表查询
getData(false);
}, [page, limit]);
(0,_react_17_0_2_react.useEffect)(function () {
//列表查询
getData(true);
}, [laboratory, laboratorySq, laboratoryRoom, time, section, keyword]);
var getData = function getData(flag) {
if (flag) {
setPage(1);
}
(0,service_laboratory/* reservation_rooms_query */.dk)({
page: page,
limit: limit,
date: time,
section: section,
keyword: keyword,
classroom_center_id: laboratoryRoom,
classroom_id: laboratory
}).then(function (res) {
var _res$data3, _res$data4;
setRoomList(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.list);
setTotal(res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.count);
});
};
var onShowSizeChange = function onShowSizeChange(page, size) {
setPage(page);
setLimit(size);
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MyReceivemodules.header_div,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MyReceivemodules.header_title,
children: "\u6211\u7684\u9886\u7528\u7533\u8BF7"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MyReceivemodules.search_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u7533\u8BF7\u5B9E\u9A8C\u5BA4",
style: {
marginLeft: 'auto'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 100
},
defaultValue: laboratorySq,
value: laboratorySq,
onChange: function onChange(e) {
setLaboratorySq(e);
},
children: laboratorys === null || laboratorys === void 0 ? void 0 : laboratorys.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u4F7F\u7528\u5B9E\u9A8C\u5BA4",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 100
},
defaultValue: laboratory,
value: laboratory,
onChange: function onChange(e) {
setLaboratory(e);
setLaboratoryRoom('');
//实验室房间
(0,service_laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
keyword: '',
classroom_id: e
}).then(function (res) {
var _res$data5;
setLaboratoryRooms([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list)));
});
},
children: laboratorys === null || laboratorys === void 0 ? void 0 : laboratorys.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5B9E\u9A8C\u5BA4\u623F\u95F4",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 100
},
defaultValue: laboratoryRoom,
value: laboratoryRoom,
onChange: function onChange(e) {
setLaboratoryRoom(e);
},
children: laboratoryRooms === null || laboratoryRooms === void 0 ? void 0 : laboratoryRooms.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u72B6\u6001",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 100
},
defaultValue: section,
value: section,
onChange: function onChange(e) {
setSection(e);
},
children: sections === null || sections === void 0 ? void 0 : sections.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.value,
children: item === null || item === void 0 ? void 0 : item.label
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u662F\u5426\u903E\u671F\u5F52\u8FD8",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 100
},
defaultValue: section,
value: section,
onChange: function onChange(e) {
setSection(e);
},
children: sections === null || sections === void 0 ? void 0 : sections.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.value,
children: item === null || item === void 0 ? void 0 : item.label
}, index);
})
})
})]
}), (roomList === null || roomList === void 0 ? void 0 : roomList.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: tableData,
columns: columns,
scroll: {
x: 1500
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "\u6682\u65E0\u6570\u636E"
}), /*#__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", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#656F87'
},
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: total
}), "\u6761\u6570\u636E"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showSizeChanger: true,
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['18', '36', '54', '72'],
current: page || 1,
pageSize: limit || 18,
defaultPageSize: 18,
total: total
})]
}) : ''
})]
});
};
/* harmony default export */ var MyReceive = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
engineeringNavigtion = _ref2.engineeringNavigtion;
return objectSpread2_default()({
loading: loading
}, engineeringNavigtion);
})(Navigation));
/***/ })
}]);

File diff suppressed because it is too large Load Diff

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