Auto Submit

dev_local_v9_test3
autosubmit 2 years ago
parent b7305f4196
commit 8d441e7742

@ -358,7 +358,6 @@ var _excluded = ["user", "account", "globalSetting", "shixunHomeworks", "loading
var Option = es_select["default"].Option;
var TextArea = input/* default */.Z.TextArea;
var identityMap = {
@ -1408,12 +1407,6 @@ var Edit = function Edit(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4E3B\u8BB2\u8BFE\u7A0B",
name: "subject_name",
rules: [{
// required: true,
message: '请输入您的主讲课程'
}, {
validator: util/* handleValidatorNickName */.G7
}],
validateTrigger: "onSubmit",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z
// size="large"
@ -1468,11 +1461,12 @@ var Edit = function Edit(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(space/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u51FA\u751F\u5E74\u6708",
name: "year",
rules: [{
required: true,
message: '请先选择年份'
}],
name: "year"
// rules={[{
// required: true,
// message: '请先选择年份',
// }]}
,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 160
@ -1490,11 +1484,11 @@ var Edit = function Edit(_ref) {
initialValue: formValue.jobTitle,
name: "month"
// label="月"
// rules={[{
// required: true,
// message: '请先选择月份',
// }]}
,
rules: [{
required: true,
message: '请先选择月份'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 200
@ -1512,59 +1506,6 @@ var Edit = function Edit(_ref) {
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
labelCol: {
span: 3
},
label: studentName === '学号' ? '班级' : '负责班级',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '100%',
display: 'flex',
flexWrap: 'wrap'
},
children: function () {
var style = {
background: '#FAFAFA',
borderRadius: '2px',
border: '1px solid #E1E1E1',
marginRight: '10px',
lineHeight: '28px',
padding: '0 10px 0 10px',
color: '#999999'
};
if ((basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name) === null || (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name) === undefined || (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name.length) === 0) {
if (studentName === '学号') {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: style,
children: "未分班"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#FA6400'
},
children: "\uFF08\u8BF7\u8054\u7CFB\u4E0A\u8BFE\u8001\u5E08\u6DFB\u52A0\u73ED\u7EA7\uFF09"
})]
});
}
return null;
} else if (Array.isArray(basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name)) {
var _basicInfo$student_gr;
//只有教师身份会返回数组
return basicInfo === null || basicInfo === void 0 || (_basicInfo$student_gr = basicInfo.student_group_name) === null || _basicInfo$student_gr === void 0 ? void 0 : _basicInfo$student_gr.map(function (res, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: style,
children: res
}, index);
});
} else {
return studentName === '学号' ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: style,
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name
}) : null;
}
}()
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative'

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

@ -35,8 +35,6 @@ var Edit = __webpack_require__(31714);
var util = __webpack_require__(63834);
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
var image_preview = __webpack_require__(30352);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(71912);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Account/Profile/index.tsx
@ -51,8 +49,6 @@ var _excluded = ["account", "globalSetting", "loading", "dispatch"];
var Profile = function Profile(_ref) {
var account = _ref.account,
globalSetting = _ref.globalSetting,
@ -129,44 +125,6 @@ var Profile = function Profile(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u6700\u9AD8\u5B66\u5386",
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.edu_background
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.identity) === 'student' ? '班级' : '负责班级',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '100%',
display: 'flex',
flexWrap: 'wrap'
},
children: function (_basicInfo$student_gr) {
if ((basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name) === null || (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name) === '' || (basicInfo === null || basicInfo === void 0 || (_basicInfo$student_gr = basicInfo.student_group_name) === null || _basicInfo$student_gr === void 0 ? void 0 : _basicInfo$student_gr.length) === 0) {
if ((0,authority/* isCommonStudent */.JA)()) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "未分班"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#FA6400'
},
children: "\uFF08\u8BF7\u8054\u7CFB\u4E0A\u8BFE\u8001\u5E08\u6DFB\u52A0\u73ED\u7EA7\uFF09"
})]
});
}
return null;
} else if (Array.isArray(basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name)) {
var _basicInfo$student_gr2;
return basicInfo === null || basicInfo === void 0 || (_basicInfo$student_gr2 = basicInfo.student_group_name) === null || _basicInfo$student_gr2 === void 0 ? void 0 : _basicInfo$student_gr2.map(function (res, index) {
var _basicInfo$student_gr3;
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: index === (basicInfo === null || basicInfo === void 0 || (_basicInfo$student_gr3 = basicInfo.student_group_name) === null || _basicInfo$student_gr3 === void 0 ? void 0 : _basicInfo$student_gr3.length) - 1 ? "".concat(res) : "".concat(res, ",")
}, index);
});
} else {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_group_name
});
}
}()
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u7B80\u4ECB",
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.brief_introduction

@ -1234,7 +1234,7 @@ var Page = function Page(_ref) {
style: {
width: 120
},
children: "\u4E0A\u4F20\u65F6\u95F4"
children: "\u4E0A\u4F20\u65E5\u671F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Planmodules.type,
children: "\u7C7B\u578B"

@ -64,8 +64,6 @@ var CloseCircleFilled = __webpack_require__(87972);
var _umi_production_exports = __webpack_require__(44742);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
var ui_customization = __webpack_require__(43369);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(71912);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Settings/components/ModuleSettings/index.tsx
@ -87,9 +85,8 @@ var _excluded = ["globalSetting", "virtualSpaces", "dispatch"],
var Page = function Page(_ref) {
var _fileList$3, _fileOtherList$3;
var _fileList$3, _fileOtherList$3, _virtualSpaces$virtua;
var globalSetting = _ref.globalSetting,
virtualSpaces = _ref.virtualSpaces,
dispatch = _ref.dispatch,
@ -491,7 +488,7 @@ var Page = function Page(_ref) {
});
}
})
}), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), (virtualSpaces === null || virtualSpaces === void 0 || (_virtualSpaces$virtua = virtualSpaces.virtualSpacesDetails) === null || _virtualSpaces$virtua === void 0 ? void 0 : _virtualSpaces$virtua.is_admin) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
disabled: imgLoading,
loading: btnLoading,
type: "primary",

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