From ff98a28d64327f922b7ee5fbcf0e8ae40ba387b4 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Sat, 28 Oct 2023 00:08:19 +0800 Subject: [PATCH] Auto Submit --- p__Classrooms__Lists__Attachment__index.async.js | 4 ++++ p__virtualSpaces__Lists__Lesson__Detail__index.async.js | 9 +++++---- p__virtualSpaces__Lists__Material__index.async.js | 6 ++---- p__virtualSpaces__Lists__Material__index.chunk.css | 3 ++- p__virtualSpaces__Lists__Plan__index.async.js | 7 +++---- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/p__Classrooms__Lists__Attachment__index.async.js b/p__Classrooms__Lists__Attachment__index.async.js index 763735fc1f..26a72f6a93 100644 --- a/p__Classrooms__Lists__Attachment__index.async.js +++ b/p__Classrooms__Lists__Attachment__index.async.js @@ -1682,6 +1682,9 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) { if (attachment.actionTabs.key === "选用资源" && hasMore) { getData(); } + if (attachment.actionTabs.key !== "选用资源" && hasMore) { + setTabData([]); + } }, [attachment.actionTabs.key, hasMore, tabKey]); var groupIdsInitialValues = []; var getData = /*#__PURE__*/function () { @@ -2018,6 +2021,7 @@ function SimpleTable(_ref6) { } }]; return /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, { + loading: loadingData, pagination: false, columns: columns, className: SelectAttchmentmodules.table, diff --git a/p__virtualSpaces__Lists__Lesson__Detail__index.async.js b/p__virtualSpaces__Lists__Lesson__Detail__index.async.js index 111cdc7051..ba435cad5b 100644 --- a/p__virtualSpaces__Lists__Lesson__Detail__index.async.js +++ b/p__virtualSpaces__Lists__Lesson__Detail__index.async.js @@ -1638,7 +1638,8 @@ var LessonPage = function LessonPage(_ref) { message: '请输入资源名称' }], children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { - placeholder: "\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0" + placeholder: "\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0", + maxLength: 60 }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { htmlFor: null, @@ -1653,7 +1654,7 @@ var LessonPage = function LessonPage(_ref) { }], children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u8D44\u6E90", - maxLength: 60 + maxLength: 150 }) })] }) @@ -1681,10 +1682,10 @@ var LessonPage = function LessonPage(_ref) { return regeneratorRuntime_default()().wrap(function _callee7$(_context7) { while (1) switch (_context7.prev = _context7.next) { case 0: - ValueAll.attachment_ids = ValueAll === null || ValueAll === void 0 || (_ValueAll$attachment_ = ValueAll.attachment_ids) === null || _ValueAll$attachment_ === void 0 ? void 0 : _ValueAll$attachment_.map(function (item) { + ValueAll.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; - }); + })) || []; _context7.next = 3; return dispatch({ type: "virtualSpaces/postAddLessonRes", diff --git a/p__virtualSpaces__Lists__Material__index.async.js b/p__virtualSpaces__Lists__Material__index.async.js index 9997810e2b..f6cf19a1aa 100644 --- a/p__virtualSpaces__Lists__Material__index.async.js +++ b/p__virtualSpaces__Lists__Material__index.async.js @@ -685,7 +685,8 @@ var Page = function Page(_ref) { className: "ml20", style: { flexDirection: "column", - flex: 1 + flex: 1, + position: "relative" }, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { placement: "topLeft", @@ -700,9 +701,6 @@ var Page = function Page(_ref) { }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { className: Materialmodules.MultiLine3, - style: { - marginTop: name.length < 13 && "35px" - }, children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, { showTextOnly: true, value: "简介:" + (description || '暂未填写内容~') diff --git a/p__virtualSpaces__Lists__Material__index.chunk.css b/p__virtualSpaces__Lists__Material__index.chunk.css index b8ce76672e..bdb6a69b6c 100644 --- a/p__virtualSpaces__Lists__Material__index.chunk.css +++ b/p__virtualSpaces__Lists__Material__index.chunk.css @@ -121,7 +121,8 @@ color: #000; } .wrap___VxAa4 .PieceFenbuList___gzTyL .PieceFenbuItem___Z9J18 .MultiLine3___KeM07 { - margin-top: 10px; + position: absolute; + top: 70px; word-break: break-all; overflow: hidden; text-overflow: ellipsis; diff --git a/p__virtualSpaces__Lists__Plan__index.async.js b/p__virtualSpaces__Lists__Plan__index.async.js index 78e915b1d4..db4803a6c3 100644 --- a/p__virtualSpaces__Lists__Plan__index.async.js +++ b/p__virtualSpaces__Lists__Plan__index.async.js @@ -977,14 +977,13 @@ var Page = function Page(_ref) { setFileList(data); } else { var recursion = function recursion(reValue) { - var _reValue$children; - reValue === null || reValue === void 0 || (_reValue$children = reValue.children) === null || _reValue$children === void 0 || _reValue$children.map(function (item) { + reValue === null || reValue === void 0 || reValue.map(function (item) { var _item$children; - (item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) != 0 && recursion(item); + (item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) != 0 && recursion(item === null || item === void 0 ? void 0 : item.children); items.push(item); }); }; - recursion(data === null || data === void 0 ? void 0 : data[0]); + recursion(data); items.map(function (item) { (item === null || item === void 0 ? void 0 : item.id) == (fileItem === null || fileItem === void 0 ? void 0 : fileItem.id) && setFileItem(item); });