|
|
|
|
@ -670,9 +670,9 @@ var Knowledge = function Knowledge(_ref) {
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 91788:
|
|
|
|
|
/***/ 25693:
|
|
|
|
|
/*!***************************************************************************!*\
|
|
|
|
|
!*** ./src/pages/Classrooms/Lists/Exercise/Detail/index.tsx + 67 modules ***!
|
|
|
|
|
!*** ./src/pages/Classrooms/Lists/Exercise/Detail/index.tsx + 69 modules ***!
|
|
|
|
|
\***************************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
@ -17530,6 +17530,455 @@ var ClientSettings = function ClientSettings(_ref) {
|
|
|
|
|
globalSetting: globalSetting
|
|
|
|
|
};
|
|
|
|
|
})(ClientSettings));
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Detail/components/ConfigWorks/components/indexs.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var indexsmodules = ({"flex_box_center":"flex_box_center___qXmER","flex_space_between":"flex_space_between___tVYVF","flex_box_vertical_center":"flex_box_vertical_center___uejwW","flex_box_center_end":"flex_box_center_end___l5I61","flex_box_column":"flex_box_column___A8X3f","content":"content___TBbyO","explain":"explain___WwPyv","tabs":"tabs___MlcMY","active":"active___lV1eg","btns":"btns___qovHC","must":"must___vgDa6","popover":"popover___HAX3s","zybzForm":"zybzForm____IvKI","graaytitle":"graaytitle___hkrTg","dataPicker":"dataPicker___T2aBH","examineStatus":"examineStatus___iICIK","contacts":"contacts___Tyh2m","contacts_img":"contacts_img___pfYUb","suc_status":"suc_status___UuTMv","fail_status":"fail_status___nBUzE","bohui":"bohui___lJoSV"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js
|
|
|
|
|
var auto_complete = __webpack_require__(88522);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
|
|
|
|
|
var CheckCircleFilled = __webpack_require__(19676);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Detail/components/ConfigWorks/components/Resource.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var timeFormat = 'YYYY-MM-DD HH:mm';
|
|
|
|
|
var Resource_WorkList = function WorkList(_ref) {
|
|
|
|
|
var shixunHomeworks = _ref.shixunHomeworks,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
dispatch = _ref.dispatch;
|
|
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
|
|
|
form = _Form$useForm2[0];
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(null),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
stauts = _useState2[0],
|
|
|
|
|
setStatus = _useState2[1]; //实验资源优先保障当前状态
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
schoolList = _useState4[0],
|
|
|
|
|
setSchoolList = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
verifyReason = _useState6[0],
|
|
|
|
|
setVerifyReason = _useState6[1]; //原因
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(true),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
dis = _useState8[0],
|
|
|
|
|
setdis = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
isLoading = _useState10[0],
|
|
|
|
|
setisloading = _useState10[1];
|
|
|
|
|
var throttleGetSchoolOption = (0,_react_17_0_2_react.useRef)((0,lodash.throttle)(function (value) {
|
|
|
|
|
return getSchoolOption(value);
|
|
|
|
|
}, 1200, {
|
|
|
|
|
leading: true,
|
|
|
|
|
trailing: true
|
|
|
|
|
})).current;
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
filterSchoolList = _useState12[0],
|
|
|
|
|
setFilterSchoolList = _useState12[1];
|
|
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
datas = _useState14[0],
|
|
|
|
|
setdatas = _useState14[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData();
|
|
|
|
|
}, []);
|
|
|
|
|
// console.log('---', params);
|
|
|
|
|
|
|
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8, _res$data9;
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params.categoryId, "/resources_ensure_info.json"), {
|
|
|
|
|
method: 'get'
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
form.setFieldsValue(objectSpread2_default()(objectSpread2_default()({}, res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.important_shixun_configs), {}, {
|
|
|
|
|
times: res !== null && res !== void 0 && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && (_res$data2 = _res$data2.important_shixun_configs) !== null && _res$data2 !== void 0 && _res$data2.start_time && res !== null && res !== void 0 && (_res$data3 = res.data) !== null && _res$data3 !== void 0 && (_res$data3 = _res$data3.important_shixun_configs) !== null && _res$data3 !== void 0 && _res$data3.end_time ? [dayjs_min_default()(res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 || (_res$data4 = _res$data4.important_shixun_configs) === null || _res$data4 === void 0 ? void 0 : _res$data4.start_time), dayjs_min_default()(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5.important_shixun_configs) === null || _res$data5 === void 0 ? void 0 : _res$data5.end_time)] : ['', ''],
|
|
|
|
|
school_id: res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 || (_res$data6 = _res$data6.important_shixun_configs) === null || _res$data6 === void 0 ? void 0 : _res$data6.school_name
|
|
|
|
|
}));
|
|
|
|
|
setdatas(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.important_shixun_configs);
|
|
|
|
|
setVerifyReason(res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 || (_res$data8 = _res$data8.important_shixun_configs) === null || _res$data8 === void 0 ? void 0 : _res$data8.verify_reason);
|
|
|
|
|
setStatus((res === null || res === void 0 || (_res$data9 = res.data) === null || _res$data9 === void 0 || (_res$data9 = _res$data9.important_shixun_configs) === null || _res$data9 === void 0 ? void 0 : _res$data9.process) || null);
|
|
|
|
|
case 7:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
return function getData() {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (datas !== null && datas !== void 0 && datas.school_name) getSchoolOption(datas === null || datas === void 0 ? void 0 : datas.school_name);
|
|
|
|
|
}, [datas === null || datas === void 0 ? void 0 : datas.school_name]);
|
|
|
|
|
var getSchoolOption = /*#__PURE__*/function () {
|
|
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(value) {
|
|
|
|
|
var res, _res$schools, _res$schools2, findSchoolId;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: 'account/getSchoolOption',
|
|
|
|
|
payload: {
|
|
|
|
|
keyword: value,
|
|
|
|
|
limit: 10
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
setSchoolList(res === null || res === void 0 ? void 0 : res.schools);
|
|
|
|
|
if (value && value != "") {
|
|
|
|
|
setFilterSchoolList(res === null || res === void 0 || (_res$schools = res.schools) === null || _res$schools === void 0 ? void 0 : _res$schools.filter(function (item) {
|
|
|
|
|
return item.name.includes(value);
|
|
|
|
|
}));
|
|
|
|
|
findSchoolId = ((res === null || res === void 0 || (_res$schools2 = res.schools) === null || _res$schools2 === void 0 ? void 0 : _res$schools2.find(function (item) {
|
|
|
|
|
return item.name === value;
|
|
|
|
|
})) || {}).id;
|
|
|
|
|
form.setFieldsValue({
|
|
|
|
|
school_id: value
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// setSchoolLoading(false)
|
|
|
|
|
case 5:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}));
|
|
|
|
|
return function getSchoolOption(_x) {
|
|
|
|
|
return _ref3.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
// const getSchoolOption = async () => {
|
|
|
|
|
// const res = await dispatch({
|
|
|
|
|
// type: 'account/getSchoolOption',
|
|
|
|
|
// });
|
|
|
|
|
// setSchoolList(res?.schools);
|
|
|
|
|
// }
|
|
|
|
|
var integerParser = function integerParser(value) {
|
|
|
|
|
return parseInt(value || '0', 10);
|
|
|
|
|
};
|
|
|
|
|
var validateDateRange = function validateDateRange(_, value) {
|
|
|
|
|
if (value && value.length === 2) {
|
|
|
|
|
var _value = slicedToArray_default()(value, 2),
|
|
|
|
|
start = _value[0],
|
|
|
|
|
end = _value[1];
|
|
|
|
|
if (!start || !end) {
|
|
|
|
|
return Promise.reject(new Error('请选择起始时间和结束时间'));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
|
|
|
className: [indexsmodules.form, ' bg-white pl30 pr30 pt10'].join(' '),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
textAlign: 'end'
|
|
|
|
|
},
|
|
|
|
|
children: [dis && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setdis(false);
|
|
|
|
|
},
|
|
|
|
|
children: "\u7F16\u8F91\u8BBE\u7F6E"
|
|
|
|
|
}), !dis && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "primary",
|
|
|
|
|
loading: isLoading,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
form.submit();
|
|
|
|
|
},
|
|
|
|
|
children: "\u63D0\u4EA4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 20
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setdis(true);
|
|
|
|
|
getData();
|
|
|
|
|
},
|
|
|
|
|
children: "\u53D6\u6D88"
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
className: "mt20",
|
|
|
|
|
children:
|
|
|
|
|
/*#__PURE__*/
|
|
|
|
|
// 资源保障开启填写表单
|
|
|
|
|
(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
|
|
|
form: form,
|
|
|
|
|
disabled: dis,
|
|
|
|
|
layout: "horizontal",
|
|
|
|
|
onFinish: ( /*#__PURE__*/function () {
|
|
|
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(value) {
|
|
|
|
|
var _schoolList$find;
|
|
|
|
|
var school_id, res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
console.log('---', value);
|
|
|
|
|
school_id = (_schoolList$find = schoolList.find(function (item) {
|
|
|
|
|
return item.name === (value === null || value === void 0 ? void 0 : value.school_id);
|
|
|
|
|
})) === null || _schoolList$find === void 0 ? void 0 : _schoolList$find.id;
|
|
|
|
|
_context3.next = 4;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params.categoryId, "/resources_first_ensure.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
important_shixun_configs: objectSpread2_default()(objectSpread2_default()({}, value), {}, {
|
|
|
|
|
start_time: dayjs_min_default()(value === null || value === void 0 ? void 0 : value.times[0]).format("YYYY-MM-DD HH:mm"),
|
|
|
|
|
end_time: dayjs_min_default()(value === null || value === void 0 ? void 0 : value.times[1]).format("YYYY-MM-DD HH:mm"),
|
|
|
|
|
school_id: school_id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context3.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
message/* default */.ZP.info('修改成功');
|
|
|
|
|
getData();
|
|
|
|
|
setdis(true);
|
|
|
|
|
}
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee3);
|
|
|
|
|
}));
|
|
|
|
|
return function (_x2) {
|
|
|
|
|
return _ref4.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}()),
|
|
|
|
|
className: indexsmodules.zybzForm,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "c-grey-333 font16 mr10",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 55
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: indexsmodules.must,
|
|
|
|
|
children: "*"
|
|
|
|
|
}), "\u4FDD\u969C\u6807\u8BC6"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "",
|
|
|
|
|
name: "identifier",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入保障标识'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
|
|
bordered: false,
|
|
|
|
|
disabled: true,
|
|
|
|
|
style: {
|
|
|
|
|
width: 300,
|
|
|
|
|
backgroundColor: '#f5f5f5',
|
|
|
|
|
height: 50,
|
|
|
|
|
borderRadius: 4
|
|
|
|
|
},
|
|
|
|
|
minLength: 4,
|
|
|
|
|
maxLength: 30,
|
|
|
|
|
showCount: true,
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
className: "mt25",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "c-grey-333 font16 mr10",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 7
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: indexsmodules.must,
|
|
|
|
|
children: "*"
|
|
|
|
|
}), "\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "",
|
|
|
|
|
name: "school_id",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择需要保障的单位'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
|
|
|
|
|
size: "large",
|
|
|
|
|
showSearch: true,
|
|
|
|
|
bordered: false,
|
|
|
|
|
style: {
|
|
|
|
|
width: 300,
|
|
|
|
|
backgroundColor: '#f5f5f5',
|
|
|
|
|
borderRadius: 4,
|
|
|
|
|
height: 50,
|
|
|
|
|
paddingTop: 5
|
|
|
|
|
},
|
|
|
|
|
showArrow: true,
|
|
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D",
|
|
|
|
|
onChange: throttleGetSchoolOption,
|
|
|
|
|
options: filterSchoolList === null || filterSchoolList === void 0 ? void 0 : filterSchoolList.map(function (item) {
|
|
|
|
|
return {
|
|
|
|
|
value: item.name
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
className: "mt25",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "c-grey-333 font16 mr10",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 55
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: indexsmodules.must,
|
|
|
|
|
children: "*"
|
|
|
|
|
}), "\u4FDD\u969C\u65F6\u95F4"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: indexsmodules.graaytitle,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "",
|
|
|
|
|
name: "times",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择开始时间和结束时间'
|
|
|
|
|
}, {
|
|
|
|
|
validator: validateDateRange
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"].RangePicker, {
|
|
|
|
|
disabledDate: function disabledDate(current) {
|
|
|
|
|
return current && current < dayjs_min_default()().startOf('days');
|
|
|
|
|
},
|
|
|
|
|
className: "".concat(indexsmodules.dataPicker),
|
|
|
|
|
format: timeFormat,
|
|
|
|
|
showTime: {
|
|
|
|
|
format: 'HH:mm'
|
|
|
|
|
},
|
|
|
|
|
bordered: false,
|
|
|
|
|
allowClear: false,
|
|
|
|
|
onChange: function onChange(value) {
|
|
|
|
|
if (value && value[0] && value[1]) {
|
|
|
|
|
var start = value[0].isBefore(dayjs_min_default()()) ? dayjs_min_default()() : value[0];
|
|
|
|
|
form.setFieldValue('times', [start, value[1]]);
|
|
|
|
|
} else {
|
|
|
|
|
form.setFieldValue('times', value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
className: "mt25",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "c-grey-333 font16 mr10",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 55
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: indexsmodules.must,
|
|
|
|
|
children: "*"
|
|
|
|
|
}), "\u4FDD\u969C\u4EBA\u6570"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "",
|
|
|
|
|
name: "people_number",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入保障人数'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
|
|
parser: integerParser,
|
|
|
|
|
style: {
|
|
|
|
|
width: 200
|
|
|
|
|
},
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570",
|
|
|
|
|
min: 1
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "".concat(indexsmodules.examineStatus, " mt25"),
|
|
|
|
|
children: [stauts >= 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
|
|
|
|
|
className: indexsmodules.suc_status
|
|
|
|
|
}), " \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"]
|
|
|
|
|
}), stauts >= 2 && stauts != 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
|
|
|
|
|
className: indexsmodules.suc_status
|
|
|
|
|
}), " \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"]
|
|
|
|
|
}), stauts == 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
|
|
|
|
|
className: indexsmodules.fail_status
|
|
|
|
|
}), "\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
title: verifyReason,
|
|
|
|
|
className: indexsmodules.bohui,
|
|
|
|
|
children: verifyReason
|
|
|
|
|
}), ") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: indexsmodules.contacts,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: "\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458"
|
|
|
|
|
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: indexsmodules.contacts_img
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), stauts >= 4 && stauts != 5 && stauts != 7 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
|
|
|
|
|
className: indexsmodules.suc_status
|
|
|
|
|
}), " \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"]
|
|
|
|
|
}), (stauts == 5 || stauts == 7) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
|
|
|
|
|
className: indexsmodules.fail_status
|
|
|
|
|
}), "\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: indexsmodules.contacts,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: "\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458"
|
|
|
|
|
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: indexsmodules.contacts_img
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), stauts > 5 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
|
|
|
|
|
className: indexsmodules.suc_status
|
|
|
|
|
}), " \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F"]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Resource = ((0,_umi_production_exports.connect)(function (_ref5) {
|
|
|
|
|
var shixunHomeworks = _ref5.shixunHomeworks,
|
|
|
|
|
loading = _ref5.loading,
|
|
|
|
|
user = _ref5.user;
|
|
|
|
|
return {
|
|
|
|
|
shixunHomeworks: shixunHomeworks,
|
|
|
|
|
loading: loading.effects,
|
|
|
|
|
user: user
|
|
|
|
|
};
|
|
|
|
|
})(Resource_WorkList));
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Detail/components/ConfigWorks/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -17541,6 +17990,7 @@ var ClientSettings = function ClientSettings(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// import Resource from './components/Resource'
|
|
|
|
|
|
|
|
|
|
var ConfigWorks_WorkList = function WorkList(_ref) {
|
|
|
|
|
@ -17577,14 +18027,12 @@ var ConfigWorks_WorkList = function WorkList(_ref) {
|
|
|
|
|
key: '4',
|
|
|
|
|
element: /*#__PURE__*/(0,jsx_runtime.jsx)(components_ClientSettings, {}),
|
|
|
|
|
show: globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin2 = globalSetting.setting) !== null && _globalSetting$settin2 !== void 0 && _globalSetting$settin2.is_local ? false : true
|
|
|
|
|
}
|
|
|
|
|
// {
|
|
|
|
|
// name: '实验资源优先保障',
|
|
|
|
|
// key: '6',
|
|
|
|
|
// element: <Resource />,
|
|
|
|
|
// show: isSuperAdmins()
|
|
|
|
|
// },
|
|
|
|
|
];
|
|
|
|
|
}, {
|
|
|
|
|
name: '实验资源优先保障',
|
|
|
|
|
key: '6',
|
|
|
|
|
element: /*#__PURE__*/(0,jsx_runtime.jsx)(Resource, {}),
|
|
|
|
|
show: (0,authority/* isSuperAdmins */.Ny)()
|
|
|
|
|
}];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'globalSetting/footerToggle',
|
|
|
|
|
|