Auto Submit

pull/1/head
autosubmit 3 years ago
parent 7968bd25c5
commit 55afc1cd28

@ -1019,6 +1019,7 @@ var Edit = function Edit(_ref) {
children: formValue.nickname ? showRealName ? '显示:平台将显示您的真实姓名' : '隐藏:平台将显示你的昵称' : '填写昵称后可设置姓名进行隐藏(当进行姓名搜索时,会展示您的真实姓名)'
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
disabled: formValue.nickname ? !showRealName : false,
placeholder: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(MAX_NAME_LENGTH, "\u4E2A\u5B57\u7B26"),
maxLength: MAX_NAME_LENGTH,
@ -1073,6 +1074,7 @@ var Edit = function Edit(_ref) {
style: {
width: 160
},
size: "large",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "teacher",
children: "\u6559\u5E08"
@ -1111,6 +1113,7 @@ var Edit = function Edit(_ref) {
message: '请先输入学号'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
style: {
width: 200
},
@ -1145,6 +1148,7 @@ var Edit = function Edit(_ref) {
style: {
width: 200
},
size: "large",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u6559\u6388",
children: "\u6559\u6388"
@ -1196,6 +1200,7 @@ var Edit = function Edit(_ref) {
style: {
width: 200
},
size: "large",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u4F01\u4E1A\u7BA1\u7406\u8005",
children: "\u4F01\u4E1A\u7BA1\u7406\u8005"
@ -1233,7 +1238,8 @@ var Edit = function Edit(_ref) {
}
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: Editmodules.staffidInput
className: Editmodules.staffidInput,
size: "large"
})
})
})]
@ -1277,6 +1283,7 @@ var Edit = function Edit(_ref) {
message: '请先选择学校/单位'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
size: "large",
showSearch: true,
options: filterSchoolList === null || filterSchoolList === void 0 ? void 0 : filterSchoolList.map(function (item) {
return {
@ -1326,6 +1333,7 @@ var Edit = function Edit(_ref) {
// }]}
,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
size: "large",
onChange: function onChange(value) {
setFilterDepartmentList(departmentList.filter(function (item) {
return item.name.includes(value);
@ -1350,6 +1358,7 @@ var Edit = function Edit(_ref) {
}],
validateTrigger: "onSubmit",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0\uFF0C\u6700\u5927\u9650\u5236".concat(MAX_NICKNAME_LENGTH, "\u4E2A\u5B57\u7B26"),
maxLength: MAX_NICKNAME_LENGTH,
addonAfter: "".concat(((_formValue$nickname = formValue.nickname) === null || _formValue$nickname === void 0 ? void 0 : _formValue$nickname.length) || 0, "/").concat(MAX_NICKNAME_LENGTH)

@ -3721,12 +3721,12 @@ var SettingModal = function SettingModal(_ref) {
name: '学生选题',
key: 'student_selection',
timeName: '学生选题起止时间',
width: 446,
width: 460,
text: '在此时间内,学生可自助操作选题和更改选题'
}, {
name: '任务书',
key: 'tasks',
width: 446,
width: 460,
timeName: '任务书起止时间',
text: ''
}, {

@ -980,37 +980,6 @@ var Banner = function Banner(_ref) {
}
}]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
className: Collegemodules.addCollegeModal,
centered: true,
width: 430,
title: "\u63D0\u793A",
open: iscancled,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
destroyOnClose: true,
bodyStyle: {
minHeight: 130
},
onCancel: function onCancel() {
setIsCancled(false);
},
onOk: function onOk() {
setIsCancled(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
color: '#000000',
fontSize: '14px',
paddingLeft: '8px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#165DFF'
},
children: "\u9EC4\u5FB7\u5149"
}), " \u53D6\u6D88\u4E86\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u7CFB\u7EDF\u5DF2\u79FB\u9664\u8BE5\u6559\u5E08\u7684\u5B66\u9662\u7BA1\u7406\u5458\u6743 \u9650\uFF0C\u8BF7\u8BE5\u6559\u5E08\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u540E\u518D\u6DFB\u52A0\u4E3A\u7BA1\u7406\u5458\u3002"]
})
})]
});
};

