|
|
|
|
@ -642,6 +642,7 @@ var graduations = __webpack_require__(91154);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Page = function Page(_ref) {
|
|
|
|
|
var globalSetting = _ref.globalSetting,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
@ -736,14 +737,24 @@ var Page = function Page(_ref) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
return (0,graduations/* getGraduations */.J3)(record);
|
|
|
|
|
return (0,graduations/* getGraduations */.J3)(objectSpread2_default()(objectSpread2_default()({}, record), {}, {
|
|
|
|
|
tab_module_type: 'graduations'
|
|
|
|
|
}));
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
if (res !== null && res !== void 0 && res.un_purchased) {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'globalSetting/setActionTabs',
|
|
|
|
|
payload: {
|
|
|
|
|
key: '采购提示'
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
setYears((res === null || res === void 0 ? void 0 : res.graduation_years) || []);
|
|
|
|
|
}
|
|
|
|
|
return _context2.abrupt("return", res);
|
|
|
|
|
case 5:
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -2086,9 +2097,24 @@ var EditAttendance = function EditAttendance(_ref) {
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
virtualSpaces = _ref.virtualSpaces,
|
|
|
|
|
globalSetting = _ref.globalSetting;
|
|
|
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
|
|
|
var flag = false;
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (globalSetting.actionTabs.key === '采购提示') {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
}, [globalSetting.actionTabs.key]);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (flag) {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'globalSetting/setActionTabs',
|
|
|
|
|
payload: {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, [location.pathname]);
|
|
|
|
|
var cancel = function cancel() {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'classroomList/setActionTabs',
|
|
|
|
|
type: 'globalSetting/setActionTabs',
|
|
|
|
|
payload: {}
|
|
|
|
|
});
|
|
|
|
|
window.location.href = '/';
|