Auto Submit

dev_local_v9_haijunshiguan_net
autosubmit 2 years ago
parent d079fcff13
commit 9c21c9da71

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

@ -643,7 +643,7 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
setExpandedKeys = _useState6[1];
var TreeSelectDom = (0,_react_17_0_2_react.useRef)();
var uploadProps = {
maxCount: 10,
maxCount: (activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "编辑资源" ? 1 : 10,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024 / 1024;
if (fileSize == 0 || fileSize > 1) {
@ -728,7 +728,7 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
if (ModalProps !== null && ModalProps !== void 0 && ModalProps.open && LegalDocDetail) {
var _LegalDocDetail$attac, _LegalDocDetail$attac2, _LegalDocDetail$attac3;
FormProps.form.setFieldsValue(objectSpread2_default()(objectSpread2_default()({}, LegalDocDetail), {}, {
attachment_ids: (LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.attachment) && [{
new_attachment_id: (LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.attachment) && [{
uid: LegalDocDetail === null || LegalDocDetail === void 0 || (_LegalDocDetail$attac = LegalDocDetail.attachment) === null || _LegalDocDetail$attac === void 0 ? void 0 : _LegalDocDetail$attac.id,
name: LegalDocDetail === null || LegalDocDetail === void 0 || (_LegalDocDetail$attac2 = LegalDocDetail.attachment) === null || _LegalDocDetail$attac2 === void 0 ? void 0 : _LegalDocDetail$attac2.title,
status: "done",
@ -947,7 +947,7 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
}), (activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "编辑资源" && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
htmlFor: null,
name: "attachment_ids",
name: "new_attachment_id",
label: "\u66F4\u65B0\u7248\u672C",
valuePropName: "fileList",
getValueFromEvent: function getValueFromEvent(e) {
@ -981,7 +981,9 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
ellipsis: true,
render: function render(text, record, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {},
onClick: function onClick() {
(0,util/* downLoadFile */.FH)("", env/* default */.Z.API_SERVER + record.url);
},
children: text
});
}
@ -991,12 +993,15 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
ellipsis: true
}, {
title: '创建者',
dataIndex: 'student_id',
dataIndex: 'username',
ellipsis: true
}, {
title: '版本号',
dataIndex: 'student_id',
ellipsis: true
dataIndex: 'created_on',
ellipsis: true,
render: function render(text) {
return dayjs_min_default()(text).format("YYYY/MM/DD HH:mm");
}
}],
locale: {
emptyText: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
@ -1794,7 +1799,7 @@ var Detail_Page = function Page(_ref) {
onFinish: function () {
var _onFinish = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(ValueAll) {
var _res3;
var res, DataAll, _activeModal$data, _res, _ValueAll$attachment_, _res2;
var res, DataAll, _activeModal$data, _res, _ValueAll$attachment_, _ValueAll$new_attachm, _res2;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
@ -1822,9 +1827,13 @@ var Detail_Page = function Page(_ref) {
break;
case 9:
DataAll = objectSpread2_default()(objectSpread2_default()({}, DataAll), {}, {
attachment_ids: (_ValueAll$attachment_ = ValueAll.attachment_ids) === null || _ValueAll$attachment_ === void 0 ? void 0 : _ValueAll$attachment_.map(function (item) {
attachment_ids: ValueAll === null || ValueAll === void 0 || (_ValueAll$attachment_ = ValueAll.attachment_ids) === null || _ValueAll$attachment_ === void 0 ? void 0 : _ValueAll$attachment_.map(function (item) {
var _item$response;
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
}),
new_attachment_id: ValueAll === null || ValueAll === void 0 || (_ValueAll$new_attachm = ValueAll.new_attachment_id) === null || _ValueAll$new_attachm === void 0 ? void 0 : _ValueAll$new_attachm.map(function (item) {
var _item$response2;
return item === null || item === void 0 || (_item$response2 = item.response) === null || _item$response2 === void 0 ? void 0 : _item$response2.id;
})
});
_context2.next = 12;

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