Auto Submit

dev_local_v9_test4
autosubmit 1 year ago
parent fe72a3cfcc
commit 9839f984de

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

@ -1942,7 +1942,7 @@ var NewHomeEntrance = function NewHomeEntrance(_ref) {
}
function _init() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, res1, total, res2, res3, res4, res5, res6, _res6$data;
var res, res1, _res1$data, res2, res3, res4, res5, res6, _res6$data;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -1957,14 +1957,13 @@ var NewHomeEntrance = function NewHomeEntrance(_ref) {
}
//物资管理
_context.next = 6;
return (0,fetch/* default */.ZP)('/api/yn_classrooms/statistics/substance_statistics.json', {
return (0,fetch/* default */.ZP)('/api/yn_classrooms/receives/statistics.json', {
method: 'get'
});
case 6:
res1 = _context.sent;
if ((res1 === null || res1 === void 0 ? void 0 : res1.status) === 0) {
total = Number(res1 === null || res1 === void 0 ? void 0 : res1.data.apply_total) + Number(res1 === null || res1 === void 0 ? void 0 : res1.data.pending_total) + Number(res1 === null || res1 === void 0 ? void 0 : res1.data.unreturn_total);
setMaterialTotal(total || 100);
setMaterialTotal((res1 === null || res1 === void 0 || (_res1$data = res1.data) === null || _res1$data === void 0 ? void 0 : _res1$data.total) || 100);
setMaterialData(res1 === null || res1 === void 0 ? void 0 : res1.data);
}
//实验室统计
@ -2177,15 +2176,15 @@ var NewHomeEntrance = function NewHomeEntrance(_ref) {
})]
}), (_ref2 = [{
name: '物资总数',
count: (materialData === null || materialData === void 0 ? void 0 : materialData.apply_total) || 0,
count: (materialData === null || materialData === void 0 ? void 0 : materialData.total) || 0,
strokeColor: '#198FFF'
}, {
name: '可申请数',
count: (materialData === null || materialData === void 0 ? void 0 : materialData.pending_total) || 0,
count: (materialData === null || materialData === void 0 ? void 0 : materialData.apply_total) || 0,
strokeColor: '#06A85E'
}, {
name: '待归还数',
count: (materialData === null || materialData === void 0 ? void 0 : materialData.unreturn_total) || 0,
count: (materialData === null || materialData === void 0 ? void 0 : materialData.unreturned) || 0,
strokeColor: '#C97106'
}]) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {

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