|
|
|
|
@ -84,11 +84,12 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
var _formValue$name, _globalSetting$settin, _user$userInfo$course;
|
|
|
|
|
var _formValue$name, _globalSetting$settin, _globalSetting$settin2, _user$userInfo$course;
|
|
|
|
|
var shixunHomeworks = _ref.shixunHomeworks,
|
|
|
|
|
newCourse = _ref.newCourse,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
dispatch = _ref.dispatch;
|
|
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
|
|
@ -323,6 +324,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
display: globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.hide_project ? 'none' : ''
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "base_on_project",
|
|
|
|
|
@ -356,7 +360,7 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Addmodules.mdWrap,
|
|
|
|
|
style: {
|
|
|
|
|
display: globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.hide_ec ? 'none' : (_user$userInfo$course = user.userInfo.course) !== null && _user$userInfo$course !== void 0 && _user$userInfo$course.is_openengineering ? '' : 'none'
|
|
|
|
|
display: globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin2 = globalSetting.setting) !== null && _globalSetting$settin2 !== void 0 && _globalSetting$settin2.hide_ec ? 'none' : (_user$userInfo$course = user.userInfo.course) !== null && _user$userInfo$course !== void 0 && _user$userInfo$course.is_openengineering ? '' : 'none'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AddPoints/* default */.Z, {
|
|
|
|
|
setitem: function setitem(e) {
|
|
|
|
|
@ -397,11 +401,13 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
var shixunHomeworks = _ref5.shixunHomeworks,
|
|
|
|
|
newCourse = _ref5.newCourse,
|
|
|
|
|
loading = _ref5.loading,
|
|
|
|
|
user = _ref5.user,
|
|
|
|
|
globalSetting = _ref5.globalSetting;
|
|
|
|
|
return {
|
|
|
|
|
shixunHomeworks: shixunHomeworks,
|
|
|
|
|
newCourse: newCourse,
|
|
|
|
|
globalSetting: globalSetting,
|
|
|
|
|
user: user,
|
|
|
|
|
loading: loading.effects
|
|
|
|
|
};
|
|
|
|
|
})(NewCoursePage));
|