|
|
|
|
@ -17177,6 +17177,10 @@ var knowledge_Atlas = function Atlas(_ref) {
|
|
|
|
|
bounds = _useState48[0],
|
|
|
|
|
setBounds = _useState48[1];
|
|
|
|
|
var draggleRef = (0,react.useRef)(null);
|
|
|
|
|
var _useState49 = (0,react.useState)(false),
|
|
|
|
|
_useState50 = slicedToArray_default()(_useState49, 2),
|
|
|
|
|
threenodata = _useState50[0],
|
|
|
|
|
setThreenodata = _useState50[1];
|
|
|
|
|
var _onStart = function onStart(_event, uiData) {
|
|
|
|
|
var _draggleRef$current;
|
|
|
|
|
var _window$document$docu = window.document.documentElement,
|
|
|
|
|
@ -17190,10 +17194,10 @@ var knowledge_Atlas = function Atlas(_ref) {
|
|
|
|
|
bottom: clientHeight - (targetRect.bottom - uiData.y) - 70
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var _useState49 = (0,react.useState)(600),
|
|
|
|
|
_useState50 = slicedToArray_default()(_useState49, 2),
|
|
|
|
|
widths = _useState50[0],
|
|
|
|
|
setwidths = _useState50[1];
|
|
|
|
|
var _useState51 = (0,react.useState)(600),
|
|
|
|
|
_useState52 = slicedToArray_default()(_useState51, 2),
|
|
|
|
|
widths = _useState52[0],
|
|
|
|
|
setwidths = _useState52[1];
|
|
|
|
|
(0,react.useEffect)(function () {
|
|
|
|
|
setdatas({});
|
|
|
|
|
getdatas();
|
|
|
|
|
@ -19114,18 +19118,23 @@ var knowledge_Atlas = function Atlas(_ref) {
|
|
|
|
|
return item.key;
|
|
|
|
|
});
|
|
|
|
|
setExpandedKeys(newExpandedKeys);
|
|
|
|
|
if (newExpandedKeys.length <= 0) {
|
|
|
|
|
setThreenodata(true);
|
|
|
|
|
} else {
|
|
|
|
|
setThreenodata(false);
|
|
|
|
|
}
|
|
|
|
|
setAutoExpandParent(true);
|
|
|
|
|
setSearchValue(e.target.value);
|
|
|
|
|
// console.log(newExpandedKeys);
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tree/* default */.Z, {
|
|
|
|
|
}), threenodata ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)(tree/* default */.Z, {
|
|
|
|
|
onExpand: function onExpand(newExpandedKeys) {
|
|
|
|
|
setExpandedKeys(newExpandedKeys);
|
|
|
|
|
setAutoExpandParent(false);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
maxHeight: 300,
|
|
|
|
|
height: 300,
|
|
|
|
|
maxHeight: 400,
|
|
|
|
|
height: 400,
|
|
|
|
|
marginTop: 20,
|
|
|
|
|
overflow: 'auto'
|
|
|
|
|
},
|
|
|
|
|
@ -19442,7 +19451,7 @@ var exercise = __webpack_require__(51412);
|
|
|
|
|
var shixuns = __webpack_require__(56088);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/Sort/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Sortmodules = ({"tree":"tree___SHCwq","learn":"learn___buOG9","name":"name___dwQwe","sign":"sign___aQzc5","pdf_name":"pdf_name___m1wEX","name_style":"name_style___CnJ7d"});
|
|
|
|
|
/* harmony default export */ var Sortmodules = ({"tree":"tree___SHCwq","learn":"learn___buOG9","name":"name___dwQwe","sign":"sign___aQzc5","pdf_name":"pdf_name___m1wEX","name_style":"name_style___CnJ7d","color333":"color333___TbHdH"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
|
|
|
var lodash = __webpack_require__(96486);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
|
|
|
|
@ -19742,7 +19751,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
|
|
|
|
|
};
|
|
|
|
|
var onDrop = /*#__PURE__*/function () {
|
|
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(info) {
|
|
|
|
|
var dropKey, dragKey, dropPos, dropPosition, loop, data, dragObj, ar, i;
|
|
|
|
|
var _info$dragNode, _info$node, _info$dragNode2, _info$node2;
|
|
|
|
|
var dropKey, dragKey, dropPos, dropPosition, datas, loop, data, dragObj, ar, i;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
@ -19769,6 +19779,20 @@ var SendToClassModal = function SendToClassModal(_ref) {
|
|
|
|
|
}
|
|
|
|
|
return _context4.abrupt("return", false);
|
|
|
|
|
case 11:
|
|
|
|
|
// 所以内容只能拖入文件夹StageCatalog 不能拖入其余类型 且
|
|
|
|
|
datas = ['Attachment', 'Hack', 'Shixun', 'SubjectHomework', 'Videoltem']; //文件层集合数组datas
|
|
|
|
|
if (!(datas.includes((_info$dragNode = info.dragNode) === null || _info$dragNode === void 0 ? void 0 : _info$dragNode.item_type) && ((_info$node = info.node) === null || _info$node === void 0 ? void 0 : _info$node.item_type) != 'StageCatalog' && dropPosition === 0)) {
|
|
|
|
|
_context4.next = 14;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context4.abrupt("return", false);
|
|
|
|
|
case 14:
|
|
|
|
|
if (!(((_info$dragNode2 = info.dragNode) === null || _info$dragNode2 === void 0 ? void 0 : _info$dragNode2.item_type) === 'StageCatalog' && datas.includes((_info$node2 = info.node) === null || _info$node2 === void 0 ? void 0 : _info$node2.item_type) && dropPosition === 0)) {
|
|
|
|
|
_context4.next = 16;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context4.abrupt("return", false);
|
|
|
|
|
case 16:
|
|
|
|
|
loop = function loop(data, key, callback) {
|
|
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
if (data[i].key === key) {
|
|
|
|
|
@ -19815,17 +19839,17 @@ var SendToClassModal = function SendToClassModal(_ref) {
|
|
|
|
|
ar.splice(i + 1, 0, dragObj);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_context4.next = 17;
|
|
|
|
|
_context4.next = 22;
|
|
|
|
|
return updateSort({
|
|
|
|
|
stage_id: props.stage_id,
|
|
|
|
|
list: data
|
|
|
|
|
});
|
|
|
|
|
case 17:
|
|
|
|
|
case 22:
|
|
|
|
|
loopIndex(data, 0, 0, true);
|
|
|
|
|
console.log('data:', data);
|
|
|
|
|
setGdata(toConsumableArray_default()(data));
|
|
|
|
|
setOpenkeys([].concat(toConsumableArray_default()(openkeys), [info.node.key]));
|
|
|
|
|
case 21:
|
|
|
|
|
case 26:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context4.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -20094,12 +20118,13 @@ var SendToClassModal = function SendToClassModal(_ref) {
|
|
|
|
|
children: loadIcon(nodeData)
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
flex: "1",
|
|
|
|
|
className: "c-grey-333",
|
|
|
|
|
className: Sortmodules.color333,
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [props.cust_seq && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "mr10"
|
|
|
|
|
className: "".concat(Sortmodules.color333, " mr10")
|
|
|
|
|
|
|
|
|
|
// style={{flexShrink:0}}
|
|
|
|
|
,
|
|
|
|
|
children: nodeData.index
|
|
|
|
|
|