Auto Submit

pull/1/head
autosubmit 3 years ago
parent e5031e91cd
commit 07f055f74f

@ -3293,7 +3293,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -682,7 +682,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -6025,7 +6025,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -3162,7 +3162,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -4165,7 +4165,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -3106,9 +3106,9 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
});
(0,react.useEffect)(function () {
var _classroomList$detail;
if ((_classroomList$detail = classroomList.detailLeftMenus) !== null && _classroomList$detail !== void 0 && _classroomList$detail.course_modules) {
var _classroomList$detail2;
setLeftMenu(JSON.parse(JSON.stringify((_classroomList$detail2 = classroomList.detailLeftMenus) === null || _classroomList$detail2 === void 0 ? void 0 : _classroomList$detail2.course_modules)));
var course_modules = (_classroomList$detail = classroomList.detailLeftMenus) === null || _classroomList$detail === void 0 ? void 0 : _classroomList$detail.course_modules;
if (course_modules) {
setLeftMenu(JSON.parse(JSON.stringify(course_modules)));
openMenu();
}
}, [classroomList.detailLeftMenus]);
@ -3146,18 +3146,11 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
return _getmodules.apply(this, arguments);
}
var openMenu = function openMenu() {
var _classroomList$detail3, _classroomList$detail4;
(_classroomList$detail3 = classroomList.detailLeftMenus) === null || _classroomList$detail3 === void 0 ? void 0 : (_classroomList$detail4 = _classroomList$detail3.course_modules) === null || _classroomList$detail4 === void 0 ? void 0 : _classroomList$detail4.map(function (item, key) {
var _classroomList$detail2, _classroomList$detail3;
(_classroomList$detail2 = classroomList.detailLeftMenus) === null || _classroomList$detail2 === void 0 ? void 0 : (_classroomList$detail3 = _classroomList$detail2.course_modules) === null || _classroomList$detail3 === void 0 ? void 0 : _classroomList$detail3.map(function (item, key) {
if (location.pathname.indexOf(item.category_url) > -1 || specialActive(item)) {
if (!secondOpen.includes(key)) secondOpen.push(key);
setSecondOpen(toConsumableArray_default()(secondOpen));
var arr = location.pathname.split('').filter(function (info) {
return info == '/';
});
if (arr.length == 3) {
// 显示所有3级目录
show3List(item);
}
}
});
};
@ -3565,15 +3558,6 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
var scrollToBody = function scrollToBody() {
// window.scrollTo(0, 336)
};
// 默认展开3级目录
var show3List = function show3List(list) {
var _list$second_category;
(_list$second_category = list.second_category) === null || _list$second_category === void 0 ? void 0 : _list$second_category.map(function (val, key) {
if (!thirdOpen.includes(val === null || val === void 0 ? void 0 : val.category_id)) thirdOpen.push(val === null || val === void 0 ? void 0 : val.category_id);
setThirdOpen(toConsumableArray_default()(thirdOpen));
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(Sider, {
width: 264,
style: {
@ -3670,11 +3654,6 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
// window.document.body.scrollTop=1000
// window.scrollTo(0, 100);
if (location.pathname === v.category_url) {
// if (secondOpen === -1) {
// setSecondOpen(k)
// } else {
// setSecondOpen(-1)
// }
if (secondOpen.includes(k)) {
secondOpen.splice(secondOpen.indexOf(k), 1);
if (secondOpen.includes(k)) {
@ -3743,6 +3722,18 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
ref: provided.innerRef
}, provided.draggableProps), provided.dragHandleProps), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
onClick: function onClick(e) {
e.stopPropagation();
if (thirdOpen.includes(val === null || val === void 0 ? void 0 : val.category_id)) {
thirdOpen.splice(thirdOpen.indexOf(val === null || val === void 0 ? void 0 : val.category_id), 1);
} else {
thirdOpen.push(val === null || val === void 0 ? void 0 : val.category_id);
}
setThirdOpen(toConsumableArray_default()(thirdOpen));
// console.log('--xxx-', val);
},
className: location.pathname.indexOf(val.second_category_url) > -1 ? ShixunDetailmodules.actived2 : '',
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
@ -3758,19 +3749,16 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
onClick: function onClick(e) {
e.preventDefault();
if (location.pathname.indexOf(val.second_category_url) > -1) {
// if (thirdOpen === -1) {
// setThirdOpen(key)
// if (thirdOpen.includes(val?.category_id)) {
// thirdOpen.splice(thirdOpen.indexOf(val?.category_id), 1)
// } else {
// setThirdOpen(-1)
// thirdOpen.push(val?.category_id)
// }
if (thirdOpen.includes(val === null || val === void 0 ? void 0 : val.category_id)) {
thirdOpen.splice(thirdOpen.indexOf(val === null || val === void 0 ? void 0 : val.category_id), 1);
} else {
thirdOpen.push(val === null || val === void 0 ? void 0 : val.category_id);
}
setThirdOpen(toConsumableArray_default()(thirdOpen));
// setThirdOpen([...thirdOpen])
} else {
if (!thirdOpen.includes(val === null || val === void 0 ? void 0 : val.category_id)) thirdOpen.push(val === null || val === void 0 ? void 0 : val.category_id);
if (!thirdOpen.includes(key)) thirdOpen.push(key);
setThirdOpen(toConsumableArray_default()(thirdOpen));
if (['shixun_homework', 'hack', 'common_homework', 'group_homework'].includes(val.category_type)) {
// history.replace(val.second_category_url+'?tabs=0')

@ -1067,7 +1067,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -3293,7 +3293,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -4252,7 +4252,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -3676,7 +3676,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -1862,7 +1862,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -1848,7 +1848,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -606,7 +606,7 @@ var CustomCarousel = function CustomCarousel(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomCarouselmodules.bq,

@ -3942,20 +3942,23 @@ var FolderItems = function FolderItems(_ref) {
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewFoldermodules.list,
onClick: function onClick(e) {
return onOpen(id, isShare);
},
children: [visible ? /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
style: {
maxWidth: 780
},
value: inputValue,
onChange: function onChange(e) {
return setInputValue(e.target.value);
setInputValue(e.target.value);
},
onClick: function onClick(e) {
return e.stopPropagation();
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
title: folderName,
onClick: function onClick() {
return onOpen(id, isShare);
},
className: NewFoldermodules.name,
title: folderName,
children: folderName
}), itemBanksCount ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewFoldermodules.subject,
@ -3963,46 +3966,38 @@ var FolderItems = function FolderItems(_ref) {
}) : "", isProblemset && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewFoldermodules.btns,
children: [visible ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: 16
},
onClick: function onClick() {
return onRename(id);
},
className: "ml0",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chenggong1",
style: {
color: '#33BD8C'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chenggong1 ml10",
style: {
height: 16
color: '#33BD8C'
},
onClick: function onClick() {
onClick: function onClick(e) {
e.stopPropagation();
onRename(id);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-qingchu ml10",
onClick: function onClick(e) {
e.stopPropagation();
setInputValue(folderName);
setVisible(false);
},
className: "ml10",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-qingchu"
})
}
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangyi3 ml10",
onClick: function onClick() {
return onMove(id, 'up');
onClick: function onClick(e) {
e.stopPropagation();
onMove(id, 'up');
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangyi3 ml10",
style: {
transform: 'rotate(180deg)'
},
onClick: function onClick() {
return onMove(id, 'down');
onClick: function onClick(e) {
e.stopPropagation();
onMove(id, 'down');
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -4013,7 +4008,8 @@ var FolderItems = function FolderItems(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml10",
onClick: function onClick() {
onClick: function onClick(e) {
e.stopPropagation();
// if (!itemBanksCount) {
// message.warning('该目录下没有试题');
// return;
@ -4024,14 +4020,16 @@ var FolderItems = function FolderItems(_ref) {
children: "\u5171\u4EAB\u5168\u90E8\u6587\u4EF6\u5939"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml10",
onClick: function onClick() {
return setVisible(true);
onClick: function onClick(e) {
e.stopPropagation();
setVisible(true);
},
type: "link",
children: "\u91CD\u547D\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
return onDelete(id);
onClick: function onClick(e) {
e.stopPropagation();
onDelete(id);
},
type: "link",
danger: true,

@ -1601,7 +1601,7 @@ span[class~='ant-checkbox-checked'] span[class~='ant-checkbox-inner']::after {
display: inline-flex;
align-items: center;
justify-content: start;
width: 600px;
width: 1050px;
}
.list___Ur31H .btns___ITJo0 {
display: none;

@ -4277,7 +4277,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

@ -3219,7 +3219,7 @@ var CourseList = function CourseList(_ref) {
style: {
position: 'absolute',
top: '150px',
left: '10px'
left: '4px'
},
children: (item === null || item === void 0 ? void 0 : item.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CourseListmodules.bq,

Loading…
Cancel
Save