Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent 4aaf8db532
commit 417b1503e1

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

@ -20434,10 +20434,22 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
setCheckedNodes(treeDataList);
} else {
tempList = learnModes.map(function (item) {
var relation_pro = {
selectShixunRowKeys: (item === null || item === void 0 ? void 0 : item.stage_shixun_ids) || [],
selectShixunRows: (item === null || item === void 0 ? void 0 : item.shixuns) || []
};
var relation_pro = {};
if ((item === null || item === void 0 ? void 0 : item.mode_type) === 2) {
relation_pro = {
selectShixunRowKeys: (item === null || item === void 0 ? void 0 : item.stage_shixun_ids) || [],
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));
relation_pro = {
checkedKeys: keys || [],
checkedNodes: treeData || []
};
}
return objectSpread2_default()(objectSpread2_default()({}, item), {}, {
relation_pro: relation_pro
});
@ -20593,26 +20605,32 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
});
} else {
learning_modes = shixunModeList.map(function (item, index) {
var _item$relation_pro2;
console.log('item--', item);
var stage_ids = [];
var stage_shixun_ids = [];
// let idRes = groupKeysByParent(item);
// console.log('idRes--', idRes);
// idRes.forEach((ids: any) => {
// if (ids.length === 1) {
// stage_ids.push(ids[0]);
// } else {
// let temp = ids.filter((jtem: any, index: number) => index !== 0)
// stage_shixun_ids = [...stage_shixun_ids, ...temp]
// }
// })
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);
}
});
});
}
return {
name: item.type === 1 ? "\u7B2C".concat(index + 1, "\u6A21\u5757") : item.name,
name: item.mode_type === 1 ? "\u7B2C".concat(index + 1, "\u6A21\u5757") : item.name,
mode_type: item.mode_type,
cover_id: (item === null || item === void 0 ? void 0 : item.cover_id) || null,
stage_ids: item.type === 1 ? stage_ids : [],
stage_shixun_ids: item.mode_type === 1 ? stage_shixun_ids : item.relation_pro.selectShixunRowKeys
stage_ids: item.mode_type === 1 ? stage_ids : [],
stage_shixun_ids: item.mode_type === 1 ? stage_shixun_ids : item === null || item === void 0 || (_item$relation_pro2 = item.relation_pro) === null || _item$relation_pro2 === void 0 ? void 0 : _item$relation_pro2.selectShixunRowKeys
};
});
}
@ -20726,13 +20744,18 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
case 0:
console.log('values---', values);
console.log('attachment_id_b', attachment_id_b);
if (currShixunIndex > -1) {
shixunModeList.splice(currShixunIndex, 1, values);
if (values.mode_type === 2) {
if (currShixunIndex > -1) {
shixunModeList.splice(currShixunIndex, 1, values);
} else {
shixunModeList.push(values);
}
} else {
shixunModeList.push(values);
}
setShixunModeList(toConsumableArray_default()(shixunModeList));
case 4:
setModeVis(false);
case 5:
case "end":
return _context6.stop();
}
@ -20895,15 +20918,15 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
className: "".concat(AddLearnPathmodules.editIcon, " current iconfont icon-bianji14"),
onClick: function onClick() {
if ((item === null || item === void 0 ? void 0 : item.mode_type) === 2) {
var _item$relation_pro, _item$relation_pro2;
var _item$relation_pro3, _item$relation_pro4;
console.log('shixunModeList[index]', shixunModeList[index]);
console.log("item--", item);
setSelectShixunRowKeys(toConsumableArray_default()(((_item$relation_pro = item.relation_pro) === null || _item$relation_pro === void 0 ? void 0 : _item$relation_pro.selectShixunRowKeys) || []));
setSelectShixunRows(toConsumableArray_default()((item === null || item === void 0 || (_item$relation_pro2 = item.relation_pro) === null || _item$relation_pro2 === void 0 ? void 0 : _item$relation_pro2.selectShixunRows) || []));
setSelectShixunRowKeys(toConsumableArray_default()(((_item$relation_pro3 = item.relation_pro) === null || _item$relation_pro3 === void 0 ? void 0 : _item$relation_pro3.selectShixunRowKeys) || []));
setSelectShixunRows(toConsumableArray_default()((item === null || item === void 0 || (_item$relation_pro4 = item.relation_pro) === null || _item$relation_pro4 === void 0 ? void 0 : _item$relation_pro4.selectShixunRows) || []));
} else {
var _item$relation_pro3, _item$relation_pro4;
setCheckedNodes(toConsumableArray_default()(((_item$relation_pro3 = item.relation_pro) === null || _item$relation_pro3 === void 0 ? void 0 : _item$relation_pro3.checkedNodes) || []));
setCheckedKeys(toConsumableArray_default()((item === null || item === void 0 || (_item$relation_pro4 = item.relation_pro) === null || _item$relation_pro4 === void 0 ? void 0 : _item$relation_pro4.checkedKeys) || []));
var _item$relation_pro5, _item$relation_pro6;
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) || []));
}
setImageUrls(item === null || item === void 0 ? void 0 : item.cover_id);
setCurrShixunIndex(index);
@ -21041,7 +21064,6 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
afterClose: function afterClose() {
setCheckedKeys2([]);
setCheckedNodes2([]);
setImageUrls('');
},
onOk: function onOk() {
var tempNode = buildNewTree(stageDate, checkedKeys2);
@ -21187,27 +21209,37 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
form2.resetFields();
setSelectShixunRowKeys([]);
setSelectShixunRows([]);
setImageUrls('');
},
title: "\u6DFB\u52A0\u5B66\u4E60\u6A21\u5757",
open: modeVis,
onOk: function onOk() {
if (formValue2.mode_type === 2) {
form2.setFieldValue('relation_pro', {
selectShixunRowKeys: selectShixunRowKeys,
selectShixunRows: selectShixunRows
});
} else {
form2.setFieldValue('relation_pro', {
checkedNodes: checkedNodes,
checkedKeys: checkedKeys
});
}
form2.setFieldValue('cover_id', attachment_id_b);
var a = form2.getFieldsValue();
console.log('a---', a);
form2.submit();
setModeVis(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var a;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
if (formValue2.mode_type === 2) {
form2.setFieldValue('relation_pro', {
selectShixunRowKeys: selectShixunRowKeys,
selectShixunRows: selectShixunRows
});
} else {
form2.setFieldValue('relation_pro', {
checkedNodes: checkedNodes,
checkedKeys: checkedKeys
});
}
form2.setFieldValue('cover_id', attachment_id_b);
a = form2.getFieldsValue();
console.log('a---', a);
_context7.next = 6;
return form2.submit();
case 6:
case "end":
return _context7.stop();
}
}, _callee7);
})),
onCancel: function onCancel() {
setModeVis(false);
},
@ -21286,6 +21318,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
if (formValue2.mode_type === 2) {
setRelateVis(true);
} else {
setCurrEditIndex(-1);
setStageVis(true);
}
},
@ -21606,18 +21639,24 @@ var LearnPath = function LearnPath(_ref) {
children: item.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji14 font14 mr20 ".concat(LearnPathmodules.iconSty),
onClick: function onClick() {
setLearnPathId(item === null || item === void 0 ? void 0 : item.subject_learning_path_id);
setCreatePathVis(true);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchutimu font14 ".concat(LearnPathmodules.iconSty2),
onClick: function onClick() {
setDelPathId(item === null || item === void 0 ? void 0 : item.subject_learning_path_id);
setDelPathVis(true);
}
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u7F16\u8F91",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji14 font14 mr20 ".concat(LearnPathmodules.iconSty),
onClick: function onClick() {
setLearnPathId(item === null || item === void 0 ? void 0 : item.subject_learning_path_id);
setCreatePathVis(true);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5220\u9664",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchutimu font14 ".concat(LearnPathmodules.iconSty2),
onClick: function onClick() {
setDelPathId(item === null || item === void 0 ? void 0 : item.subject_learning_path_id);
setDelPathVis(true);
}
})
})]
})]
}, index);

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