@ -96,7 +96,7 @@ var es_button = __webpack_require__(71577);
var modal = __webpack_require__(72423);
;// CONCATENATED MODULE: ./src/pages/Administration/Student/Edit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Editmodules = ({"wrap":"wrap___D0lbV","content":"content___RYEUi","hint":"hint___Mjxjf","crumbs":"crumbs___wYb3b","title":"title___zdLk8","titleWrap":"titleWrap___vMR6a","btn":"btn___SBoeO","formWrap":"formWrap___vk03L","identityWrap":"identityWrap___XqEwm","schoolHintWrap":"schoolHintWrap___bEiuQ","colorCDCDCD":"colorCDCDCD___ehij0","color0152d9":"color0152d9___h2ZEv","submitButton":"submitButton___Y1MK8","submitButtondiv":"submitButtondiv___swdgC","glow":"glow___LXh5S","staffidInput":"staffidInput___MyF5P","manage":"manage___ikeTI","modalWrap":"modalWrap___SEOyF","buttonFixed":"buttonFixed___QtDpR"});
/* harmony default export */ var Editmodules = ({"wrap":"wrap___D0lbV","content":"content___RYEUi","hint":"hint___Mjxjf","crumbs":"crumbs___wYb3b","title":"title___zdLk8","titleWrap":"titleWrap___vMR6a","btn":"btn___SBoeO","formWrap":"formWrap___vk03L","identityWrap":"identityWrap___XqEwm","schoolHintWrap":"schoolHintWrap___bEiuQ","colorCDCDCD":"colorCDCDCD___ehij0","color0152d9":"color0152d9___h2ZEv","submitButton":"submitButton___Y1MK8","submitButtondiv":"submitButtondiv___swdgC","staffidInput":"staffidInput___MyF5P","manage":"manage___ikeTI","modalWrap":"modalWrap___SEOyF","buttonFixed":"buttonFixed___QtDpR"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/utils/fetch.ts
@ -575,28 +575,23 @@ var Edit = function Edit(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
className: Editmodules.buttonFixed,
align: "middle",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
style: {
width: 500,
margin: "0 auto"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "".concat(shixunHomeworks.actionTabs.type === 2 ? Editmodules.submitButtondiv : Editmodules.submitButton, " ml100"),
size: "large",
type: "primary",
htmlType: "submit"
// loading={loading['account/editAccount']}
// onClick={handleSubmit}
,
children: "\u4FDD\u5B58"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Editmodules.submitButton,
size: "large",
onClick: function onClick() {
return _umi_production_exports.history.push('/administration/student');
},
children: "\u53D6\u6D88"
})]
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Editmodules.submitButtondiv,
size: "large",
type: "primary",
htmlType: "submit",
children: "\u4FDD\u5B58"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Editmodules.submitButton,
size: "large",
onClick: function onClick() {
return _umi_production_exports.history.push('/administration/student');
},
children: "\u53D6\u6D88"
})]
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {

@ -57,6 +57,9 @@
color: #165dff;
border: 1px solid #165dff;
}
.formWrap___vk03L {
position: relative;
}
.formWrap___vk03L label {
font-size: 14px;
}
@ -80,25 +83,11 @@
}
.submitButton___Y1MK8 {
width: 100px;
margin-right: 20px;
}
.submitButtondiv___swdgC {
animation: glow___LXh5S 200ms ease-out infinite alternate;
width: 100px;
margin-right: 20px;
}
@keyframes glow___LXh5S {
0% {
border-color: #00fff9;
text-align: center;
box-shadow: 0 0 5px rgba(0, 255, 249, 0.2);
}
100% {
border-color: #00fff9;
text-align: center;
box-shadow: 0 0 8px rgba(0, 255, 249, 0.6);
}
}
.staffidInput___MyF5P {
text-overflow: ellipsis;
}
@ -119,16 +108,11 @@
border-top: none;
}
.buttonFixed___QtDpR {
position: fixed;
margin-left: 0;
width: calc(100%-calc((100% - 1200px) / 2 + 185px));
position: absolute;
right: 0;
z-index: 1000;
bottom: 0;
left: calc((100% - 1200px) / 2 + 185px);
bottom: -200px;
right: 0px;
height: 64px;
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px -2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
align-items: center;
}

File diff suppressed because one or more lines are too long

