Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent 64e042a568
commit 11fa8bf3e2

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

@ -21035,10 +21035,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: 0,
value: 1,
children: "\u7ACB\u5373\u53D1\u5E03"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 1,
value: 0,
children: "\u6682\u4E0D\u53D1\u5E03"
})]
})
@ -21561,6 +21561,7 @@ var AsyncButton = __webpack_require__(56229);
var LearnPath_excluded = ["pathsDetail", "globalSetting", "loading", "dispatch"];
@ -21605,8 +21606,12 @@ var LearnPath = function LearnPath(_ref) {
//学生端
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
treeData = _useState12[0],
setTreeData = _useState12[1];
learnModes = _useState12[0],
setLearnModes = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(false),
_useState14 = slicedToArray_default()(_useState13, 2),
detailVis = _useState14[0],
setDetailVis = _useState14[1];
var getPathData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data;
@ -21675,8 +21680,8 @@ var LearnPath = function LearnPath(_ref) {
className: "".concat(LearnPathmodules.pathWrap, " mb20"),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
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 ? '已发布' : '未发布'
className: (item === null || item === void 0 ? void 0 : item.status) == 1 ? LearnPathmodules.successStatus : LearnPathmodules.errorStatus,
children: item.status == 1 ? '已发布' : '未发布'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LearnPathmodules.nameSty,
children: item.name
@ -21706,7 +21711,7 @@ var LearnPath = function LearnPath(_ref) {
className: "ml10",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var res;
var res, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
@ -21717,7 +21722,11 @@ var LearnPath = function LearnPath(_ref) {
});
case 2:
res = _context3.sent;
case 3:
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setLearnModes(toConsumableArray_default()(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.subject_learning_modes));
setDetailVis(true);
}
case 4:
case "end":
return _context3.stop();
}

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