Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent 417b1503e1
commit 82bfc3cb7e

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

@ -20445,6 +20445,8 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
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 || []
@ -20468,10 +20470,12 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getSubjectList();
getClassList();
getShixunData();
}, []);
if (visable) {
getSubjectList();
getClassList();
getShixunData();
}
}, [visable]);
(0,_react_17_0_2_react.useEffect)(function () {
if (!!learningPathId && visable) {
getLearnDetail();
@ -20925,6 +20929,7 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
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_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) || []));
}
@ -21022,10 +21027,10 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 1,
value: 0,
children: "\u7ACB\u5373\u53D1\u5E03"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 2,
value: 1,
children: "\u6682\u4E0D\u53D1\u5E03"
})]
})
@ -21521,6 +21526,8 @@ var NewLearnPathPage = function NewLearnPathPage(_ref) {
}, "bottom");
};
/* harmony default export */ var AddLearnPath = (NewLearnPathPage);
// EXTERNAL MODULE: ./src/components/AsyncButton/index.tsx
var AsyncButton = __webpack_require__(56229);
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/index.tsx
@ -21537,6 +21544,8 @@ var LearnPath_excluded = ["pathsDetail", "globalSetting", "loading", "dispatch"]
var LearnPath = function LearnPath(_ref) {
var pathsDetail = _ref.pathsDetail,
globalSetting = _ref.globalSetting,
@ -21564,6 +21573,12 @@ var LearnPath = function LearnPath(_ref) {
_useState10 = slicedToArray_default()(_useState9, 2),
learnPathId = _useState10[0],
setLearnPathId = _useState10[1];
//学生端
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
treeData = _useState12[0],
setTreeData = _useState12[1];
var getPathData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data;
@ -21631,14 +21646,14 @@ var LearnPath = function LearnPath(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(LearnPathmodules.pathWrap, " mb20"),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: (item === null || item === void 0 ? void 0 : item.status) == 1 ? LearnPathmodules.successStatus : LearnPathmodules.errorStatus,
children: item.status == 1 ? '已发布' : '未发布'
children: [!(0,authority/* isStudents */.Yh)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: (item === null || item === void 0 ? void 0 : item.status) == 0 ? LearnPathmodules.successStatus : LearnPathmodules.errorStatus,
children: item.status == 0 ? '已发布' : '未发布'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LearnPathmodules.nameSty,
children: item.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), !(0,authority/* isStudents */.Yh)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u7F16\u8F91",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@ -21658,9 +21673,33 @@ var LearnPath = function LearnPath(_ref) {
}
})
})]
}), (0,authority/* isStudents */.Yh)() && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
className: "ml10",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,paths/* getLearningPathDetail */.Rl)({
id: params.pathId,
subject_learning_path_id: item === null || item === void 0 ? void 0 : item.subject_learning_path_id
});
case 2:
res = _context3.sent;
case 3:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: "\u67E5\u770B\u8BE6\u60C5"
})
})]
}, index);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
}), !(0,authority/* isStudents */.Yh)() && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
style: {
margin: '0 auto'
},
@ -21681,7 +21720,7 @@ var LearnPath = function LearnPath(_ref) {
styles: {
marginBottom: '25px'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
}), !(0,authority/* isStudents */.Yh)() && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
style: {
margin: '0 auto'
},
@ -21724,10 +21763,10 @@ var LearnPath = function LearnPath(_ref) {
})]
});
};
/* harmony default export */ var components_LearnPath = ((0,_umi_production_exports.connect)(function (_ref4) {
var pathsDetail = _ref4.pathsDetail,
loading = _ref4.loading,
globalSetting = _ref4.globalSetting;
/* harmony default export */ var components_LearnPath = ((0,_umi_production_exports.connect)(function (_ref5) {
var pathsDetail = _ref5.pathsDetail,
loading = _ref5.loading,
globalSetting = _ref5.globalSetting;
return {
pathsDetail: pathsDetail,
globalSetting: globalSetting,

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