@ -288,6 +288,9 @@ div[data-node-key="3"] {
.head___vI0BP .right___KZNPX .icon___hD9HM {
cursor: pointer;
}
.head___vI0BP .right___KZNPX .icon___hD9HM img {
margin-top: -4px;
}
.head___vI0BP .right___KZNPX .icon___hD9HM span {
color: #5F6367;
margin-left: 6px;
@ -336,32 +339,8 @@ div[data-node-key="3"] {
.pngIcon___DxnC5 {
width: 18px;
}
.addCollegeModal___A5pc6 [class~='ant-modal-header'] {
padding: 25px 0 0 25px;
}
.addCollegeModal___A5pc6 [class~='ant-modal-header'] [class~='ant-modal-title'] {
font-weight: 600;
color: #3A3A3A;
}
.addCollegeModal___A5pc6 [class~='ant-modal-body'] {
padding: 30px 25px 30px 25px;
}
.addCollegeModal___A5pc6 [class~='ant-modal-body'] div[class~='ant-form-item-label'] label {
color: #5F6367;
}
.addCollegeModal___A5pc6 [class~='ant-modal-footer'] {
padding: 0 25px 25px 25px;
text-align: right;
background: transparent;
border: none;
}
.addCollegeModal___A5pc6 [class~='ant-modal-close-x'] {
margin-top: 13px;
margin-right: 8px;
font-size: 16px;
}
.addCollegeModal___A5pc6 .content___UeNKn {
margin-top: 25px;
.refuse___Rbcu8:hover {
color: red;
}
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -456,10 +435,6 @@ div[data-node-key="3"] {
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Administration/Student/components/ProfessionalAuthModal.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.modal___ikf8u div[class~='ant-modal-body'] {
height: auto;
overflow-y: auto;
}
.colorBlue___WOM5T {
color: #0152d9;
}
@ -532,6 +507,9 @@ div[data-node-key="3"] {
cursor: pointer;
padding-top: 10px;
}
.footerWrap___VqJfp {
margin-bottom: 15px;
}
.footerWrap___VqJfp div[class~='ant-form-item-control'] {
max-width: 100%;
}

@ -31,7 +31,6 @@
}
.menuWrap___dJHW2 {
width: 100%;
border-right: 1px solid #dbdce0;
padding-top: 40px;
height: 100%;
}
@ -210,7 +209,7 @@
.content___QG_E5 {
overflow: hidden;
background-color: #fff;
height: calc(100vh - 72px);
height: auto;
}
.content___QG_E5 .leftBox___aL8K5 {
float: left;
@ -225,17 +224,16 @@
flex-shrink: 0;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
padding-right: 1px;
}
.content___QG_E5 .rightBox___i71jY {
border-left: 1px solid #dbdce0;
float: right;
width: calc((100% - 1200px) / 2 + 1010px);
overflow-y: auto;
overflow-x: hidden;
display: flex;
justify-content: flex-start;
height: 100%;
min-height: 100vh;
}
.content___QG_E5 .rightBox___i71jY .rightWrap___ov0Lw {
width: 1010px;

@ -171,6 +171,7 @@ var SettingModal = function SettingModal(_ref) {
return true;
},
itemRender: function itemRender(originNode, file) {
var _file$response;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
align: "middle",
@ -189,7 +190,7 @@ var SettingModal = function SettingModal(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LinkOutlined/* default */.Z, {
className: "mr10 c-grey-666"
}), (0,util/* cutFileName */.tP)(file === null || file === void 0 ? void 0 : file.name, 35)]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
}), (file === null || file === void 0 ? void 0 : (_file$response = file.response) === null || _file$response === void 0 ? void 0 : _file$response.id) && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchu14 font14 ".concat(DetailsModalmodules.deletfileIcon),
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
@ -205,7 +206,8 @@ var SettingModal = function SettingModal(_ref) {
if (res.status == 0) {
message/* default.success */.ZP.success("删除成功");
setFileList(dealFileList === null || dealFileList === void 0 ? void 0 : dealFileList.filter(function (item) {
return item.response.id != file.response.id;
var _item$response, _file$response2;
return (item === null || item === void 0 ? void 0 : (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id) != (file === null || file === void 0 ? void 0 : (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id);
}));
}
case 4:
@ -999,13 +1001,15 @@ var Student_Page = function Page(_ref) {
},
className: "mr20 font14",
children: "\u8BFE\u9898\u540D\u79F0"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: data === null || data === void 0 ? void 0 : data.name,
style: {
color: '#333',
fontSize: 16
},
children: (0,util/* cutName */.Pq)(data === null || data === void 0 ? void 0 : data.name, 59)
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#333',
fontSize: 16
},
children: (0,util/* cutName */.Pq)(data === null || data === void 0 ? void 0 : data.name, 59)
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Studentmodules.title,

@ -10523,6 +10523,11 @@ p {
margin-top: 5px;
margin-bottom: 20px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body .anticon {
margin-top: 5px;
margin-bottom: 20px;
margin-right: 12px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-content {
margin-top: 10px;
width: 100%;

Loading…
Cancel
Save