Auto Submit

dev_local_v9_test2
autosubmit 2 years ago
parent 29273d274a
commit 9a45e8a31c

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

@ -324,7 +324,7 @@ var Navigation = function Navigation(_ref) {
_useState22 = slicedToArray_default()(_useState21, 2),
page = _useState22[0],
setPage = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(18),
var _useState23 = (0,_react_17_0_2_react.useState)(10),
_useState24 = slicedToArray_default()(_useState23, 2),
limit = _useState24[0],
setLimit = _useState24[1];
@ -608,10 +608,10 @@ var Navigation = function Navigation(_ref) {
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['18', '36', '54', '72'],
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 18,
defaultPageSize: 18,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''

@ -443,7 +443,11 @@ var Navigation = function Navigation(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
showCount: true,
maxLength: 30
maxLength: 30,
onChange: function onChange(e) {
var _e$target;
myForm.setFieldValue('reason', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -796,6 +800,15 @@ var Navigation = function Navigation(_ref) {
checked: rowKeys.includes(record.key)
};
},
onChange: function onChange(id, info) {
var updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(info)).filter(function (item, index, arr) {
return arr.findIndex(function (item2) {
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
}) === index;
});
setModalTableData(updatedInfoArr);
setRowKeys(Array.from(new Set([].concat(toConsumableArray_default()(rowKeys), toConsumableArray_default()(id)))));
},
onSelect: function onSelect(record, selected) {
if (selected) {
//添加

@ -291,7 +291,7 @@ var Navigation = function Navigation(_ref) {
});
}
}, {
title: '实验室房间号',
title: '所在实验室房间号',
dataIndex: 'classroom_room_title',
ellipsis: true,
width: 120,
@ -583,7 +583,11 @@ var Navigation = function Navigation(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
showCount: true,
maxLength: 30
maxLength: 30,
onChange: function onChange(e) {
var _e$target;
myForm.setFieldValue('reason', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -1095,6 +1099,15 @@ var Navigation = function Navigation(_ref) {
checked: rowKeys.includes(record.key)
};
},
onChange: function onChange(id, info) {
var updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(info)).filter(function (item, index, arr) {
return arr.findIndex(function (item2) {
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
}) === index;
});
setModalTableData(updatedInfoArr);
setRowKeys(Array.from(new Set([].concat(toConsumableArray_default()(rowKeys), toConsumableArray_default()(id)))));
},
onSelect: function onSelect(record, selected) {
if (selected) {
//添加

@ -248,7 +248,7 @@ var Navigation = function Navigation(_ref) {
_useState18 = slicedToArray_default()(_useState17, 2),
page = _useState18[0],
setPage = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(18),
var _useState19 = (0,_react_17_0_2_react.useState)(10),
_useState20 = slicedToArray_default()(_useState19, 2),
limit = _useState20[0],
setLimit = _useState20[1];
@ -544,10 +544,10 @@ var Navigation = function Navigation(_ref) {
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['18', '36', '54', '72'],
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 18,
defaultPageSize: 18,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''

@ -336,7 +336,7 @@ var Navigation = function Navigation(_ref) {
_useState26 = slicedToArray_default()(_useState25, 2),
page = _useState26[0],
setPage = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)(18),
var _useState27 = (0,_react_17_0_2_react.useState)(10),
_useState28 = slicedToArray_default()(_useState27, 2),
limit = _useState28[0],
setLimit = _useState28[1];
@ -767,10 +767,10 @@ var Navigation = function Navigation(_ref) {
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['18', '36', '54', '72'],
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 18,
defaultPageSize: 18,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''

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