|
|
|
|
@ -20048,7 +20048,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
form = _Form$useForm2[0];
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
mode: 1,
|
|
|
|
|
status: 1
|
|
|
|
|
status: 0
|
|
|
|
|
}),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
formValue = _useState2[0],
|
|
|
|
|
@ -20170,26 +20170,38 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
_useState56 = slicedToArray_default()(_useState55, 2),
|
|
|
|
|
selectShixunRows = _useState56[0],
|
|
|
|
|
setSelectShixunRows = _useState56[1];
|
|
|
|
|
var _useState57 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
subject_learning_mode_id: ''
|
|
|
|
|
}),
|
|
|
|
|
var _useState57 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState58 = slicedToArray_default()(_useState57, 2),
|
|
|
|
|
moParams = _useState58[0],
|
|
|
|
|
setMoParams = _useState58[1];
|
|
|
|
|
delShixunStageVis = _useState58[0],
|
|
|
|
|
setDelStageShixunVis = _useState58[1];
|
|
|
|
|
var _useState59 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState60 = slicedToArray_default()(_useState59, 2),
|
|
|
|
|
shixunModeList = _useState60[0],
|
|
|
|
|
setShixunModeList = _useState60[1];
|
|
|
|
|
var _useState61 = (0,_react_17_0_2_react.useState)(-1),
|
|
|
|
|
checkedShixunKeys = _useState60[0],
|
|
|
|
|
setCheckedShixunKeys = _useState60[1];
|
|
|
|
|
var _useState61 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState62 = slicedToArray_default()(_useState61, 2),
|
|
|
|
|
currShixunIndex = _useState62[0],
|
|
|
|
|
setCurrShixunIndex = _useState62[1];
|
|
|
|
|
var _useState63 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
checkedShixunNodes = _useState62[0],
|
|
|
|
|
setCheckedShixunNodes = _useState62[1];
|
|
|
|
|
var _useState63 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
subject_learning_mode_id: ''
|
|
|
|
|
}),
|
|
|
|
|
_useState64 = slicedToArray_default()(_useState63, 2),
|
|
|
|
|
delModeVis = _useState64[0],
|
|
|
|
|
setDelModeVis = _useState64[1];
|
|
|
|
|
moParams = _useState64[0],
|
|
|
|
|
setMoParams = _useState64[1];
|
|
|
|
|
var _useState65 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState66 = slicedToArray_default()(_useState65, 2),
|
|
|
|
|
shixunModeList = _useState66[0],
|
|
|
|
|
setShixunModeList = _useState66[1];
|
|
|
|
|
var _useState67 = (0,_react_17_0_2_react.useState)(-1),
|
|
|
|
|
_useState68 = slicedToArray_default()(_useState67, 2),
|
|
|
|
|
currShixunIndex = _useState68[0],
|
|
|
|
|
setCurrShixunIndex = _useState68[1];
|
|
|
|
|
var _useState69 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState70 = slicedToArray_default()(_useState69, 2),
|
|
|
|
|
delModeVis = _useState70[0],
|
|
|
|
|
setDelModeVis = _useState70[1];
|
|
|
|
|
var columns = [{
|
|
|
|
|
title: '实践项目名称',
|
|
|
|
|
key: 'shixun_name',
|
|
|
|
|
@ -20228,8 +20240,11 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
console.log("checkedKeysValue--", checkedKeysValue);
|
|
|
|
|
console.log("e--", e);
|
|
|
|
|
// console.log("checkedTreeData---", checkedTreeData)
|
|
|
|
|
|
|
|
|
|
setCheckedKeys2(checkedKeysValue);
|
|
|
|
|
if (formValue.mode === 2) {
|
|
|
|
|
setCheckedShixunKeys(checkedKeysValue);
|
|
|
|
|
} else {
|
|
|
|
|
setCheckedKeys2(checkedKeysValue);
|
|
|
|
|
}
|
|
|
|
|
// setCheckedNodes2([...checkedTreeData]);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -20441,21 +20456,16 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
selectShixunRows: (item === null || item === void 0 ? void 0 : item.shixuns) || []
|
|
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|
var keys = [];
|
|
|
|
|
keys.push([].concat(toConsumableArray_default()(item === null || item === void 0 ? void 0 : item.stage_ids), toConsumableArray_default()(item === null || item === void 0 ? void 0 : item.stage_shixun_ids)));
|
|
|
|
|
var treeData = [];
|
|
|
|
|
treeData.push(transformData(item === null || item === void 0 ? void 0 : item.subject_learning_assocs));
|
|
|
|
|
console.log("keys---", keys);
|
|
|
|
|
console.log("treeData--", treeData);
|
|
|
|
|
relation_pro = {
|
|
|
|
|
checkedKeys: keys || [],
|
|
|
|
|
checkedNodes: treeData || []
|
|
|
|
|
checkedShixunKeys: [].concat(toConsumableArray_default()(item === null || item === void 0 ? void 0 : item.stage_ids), toConsumableArray_default()(item === null || item === void 0 ? void 0 : item.stage_shixun_ids)),
|
|
|
|
|
checkedShixunNodes: transformData(item === null || item === void 0 ? void 0 : item.subject_learning_assocs)
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
return objectSpread2_default()(objectSpread2_default()({}, item), {}, {
|
|
|
|
|
relation_pro: relation_pro
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
console.log('tempList---', tempList);
|
|
|
|
|
setShixunModeList(toConsumableArray_default()(tempList));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -20616,17 +20626,15 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
if ((item === null || item === void 0 ? void 0 : item.mode_type) === 1) {
|
|
|
|
|
var _item$relation_pro;
|
|
|
|
|
var _allIds = getIds(stageDate);
|
|
|
|
|
item === null || item === void 0 || (_item$relation_pro = item.relation_pro) === null || _item$relation_pro === void 0 || (_item$relation_pro = _item$relation_pro.checkedKeys) === null || _item$relation_pro === void 0 || _item$relation_pro.map(function (jtem) {
|
|
|
|
|
jtem.forEach(function (item2) {
|
|
|
|
|
var _allIds$stageId2;
|
|
|
|
|
if ((_allIds === null || _allIds === void 0 || (_allIds$stageId2 = _allIds.stageId) === null || _allIds$stageId2 === void 0 ? void 0 : _allIds$stageId2.findIndex(function (v) {
|
|
|
|
|
return v === item2;
|
|
|
|
|
})) > -1) {
|
|
|
|
|
stage_ids.push(item2);
|
|
|
|
|
} else {
|
|
|
|
|
stage_shixun_ids.push(item2);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
item === null || item === void 0 || (_item$relation_pro = item.relation_pro) === null || _item$relation_pro === void 0 || (_item$relation_pro = _item$relation_pro.checkedShixunKeys) === null || _item$relation_pro === void 0 || _item$relation_pro.map(function (jtem) {
|
|
|
|
|
var _allIds$stageId2;
|
|
|
|
|
if ((_allIds === null || _allIds === void 0 || (_allIds$stageId2 = _allIds.stageId) === null || _allIds$stageId2 === void 0 ? void 0 : _allIds$stageId2.findIndex(function (v) {
|
|
|
|
|
return v === jtem;
|
|
|
|
|
})) > -1) {
|
|
|
|
|
stage_ids.push(jtem);
|
|
|
|
|
} else {
|
|
|
|
|
stage_shixun_ids.push(jtem);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
@ -20748,12 +20756,8 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
case 0:
|
|
|
|
|
console.log('values---', values);
|
|
|
|
|
console.log('attachment_id_b', attachment_id_b);
|
|
|
|
|
if (values.mode_type === 2) {
|
|
|
|
|
if (currShixunIndex > -1) {
|
|
|
|
|
shixunModeList.splice(currShixunIndex, 1, values);
|
|
|
|
|
} else {
|
|
|
|
|
shixunModeList.push(values);
|
|
|
|
|
}
|
|
|
|
|
if (currShixunIndex > -1) {
|
|
|
|
|
shixunModeList.splice(currShixunIndex, 1, values);
|
|
|
|
|
} else {
|
|
|
|
|
shixunModeList.push(values);
|
|
|
|
|
}
|
|
|
|
|
@ -20769,6 +20773,10 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
return _ref7.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
var logdaradsa = function logdaradsa(data) {
|
|
|
|
|
console.log('didi', data);
|
|
|
|
|
return '';
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(drawer/* default */.Z, {
|
|
|
|
|
placement: "bottom",
|
|
|
|
|
height: "100%",
|
|
|
|
|
@ -20803,7 +20811,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
,
|
|
|
|
|
initialValues: {
|
|
|
|
|
mode: 1,
|
|
|
|
|
status: 1
|
|
|
|
|
status: 0
|
|
|
|
|
},
|
|
|
|
|
onFinish: handleFinish,
|
|
|
|
|
onValuesChange: function onValuesChange() {
|
|
|
|
|
@ -20854,7 +20862,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: formValue.mode === 1 ? '添加阶段' : '添加模块'
|
|
|
|
|
}), checkedNodes.length > 0 && formValue.mode === 1 && (formValue.mode === 1 && !stageVis || formValue.mode === 2 && !modeVis) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
}), checkedNodes.length > 0 && formValue.mode === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: AddLearnPathmodules.stageBox,
|
|
|
|
|
children: checkedNodes.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -20905,7 +20913,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
}), formValue.mode === 2 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
}), formValue.mode === 2 && shixunModeList.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: AddLearnPathmodules.shixunWrap,
|
|
|
|
|
children: shixunModeList.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -20930,8 +20938,8 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
} else {
|
|
|
|
|
var _item$relation_pro5, _item$relation_pro6;
|
|
|
|
|
console.log('item--', item);
|
|
|
|
|
setCheckedNodes(toConsumableArray_default()(((_item$relation_pro5 = item.relation_pro) === null || _item$relation_pro5 === void 0 ? void 0 : _item$relation_pro5.checkedNodes) || []));
|
|
|
|
|
setCheckedKeys(toConsumableArray_default()((item === null || item === void 0 || (_item$relation_pro6 = item.relation_pro) === null || _item$relation_pro6 === void 0 ? void 0 : _item$relation_pro6.checkedKeys) || []));
|
|
|
|
|
setCheckedShixunKeys(toConsumableArray_default()(item === null || item === void 0 || (_item$relation_pro5 = item.relation_pro) === null || _item$relation_pro5 === void 0 ? void 0 : _item$relation_pro5.checkedShixunKeys));
|
|
|
|
|
setCheckedShixunNodes(toConsumableArray_default()(item === null || item === void 0 || (_item$relation_pro6 = item.relation_pro) === null || _item$relation_pro6 === void 0 ? void 0 : _item$relation_pro6.checkedShixunNodes));
|
|
|
|
|
}
|
|
|
|
|
setImageUrls(item === null || item === void 0 ? void 0 : item.cover_id);
|
|
|
|
|
setCurrShixunIndex(index);
|
|
|
|
|
@ -21011,8 +21019,8 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
checkedClassValue.splice(index, 1);
|
|
|
|
|
checkedClassLabel.splice(index, 1);
|
|
|
|
|
setCheckedClassValue(checkedClassValue);
|
|
|
|
|
setCheckedClassLabel(checkedClassLabel);
|
|
|
|
|
setCheckedClassValue(toConsumableArray_default()(checkedClassValue));
|
|
|
|
|
setCheckedClassLabel(toConsumableArray_default()(checkedClassLabel));
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
@ -21071,19 +21079,25 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
setCheckedNodes2([]);
|
|
|
|
|
},
|
|
|
|
|
onOk: function onOk() {
|
|
|
|
|
var tempNode = buildNewTree(stageDate, checkedKeys2);
|
|
|
|
|
console.log("tempNode--", tempNode);
|
|
|
|
|
if (currEditIndex === -1) {
|
|
|
|
|
checkedNodes.push(tempNode);
|
|
|
|
|
checkedKeys.push(checkedKeys2);
|
|
|
|
|
if (formValue.mode === 2) {
|
|
|
|
|
var tempNode = buildNewTree(stageDate, checkedShixunKeys);
|
|
|
|
|
console.log("tempNode--", tempNode);
|
|
|
|
|
setCheckedShixunNodes(tempNode);
|
|
|
|
|
} else {
|
|
|
|
|
checkedNodes.splice(currEditIndex, 1, tempNode);
|
|
|
|
|
checkedKeys.splice(currEditIndex, 1, checkedKeys2);
|
|
|
|
|
var _tempNode = buildNewTree(stageDate, checkedKeys2);
|
|
|
|
|
console.log("tempNode--", _tempNode);
|
|
|
|
|
if (currEditIndex === -1) {
|
|
|
|
|
checkedNodes.push(_tempNode);
|
|
|
|
|
checkedKeys.push(checkedKeys2);
|
|
|
|
|
} else {
|
|
|
|
|
checkedNodes.splice(currEditIndex, 1, _tempNode);
|
|
|
|
|
checkedKeys.splice(currEditIndex, 1, checkedKeys2);
|
|
|
|
|
}
|
|
|
|
|
console.log("checkedNodes--", checkedNodes);
|
|
|
|
|
console.log("checkedKeys--", checkedKeys);
|
|
|
|
|
setCheckedKeys(toConsumableArray_default()(checkedKeys));
|
|
|
|
|
setCheckedNodes(toConsumableArray_default()(checkedNodes));
|
|
|
|
|
}
|
|
|
|
|
console.log("checkedNodes--", checkedNodes);
|
|
|
|
|
console.log("checkedKeys--", checkedKeys);
|
|
|
|
|
setCheckedKeys(toConsumableArray_default()(checkedKeys));
|
|
|
|
|
setCheckedNodes(toConsumableArray_default()(checkedNodes));
|
|
|
|
|
setStageVis(false);
|
|
|
|
|
},
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
@ -21122,7 +21136,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
selectable: false,
|
|
|
|
|
defaultExpandAll: true,
|
|
|
|
|
onCheck: onCheck,
|
|
|
|
|
checkedKeys: checkedKeys2,
|
|
|
|
|
checkedKeys: formValue.mode === 2 ? checkedShixunKeys : checkedKeys2,
|
|
|
|
|
treeData: stageDate,
|
|
|
|
|
blockNode: true
|
|
|
|
|
})
|
|
|
|
|
@ -21154,6 +21168,29 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: "\u786E\u8BA4\u8981\u79FB\u9664\u8FD9\u4E2A\u5B66\u4E60\u9636\u6BB5\u5417\uFF1F"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
centered: true,
|
|
|
|
|
width: 510,
|
|
|
|
|
keyboard: false,
|
|
|
|
|
maskClosable: false,
|
|
|
|
|
destroyOnClose: true,
|
|
|
|
|
title: "\u63D0\u793A",
|
|
|
|
|
open: delShixunStageVis,
|
|
|
|
|
onOk: function onOk() {
|
|
|
|
|
setCheckedShixunKeys([]);
|
|
|
|
|
setCheckedShixunNodes([]);
|
|
|
|
|
setDelStageShixunVis(false);
|
|
|
|
|
},
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
setDelStageShixunVis(false);
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
fontSize: "14px",
|
|
|
|
|
color: '#333'
|
|
|
|
|
},
|
|
|
|
|
children: "\u786E\u8BA4\u8981\u79FB\u9664\u8FD9\u4E2A\u7AE0\u8282\u5417\uFF1F"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
centered: true,
|
|
|
|
|
width: 948,
|
|
|
|
|
@ -21208,8 +21245,8 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
destroyOnClose: true,
|
|
|
|
|
afterClose: function afterClose() {
|
|
|
|
|
if (formValue2.mode_type === 1) {
|
|
|
|
|
setCheckedKeys([]);
|
|
|
|
|
setCheckedNodes([]);
|
|
|
|
|
setCheckedShixunKeys([]);
|
|
|
|
|
setCheckedShixunNodes([]);
|
|
|
|
|
}
|
|
|
|
|
form2.resetFields();
|
|
|
|
|
setSelectShixunRowKeys([]);
|
|
|
|
|
@ -21230,8 +21267,8 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
form2.setFieldValue('relation_pro', {
|
|
|
|
|
checkedNodes: checkedNodes,
|
|
|
|
|
checkedKeys: checkedKeys
|
|
|
|
|
checkedShixunKeys: checkedShixunKeys,
|
|
|
|
|
checkedShixunNodes: checkedShixunNodes
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
form2.setFieldValue('cover_id', attachment_id_b);
|
|
|
|
|
@ -21312,7 +21349,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "relation_pro",
|
|
|
|
|
label: "\u5173\u8054\u9879\u76EE",
|
|
|
|
|
label: formValue2.mode_type === 1 ? '关联章节' : '关联项目',
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "".concat(formValue2.type === 1 ? '请选择章节模块' : '请选择项目模块')
|
|
|
|
|
@ -21364,57 +21401,48 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}, item.stage_shixun_id);
|
|
|
|
|
})
|
|
|
|
|
}), formValue2.mode_type === 1 && !stageVis && (checkedNodes === null || checkedNodes === void 0 ? void 0 : checkedNodes.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
}), formValue2.mode_type === 1 && !stageVis && (checkedShixunNodes === null || checkedShixunNodes === void 0 ? void 0 : checkedShixunNodes.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.stageBox,
|
|
|
|
|
children: checkedNodes.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.subStageBox,
|
|
|
|
|
style: {
|
|
|
|
|
borderBottom: index === checkedNodes.length - 1 ? 'none' : ''
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.titleBox,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.stageTitle,
|
|
|
|
|
children: ["\u7B2C", index + 1, "\u9636\u6BB5"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.iconWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: "\u7F16\u8F91",
|
|
|
|
|
placement: "top",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-bianji14 ".concat(AddLearnPathmodules.icon1Hover),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setCurrEditIndex(index);
|
|
|
|
|
setCheckedKeys2(toConsumableArray_default()(checkedKeys[index]));
|
|
|
|
|
setStageVis(true);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: "\u79FB\u9664",
|
|
|
|
|
placement: "top",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-shanchutimu ".concat(AddLearnPathmodules.icon2Hover),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setCurrEditIndex(index);
|
|
|
|
|
setDelStageVis(true);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tree/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
background: '#F6F7F9',
|
|
|
|
|
color: '#333'
|
|
|
|
|
},
|
|
|
|
|
checkable: false,
|
|
|
|
|
selectable: false,
|
|
|
|
|
defaultExpandAll: true,
|
|
|
|
|
treeData: item,
|
|
|
|
|
blockNode: true
|
|
|
|
|
children: [logdaradsa(checkedShixunNodes), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: AddLearnPathmodules.titleBox,
|
|
|
|
|
style: {
|
|
|
|
|
justifyContent: 'flex-end'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.iconWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: "\u7F16\u8F91",
|
|
|
|
|
placement: "top",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-bianji14 ".concat(AddLearnPathmodules.icon1Hover),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
// setCheckedShixunKeys();
|
|
|
|
|
setStageVis(true);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: "\u79FB\u9664",
|
|
|
|
|
placement: "top",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-shanchutimu ".concat(AddLearnPathmodules.icon2Hover),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
// setCurrEditIndex(index);
|
|
|
|
|
setDelStageShixunVis(true);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tree/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
background: '#F6F7F9',
|
|
|
|
|
color: '#333'
|
|
|
|
|
},
|
|
|
|
|
checkable: false,
|
|
|
|
|
selectable: false,
|
|
|
|
|
defaultExpandAll: true,
|
|
|
|
|
treeData: checkedShixunNodes,
|
|
|
|
|
blockNode: true
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})]
|