Auto Submit

dev_local_v9_test1
autosubmit 1 year ago
parent e98837fa98
commit e4fb4b60d6

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

@ -126,9 +126,10 @@ var CourseRules = function CourseRules(_ref) {
color: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.week) == Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_week) + 1 ? 'rgba(70, 79, 102,.5)' : '#464F66'
},
onClick: function onClick() {
if ((scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.week) < Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_week) + 1) {
getData(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.week) + 1);
}
// if (scheduleData?.week < (Number(scheduleData?.system_week) + 1)) {
// getData(Number(scheduleData?.week) + 1)
// }
getData(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.week) + 1);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
color: "#464F66"
@ -410,7 +411,7 @@ var AddOrEditReservation = function AddOrEditReservation(_ref) {
return myForm.validateFields();
case 2:
params = myForm.getFieldsValue();
params.schedule_date = dayjs_min_default()((_myForm$getFieldValue = myForm.getFieldValue('params.schedule_date')) === null || _myForm$getFieldValue === void 0 ? void 0 : _myForm$getFieldValue.$d).format('YYYY-MM-DD');
params.schedule_date = dayjs_min_default()((_myForm$getFieldValue = myForm.getFieldValue('schedule_date')) === null || _myForm$getFieldValue === void 0 ? void 0 : _myForm$getFieldValue.$d).format('YYYY-MM-DD');
rowData ? edit(params) : add(params);
case 5:
case "end":
@ -1219,6 +1220,8 @@ var AppointmentReview = function AppointmentReview(_ref) {
});
};
/* harmony default export */ var Scheduling_AppointmentReview = (AppointmentReview);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(92723);
;// CONCATENATED MODULE: ./src/pages/User/Detail/Scheduling/index.tsx
@ -1238,6 +1241,7 @@ var _excluded = ["user", "newShixuns", "classroomList", "globalSetting", "loadin
var ClassroomListPage = function ClassroomListPage(_ref) {
var user = _ref.user,
newShixuns = _ref.newShixuns,
@ -1288,16 +1292,20 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
console.log("box");
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/appointment_classes.json", {
method: 'get'
method: 'get',
params: {
week: box
}
});
case 2:
case 3:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
setScheduleData(res === null || res === void 0 ? void 0 : res.data);
}
case 4:
case 5:
case "end":
return _context.stop();
}
@ -1308,11 +1316,13 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
};
}();
var tabsChange = function tabsChange(e) {
setTabType(e);
if (e != 'four') {
setTabType(e);
}
if (e === 'one') {
getSchedulingList(null);
} else if (e === 'four') {
_umi_production_exports.history.push('/admins/course_resource_consumes');
window.open("".concat(env/* default */.Z.API_SERVER, "/admins/course_resource_consumes"));
}
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -1333,7 +1343,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
}), tabType === 'one' && /*#__PURE__*/(0,jsx_runtime.jsx)(Scheduling_CourseRules, {
scheduleData: scheduleData,
getData: function getData(e) {
return getSchedulingList(e);
getSchedulingList(e);
}
}), tabType === 'two' && /*#__PURE__*/(0,jsx_runtime.jsx)(Scheduling_MyReservation, {}, key), tabType === 'three' && /*#__PURE__*/(0,jsx_runtime.jsx)(Scheduling_AppointmentReview, {
tabType: tabType

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