Auto Submit

dev_local_v9_test4
autosubmit 11 months ago
parent fecbbf88e5
commit a929b3f2bd

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

@ -110,7 +110,8 @@ var Page = function Page(_ref2) {
var _StatisticData$data, _user$userInfo2, _user$userInfo3, _user$navigationInfo, _StatisticData$data2;
var dispatch = _ref2.dispatch,
user = _ref2.user,
pathsDetail = _ref2.pathsDetail;
pathsDetail = _ref2.pathsDetail,
loading = _ref2.loading;
var params = (0,_umi_production_exports.useParams)();
var _pathsDetail$stageDat = pathsDetail.stageData,
stageData = _pathsDetail$stageDat === void 0 ? [] : _pathsDetail$stageDat;
@ -221,20 +222,39 @@ var Page = function Page(_ref2) {
return _ref4.apply(this, arguments);
};
}();
var getDetail = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return dispatch({
type: 'pathsDetail/getPathsDetail',
payload: {
id: currentData === null || currentData === void 0 ? void 0 : currentData.identifier
}
});
case 2:
_context4.next = 4;
return dispatch({
type: 'pathsDetail/getStageData',
payload: {
subject_id: currentData === null || currentData === void 0 ? void 0 : currentData.identifier
}
});
case 4:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function getDetail() {
return _ref5.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
if (currentData !== null && currentData !== void 0 && currentData.identifier) {
dispatch({
type: 'pathsDetail/getStageData',
payload: {
subject_id: currentData === null || currentData === void 0 ? void 0 : currentData.identifier
}
});
dispatch({
type: 'pathsDetail/getPathsDetail',
payload: {
id: currentData === null || currentData === void 0 ? void 0 : currentData.identifier
}
});
getDetail();
}
}, [currentData === null || currentData === void 0 ? void 0 : currentData.identifier]);
(0,_react_17_0_2_react.useEffect)(function () {
@ -327,53 +347,57 @@ var Page = function Page(_ref2) {
})]
}, item === null || item === void 0 ? void 0 : item.id);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "rounded-16px-rem bg-white py-14px-rem px-20px-rem flex flex-col gap-20px-rem h-auto",
style: {
width: "600rem",
backdropFilter: "blur(4rem)"
},
children: (stageData === null || stageData === void 0 ? void 0 : stageData.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml-auto",
type: "primary",
onClick: function onClick() {
(0,util/* openNewWindow */.xg)("/paths/".concat(currentData === null || currentData === void 0 ? void 0 : currentData.identifier));
},
children: "\u8FDB\u5165\u8BFE\u7A0B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(collapse/* default */.Z, {
className: NewPathsmodules.CollapseStyle,
bordered: false,
defaultActiveKey: ['1'],
style: {
background: "rgba(0,0,0,0)"
},
expandIconPosition: "end",
items: (stageData === null || stageData === void 0 ? void 0 : stageData.map(function (item, index) {
var _pathsDetail$detail5, _user$userInfo4, _user$userInfo5;
return {
key: item === null || item === void 0 ? void 0 : item.stage_id,
label: item === null || item === void 0 ? void 0 : item.stage_name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Sort/* default */.Z, {
visibleType: "All",
subjectHomeworkType: "",
data: (item === null || item === void 0 ? void 0 : item.items) || [],
index: index,
disabled: true,
showInfoModal: showInfoModal,
cust_seq: !!(pathsDetail !== null && pathsDetail !== void 0 && (_pathsDetail$detail5 = pathsDetail.detail) !== null && _pathsDetail$detail5 !== void 0 && _pathsDetail$detail5.cust_seq),
showVideoPlay: ((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.admin) || ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.business) || isSHow(),
isPaths: true
}),
style: {
marginBottom: "16rem",
borderRadius: "8rem"
}
};
})) || []
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "暂无数据"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
className: "flex-1 minW-0",
spinning: !!(loading !== null && loading !== void 0 && loading['pathsDetail/getPathsDetail']) || !!(loading !== null && loading !== void 0 && loading["pathsDetail/getStageData"]),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "rounded-16px-rem bg-white py-14px-rem px-20px-rem flex flex-col gap-20px-rem h-auto",
style: {
width: "600rem",
backdropFilter: "blur(4rem)"
},
children: (stageData === null || stageData === void 0 ? void 0 : stageData.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml-auto",
type: "primary",
onClick: function onClick() {
(0,util/* openNewWindow */.xg)("/paths/".concat(currentData === null || currentData === void 0 ? void 0 : currentData.identifier));
},
children: "\u8FDB\u5165\u8BFE\u7A0B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(collapse/* default */.Z, {
className: NewPathsmodules.CollapseStyle,
bordered: false,
defaultActiveKey: ['1'],
style: {
background: "rgba(0,0,0,0)"
},
expandIconPosition: "end",
items: (stageData === null || stageData === void 0 ? void 0 : stageData.map(function (item, index) {
var _pathsDetail$detail5, _user$userInfo4, _user$userInfo5;
return {
key: item === null || item === void 0 ? void 0 : item.stage_id,
label: item === null || item === void 0 ? void 0 : item.stage_name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Sort/* default */.Z, {
visibleType: "All",
subjectHomeworkType: "",
data: (item === null || item === void 0 ? void 0 : item.items) || [],
index: index,
disabled: true,
showInfoModal: showInfoModal,
cust_seq: !!(pathsDetail !== null && pathsDetail !== void 0 && (_pathsDetail$detail5 = pathsDetail.detail) !== null && _pathsDetail$detail5 !== void 0 && _pathsDetail$detail5.cust_seq),
showVideoPlay: ((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.admin) || ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.business) || isSHow(),
isPaths: true
}),
style: {
marginBottom: "16rem",
borderRadius: "8rem"
}
};
})) || []
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "暂无数据"
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(QueryWork/* default */.Z, {
@ -384,14 +408,16 @@ var Page = function Page(_ref2) {
})
});
};
/* harmony default export */ var NewPaths = ((0,_umi_production_exports.connect)(function (_ref5) {
var user = _ref5.user,
pathsDetail = _ref5.pathsDetail,
globalSetting = _ref5.globalSetting;
/* harmony default export */ var NewPaths = ((0,_umi_production_exports.connect)(function (_ref6) {
var user = _ref6.user,
pathsDetail = _ref6.pathsDetail,
globalSetting = _ref6.globalSetting,
loading = _ref6.loading;
return {
user: user,
pathsDetail: pathsDetail,
globalSetting: globalSetting
globalSetting: globalSetting,
loading: loading.effects
};
})(Page));

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