|
|
|
|
@ -714,101 +714,6 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
// let res = {
|
|
|
|
|
// "status": 0,
|
|
|
|
|
// "message": "响应成功",
|
|
|
|
|
// "data": {
|
|
|
|
|
// "inform_descriptions": [],
|
|
|
|
|
// "department_name": "信息学院",
|
|
|
|
|
// "jaoshi_name": "信息学院2402",
|
|
|
|
|
// "semester_name": " 2024学年 秋季学期",
|
|
|
|
|
// "work_num": 50,
|
|
|
|
|
// "weekly": 9,
|
|
|
|
|
// "list": [
|
|
|
|
|
// {
|
|
|
|
|
// "week": 1,
|
|
|
|
|
// "total": 0,
|
|
|
|
|
// "details": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "week": 2,
|
|
|
|
|
// "total": 2,
|
|
|
|
|
// "details": [
|
|
|
|
|
// {
|
|
|
|
|
// "teacher_name": "官铮",
|
|
|
|
|
// "course_name": "数字电路实验",
|
|
|
|
|
// "study_num": 34,
|
|
|
|
|
// "start_section": 5,
|
|
|
|
|
// "end_section": 6,
|
|
|
|
|
// "sections": [
|
|
|
|
|
// 5,
|
|
|
|
|
// 6
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "teacher_name": "官铮",
|
|
|
|
|
// "course_name": "数字电路实验",
|
|
|
|
|
// "study_num": 34,
|
|
|
|
|
// "start_section": 7,
|
|
|
|
|
// "end_section": 8,
|
|
|
|
|
// "sections": [
|
|
|
|
|
// 7,
|
|
|
|
|
// 8
|
|
|
|
|
// ]
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "week": 3,
|
|
|
|
|
// "total": 0,
|
|
|
|
|
// "details": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "week": 4,
|
|
|
|
|
// "total": 2,
|
|
|
|
|
// "details": [
|
|
|
|
|
// {
|
|
|
|
|
// "teacher_name": "官铮",
|
|
|
|
|
// "course_name": "数字电路实验",
|
|
|
|
|
// "study_num": 33,
|
|
|
|
|
// "start_section": 5,
|
|
|
|
|
// "end_section": 6,
|
|
|
|
|
// "sections": [
|
|
|
|
|
// 5,
|
|
|
|
|
// 6
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "teacher_name": "金钊",
|
|
|
|
|
// "course_name": "数值计算",
|
|
|
|
|
// "study_num": 49,
|
|
|
|
|
// "start_section": 7,
|
|
|
|
|
// "end_section": 8,
|
|
|
|
|
// "sections": [
|
|
|
|
|
// 7,
|
|
|
|
|
// 8
|
|
|
|
|
// ]
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "week": 5,
|
|
|
|
|
// "total": 0,
|
|
|
|
|
// "details": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "week": 6,
|
|
|
|
|
// "total": 0,
|
|
|
|
|
// "details": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "week": 7,
|
|
|
|
|
// "total": 0,
|
|
|
|
|
// "details": []
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
setWeekInfo(res === null || res === void 0 ? void 0 : res.data);
|
|
|
|
|
res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.list) === null || _res$data === void 0 || _res$data.forEach(function (item, index) {
|
|
|
|
|
@ -955,14 +860,29 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '220px',
|
|
|
|
|
display: "flex",
|
|
|
|
|
textAlign: "right",
|
|
|
|
|
marginLeft: (weekInfo === null || weekInfo === void 0 || (_weekInfo$inform_desc2 = weekInfo.inform_descriptions) === null || _weekInfo$inform_desc2 === void 0 ? void 0 : _weekInfo$inform_desc2.length) > 0 ? '20px' : 'auto'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
background: '#3061D0',
|
|
|
|
|
width: '120px',
|
|
|
|
|
height: "36px",
|
|
|
|
|
lineHeight: '36px',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
color: '#FFFFFF',
|
|
|
|
|
cursor: "pointer",
|
|
|
|
|
marginLeft: 'auto'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push("/viewAppointment/".concat(params === null || params === void 0 ? void 0 : params.id));
|
|
|
|
|
},
|
|
|
|
|
children: "\u67E5\u770B\u9884\u7EA6\u60C5\u51B5"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
background: '#C3CFE0',
|
|
|
|
|
width: '64px',
|
|
|
|
|
@ -971,7 +891,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
color: '#464F66',
|
|
|
|
|
cursor: "pointer",
|
|
|
|
|
marginLeft: '140px'
|
|
|
|
|
marginLeft: '20px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
@ -1038,7 +958,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: "\u9000\u51FA"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|